无法加载现代控制UI。升级到Android的YouTube API的最新版本 [英] Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API

查看:374
本文介绍了无法加载现代控制UI。升级到Android的YouTube API的最新版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用 Android版的Youtube API 。一切工作正常节选,当我伸出 AppCompatActivity 。 YoutubePlayer的UI看起来那么糟糕。我想这两个 YoutubePlayerFragment YoutubePlayerSupportFragment 。没有什么作品。结果
该logcat的是象下面这样:

I'm trying to use Android Youtube API. Everything works ok excepts that when I extends AppCompatActivity. The UI of YoutubePlayer looks so bad. I tried both of YoutubePlayerFragment and YoutubePlayerSupportFragment. Nothing works.
The logcat is like below:

W/YouTubeAndroidPlayerAPI: Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API.

我已经更新了最新的YouTube API 1.2.2。但它仍然没有工作。结果
奇怪的是,如果我延长 FragmentActivity 活动,它的工作原理。结果
请帮助。先谢谢了。

I already updated the latest youtube api 1.2.2. But It's still not working.
The weird thing is that If I extend FragmentActivity or Activity, It works.
Please helps. Thanks in advance.

推荐答案

有关我的问题是,我能够播放视频只有一次,但之后YouTubePlayer不能播放任何视频。我希望还有很多其他的人谁也面临着与YouTubeAndroidPlayerAPI类似的问题。我认为,最新的YouTube应用程序(版本10.37.58)和YouTubeAndroidPlayerAPI 1.2.1不兼容。

For me the issue is that I am able to play the video only once but after that YouTubePlayer doesn't play any video and I hope there are many other people who are also facing similar issues with the YouTubeAndroidPlayerAPI. I think the latest youtube app (version 10.37.58) and YouTubeAndroidPlayerAPI 1.2.1 are not compatible.

要我所知,你可以做目前解决这个问题的唯一事情就是降级设备上安装的YouTube应用到10.36.52或更低。 (你可以从APK镜子得到它)

To best of my knowledge the only thing you can do currently to solve this problem is downgrade your youtube app installed on the device to 10.36.52 or below. (you can get it from apk mirror)

从YouTubeAndroidPlayerAPI工作,而我所注意到的是,与YouTube版本10.36.52它抛出警告信息无法加载现代控制UI。升级至Android的YouTube API的最新版本。在logcat的每次我尝试播放视频,但其它工作正常。并与10.35.53版及以下没有这样的警告信息被抛出。

From what I have noticed while working with YouTubeAndroidPlayerAPI is that with the youtube version 10.36.52 it throws warning messages "Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API." on the logcat everytime I try to play a video but otherwise works fine. And with version 10.35.53 and below no such warning message is thrown.

原因:我不知道,但我觉得这事做在YouTubeAndroidPlayerAPI 1.2.1 YoutubePlayerSupport片段,这是广为人知,并在谷歌数据API问题跟踪报道了严重的内存泄露问题。上个月,终于定于9月1日一年后(至少是目前的状态怎么说),因为据报道(惊讶地看到了什么谷歌这么久)。但是谷歌还没有推出YouTubeAndroidPlayerAPI与修复新版本呢。所以也许它们固定在YouTube应用内存问题在九月其中一些如何在某种程度上打破了YouTubeAndroidPlayerAPI 1.2.1的功能(因为YouTubeAndroidPlayerAPI直接依赖于YouTube应用工作)。

Reason: I am not sure but I think this has something to do with the huge memory leak issue with the YoutubePlayerSupport fragment in YouTubeAndroidPlayerAPI 1.2.1 which was widely known and reported in google data api issue tracker. It was finally fixed last month on 1st September (at least that's what the current status says) after a year since it was reported (surprised to see what took google so long). However google hasn't rolled out the new version of YouTubeAndroidPlayerAPI with the fix yet. So maybe they fixed that memory issue in the youtube app in September which some how broke the functionality of YouTubeAndroidPlayerAPI 1.2.1 in some way (since YouTubeAndroidPlayerAPI directly depends on the youtube app to work).

这篇关于无法加载现代控制UI。升级到Android的YouTube API的最新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆