我在我的项目中使用此库(Swift-YouTube-Player) 点击Swift-Youtube-Player!
我的问题是当我点击播放按钮时,会自动出现全屏模式。我怎么能解雇这个?
答案 0 :(得分:0)
要始终以内联方式播放,您需要将playsinline
属性设置为1
var playerVars = ["controls": "1", "playsinline": "1", "autohide": "1", "showinfo": "1", "autoplay": "0", "fs": "1", "rel": "0", "loop": "0", "enablejsapi": "1", "modestbranding": "1"]
myVideoPlayer.load(withVideoId: currentClip.clip_video.video_media_id, playerVars: playerVars)