Umer
Umer

Reputation: 1556

Unable to play Youtube videos using YouTube Android Player API

I am getting this error "Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API." I used youtubePlayer.addFullscreenControlFlag(YouTubePlayer.FULLSCREEN_FLAG_CONTROL_SYSTEM_UI);

but still getting same error also i go through Unable to play some Youtube videos using YouTube Android Player API

But still getting error.

Upvotes: 1

Views: 602

Answers (1)

Umer
Umer

Reputation: 1556

I faced this bug because i am using Fragment inside Youtube Fragment. i removed the inner fragment my problem is solved and now Youtube Videos are working properly.

Upvotes: 1

Related Questions