是否可以播放响应移动设备的YouTube视频,以便在播放播放按钮后不全屏播放。换句话说,在定义的div 框中播放。
<p>
<div class="w3-row w3-padding-0">
<div id="topleftfadein" class="w3-col s12 l12 m12 w3-margin-bottom animated fadeInLeft slower w3-white">
<div class="videoWrapperOuter">
<div id="yt1" class="videoWrapperInner">
<iframe src="https://www.youtube.com/embed/TMEmv9uienU?autoplay=1&modestbranding=1&controls=0"
frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
根据YouTube的IFrame Player API将&playsinline=1
添加到iframesrc