← Back
Youtube
Plays a video from YouTube. All of the parameters are optional except for id, which must be provided. See all available options at https://developers.google.com/youtube/player_parameters
Input:
[Youtube
id:"KnPe6dZuwlg"
play:true
audio:true
width:500
height:300
options:`{ controls: 1 }`
/]Output:
Props
- play
booleanIs the video playing?
- Example:
true - Default value:
false
- Example:
- audio
booleanIs the audio turned on?
- Example:
false - Default value:
true
- Example:
- width
integerWidth of the video.
- Example:
600
- Example:
- height
integerHeight of the video.
- Example:
400
- Example:
- id
stringYouTube video id. Required.
- Example:
"KnPe6dZuwlg"
- Example:
- options
objectDictionary of extra options. See YouTube docs for all options.
- Example:
`{ modestbranding: 1 }` - Default value:
`{}`
- Example:
- onReady
expressionCallback triggered when the video is ready to play.