YouTube Video

../../_images/youtube_video.jpeg

Embeds a YouTube Video

Element Information
Category Media
Element Code youtube_video
Template Leonex_SiteBuilder::element/youtube-video.phtml

Configuration

Configuration Field List
Name Type Default Value Description
YouTube Video ID
video_id
Text Field No Default Value

Aspect Ratio
aspect_ratio
Select Field 16x9

Autoplay Video
autoplay
Boolean Field No Default Value
This parameter specifies whether the initial video will automatically start to play when the player loads.
Progress Bar Color
color
Select Field red Setting the color parameter to white will disable the modestbranding option. | This parameter specifies the color that will be used in the player’s video progress bar to highlight the amount of the video that the viewer has already seen.
Controls
controls
Boolean Field 1
This parameter indicates whether the video player controls are displayed
Video Start
start
Text Field No Default Value
This parameter causes the player to begin playing the video at the given number of seconds from the start of the video. The parameter value is a positive integer. Note that similar to the seekTo function, the player will look for the closest keyframe to the time you specify. This means that sometimes the play head may seek to just before the requested time, usually no more than around two seconds.
Video End
end
Text Field No Default Value Note that the time is measured from the beginning of the video and not from either the value of the start player parameter or the startSeconds parameter, which is used in YouTube Player API functions for loading or queueing a video. | This parameter specifies the time, measured in seconds from the start of the video, when the player should stop playing the video. The parameter value is a positive integer.
Enable FullScreen
fs
Boolean Field 1
Disabling this option prevents the fullscreen button from displaying in the player. The default value is 1, which causes the fullscreen button to display.
Loop Video
loop
Boolean Field No Default Value
In the case of a single video player, a setting of 1 causes the player to play the initial video again and again. In the case of a playlist player (or custom player), the player plays the entire playlist and then starts again at the first video.
“Modest” YouTube Branding
modestbranding
Boolean Field 1
This parameter lets you use a YouTube player that does not show a YouTube logo. Set the parameter value to 1 to prevent the YouTube logo from displaying in the control bar. Note that a small YouTube text label will still display in the upper-right corner of a paused video when the user’s mouse pointer hovers over the player.