视频突然停止从 Youtube API 播放 [英] Video's suddenly stopped playing from Youtube API
问题描述
我们已经在我们的 Android 应用程序中使用 Youtube API 大约 3 个月了,我们在过去几天删除了很多旧视频,并更新了我们存储视频 ID 的 MYSQL 服务器.
We've been using the Youtube API in our Android Application for about 3 months now, we removed alot of old video's the last couple of days and updated our MYSQL server where the video ID's are stored.
我们在主屏幕中动态添加了 60 个视频(使用 MYSQL),并且我添加了大约 6 个视频的硬编码",所以那里应该没有任何问题.
We made 60 video's add dynamically (using the MYSQL) in our main screen, and i've added about 6 video's 'hardcoded', so nothing should have gone wrong there.
突然所有视频都无法在应用程序内播放并给出错误播放时出现问题,触摸以重试".我可以继续敲击,但没有任何反应.我确实看到它正在加载正确的视频.
Suddenly all the video's won't play inside the application and give the error "There was a problem while playing, touch to retry". I can keep tapping but nothing happens. I do see that it is loading the right video.
如果我一直点击右下角,即指向 youtube 网络/应用程序的链接,那么它会在普通的 youtube 应用程序中加载视频.它在普通的 Youtube 应用程序中运行良好.
If I keep tapping the bottom right corner, where the link to the youtube web/app is, then it will load the video inside the normal youtube application. It is working fine inside the normal Youtube App.
- 重新启动我的设备
- 卸载我的应用程序并重新安装
- 从 WiFi 切换到 3G
- 测试了一个也有该应用程序的朋友手机
- 生成新的 Youtube_API_KEY 并将其添加到应用程序
- 尝试了多个 Youtube 帐户,甚至在未登录 Youtube 的情况下进行了测试
上述尝试均无效.有没有人知道去哪里找?
None of the above mentioned attempts worked. Does anyone mayby has a clue where to look?
推荐答案
我有一个 问题 较早时与 YouTube API 相关,并且该错误是在 YouTube 应用的特定版本中引入的.也就是说,我的应用程序中是否存在错误取决于所安装的 YouTube 版本.
I had an issue earlier with the YouTube API, and the bug was introduced with a specific version of the YouTube app. That is, the presence of the bug in my application depended on the installed version of YouTube.
如果你去Settings
> Apps
> YouTube
,点击Uninstall Updates
,你可以安装另一个版本使用从此处下载的 .apk 文件直接访问 YouTube,例如.
If you go to Settings
> Apps
> YouTube
, tap Uninstall Updates
, you can install another version of YouTube directly with an .apk file downloaded from here, for example.
安装 较早版本的 YouTube 以获得临时解决方案.您可能想在 YouTube 问题跟踪器上提出问题,并且等待修复.
Install an earlier version of YouTube for a temporary solution. You may want to raise an issue at the issue tracker for YouTube, and wait for the fix.
这篇关于视频突然停止从 Youtube API 播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!