... <看更多>
「embed youtube without iframe」的推薦目錄:
- 關於embed youtube without iframe 在 Embed HTML5 YouTube video without iframe? - Stack Overflow 的評價
- 關於embed youtube without iframe 在 Embed HTML5 YouTube video without iframe? - Stack Overflow 的評價
- 關於embed youtube without iframe 在 Embed HTML5 YouTube video without iframe? 的評價
- 關於embed youtube without iframe 在 Play (Embed) YouTube Video without IFRAME in HTML page 的評價
- 關於embed youtube without iframe 在 “how to embed youtube video in html without iframe” Code ... 的評價
- 關於embed youtube without iframe 在 How to embed youtube video in html page - Net-Informations ... 的評價
- 關於embed youtube without iframe 在 Embed HTML5 YouTube video without iframe? - Pretag 的評價
- 關於embed youtube without iframe 在 YouTube Embedded Players and Player Parameters - Google ... 的評價
- 關於embed youtube without iframe 在 How to embed YouTube Video and Channel without iFrame 的評價
- 關於embed youtube without iframe 在 Embed videos & playlists - YouTube Help - Google Support 的評價
- 關於embed youtube without iframe 在 Lite YouTube Embeds - A Better Method for Embedding ... 的評價
- 關於embed youtube without iframe 在 HTML YouTube Videos - W3Schools 的評價
- 關於embed youtube without iframe 在 how to embed youtube video in html without iframe code ... 的評價
- 關於embed youtube without iframe 在 HTML5 video tag - play Youtube video without iframe - Page 1 的評價
- 關於embed youtube without iframe 在 How to Embed YouTube Videos Without Showing Controls 的評價
- 關於embed youtube without iframe 在 Embeds - Instant Articles - Facebook for Developers 的評價
- 關於embed youtube without iframe 在 Embed YouTube Videos - A Simple Guide to HTML 的評價
- 關於embed youtube without iframe 在 Making embedded YouTube videos (1) responsive, (2 ... 的評價
- 關於embed youtube without iframe 在 10 Ways to Integrate and Embed YouTube Videos in WordPress 的評價
- 關於embed youtube without iframe 在 How to Embed an HTML5 YouTube Video Without Using an ... 的評價
- 關於embed youtube without iframe 在 Use HTML to Embed Duda Videos for Better User Experience 的評價
- 關於embed youtube without iframe 在 YouTube Iframe API Embed with No Ads on Video - SitePoint 的評價
- 關於embed youtube without iframe 在 Any way to use a custom Parameter for youtube embed ... 的評價
- 關於embed youtube without iframe 在 Any way to use a custom Parameter for youtube embed ... 的評價
- 關於embed youtube without iframe 在 Embedding YouTube videos | OpenCms Knowledge Base 的評價
- 關於embed youtube without iframe 在 How To Hide Related Videos In YouTube Embeds (in 2021) 的評價
- 關於embed youtube without iframe 在 How to create a YouTube video background with CSS - Alvaro ... 的評價
- 關於embed youtube without iframe 在 Lazy load embedded YouTube videos | CSS-Tricks 的評價
- 關於embed youtube without iframe 在 How to Embed Youtube Video WordPress without iframe 的評價
- 關於embed youtube without iframe 在 How to embed videos from youtube in LimeSurvey (using or ) 的評價
- 關於embed youtube without iframe 在 miyaoka/vue-youtube-embed-lite - GitHub 的評價
- 關於embed youtube without iframe 在 miyaoka/vue-youtube-embed-lite - GitHub 的評價
- 關於embed youtube without iframe 在 Embed YouTube Videos in iOS Applications with the YouTube ... 的評價
- 關於embed youtube without iframe 在 Embed youtube video in html without iframe 的評價
- 關於embed youtube without iframe 在 在没有iframe的情况下嵌入HTML5 YouTube视频? - 中文— it ... 的評價
- 關於embed youtube without iframe 在 Hide Related Videos in YouTube using iFrame - EPR Creations 的評價
- 關於embed youtube without iframe 在 YouTube and the GDPR: how to embed YouTube on your site 的評價
- 關於embed youtube without iframe 在 My youtube embed code doesn't work on html website 的評價
- 關於embed youtube without iframe 在 Responsive YouTube videos to scale in all browsers, ipads ... 的評價
- 關於embed youtube without iframe 在 How to embed high quality video with new YouTube iframe ... 的評價
- 關於embed youtube without iframe 在 How to embed a youtube video in html - LiquidBlox editor 的評價
- 關於embed youtube without iframe 在 How to Embed YouTube Videos Without Effecting Blog Load ... 的評價
- 關於embed youtube without iframe 在 Incorporar vídeo do YouTube em HTML5 sem iframe? - ti ... 的評價
- 關於embed youtube without iframe 在 是否可以只刪除youtube iframe嵌入播放器上的“后表”和“共享” 的評價
- 關於embed youtube without iframe 在 How To Make a Responsive 100% Width YouTube iFrame ... 的評價
- 關於embed youtube without iframe 在 How to Use the YouTube IFrame API in React - freeCodeCamp 的評價
- 關於embed youtube without iframe 在 How to remove YouTube tracking | Dries Buytaert 的評價
- 關於embed youtube without iframe 在 Встроить HTML5 YouTube видео без iframe? - CodeRoad 的評價
- 關於embed youtube without iframe 在 How to Embed a YouTube Video in HTML - BitDegree 的評價
- 關於embed youtube without iframe 在 HTML5-YouTube-Video ohne iframe einbetten? - Deutsch — it ... 的評價
- 關於embed youtube without iframe 在 Embedding YouTube without the Extras - dominKnow ... 的評價
- 關於embed youtube without iframe 在 How to Embed YouTube Video in HTML without IFrame ... 的評價
- 關於embed youtube without iframe 在 Lightbox | Sitecore CMS Support | Drexel University 的評價
- 關於embed youtube without iframe 在 How to Embed YouTube Channel on Your Website 的評價
- 關於embed youtube without iframe 在 Track Interactions on (iFrame embedded) Youtube Videos 的評價
- 關於embed youtube without iframe 在 Iframe video. Embed youtube video in html without iframe - syl 的評價
- 關於embed youtube without iframe 在 Play a YouTube Video on Click of Overlay Image (Webflow) 的評價
- 關於embed youtube without iframe 在 How do I embed a YouTube video into an iframe? 的評價
- 關於embed youtube without iframe 在 Intégrer une vidéo YouTube HTML5 sans iframe? - it-swarm-fr ... 的評價
- 關於embed youtube without iframe 在 Lazy load Youtube Video Iframe - Tezify 的評價
- 關於embed youtube without iframe 在 W3C valid XTHML and HTML5 YouTube iframe embeds - GTP ... 的評價
- 關於embed youtube without iframe 在 Embed youtube video responsive - oci 的評價
- 關於embed youtube without iframe 在 jQuery 1.8.2 | Youtube embedded iframe, dynamically load ... 的評價
- 關於embed youtube without iframe 在 Remove Black Bars in embedded Youtube Videos - Themeco 的評價
- 關於embed youtube without iframe 在 How to Defer Parsing of Javascript for YouTube Iframe Videos ... 的評價
embed youtube without iframe 在 Embed HTML5 YouTube video without iframe? 的推薦與評價
Here is a example of embedding without an iFrame: <div style="width: 560px; height: 315px; float: none; clear: both; margin: 2px auto;"> <embed ... ... <看更多>
embed youtube without iframe 在 Play (Embed) YouTube Video without IFRAME in HTML page 的推薦與評價
In order to play (embed) YouTube Videos without using IFRAME, the EMBED element needs to be used as the HTML5 Video tag is not meant to play ... ... <看更多>
embed youtube without iframe 在 “how to embed youtube video in html without iframe” Code ... 的推薦與評價
“how to embed youtube video in html without iframe” Code Answer's. youtube embed video. html by Repulsive Ray on Jan 04 2021 Comment. ... <看更多>
embed youtube without iframe 在 How to embed youtube video in html page - Net-Informations ... 的推薦與評價
You can embed youtube video in html without iframe tag. You can use HTML object tag to embed multimedia (like audio, video, Java applets, ActiveX, PDF, ... ... <看更多>
embed youtube without iframe 在 Embed HTML5 YouTube video without iframe? - Pretag 的推薦與評價
One of the simplest methods to embed a YouTube video in a web page without IFrame is by embedding the video using the HTML <object> tag. ... <看更多>
embed youtube without iframe 在 YouTube Embedded Players and Player Parameters - Google ... 的推薦與評價
總覽
本文件說明如何在應用程式中嵌入 YouTube 播放器,並定義 YouTube 嵌入式播放器中可用的參數。
您可以將參數附加至 IFrame 網址,自訂應用程式中的播放體驗。舉例來說,您可以使用 autoplay
參數自動播放影片,或是使用 loop
參數讓影片重複播放。您也可以使用 enablejsapi
參數,讓播放器透過 IFrame Player API 進行控制。
本頁面目前定義了 所有 YouTube 嵌入式播放器支援的所有參數。每個參數定義都會指出支援對應參數的玩家。
注意:內嵌播放器的檢視區必須至少為 200 x 200 像素。如果播放器顯示控制項,則必須足夠大,才能完整顯示控制項,且不會縮小檢視區,使其小於最小尺寸。建議 16:9 播放器的寬度至少為 480 像素,高度至少為 270 像素。
嵌入 YouTube 播放器您可以使用下列任一方法,在應用程式中嵌入 YouTube 播放器並指定播放器參數。請注意,以下操作說明示範如何嵌入可載入單一影片的播放器。以下說明如何設定播放器,以便載入播放清單或使用者上傳的影片。
使用<iframe>
標記嵌入播放器在應用程式中定義 <iframe>
標記,其中 src
網址會指定播放器要載入的內容,以及您要設定的任何其他播放器參數。<iframe>
標記的 height
和 width
參數會指定播放器的尺寸。
如果您自行建立 <iframe>
元素 (而非使用 IFrame Player API 建立),可以直接將播放器參數附加到網址結尾。網址格式如下:
https://www.youtube.com/embed/VIDEO_ID
以下的 <iframe>
標記會載入 640x360 像素的播放器,播放 YouTube 影片 M7lc1UVf-VE
。由於網址將 autoplay
參數設為 1
,因此播放器載入後,影片就會自動播放。
使用 IFrame Player API 嵌入播放器
<iframe id="ytplayer" type="text/html" width="640" height="360"
src="https://www.youtube.com/embed/M7lc1UVf-VE?autoplay=1&origin=http://example.com"
frameborder="0"></iframe>
請按照 IFrame Player API 操作說明,在 Player API 的 JavaScript 程式碼載入後,在網頁或應用程式中插入影片播放器。影片播放器建構函式中的第二個參數,是指定播放器選項的物件。在該物件中,playerVars
屬性會識別播放器參數。
下方的 HTML 和 JavaScript 程式碼顯示簡單範例,說明如何在 id
值為 ytplayer
的網頁元素中插入 YouTube 播放器。載入 IFrame Player API 程式碼後,系統會自動呼叫此處指定的 onYouTubePlayerAPIReady()
函式。此程式碼不會定義任何播放器參數,也不會定義其他事件處理常式。
選取要播放的內容
<div id="ytplayer"></div><script>
// Load the IFrame Player API code asynchronously.
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); // Replace the 'ytplayer' element with an <iframe> and
// YouTube player after the API code downloads.
var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player('ytplayer', {
height: '360',
width: '640',
videoId: 'M7lc1UVf-VE'
});
}
</script>
您可以設定嵌入式播放器,以便載入影片、播放清單或使用者上傳的影片。
下列清單說明這些選項:
載入影片
針對 IFrame 嵌入內容,您要載入的 YouTube 影片 ID 會在 IFrame 的 src
網址中指定。
https://www.youtube.com/embed/VIDEO_ID
如果您使用 YouTube Data API (第 3 版),可以透過程式輔助方式建構這些網址,方法是從搜尋結果、播放清單項目資源、影片資源或其他資源擷取影片 ID。取得影片 ID 後,請將上方網址中的 VIDEO_ID
文字替換為該值,建立播放器網址。
載入播放清單
將 listType
播放器參數設為 playlist
。此外,請將 list
播放器參數設為要載入的 YouTube 播放清單 ID。
https://www.youtube.com/embed?listType=playlist&list=PLAYLIST_ID
請注意,您必須在播放清單 ID 前方加上字母 PL
,如以下範例所示:
https://www.youtube.com/embed?listType=playlist&list=PLC77007E23FF423C6
如果您使用的是 YouTube Data API (v3),則可以透過程式碼從搜尋結果、頻道資源或活動資源擷取播放清單 ID,建構這些網址。取得播放清單 ID 後,請將上方網址中的 PLAYLIST_ID
文字替換為該值。
載入使用者上傳的影片
將 listType
播放器參數設為 user_uploads
。此外,請將 list
播放器參數設為您要載入上傳影片的 YouTube 使用者名稱。
https://www.youtube.com/embed?listType=user_uploads&list=USERNAME
支援的參數
以下所有參數皆為選用。
參數
autoplay
這個參數可指定播放器載入時,是否自動開始播放初始影片。支援的值為
0
或 1
。預設值為 0
。如果您啟用自動播放功能,系統就會在使用者與播放器互動前開始播放,因此會在網頁載入時收集及分享播放資料。
cc_lang_pref
這個參數可指定播放器要用來顯示字幕的預設語言。將參數的值設為 ISO 639-1 雙字母語言代碼。
如果您使用這個參數,並將
cc_load_policy
參數設為 1
,則播放器會在載入時顯示指定語言的字幕。如果未一併設定 cc_load_policy
參數,系統預設不會顯示字幕,但如果使用者選擇開啟字幕,系統就會以指定語言顯示字幕。cc_load_policy
將參數值設為
1
會導致系統預設顯示隱藏式輔助字幕,即使使用者已關閉輔助字幕也一樣。預設行為會根據使用者偏好設定。color
這個參數會指定播放器影片進度列中用來醒目顯示觀眾已看過的影片長度。有效的參數值為
red
和 white
,播放器預設會在影片進度列中使用紅色。如要進一步瞭解顏色選項,請參閱 YouTube API 網誌。controls
這個參數會指出是否顯示影片播放器控制項:
controls=0
– 播放器控制項不會顯示在播放器中。controls=1
(預設) – 在播放器中顯示播放器控制項。disablekb
將參數值設為
1
會導致播放器無法回應鍵盤控制項。預設值為 0
,表示已啟用鍵盤控制項。目前支援的鍵盤控制項如下:空白鍵或 [k]:播放 / 暫停
向左箭頭:在目前的影片中倒轉 5 秒
向右箭頭:在目前的影片中快轉 5 秒
向上箭頭:調高音量
向下箭頭:調低音量
[f]:切換全螢幕顯示模式
[j]:在目前的影片中倒轉 10 秒
[l]:在目前的影片中快轉 10 秒
[m]:將影片設為靜音或取消靜音
[0-9]:跳至影片中的某個時間點。
0
會跳到影片開頭、1
會跳到影片播放 10% 處、2
會跳到影片播放 20% 處,依此類推。enablejsapi
將參數的值設為
1
,即可透過 IFrame Player API 呼叫控制播放器。預設值為 0
,表示無法使用該 API 控制播放器。如要進一步瞭解 IFrame API 及其使用方式,請參閱 IFrame API 說明文件。
end
這個參數會指定播放器應停止播放影片的時間 (以從影片開頭算起的秒數為單位)。參數值為正整數。
請注意,時間是從影片開頭開始計算,而非從
start
播放器參數或 startSeconds
參數的值開始計算,這兩個參數會在 YouTube Player API 函式中用於載入或排入影片。fs
將這個參數設為
0
可避免播放器顯示全螢幕按鈕。預設值為 1
,會顯示全螢幕按鈕。hl
設定播放器的介面語言。參數值是 ISO 639-1 雙字母語言代碼或完整指定的語言代碼。舉例來說,
fr
和 fr-ca
都是有效的值。其他語言輸入代碼 (例如 IETF 語言代碼 (BCP 47)) 也可能會正確處理。介面語言會用於播放器中的工具提示,也會影響預設字幕音軌。請注意,YouTube 可能會根據使用者的語言偏好設定和字幕音軌的可用性,為特定使用者選取其他字幕音軌語言。
iv_load_policy
將參數值設為
1
會導致系統預設顯示影片註解,而將值設為 3
則會導致系統預設不顯示影片註解。預設值為 1
。list
list
參數與 listType
參數搭配使用,可識別將在播放器中載入的內容。如果
listType
參數值為 user_uploads
,則 list
參數值會指出要載入上傳影片的 YouTube 頻道。如果
listType
參數值為 playlist
,list
參數值就會指定 YouTube 播放清單 ID。在參數值中,您需要在播放清單 ID 前方加上字母 PL
,如以下範例所示。https://www.youtube.com/embed?
listType=playlist
&list=PLC77007E23FF423C6
如果
listType
參數值為 search
,list
參數值會指定搜尋查詢。注意:這項功能已淘汰,自 2020 年 11 月 15 日起將不再支援。注意:如果您為
list
和 listType
參數指定值,則 IFrame 嵌入網址不需要指定影片 ID。listType
listType
參數與 list
參數搭配使用,可識別播放器中要載入的內容。有效的參數值為 playlist
和 user_uploads
。如果您為
list
和 listType
參數指定值,則 IFrame 嵌入網址不需要指定影片 ID。注意:第三個參數值
search
已淘汰,自 2020 年 11 月 15 日起不再支援。loop
如果是單一影片播放器,設定
1
會導致播放器不斷重複播放初始影片。如果是播放清單播放器 (或自訂播放器),播放器會播放整個播放清單,然後從第一部影片重新開始。支援的值為
0
和 1
,預設值為 0
。注意:這個參數在 IFrame 嵌入內容中支援的功能有限。如要循環播放單一影片,請將
loop
參數值設為 1
,並將 playlist
參數值設為 Player API 網址中已指定的影片 ID:https://www.youtube.com/embed/VIDEO_ID?playlist=VIDEO_ID&loop=1
modestbranding
注意:這個參數已淘汰,不會產生任何作用。詳情請參閱淘汰公告。
origin
這個參數可為 IFrame API 提供額外的安全措施,且僅支援 IFrame 嵌入。如果您使用 IFrame API,也就是將
enablejsapi
參數值設為 1
,請務必將網域指定為 origin
參數值。playlist
這個參數會指定要播放的影片 ID 清單 (以半形逗號分隔)。如果您指定值,系統會先播放網址路徑中指定的
VIDEO_ID
,然後播放 playlist
參數中指定的影片。playsinline
這個參數可控制影片在 iOS 裝置上以內嵌或全螢幕模式播放。有效值如下:
0
:會以全螢幕模式播放。這是目前的預設值,但預設值可能會變更。1
:在行動瀏覽器和 WebViews
中,以內嵌方式播放,且 allowsInlineMediaPlayback
屬性已設為 YES
。rel
注意:這項參數將於 2018 年 9 月 25 日當天或之後變更。
在變更之前,這個參數會指出播放器應在初始影片播放結束時顯示相關影片。
如果參數值設為
1
(預設值),則播放器會顯示相關影片。如果將參數值設為
0
,播放器就不會顯示相關影片。變更生效後,你將無法停用相關影片。相反地,如果
rel
參數設為 0
,系統會從剛播放的影片所屬頻道中,找出相關影片。start
這個參數會讓播放器從影片開頭算起的指定秒數開始播放影片。參數值為正整數。請注意,與
seekTo
函式類似,播放器會尋找與您指定時間最接近的關鍵影格。也就是說,播放頭可能會在所要求時間之前略微快轉,通常不超過兩秒。widget_referrer
這個參數會標示嵌入播放器的網址。當 YouTube 播放器嵌入小工具,而該小工具又嵌入網頁或應用程式時,YouTube Analytics 報表就會使用這個值。在這種情況下,
origin
參數會識別小工具供應商的網域,但 YouTube 數據分析不應將小工具供應商視為實際流量來源。相反地,YouTube 數據分析會使用 widget_referrer
參數值,找出與流量來源相關聯的網域。修訂版本記錄
August 15, 2023
Note: This is a deprecation announcement for the
modestbranding
parameter.
The modestbranding
parameter is deprecated and will
have no effect. To align with YouTube's branding requirements, the player now determines the
appropriate branding treatment based on a combination of factors, including player size, other API
parameters (e.g. controls
), and additional signals.
April 27, 2021
The playsinline
parameter definition has been updated
slightly to explain that the parameter pertains to both mobile browsers on iOS and iOS
WebViews.
October 15, 2020
The autoplay
parameter definition has been updated to
explain that if you enable Autoplay, playback will occur without any user interaction with the
player; playback data collection and sharing will therefore occur upon page load.
October 13, 2020
Note: This is a deprecation announcement for the embedded player
functionality that lets you configure the player to load search results. This announcement affects
the player's list
and
listType
parameters.
This change will become effective on or after 15 November 2020. After that time,
setting the listType
parameter value to search
will generate a
4xx
response code, such as 404
(Not Found
) or
410
(Gone
).
As an alternative, you can use the YouTube Data API's
search.list
method to retrieve search
results and then load selected videos in the player.
In addition to the change described above, the showinfo
parameter, which was
deprecated in 2018, has been removed from this document.
Note: This is a deprecation announcement for the showinfo
parameter. In addition, the behavior for the rel
parameter is changing. Titles, channel information, and related videos are an important part of YouTube’s core user experience, and these changes help to make the YouTube viewing experience consistent across different platforms.
The behavior for the
rel
parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos. However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played.To be more specific:
Prior to the change, if the parameter's value is set to
0
, then the player does not show related videos.After the change, if the
rel
parameter is set to 0
, the player will show related videos that are from the same channel as the video that was just played.The
showinfo
parameter, which indicates whether the player should display information like the video title and uploader before the video starts playing, is also being deprecated. Following the change, the channel avatar and video title will always display before playback begins, when playback is paused, and when playback ends. The avatar being displayed is new behavior that will be consistent across all embedded players.These changes will become effective on or after September 25, 2018. After that time, the showinfo
parameter will be ignored. The behavior following the changes is consistent with the current default behavior for embedded players with the exception of the channel avatar changes mentioned above.
August 16, 2018
The cc_lang_pref
parameter can be used to specify the default language that the player will use to display captions. This parameter can be used in conjunction with the cc_load_policy
parameter to automatically show captions in the specified language during playback.
September 15, 2017
The controls
parameter's definition has been updated to remove references to the deprecated Flash (AS3) player. The value 2
has been deprecated as it was originally designed to provide a performance improvement for embeds that loaded a Flash player.
June 12, 2017
The new widget_referrer
parameter helps to enable more accurate YouTube Analytics reporting when the YouTube player is embedded in a widget, and that widget is then embedded in a web page or application.
November 1, 2016
This document has been updated to remove references to the deprecated Flash (AS3) player as well as to parameters only supported by that player. The YouTube Flash player was deprecated in January 2015.
October 20, 2016
This update contains the following changes:
The disablekb
parameter definition has been corrected to note that the default value is 0
, which means that keyboard controls are enabled. A value of 1
indicates that keyboard controls should be disabled.
The list of keyboard controls that the player supports has also been updated to include the following:
[f]: Toggle full-screen display
[j]: Jump back 10 seconds in the current video
[k]: Play / Pause
[l]: Jump ahead 10 seconds in the current video
[m]: Mute or unmute the video
[0-9]: Jump to a point in the video.
0
jumps to the beginning of the video, 1
jumps to the time 10% into the video, 2
jumps to the point 20% into the video, and so forth.In addition, the effect of pressing the [arrow left] or [arrow right] keys has changed. These keys now jump 5 seconds back (arrow left) or ahead (arrow right) in the current video.
August 11, 2016
This update contains the following changes:
The newly published YouTube API Services Terms of Service ("the Updated Terms"), discussed in detail on the YouTube Engineering and Developers Blog, provides a rich set of updates to the current Terms of Service. In addition to the Updated Terms, which will go into effect as of February 10, 2017, this update includes several supporting documents to help explain the policies that developers must follow.
The full set of new documents is described in the revision history for the Updated Terms. In addition, future changes to the Updated Terms or to those supporting documents will also be explained in that revision history. You can subscribe to an RSS feed listing changes in that revision history from a link in that document.
December 18, 2015
European Union (EU) laws require that certain disclosures must be given to and consents obtained from end users in the EU. Therefore, for end users in the European Union, you must comply with the EU User Consent Policy. We have added a notice of this requirement in our YouTube API Terms of Service.
August 19, 2015
The autohide
parameter has been deprecated for the HTML5 player. In HTML5 players, the video progress bar and player controls display or hide automatically. That behavior corresponds to an autohide
setting of 1
.
The theme
parameter has been deprecated for the HTML5 player. HTML5 players now always use the dark theme.
March 9, 2015
The document has been updated to reflect the fact that YouTube <object>
embeds, the YouTube Flash Player API and the YouTube JavaScript Player API have all been deprecated as of January 27, 2015. A deprecation warning appears in several sections of this document to help point readers to the IFrame Player API as an alternative.
The definition of the autohide
parameter has been updated to clarify the meaning of the parameter's values. The default behavior (autohide=2
) is that if the player has a 16:9 or 4:3 aspect ratio, the player's video progress bar and player controls display or hide automatically. Otherwise, those controls are visible throughout the video.
The definition of the hl
parameter has been updated to note that the parameter value could be an ISO 639-1 two-letter language code or a fully specified locale. For example, fr
and fr-ca
are both valid parameter values.
The definition of the enablejsapi
parameter has been reworded to clarify that the parameter enables a player to be controlled via API calls. The API could be either the IFrame Player API or the JavaScript Player API.
October 14, 2014
The HTML5 player now supports the cc_load_policy
, disablekb
, end
, fs
, list
, and listType
parameters. The parameter descriptions have been updated accordingly.
July 18, 2014
The new hl
parameter can be used to set the player's interface language. The interface language is used for tooltips in the player and also affects the default caption track. The selected caption track may also depend on the availability of caption tracks and user's individual language preferences.
The parameter's value is an ISO 639-1 two-letter language code, though other language input codes, such as IETF language tags (BCP 47) may also be handled properly.
The definition of the playsinline
parameter, which only affects HTML5 players on iOS, has been modified slightly. The definition now notes that setting the parameter value to 1
causes inline playback only for UIWebViews
created with the allowsInlineMediaPlayback
property set to TRUE
.
January 28, 2014
The playsinline
parameter controls whether videos play inline or fullscreen in an HTML5 player on iOS. Setting the value to 1
causes inline playback.
The Selecting content to play section has been updated to explain how to find YouTube video IDs and playlist IDs using the YouTube Data API (v3) rather than the older API version.
The controls
parameter's definition has been updated to reflect the fact that the parameter value only affects the time that the Flash player actually loads in IFrame embeds. In addition, for IFrame embeds, the parameter value also determines when the controls display in the player. If you set the parameter's value to 2
, then the controls display and the Flash player loads after the user initiates the video playback.
May 10, 2013
This update contains the following changes:
YouTube no longer identifies experimental API features and services. Instead, we now provide a list of YouTube APIs that are subject to the deprecation policy.
July 20, 2012
This update contains the following changes:
The definition of the controls
parameter has been updated to reflect support for a parameter value of 2
and to explain that, for AS3 players, the parameter value determines the time when the Flash player actually loads. If the controls
parameter is set to 0
or 1
, the Flash player loads immediately. If the parameter value is 2
, the Flash player does not load until the video playback is initiated.
June 5, 2012
This update contains the following changes:
The HTML5 player now supports the color
, modestbranding
, and rel
parameters, and the definitions for these parameters have been updated accordingly.
The definition of the showinfo
parameter has been updated to explain how that if the player is loading a playlist, and you explicitly set the parameter value to 1
, then, upon loading, the player will also display thumbnail images for the videos in the playlist. Note that this functionality is only supported for the AS3 player since that is the only player that can load a playlist.
May 4, 2012
This update contains the following changes:
The showinfo
parameter's definition has been updated to reflect the fact that the HTML5 player supports this parameter.
May 3, 2012
This update contains the following changes:
The new end
parameter specifies the time, measured in seconds from the start of the video, when the player should stop playing a video. Note that the time when playback is stopped is measured from the beginning of the video and not from the value of either the start
player parameter or the startSeconds
parameter, which is used in YouTube Player API functions for loading or queueing a video.
March 29, 2012
This update contains the following changes:
The new Embedding a YouTube player section explains different ways to embed a YouTube player in your application. This section covers manual IFrame embeds, IFrame embeds that use the IFrame Player API, and AS3 and AS2 object embeds. This section incorporates information from the old Example usage section, which has been removed.
The new Selecting content to play section explains how to configure the player to load a video, a playlist, search results for a specified query, or uploaded videos for a specified user.
The new list
and listType
parameters let you specify the content that the player should load. You can specify a playlist, a search query, or a particular user's uploaded videos.
The definitions of the fs
and rel
parameters have been updated to more clearly explain the default parameter values for the AS3 player.
The border
, color1
, egm
, hd
, and showsearch
parameters, which are all only supported for the deprecated AS2 Player API, have been moved to a new section named deprecated parameters only used in the AS2 Player API.
The document no longer provides a way to filter the parameter list to only display parameters supported in either the AS3, AS2, or HTML5 player. Instead, each parameter definition has been updated to identify the players that support that parameter.
August 11, 2011
This update contains the following changes:
The new theme
and color
parameters let you customize the appearance of the embedded player's player controls. See the YouTube API blog for more information.
June 8, 2011
This update contains the following changes:
The new modestbranding
parameter lets you use a YouTube player that does not show a YouTube logo. As of this release, the parameter was only supported for the AS3 embedded player and for IFrame embeds that loaded the AS3 player. As of June 5, 2012, the HTML5 player also supported this parameter.
February 14, 2011
This update contains the following changes:
The documentation has been updated to note that the AS2 Player API has been deprecated. The deprecation of the AS2 Player API was actually announced on October 14, 2009.
February 3, 2011
This update contains the following changes:
The documentation has been updated to identify parameters supported in the HTML5 (IFrame) embedded player.
The document now displays all of the parameters supported in any of YouTube's embedded players (HTML5, AS3, AS2).
The following parameters are supported in the AS2 player but have been deprecated for the newer AS3 and HTML5 players: border
, color1
, color2
, egm
, hd
, and showsearch
.
In addition, the loop
parameter has limited support in the AS3 player and in IFrame embeds, which could load either an AS3 or HTML player. Currently, the loop
parameter only works in the AS3 player when used in conjunction with the playlist
parameter. To loop a single video, set the loop
parameter to 1
and set the playlist
parameter value to the same video ID already specified in the Player API URL:
https://www.youtube.com/v/VIDEO_ID?version=3&loop=1&playlist=VIDEO_ID
Similarly, the controls
and playlist
parameters are supported in the AS3 and HTML5 players but are not and will not be supported in the AS2 player.
As noted above, IFrame embeds can load either an AS3 or HTML5 player. Though some parameters are not supported in both players, an IFrame embed that loads the AS3 player will support all parameters that work with that player and ignore all other parameters. Similarly, an IFrame embed that loads the HTML5 player will support all parameters that work with that player while ignoring all other parameters.
The parameter list has been updated to include the autohide
parameter, which indicates whether the player's video controls will automatically hide after a video begins playing.
The parameter list has been updated to include the controls
parameter, which indicates whether the player's video controls will display at all. (Player controls do display by default.)
The parameter list has been updated to include the playlist
parameter, which specifies a comma-separated list of video IDs to play.
The definition of the fs
has been updated to note that the fullscreen option will not work if you load the YouTube player into another SWF.
The example at the end of the document has been updated to use the embedded AS3 player instead of the embedded AS2 player. The parameters used in the example have also been updated to only include parameters that the AS3 player supports.
In addition, the instructions for constructing the URLs that contain player parameters have been updated to reflect the URL formats used by the AS3 and AS2 embedded and chromeless players as well as by the HTML5 player.
... <看更多>
embed youtube without iframe 在 How to embed YouTube Video and Channel without iFrame 的推薦與評價
Set an amazing YouTube Video allery and playlist for your website without Iframe just in 2 minutes! Check free editor by Elfsight to create your own YouTube ... ... <看更多>
embed youtube without iframe 在 Embed videos & playlists - YouTube Help - Google Support 的推薦與評價
On a computer, go to the YouTube video or playlist you want to embed. · Click SHARE · From the list of Share options, click Embed. · From the box that appears, ... ... <看更多>
embed youtube without iframe 在 Lite YouTube Embeds - A Better Method for Embedding ... 的推薦與評價
The standard embed code for YouTube uses the IFRAME tag where the width and height of the video player are fixed thus making the player non- ... ... <看更多>
embed youtube without iframe 在 HTML YouTube Videos - W3Schools 的推薦與評價
Playing a YouTube Video in HTML · Upload the video to YouTube · Take a note of the video id · Define an <iframe> element in your web page · Let the src attribute ... ... <看更多>
embed youtube without iframe 在 how to embed youtube video in html without iframe code ... 的推薦與評價
Example 1: youtube embed video. //Author:Mohammad Arman Khan <div> <iframe class="videoframe" src="https://www.youtube.com/watch?v=VfGW0Qiy2I0"> </iframe> ... ... <看更多>
embed youtube without iframe 在 HTML5 video tag - play Youtube video without iframe - Page 1 的推薦與評價
src="https://www.youtube.com/embed/<youtube-id>"> </iframe>[/code] If you want to embed a video cleanly with none of that stuff, ... ... <看更多>
embed youtube without iframe 在 How to Embed YouTube Videos Without Showing Controls 的推薦與評價
How to Embed YouTube Videos Without Showing Controls · controls=0. This removes the controls at the bottom of the video. · modestbranding. This ... ... <看更多>
embed youtube without iframe 在 Embeds - Instant Articles - Facebook for Developers 的推薦與評價
You can embed YouTube content within your Instant Article by inserting the YouTube <iframe> embed code inside a <figure> element with the op-interactive ... ... <看更多>
embed youtube without iframe 在 Embed YouTube Videos - A Simple Guide to HTML 的推薦與評價
Embed YouTube Videos · Use the youtube site to find the video you want · Click the 'Share' button below the video · Click the 'Embed' button next to the link they ... ... <看更多>
embed youtube without iframe 在 Making embedded YouTube videos (1) responsive, (2 ... 的推薦與評價
Today I've learned how to embed a YouTube video on web pages that I'm designing so that it is respons... Tagged with html, css, iframe, ... ... <看更多>
embed youtube without iframe 在 10 Ways to Integrate and Embed YouTube Videos in WordPress 的推薦與評價
In fact, you can embed YouTube in WordPress without much more than the YouTube ... As long as the website you're pulling from uses iframe embed codes you ... ... <看更多>
embed youtube without iframe 在 How to Embed an HTML5 YouTube Video Without Using an ... 的推薦與評價
To embed an HTML5 YouTube video without using an iframe, we can use the embed tag. For instance, we write: <div style="width: 200px; height: ... ... <看更多>
embed youtube without iframe 在 Use HTML to Embed Duda Videos for Better User Experience 的推薦與評價
Example of HTML iframe snippet for embedding YouTube videos. For anyone familiar with HTML, the actual code required to embed the video without the ... ... <看更多>
embed youtube without iframe 在 YouTube Iframe API Embed with No Ads on Video - SitePoint 的推薦與評價
In my project, I am using YouTube video embeds (not my videos) and I want them to not display ads. When I use Iframe embed (without Iframe ... ... <看更多>
embed youtube without iframe 在 Any way to use a custom Parameter for youtube embed ... 的推薦與評價
It works just fine for me. Just pull the URL out of the iframe embed code, and add &showinfo=0 to the end of it. The video embed renders with no ... ... <看更多>
相關內容
embed youtube without iframe 在 Any way to use a custom Parameter for youtube embed ... 的推薦與評價
It works just fine for me. Just pull the URL out of the iframe embed code, and add &showinfo=0 to the end of it. The video embed renders with no ... ... <看更多>
相關內容
embed youtube without iframe 在 Embedding YouTube videos | OpenCms Knowledge Base 的推薦與評價
When typing in custom pixel dimensions the aspect ratio is maintained. Altering video embed sizes on YouTube. 4. Once you have selected the correct size (or ... ... <看更多>
embed youtube without iframe 在 How To Hide Related Videos In YouTube Embeds (in 2021) 的推薦與評價
When an embedded YouTube video is done playing, the YouTube ... still want to be able to embed YouTube videos without related videos showing ... ... <看更多>
embed youtube without iframe 在 How to create a YouTube video background with CSS - Alvaro ... 的推薦與評價
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/Yj2iELI6OeI?controls=0" title="YouTube video player" ... ... <看更多>
embed youtube without iframe 在 Lazy load embedded YouTube videos | CSS-Tricks 的推薦與評價
The trick is rooted in srcdoc , a feature of <iframe> where you can put the entire contents of an HTML document in the attribute. It's like ... ... <看更多>
embed youtube without iframe 在 How to Embed Youtube Video WordPress without iframe 的推薦與評價
Embed Youtube Video WordPress without iframe using best plugin to make your blog post search engine friendly to make your content media rich ... ... <看更多>
embed youtube without iframe 在 How to embed videos from youtube in LimeSurvey (using or ) 的推薦與評價
How to embed videos from youtube in LimeSurvey (using <iframe> or <object>) ... If you know what you are doing, you can remove the tags you don't want ... ... <看更多>
embed youtube without iframe 在 miyaoka/vue-youtube-embed-lite - GitHub 的推薦與評價
Embed YouTube player without iframe for better performance. - GitHub - miyaoka/vue-youtube-embed-lite: Embed YouTube player without iframe ... ... <看更多>
embed youtube without iframe 在 miyaoka/vue-youtube-embed-lite - GitHub 的推薦與評價
Embed YouTube player without iframe for better performance. - GitHub - miyaoka/vue-youtube-embed-lite: Embed YouTube player without iframe ... ... <看更多>
embed youtube without iframe 在 Embed YouTube Videos in iOS Applications with the YouTube ... 的推薦與評價
The youtube-ios-player-helper is an open source library that helps you embed a YouTube iframe player into an iOS application. ... <看更多>
embed youtube without iframe 在 Embed youtube video in html without iframe 的推薦與評價
embed youtube video in html without iframe shipmethis. Using these steps, we can easily show a Youtube video on the web page. The Frontend world is moving ... ... <看更多>
embed youtube without iframe 在 在没有iframe的情况下嵌入HTML5 YouTube视频? - 中文— it ... 的推薦與評價
<iframe width="854" height="510" src="//www.youtube.com/embed/GlIzuTQGgzs" frameborder="0" allowfullscreen></iframe>. 就HTML5而言,请使用 <object> 标签, ... ... <看更多>
相關內容
embed youtube without iframe 在 Hide Related Videos in YouTube using iFrame - EPR Creations 的推薦與評價
There is an easy way to remove this feature. If you embed a YouTube video, it will look something like this: <iframe title="YouTube video ... ... <看更多>
embed youtube without iframe 在 YouTube and the GDPR: how to embed YouTube on your site 的推薦與評價
If you move the src to a data-src attribute in the iframe, YouTube won't get loaded, and no cookies are placed. Then, on consent (for example ... ... <看更多>
embed youtube without iframe 在 My youtube embed code doesn't work on html website 的推薦與評價
Embed YouTube Video using <object> Element One of the simplest methods to embed a YouTube video in a web page without IFrame is by embedding the video using ... ... <看更多>
embed youtube without iframe 在 Responsive YouTube videos to scale in all browsers, ipads ... 的推薦與評價
The first thing that you need is the YouTube iframe embed code, grab that in your video share options from the YouTube site. Place the iframe code on your ... ... <看更多>
embed youtube without iframe 在 How to embed high quality video with new YouTube iframe ... 的推薦與評價
I am using youtubes new iframe code to embed video but the videos seem to be lower quality than if I watch them on youtube. Is there a way to embed the high ... ... <看更多>
embed youtube without iframe 在 How to embed a youtube video in html - LiquidBlox editor 的推薦與評價
Learn how to use HTML code plugins for embedding a video to your website. Code plugins can be used for social media feeds and complex site features. ... <看更多>
embed youtube without iframe 在 How to Embed YouTube Videos Without Effecting Blog Load ... 的推薦與評價
When you embed a YouTube video code (Iframe) on your blog post then that will directly increase your page size (upto 0.5 MB) and increase your ... ... <看更多>
embed youtube without iframe 在 Incorporar vídeo do YouTube em HTML5 sem iframe? - ti ... 的推薦與評價
<div style="width:100%;height:100%;width: 820px; height: 461.25px; float: none; clear: both; margin: 2px auto;"> <embed ... ... <看更多>
相關內容
embed youtube without iframe 在 是否可以只刪除youtube iframe嵌入播放器上的“后表”和“共享” 的推薦與評價
How can I remove the watch later and share buttons from youtube iframe embed player. Using the follo. ... <看更多>
embed youtube without iframe 在 How To Make a Responsive 100% Width YouTube iFrame ... 的推薦與評價
This is a guide to show you how to make your YouTube embeds fluid and responsive with a ... Remove width/height settings from the iframe 4. ... <看更多>
embed youtube without iframe 在 How to Use the YouTube IFrame API in React - freeCodeCamp 的推薦與評價
Up to this point, we were embedding the YouTube player and not interacting with ... Without a library like this, I'd have to build a lot of ... ... <看更多>
embed youtube without iframe 在 How to remove YouTube tracking | Dries Buytaert 的推薦與評價
<iframe width="640" height="360" src="https://www.youtube-nocookie.com/embed/video-id" frameborder="0"></iframe>. ... <看更多>
embed youtube without iframe 在 Встроить HTML5 YouTube видео без iframe? - CodeRoad 的推薦與評價
Вот пример встраивания без iFrame: <div style=width: 560px; height: 315px; float: none; clear: both; margin: 2px auto;> <embed... ... <看更多>
embed youtube without iframe 在 How to Embed a YouTube Video in HTML - BitDegree 的推薦與評價
Web Development Course: TL;DR – Embedding a YouTube video to your website lets you add dynamicity to your site without having to worry ... ... <看更多>
embed youtube without iframe 在 HTML5-YouTube-Video ohne iframe einbetten? - Deutsch — it ... 的推薦與評價
Ist es möglich, eine HTML5-Version eines Youtube-Videos ohne iframe einzubetten?... ... vergleiche mit regulärem iframe "embed" Code von YouTube:. ... <看更多>
相關內容
embed youtube without iframe 在 Embedding YouTube without the Extras - dominKnow ... 的推薦與評價
< iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/E88gl8FEN7M" frameborder="0" allow="accelerometer; autoplay; encrypted-media; ... ... <看更多>
embed youtube without iframe 在 How to Embed YouTube Video in HTML without IFrame ... 的推薦與評價
Unsure how to embed Vimeo videos on your website, add video to your Wix, When it comes to customizing an embedded YouTube video. After the click ... ... <看更多>
embed youtube without iframe 在 Lightbox | Sitecore CMS Support | Drexel University 的推薦與評價
In the YouTube or Vimeo iFrame embed code, locate and copy the URL within the src="" tag. YouTube. <iframe width="560" height ... ... <看更多>
embed youtube without iframe 在 How to Embed YouTube Channel on Your Website 的推薦與評價
YouTubeslideshow widget without thumbnails; YouTube slideshow widget with vertical thumbnails; YouTube Feed (4 different widgets); YouTube ... ... <看更多>
embed youtube without iframe 在 Track Interactions on (iFrame embedded) Youtube Videos 的推薦與評價
Track Interactions on (iFrame embedded) Youtube Videos ... Normally, when you embed content via an <iframe> on your website that fetches a ... ... <看更多>
embed youtube without iframe 在 Iframe video. Embed youtube video in html without iframe - syl 的推薦與評價
Embed youtube video in html without iframe. This document explains how to embed a YouTube player in your application and also defines the ... ... <看更多>
embed youtube without iframe 在 Play a YouTube Video on Click of Overlay Image (Webflow) 的推薦與評價
Add the YouTube Embed Video. . First, add an "Embed" block wherever you want your video. . Paste this iFrame code into the "Embed ... ... <看更多>
embed youtube without iframe 在 How do I embed a YouTube video into an iframe? 的推薦與評價
? One of the simplest methods to embed a YouTube video in a web page without IFrame ... ... <看更多>
embed youtube without iframe 在 Intégrer une vidéo YouTube HTML5 sans iframe? - it-swarm-fr ... 的推薦與評價
comparer au code "embed" iframe standard de YouTube: <iframe width="854" height="510" ... Réf: http://debug.ga/embedding-external-pages-without-iframes/. ... <看更多>
相關內容
embed youtube without iframe 在 Lazy load Youtube Video Iframe - Tezify 的推薦與評價
<iframe style="max-width:100%" width="560" height="315" src="https://www.youtube.com/embed/e1gAyQuIFQo" frameborder="0" allow="accelerometer ... ... <看更多>
embed youtube without iframe 在 W3C valid XTHML and HTML5 YouTube iframe embeds - GTP ... 的推薦與評價
Editing the YouTube embed <iframe> for valid XHTML 1.0 Transitional ... with no errors you can simply remove this attribute from the iframe. ... <看更多>
embed youtube without iframe 在 Embed youtube video responsive - oci 的推薦與評價
Like Join the DZone community and get the full member experience. Join For Free. Bootstrap Responsive ... ... <看更多>
embed youtube without iframe 在 jQuery 1.8.2 | Youtube embedded iframe, dynamically load ... 的推薦與評價
Is it a current fact that using the Youtube iframe embedded player means having to reload the player when dynamically swapping video content ... ... <看更多>
embed youtube without iframe 在 Remove Black Bars in embedded Youtube Videos - Themeco 的推薦與評價
Hello, for some reason black bars show up on the sides when I embed youtube videos into posts. This is the only theme I've had this issue ... ... <看更多>
embed youtube without iframe 在 How to Defer Parsing of Javascript for YouTube Iframe Videos ... 的推薦與評價
Embedded YouTube videos can slow down your site. ... We need to remove the link from the iframe's src attribute, so we are left with src=”” ... ... <看更多>
embed youtube without iframe 在 Embed HTML5 YouTube video without iframe? - Stack Overflow 的推薦與評價
... <看更多>
相關內容