How to Autoplay Embedded YouTube Videos on your page If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption.
Jul 19,2019 • Filed to: Video Resources & Tips • Proven solutions
While playing YouTube playlist videos, you might want to set autoplay to play the next YouTube video one after another. However, YouTube AutoPlay not working issues occur with regard to YouTube's autoplay accessed through either browsers or mobile phones. Don'y worry! Below are tips to solve YouTube autoplay not working problems.
Part 1. Best Solution to YouTube AutoPlay Not Working Problem
If you come across with YouTube AutoPlay not working problem, the best solution is to download videos to your computer or device instead of watching online, avoiding not only the AutoPlay problem, but also instable connection problem. iTube HD Video Downloader is the highly recommended free YouTube downloader allowing you to download videos from YouTube and YouTube playlist for playing without hassle.
iTube HD Video Downloader - Best YouTube Downloader
Part 2. Play YouTube HTML5 Videos Without YouTube HTML5 Errors
First, in this part, we are going to specifically solve YouTube not autoplay issues on Chrome, Firefox or Safari and site possible solutions that the user can do to get rid of the problem.
#1: Make sure that your YouTube auto-play button is turned on.
The auto-play button is the button that is under the spot light here. Even with so many tweaks and turns that you do, if the auto-play is turned off, the auto-play feature will not work. Checking if the auto-play button is turned on or off is pretty easy since the button's general color will turn into gray if it is turned off. When the user turns the auto-play button on, he or she can see that it will turn blue with a checkmark on it. You can turn it back off by clicking it once more.
#2: Browser Profile Corruption Issues in Firefox
1)- You need to have your profile cleaned before uninstalling your Firefox and downloading a newer version. To do this, go to Start then select Run.
2)- Now, Run %appdata%mozillafirefoxprofiles. When it is already opened, copy and paste the entire folder found to your desktop. 3)- Uninstall your Firefox then Download and install a new version. After that, you can now restore your previous data. 4)- Click Start again and select Run. From the folder found in your desktop, copy the following in the folder found in %appdata%mozillafirefoxprofiles:
#3: Add '?autoplay=1' in the URL
You can see in the screenshot that the ?autoplay=1 is added at the end of the URL of the video. This sets the value of autoplay into 1 which can be translated as true by the browser. The user can try doing this if the stated solutions above still does not work.
#4: Disable AdBlock
Users using different browsers who have experienced problems with YouTube's autoplay have found another solution and that is to disable the AdBlock. If you have AdBlock, it can be found in your browser's extensions and disabling it may solve the Auto-play problem.
To disable AdBlock in Google Chrome:
1)- Click on that three horizontal line to reveal list of options.
2)- In the list of options, navigate to tools then to extensions.
3)- Uncheck the enabled and you now have your adblock disabled in Chrome.
To Disable AdBlock in Firefox:
1)- Find the three horizontal line the same with Chrome and click it to reveal the list of options.
2)- Click on add-ons and you can see the add-ons manager page.
![]()
3)- After you reach the add-ons page, find adblock and then disable it.
To Disable AdBlock in Safari:
1)- Go to your preferences in safari.
2)- Go to your extensions and find the ad block extension.
3)- After you have found the extension, turn the extension off to disable it.
If the above methods still does not work, the general thing to do is to clear any cache or cookies that may be affecting the running of the codes of the site. However, just like stated before, nothing is perfect and what you are experiencing may be a bug that is yet to be fixed by the YouTube team in due time.
Part 3. YouTube App AutoPlay Not Working on iPhone and Android
Due to developing technology, YouTube can now be accessed using mobile phones like Android devices and iPhone. In line to this, auto-play can also be used and enjoyed by the user. But like using the different browsers to access YouTube, it cannot be certain that no user will encounter a problem with regard to the auto-play feature. In this part, several possible solutions will be presented to solve the problem in devices like Android and iPhone.
#1: Go for a smoother YouTube mobile experience
m.YouTube.com is one of the most popular ways to access YouTube. However, the YouTube team has already released an application specifically to play the videos in the most convenient way possible. However, lags and other network mishaps can affect the playing of your video. So to solve this do the following steps:
1)- Go to the wifi settings of your device.
2)- Hold down to your wifi connection and then you can see two options presented then click on the modify network.
3)- Then tap show advanced options and then change DHCP to Static.
4)- Scroll down until you find the DNS then change DNS 1 with 8.8.8.8 and then change DNS 2 with 8.8.8.4.
5)- Lastly, save your changes and see if it results to better browsing and viewing of videos.
#2: Check if you are in a YouTube playlist
Auto-play in YouTube mobile app does not work the same with the browser. In mobile devices, you have to create or view a playlist and play all the videos in order to auto-play. Bear in mind that this only works in the YouTube app for mobile devices like Android and iPhone and does not work with the conventional m.YouTube.com. You can click the play button to play all the videos in a play list.
YouTube has come a long way indeed from a simple video sharing site to a hub for people who want to showcase their talents. It can also be a platform for information to quickly travel and can also be a source for entertainment and relaxation. But there will always be a room for improvement and right now, the YouTube team still is developing new features to add while also fixing bugs of the innovating the existing features. We should all stay in tune for the next developments that may be released in the near future.
概要
このガイドでは、アプリケーションに YouTube プレーヤーを埋め込む方法と、YouTube 埋め込みプレーヤーで使用できるパラメータの定義を紹介します。
IFrame URL にパラメータを追加すると、アプリケーション内での再生方法をカスタマイズできます。たとえば
autoplay パラメータによる動画の自動再生や、loop パラメータによる動画の繰り返し再生が可能です。enablejsapi パラメータを使用して、プレーヤーを IFrame Player API によって制御することもできます。
このページには、任意の YouTube 埋め込みプレーヤーでサポートされるすべてのパラメータが定義されています。パラメータをサポートするプレーヤーについては、各パラメータ定義に記述してあります。
注: 埋め込みプレーヤーには少なくとも 200×200 px のビューポートが必要です。プレーヤーにコントロール バーを表示させる場合は、ビューポートの最小サイズを下回らずにコントロール バーを表示できるよう、十分な大きさを確保する必要があります。少なくとも幅 480 ピクセル、高さ 270 ピクセルの、アスペクト比 16:9 のプレーヤーをおすすめします。
YouTube プレーヤーの埋め込み
次のいずれの方法を使用しても、アプリケーションに YouTube プレーヤーを埋め込み、プレーヤーのパラメータを指定できます。下の手順で埋め込むプレーヤーでは、単一の動画を読み込みます。それに続くセクションでは、再生リストや検索結果など、他の種類のコンテンツをプレーヤーに読み込ませる設定方法を説明します。
|
パラメータ | |
---|---|
|
プレーヤーを読み込んだときに最初の動画を自動再生するかどうかを指定します。サポートされる値は 0 または 1 です。デフォルト値は 0 です。 |
|
プレーヤーに表示する字幕のデフォルトの言語を指定します。パラメータの値は、ISO 639-1 2 文字言語コードに設定します。 このパラメータを使用したうえで cc_load_policy パラメータを 1 に設定した場合、プレーヤーが読み込まれたときに指定した言語の字幕が表示されます。cc_load_policy パラメータを設定していない場合、字幕がデフォルトで表示されなくなります。ただし、ユーザーが字幕を表示する設定にした場合はその指定した言語で表示されます。 |
|
このパラメータの値を 1 に設定すると、ユーザーが字幕をオフにしていても、字幕がデフォルトで表示されます。デフォルトの動作はユーザー設定に基づきます。 |
|
プレーヤーの動画進行状況バーで使用される色を指定します。これは、動画の視聴した部分を示す色として使用されます。有効なパラメータ値は red と white です。デフォルトでは、動画進行状況バーで赤が使用されます。color オプションの詳細については YouTube API ブログをご覧ください。注: color パラメータを white に設定すると、modestbranding オプションが無効になります。 |
|
動画プレーヤーのコントロールを表示するかどうかを指定します。
|
|
このパラメータの値を 1 に設定すると、プレーヤーはキーボード操作に応答しなくなります。デフォルト値は 0 (キーボード操作が有効)です。現在サポートされているキーボード操作は、次のとおりです。
|
|
このパラメータの値を 1 に設定すると、IFrame または JavaScript Player API を呼び出してプレーヤーを制御できます。デフォルト値は 0 (これらの API を使用してプレーヤーを制御できない)です。IFrame API とその使用方法について詳しくは、IFrame API のドキュメントをご覧ください(JavaScript Player API のサポートは終了しています)。 |
|
動画を特定の位置で停止させる場合に、再生を開始してからの時間(秒数)でその位置を指定します。パラメータ値は正の整数です。 時間は動画の先頭から測定されます。 start プレーヤー パラメータや startSeconds パラメータの値からではありません。これらは、動画の読み込みまたはキューイングを行うために YouTube Player API 関数で使用されるパラメータです。 |
|
このパラメータを 0 に設定すると、全画面表示ボタンはプレーヤーに表示されなくなります。デフォルト値は 1 であり、全画面表示ボタンが表示されます。 |
|
プレーヤーのインターフェースの言語を設定します。パラメータの値は、ISO 639-1 規格の 2 文字言語コードまたは完全指定のロケールです。たとえば、fr や fr-ca は有効な値です。IETF 言語タグ(BCP 47)などの他の言語入力コードも正しく処理されます。インターフェースの言語はプレーヤーのツールチップで使用され、デフォルトの字幕トラックにも影響します。なお、ユーザー個別の言語設定と利用可能な字幕トラックに基づいて、YouTube が特定のユーザーに対し異なる字幕トラックを選択することもあります。 |
|
このパラメータの値を 1 に設定すると、動画アノテーションがデフォルトで表示されます。3 に設定すると、動画アノテーションはデフォルトで表示されなくなります。デフォルト値は 1 です。 |
|
list パラメータは、プレーヤーに読み込むコンテンツを識別するときに、listType パラメータと組み合わせて使用します。
list パラメータと listType パラメータに値を指定する場合は、IFrame 埋め込み URL に動画 ID を指定する必要がありません。 |
|
listType パラメータは、プレーヤーに読み込むコンテンツを識別するときに、list パラメータと組み合わせて使用します。有効なパラメータ値は、playlist 、search および user_uploads です。list パラメータと listType パラメータに値を指定する場合は、IFrame 埋め込み URL に動画 ID を指定する必要がありません。 |
|
単一動画プレーヤーの場合に 1 を設定すると、最初の動画が繰り返し再生されます。再生リスト プレーヤーまたはカスタム プレーヤーの場合、再生リスト全体を再生した後、最初の動画からもう一度再生が始まります。サポートされている値は 0 と 1 で、デフォルト値は 0 です。注: このパラメータは AS3 プレーヤーと埋め込み IFrame でのみサポートされており、AS3 または HTML5 プレーヤーのいずれかが読み込まれます。 loop パラメータは、現時点では playlist pパラメータと組み合わせて AS3 プレーヤーで使用した場合のみ動作します。単一の動画をループさせる場合は、loop パラメータの値を 1 に設定し、すでに Player API URL に指定してある動画 ID と同じ値を playlist パラメータの値に設定します。 |
|
このパラメータを使用すると、YouTube プレーヤーに YouTube ロゴが表示されないようにすることができます。パラメータの値を 1 に設定すると、YouTube ロゴがコントロール バーに表示されなくなります。ただし、動画を一時停止したときにユーザーがプレーヤーにカーソルを合わせると、動画の右上に引き続き小さい YouTube テキストラベルが表示されます。 |
|
このパラメータは IFrame API のセキュリティを強化します。埋め込み IFrame でのみ使用できます。IFrame API を使用している場合、つまり enablejsapi パラメータの値を 1 に設定している場合は、常に自分のドメインを origin パラメータ値として指定する必要があります。 |
|
このパラメータには、再生する動画 ID をカンマ区切りのリスト形式で指定します。値を指定すると、URL パスの VIDEO_ID に指定した動画が最初に再生され、playlist パラメータに指定した動画はその後に再生されます。 |
|
このパラメータは iOS 上の HTML5 プレーヤーで動画をインラインまたは全画面表示のどちらで再生するかを制御します。有効な値は次のとおりです。
|
|
注: このパラメータは 2018 年 9 月 25 日以降に変更されます。 変更前は、最初の動画の再生が終了したときに、プレーヤーに関連動画を表示するかどうかを指定します。
rel パラメータを 0 に設定すると、再生した動画と同じチャンネルから関連動画が選択されます。
|
|
注: このパラメータはサポートを終了しており、2018 年 9 月 25 日以降はご利用いただけません。 サポートされている値は 0 と 1 です。このパラメータの値を 0 に設定すると、動画の再生が始まる前に動画のタイトルやアップロードしたユーザーなどの情報は表示されません。プレーヤーに再生リストを読み込む場合に、このパラメータの値を明示的に 1 に設定すると、再生リストに含まれる動画のサムネイル画像も読み込み時に表示されます。 |
|
このパラメータを指定すると、動画の先頭から指定された秒数分進めた位置から動画の再生が開始されます。パラメータ値は正の整数です。seekTo 関数と同様に、プレーヤーは指定された時間に最も近いキーフレームを探します。そのため、リクエストされた時間の直前から再生が開始される場合もありますが、ずれは通常、最大で 2 秒程度です。 |
|
プレーヤーが埋め込まれている URL を識別します。この値は、YouTube プレーヤーがウィジェットに埋め込まれ、このウィジェットがウェブページやアプリケーションに埋め込まれた場合に、YouTube アナリティクスのレポートで使用されます。このシナリオでは、origin パラメータはウィジェット プロバイダのドメインを識別しますが、YouTube アナリティクスが実際のトラフィック ソースとしてウィジェット プロバイダを識別することはありません。代わりに、YouTube アナリティクスは widget_referrer パラメータ値を使用して、トラフィック ソースに関連するドメインを識別します。 |
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.
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.0
, then the player does not show related videos.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.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.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.
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.
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.
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.
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.
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.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
.
theme
parameter has been deprecated for the HTML5 player. HTML5 players now always use the dark theme.
<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.
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.
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.
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.
cc_load_policy
, disablekb
, end
, fs
, list
, and listType
parameters. The parameter descriptions have been updated accordingly.
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.
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
.
playsinline
parameter controls whether videos play inline or fullscreen in an HTML5 player on iOS. Setting the value to 1
causes inline playback.
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.
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.
color
, modestbranding
, and rel
parameters, and the definitions for these parameters have been updated accordingly.
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.
showinfo
parameter's definition has been updated to reflect the fact that the HTML5 player supports this parameter.
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.
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.
fs
and rel
parameters have been updated to more clearly explain the default parameter values for the AS3 player.
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.
theme
and color
parameters let you customize the appearance of the embedded player's player controls. See the YouTube API blog for more information.
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.
border
, color1
, color2
, egm
, hd
, and showsearch
.
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:controls
and playlist
parameters are supported in the AS3 and HTML5 players but are not and will not be supported in the AS2 player.
autohide
parameter, which indicates whether the player's video controls will automatically hide after a video begins playing.
controls
parameter, which indicates whether the player's video controls will display at all. (Player controls do display by default.)
playlist
parameter, which specifies a comma-separated list of video IDs to play.
fs
has been updated to note that the fullscreen option will not work if you load the YouTube player into another SWF.
Write something about yourself. No need to be fancy, just an overview.