根据问题的建议,我想隐藏“Youtube”播放器的播放/暂停按钮。
我在用
https://github.com/youtube/youtube-ios-player-helper
并像这样设置 playerVars 参数:
let playerVars = [
"controls" : 0,
"playsinline" : 1,
"autohide" : 0,
"showinfo" : 0,
"modestbranding" : 0
]
最佳答案
我发现有用的三个参数是:
showinfo=0
controls=0
autohide=1
showinfo=0
确保视频不会在视频帧的顶部显示标题。
controls=0
隐藏带有播放按钮、音量等的底部栏。
autohide=1
隐藏控件,直到您将鼠标悬停在它们上面,这可能是最有用的。
All the official docs are here.
但是您可以使用带有自定义 CSS 的嵌入来隐藏或调整“播放”按钮的位置。
button.ytp-large-play-button.ytp-button {
display: none;
}
关于ios - 如何隐藏播放/暂停按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37984683/