I am trying to use Youtube Player in my android application. It shows the old outdated user interface for the player, but in the samples it shows the modern user interface. The only difference between the two applications is to use YoutubePlayerSupportFragment instead of YoutubePlayerFragment. This is because I am using AppCompatActivity for the Material Theme on devices with a pre-leoptype.
I get the following statement in the logs:
W/YouTubeAndroidPlayerAPI﹕ Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API.
How to overcome this problem? I need a modern interface using Appcompat and YoutubePlayerSupportFragment
android youtube youtube-api
Kalyan
source share