2010 (264)
2011 (255)
2014 (518)
2015 (976)
2017 (946)
2019 (491)
YouTube 油管 視頻 新舊代碼的轉換和應用
YouTube 油管 視頻 是應用最廣的網上視頻平台和載體
以前 油管 用老式代碼
現在用 新代碼
不同的網站 接受和支持不同的代碼
因此 兩種代碼都知曉 靈活變通 應手得心 為上
現 簡介如下
其實 記住三個要素 就可以了:
1. 這個視頻 video 的 核心
2. 置換到 新或舊的格式中去 即可
3. 這個基本 也適用於 優酷 56 新浪 騰訊 土豆 等其它網站來源的轉換和應用
The new style YouTube playlist embed code begins with "<iframe...".
<iframe width="560" height="315" src="http://www.youtube.com/embed/videoseries?list=PLAYLISTID&hl=en_US" frameborder="0" allowfullscreen></iframe>
=================
While the IFRAME embed method is simple, some browsers and services don't support this tag. This case, you have to switch to the old embed code. you could copy the code below and change the "PlaylistID" to your need. Also change the width and height parameters if necessary.
<object width="560" height="315">
<param name="movie" value="http://www.youtube.com/p/PlaylistID"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/p/PlaylistID" width="560" height="315"
<type="application/x-shockwave-flash" allowscriptaccess="always">
<allowfullscreen="true"></embed></object>
=========================
<object width="500" height="360"> <param name="movie" value="http://www.youtube.com/embed/videoseries?list=PLE5F16CEA65AB4BD9&hl=en_US"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/embed/videoseries?list=PLE5F16CEA65AB4BD9&hl=en_US" width="500" height="360" <type="application/x-shockwave-flash"> <allowscriptaccess="always"> <allowfullscreen="true"></embed></object> =================== Tips: The Difference Between 2 Methods The IFRAME embed code supports both Flash and HTML5 video, while the older style of embed code begins with "<object..." and only support Flash playback. By the way, the "<embed..." is for Internet Explorer.
[]