video playback displays blank screen with only audio?

前端 未结 1 801
日久生厌
日久生厌 2021-01-21 22:14

I have to develop an one android application.

here i have to play the youtube video on full screen mode and normal mode.

i have using youtubeplayerfragment.

相关标签:
1条回答
  • 2021-01-21 22:27

    You can check YouTube Direct Lite App as a reference. While switching to full screen or orintation change, activity is killed and created again in Android. So you may need something like

    android:configChanges="orientation|screenSize" >

    Check the manifest for it.

    0 讨论(0)
提交回复
热议问题