2012-10-22 50 views
2

由於我希望能夠操縱嵌入式Youtube播放列表的z-index,我嘗試添加html5參數,設置爲1,但這似乎只適用於單個視頻嵌入。強制YouTube播放列表爲HTML5播放

這工作:

<iframe width="300" height="225" src="http://www.youtube.com/embed/VIDEO_ID?html5=1" frameborder="0"> 

但這並不:

<iframe width="300" height="225" src="http://www.youtube.com/embed/videoseries?list=PLAYLIST_ID&amp;html5=1" frameborder="0"> 

非常感謝:)

+0

也許嘗試它的src設置成'http://www.youtube.com/embed/videoseries?list=PLAYLIST_ID&html5=1 ' – andlrc

+0

@Null:你的意思是把&改成&?不幸的是,這也不工作.. – user1766045

+1

YouTube目前正在工作的HTML5播放器。它仍處於測試階段,播放列表尚未得到支持。 –

回答

0

你正迫使HTML 5播放器的正確方法,YouTube不目前支持此功能只適用於單個視頻。

還有其他解決方案可以讓html5播放器在html5中播放多個youtube視頻。

使用mediaelement.js你可以自己建立一些東西(檢查哪個vid正在播放,哪一個下一個,如果一個視頻完成了,等等)。 http://mediaelementjs.com/

快速谷歌後,我發現其中居然有播放列表支持HTML5播放器:http://mediafront.org/osmplayer/#.UK1L3eOe-pY