← 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
boolean
Is the video playing?
- Example:
true
- Default value:
false
- Example:
- audio
boolean
Is the audio turned on?
- Example:
false
- Default value:
true
- Example:
- width
integer
Width of the video.
- Example:
600
- Example:
- height
integer
Height of the video.
- Example:
400
- Example:
- id
string
YouTube video id. Required.
- Example:
"KnPe6dZuwlg"
- Example:
- options
object
Dictionary of extra options. See YouTube docs for all options.
- Example:
`{ modestbranding: 1 }`
- Default value:
`{}`
- Example:
- onReady
expression
Callback triggered when the video is ready to play.