Is there a way to get YTPlayerView to play full screen on an iPad?

前端 未结 1 2248
故里飘歌
故里飘歌 2021-02-20 11:33

In loadWithVideoId:playerVars: I\'m setting playsinline to @0.

I\'m also calling ytPlayer.webView.allowsInlineMediaPlayback

相关标签:
1条回答
  • 2021-02-20 12:07

    Find the YTPlayerView-iframe-player.html file and add the following css style.

    <style>
        body { margin: 0; width:100%%; height:100%%; }
    
        html { width:100%%; height:100%%; }
    </style>
    

    I see YTPlayerView play in fullscreen on iPhone and iPad both.

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