iframe_api
(脚本)移动设备如何工作?
当playerVars
等于0时,我无法播放移动设备;但当playerVars
等于1或2时,我可以。
<div id="container" class="container">
<div id="playerLayer"></div>
</div>
function onYouTubeIframeAPIReady() {
player = new YT.Player('playerLayer', {
height: '520',
width: '560',
html5 : 0,
videoId: 'jp2lDKlxFVY',
playerVars : {
controls: 0,
showinfo: 0,
modestbranding: 1,
wmode: "opaque"
},
events: {
'onReady': onPlayerReady,
'onStateChange': onPlayerStateChange
}
});
}