Iframe API Demo


autoplay Passed to "playerVars" as equivalent param.
controls Passed to "playerVars" as equivalent param.
expflag Accepts an experiment flag by name and its value. For example: expflag=embeds_web_enable_hiding_login_buttons:true. Can be defined multiple times for multiple flags.
forced_experiments Accepts a string of comma separated experiment IDs. For example: forced_experiments=123 or forced_experiments=123,456,789.
hl Passed to "playerVars" as equivalent param.
jsautoplay Controls the behavior of "onReady" function.
  • 1 = playVideo()
  • 2 = playVideo() → mute()
  • 3 = mute() → playVideo()
video_id Video that will be loaded in the player.

Loaded:
Muted:
Progress:
Quality:
Volume:


Player Args:

Update player

        
onReady, onStateChange, onPlaybackQualityChange, onPlaybackRateChange, onError, onAutoplayBlocked, onMutedAutoplayStarts, onMutedAutoplayEnds

onAdAnnounce, onAdComplete, onAdvertiserVideoView, onAdEnd, onAdInfoChange, onAdIntroStateChange, onAdMessageChange, onAdMetadataAvailable, onAdPlaybackProgress, onAdSkip, onAdStart, onAdStateChange, onAdUpdate

Player Logs:

Clear

        



Choose API:

Run

Input values:

Example:

            
            
            

Output value:

Clear