個人資料
弓尒 (熱門博主)
  • 博客訪問:
正文

【YouTube 油管 視頻 新舊代碼的轉換和應用】

(2012-09-01 17:55:37) 下一個

 


YouTube 油管 視頻 新舊代碼的轉換和應用


 




YouTube 油管 視頻 是應用最廣的網上視頻平台和載體


以前 油管 用老式代碼


現在用 新代碼


不同的網站 接受和支持不同的代碼


因此 兩種代碼都知曉 靈活變通 應手得心 為上


現 簡介如下


 


其實 記住三個要素 就可以了:


1. 這個視頻 video 的 核心


2. 置換到 新或舊的格式中去 即可


3. 這個基本 也適用於 優酷 56 新浪 騰訊 土豆 等其它網站來源的轉換和應用


 


 



Using IFRAME Code to Embed YouTube Playlist


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>


=================



Using Old Code to Embed YouTube Playlist


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&amp;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&amp;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.



 


 


[]


 


 


 


 


[ 打印 ]
閱讀 ()評論 (0)
評論
目前還沒有任何評論
登錄後才可評論.