收到错误消息“网络[400]存在问题".在播放Youtube视频时 [英] getting error "There was a issue with network [400]" while playing You tube video
问题描述
我正在使用Android You tube API播放Tube视频.某些URL工作正常,但在某些URL中,我在屏幕上发现错误消息,提示网络[400]点击重试有问题".互联网已连接.请帮帮我.预先感谢.
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.
推荐答案
此我认为仅将 YouTube ID而不是整个YouTube URL赋予loadVideo()
函数.
I think Give ONLY the YouTube ID and not the entire YouTube URL to the loadVideo()
function.
更新:
如果要跳到视频中的特定时间.
if you want jump to a specific time in the video.
API提供了两种跳转播放的方法:
The API provides two methods to jump playback:
– seekToMillis()
–搜索视频中的指定时间.
– seekToMillis()
– Seeks to the specified time in the video.
– seekRelativeMillis()
–向前或向后搜索指定的秒数.
– seekRelativeMillis()
– Seeks forward or backwards by the specified number of seconds.
更多信息这里
这篇关于收到错误消息“网络[400]存在问题".在播放Youtube视频时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!