YouTube Embedded Players and Player Parameters

概要

このガイドでは、アプリケーションに YouTube プレーヤーを埋め込む方法と、YouTube 埋め込みプレーヤーで使用できるパラメータの定義を紹介します。

IFrame URL にパラメータを追加すると、アプリケーション内での再生方法をカスタマイズできます。たとえば、autoplay パラメータを使用して動画を自動的に再生したり、loop パラメータを使用して動画を繰り返し再生したりできます。enablejsapi パラメータを使用して、IFrame Player API でプレーヤーを制御できるようにすることもできます。

このページには、任意の YouTube 埋め込みプレーヤーでサポートされるすべてのパラメータが定義されています。パラメータをサポートするプレーヤーについては、各パラメータ定義に記述してあります。

注: 埋め込みプレーヤーには少なくとも 200×200 px のビューポートが必要です。プレーヤーにコントロール バーを表示させる場合は、ビューポートの最小サイズを下回らずにコントロール バーを表示できるよう、十分な大きさを確保する必要があります。少なくとも幅 480 ピクセル、高さ 270 ピクセルの、アスペクト比 16:9 のプレーヤーをおすすめします。

YouTube プレーヤーの埋め込み

次のいずれの方法を使用しても、アプリケーションに YouTube プレーヤーを埋め込み、プレーヤーのパラメータを指定できます。下の手順で埋め込むプレーヤーでは、単一の動画を読み込みます。次のセクションでは、再生リストまたはユーザーがアップロードした動画を読み込むようにプレーヤーを構成する方法について説明します。

<iframe> タグを使用してプレーヤーを埋め込む

アプリケーションで <iframe> タグを定義します。このタグの src URL で、プレーヤーが読み込むコンテンツと、設定するその他のプレーヤー パラメータを指定します。<iframe> タグの height パラメータと width パラメータで、プレーヤーのサイズを指定します。

<iframe> 要素を自分で作成する場合(IFrame Player API を使用して作成するのではなく)、プレーヤー パラメータを URL の末尾に直接追加できます。URL の形式は次のとおりです。

https://www.youtube.com/embed/VIDEO_ID

以下の <iframe> タグは、640x360 ピクセルのプレーヤーを読み込み、YouTube 動画 M7lc1UVf-VE を再生します。この URL では autoplay パラメータが 1 に設定されているため、プレーヤーが読み込まれると動画が自動的に再生されます。

<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 コードが読み込まれた後、IFrame Player API の手順に沿って動画プレーヤーをウェブページまたはアプリケーションに挿入します。動画プレーヤーのコンストラクタの 2 番目のパラメータは、プレーヤー オプションを指定するオブジェクトです。このオブジェクト内の playerVars プロパティで、プレーヤー パラメータを指定します。

以下の HTML コードと JavaScript コードは、id 値が ytplayer のページ要素に YouTube プレーヤーを挿入する簡単な例を示しています。ここで指定した onYouTubePlayerAPIReady() 関数は、IFrame Player API コードが読み込まれると自動的に呼び出されます。このコードでは、プレーヤー パラメータを何も定義せず、他のイベント ハンドラも定義していません。

<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 URL で指定します。

    https://www.youtube.com/embed/VIDEO_ID

    YouTube Data API(v3)を使用している場合、動画 ID を検索結果、再生リスト アイテム リソース、動画リソースなどのリソースから取得して、これらの URL をプログラムによって構成することができます。動画 ID を取得したら、上記の URL の VIDEO_ID テキストをその値に置き換えて、プレーヤーの URL を作成します。

  • 再生リストを読み込む

    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 を取得して、これらの URL をプログラムで作成できます。再生リスト ID を取得したら、上記の URL の 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 の 2 文字の言語コードまたは BCP 47 言語タグ(fr-CA など)を設定します。

このパラメータを使用し、cc_load_policy パラメータを 1 に設定すると、プレーヤーの読み込み時に指定した言語で字幕が表示されます。cc_load_policy パラメータも設定しない場合、字幕はデフォルトでは表示されませんが、ユーザーが字幕をオンにすると、指定した言語で表示されます。

cc_load_policy

パラメータの値を 1 に設定すると、ユーザーが字幕をオフにしていても、デフォルトで字幕が表示されます。デフォルトの動作はユーザーの設定に基づきます。

color

このパラメータは、プレーヤーの動画進行状況バーで、視聴者がすでに視聴した動画の量をハイライト表示するために使用される色を指定します。有効なパラメータ値は red と white です。デフォルトでは、プレーヤーの動画進行状況バーには赤色が使用されます。

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 プレーヤー パラメータの値や、動画の読み込みまたはキューイングを行う YouTube Player API 関数で使用される startSeconds パラメータの値から測定されるわけではありません。

fs

このパラメータを 0 に設定すると、プレーヤーに全画面表示ボタンが表示されなくなります。デフォルト値は 1 で、全画面表示ボタンが表示されます。

hl

プレーヤーのインターフェースの言語を設定します。パラメータ値は、ISO 639-1 の 2 文字の言語コードまたは完全に指定されたロケールです。たとえば、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(# Music の文脈では「プレイリスト ID」)の前に PL という文字を付ける必要があります。
    https://www.youtube.com/embed?
        listType=playlist
        &list=PLC77007E23FF423C6
  • listType パラメータ値が search の場合、list パラメータ値は検索クエリを指定します。注: この機能は非推奨となり、2020 年 11 月 15 日をもってサポートが終了します。
注: list パラメータと listType パラメータの値を指定する場合、IFrame 埋め込み URL で動画 ID を指定する必要はありません。

listType

listType パラメータは、list パラメータと組み合わせて、プレーヤーに読み込まれるコンテンツを識別します。有効なパラメータ値は playlist と user_uploads です。

list パラメータと listType パラメータの値を指定する場合、IFrame 埋め込み URL で動画 ID を指定する必要はありません。

注: 3 つ目のパラメータ値 search は非推奨となり、2020 年 11 月 15 日をもってサポートが終了します。

loop

単一の動画プレーヤーの場合、1 を設定すると、プレーヤーは最初の動画を繰り返し再生します。再生リスト プレーヤー(またはカスタム プレーヤー)の場合、プレーヤーは再生リスト全体を再生してから、最初の動画から再度再生を開始します。

サポートされている値は 0 と 1 で、デフォルト値は 0 です。

注: このパラメータは、IFrame 埋め込みでは限定的にサポートされています。1 つの動画をループ再生するには、loop パラメータ値を 1 に設定し、playlist パラメータ値を Player API URL で指定した動画 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 をカンマ区切りのリスト形式で指定します。値を指定すると、最初に再生される動画は URL パスで指定された VIDEO_ID になり、その後、playlist パラメータで指定された動画が再生されます。

playsinline

このパラメータは、iOS で動画をインラインで再生するか、全画面表示で再生するかを制御します。指定できる値は次のとおりです。
  • 0: 全画面表示で再生されます。現時点ではこれがデフォルト値ですが、デフォルトは変更される場合があります。
  • 1: モバイル ブラウザと、allowsInlineMediaPlayback プロパティを YES に設定して作成された WebViews でインライン再生が行われます。

rel

注: このパラメータは 2018 年 9 月 25 日以降に変更されます。

変更前は、このパラメータは、最初の動画の再生が終了したときに関連動画を表示するかどうかを示していました。
  • パラメータの値がデフォルト値の 1 に設定されている場合、関連動画が表示されます。
  • パラメータの値が 0 に設定されている場合、関連動画は表示されません。
この変更後は、関連動画を無効にできなくなります。代わりに、rel パラメータが 0 に設定されている場合、関連動画は、再生された動画と同じチャンネルから取得されます。

start

このパラメータを指定すると、動画の先頭から指定された秒数分進めた位置から動画の再生が開始されます。パラメータ値は正の整数です。seekTo 関数と同様に、プレーヤーは指定した時間に最も近いキーフレームを探します。つまり、再生ヘッドがリクエストされた時刻の直前(通常は 2 秒以内)にシークされることがあります。

widget_referrer

プレーヤーが埋め込まれている URL を識別します。この値は、YouTube プレーヤーがウィジェットに埋め込まれ、このウィジェットがウェブページやアプリケーションに埋め込まれた場合に、YouTube アナリティクスのレポートで使用されます。このシナリオでは、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.

August 23, 2018

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 YouTube API Services Terms of Service ("the Updated Terms") 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.

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

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:

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.

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.