I am playing you Tube video using Android You tube API. Some of the URL are working fine but in some URL i found error message on screen saying "There was a problem with network [400] Tap to retry". Internet is connected.Please help me out. Thanks in advance.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Just remove the **https://www.youtube.com/watch?v=**gNRN7lUU3tM from the url and only give gNRN7lUU3tM as url to the youtube player. It will work fine
This link, Your solution.
I think Give ONLY the YouTube ID and not the entire YouTube URL to the
loadVideo()
function.UPDATE:
if you want jump to a specific time in the video.
The API provides two methods to jump playback:
–
seekToMillis()
– Seeks to the specified time in the video.–
seekRelativeMillis()
– Seeks forward or backwards by the specified number of seconds.More info here