1
我使用iframe
的Youtube嵌入视频,在播放按钮全屏点击
<iframe title="YouTube" src="http://www.youtube.com/embed/aaabbbcccddd?wmode=transparent&autoplay=0" allowfullscreen="allowfullscreen"></iframe>
我想,如果用户点击“播放”按钮,它会自动进入全屏的Youtube嵌入代码。
相对于用户应该点击“播放”并点击“全屏”按钮 - 我想跳过点击“全屏”部分。
这可能吗?
我需要使用Youtube的Javascript API吗?
是否有这样的事情:
youtube.onPlayButtonClicked(function() {
youtube.fullscreen();
});
预先感谢您!
你看的[YouTube的iframe的API文档(https://developers.google.com/youtube/iframe_api_reference)? – evolutionxbox