I am trying to use Youtube Player in my android app. It is showing a old outdated UI for the player but in the samples its showing a modern UI. The only difference between the two apps is I am using YoutubePlayerSupportFragment instead of YoutubePlayerFragment. This is because i am using AppCompatActivity for Material Theme in pre lollipop devices.
I am getting the below statement in 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 the modern UI using Appcompat and YoutubePlayerSupportFragment