The following section explains how to configure your player to load a playlist or a user's uploaded videos. Note that the instructions below demonstrate how to embed a player that loads a single video. You can use any of the following methods to embed a YouTube player in your application and specify player parameters.
We recommend 16:9 players be at least 480 pixels wide and 270 pixels tall. If the player displays controls, it must be large enough to fully display the controls without shrinking the viewport below the minimum size. Note: Embedded players must have a viewport that is at least 200px by 200px.
Each parameter definition identifies the players that support the corresponding parameter. This page currently defines all parameters supported in any YouTube embedded player. You can also use the enablejsapi parameter to enable the player to be controlled via the IFrame Player API. For example, you can automatically play videos using the autoplay parameter or cause a video to play repeatedly using the loop parameter. This document explains how to embed a YouTube player in your application and also defines the parameters that are available in the YouTube embedded player.īy appending parameters to the IFrame URL, you can customize the playback experience in your application.