View Size for YTPlayer

后端 未结 4 1404
挽巷
挽巷 2021-01-03 09:29

I am using the iOS YouTube Player helper (https://developers.google.com/youtube/v3/guides/ios_youtube_helper) and it works just fine but the preview image is not the size of

4条回答
  •  無奈伤痛
    2021-01-03 09:48

    I find another solution. If you use YTPlayerView in a xib file, please make sure the following points.

    1, Check 'Use Auto Layout'

    2, DO NOT set the width and height value for YTPlayerView.

    then the YTPlayerView will play normally.

提交回复
热议问题