YouTube Embedded Players and Player Parameters - Google ...
文章推薦指數: 80 %
By appending parameters to the IFrame URL, you can customize the playback experience in your application. For example, you can automatically play videos using ... YouTube IFramePlayerAPI Language English BahasaIndonesia Deutsch Español Français Italiano Polski Português–Brasil Türkçe Русский 中文–简体 日本語 한국어 Signin Reference Samples Support YouTube IFramePlayerAPI Reference Samples Support IFrameAPI PlayerParameters MobileAPIs AndroidPlayerAPI iOSHelperLibrary Home Products YouTube IFramePlayerAPI YouTubeEmbeddedPlayersandPlayerParameters Overview ThisdocumentexplainshowtoembedaYouTubeplayerinyourapplicationandalsodefinestheparametersthatareavailableintheYouTubeembeddedplayer. ByappendingparameterstotheIFrameURL,youcancustomizetheplaybackexperienceinyourapplication.Forexample,youcanautomaticallyplayvideosusingtheautoplayparameterorcauseavideotoplayrepeatedlyusingtheloopparameter.YoucanalsousetheenablejsapiparametertoenabletheplayertobecontrolledviatheIFramePlayerAPI. ThispagecurrentlydefinesallparameterssupportedinanyYouTubeembeddedplayer.Eachparameterdefinitionidentifiestheplayersthatsupportthecorrespondingparameter. Note:Embeddedplayersmusthaveaviewportthatisatleast200pxby200px.Iftheplayerdisplayscontrols,itmustbelargeenoughtofullydisplaythecontrolswithoutshrinkingtheviewportbelowtheminimumsize.Werecommend16:9playersbeatleast480pixelswideand270pixelstall. EmbedaYouTubeplayer YoucanuseanyofthefollowingmethodstoembedaYouTubeplayerinyourapplicationandspecifyplayerparameters.Notethattheinstructionsbelowdemonstratehowtoembedaplayerthatloadsasinglevideo.Thefollowingsectionexplainshowtoconfigureyourplayertoloadaplaylistorauser'suploadedvideos. Embedaplayerusingan
延伸文章資訊
- 1Youtube影片iframe嵌入網頁設定自動播放(autoplay) - JA ...
Youtube影片iframe嵌入網頁設定自動播放(autoplay),重複播放(loop),靜音(mute), ... <iframe width="640" height="360" src...
- 2【筆記】Iframe 內嵌Youtube影片的方式- SpicyBoyd 部落格
複數參數的用 & 串連; autoplay 自動播放: autoplay=1 ,反之則不自動播放(default): autoplay=0; loop 無限循環播放: loop=1 ,反之則播放...
- 3嵌入影片與播放清單- YouTube說明
在電腦上前往要嵌入的YouTube 影片或播放清單頁面。 · 按一下「分享」圖示 · 按一下「分享」選項清單中的[嵌入]。 · 複製方塊中的HTML 程式碼。 · 將程式碼貼到網站的HTML 中。
- 4如何嵌入YouTube 影片到網站或部落格(含自動播放和重播)
<iframe width="560" height="315" ... Youtube 嵌入影片網址可以一次加入多個參數,同時開啟多種功能,記得第一個參數前面需加? ,後面每一組參數都 ...
- 5[筆記]Youtube 播放參數 - 電腦學習園地
影片的自動重複播放參數 &autoplay=1&loop=1 參考網站 https://developers.google.com/youtube/player_parameters#Param...