Play a YouTube video fullscreen¶
CanvasPro can render a YouTube video as a full-frame source using the default Web template. The trick is the right embed URL.
1. Use the Web template¶
In the channel, add a scene built from the Web template (or any HTML template that takes a URL).
2. Set the URL¶
Use the embed URL pattern below. Replace VIDEO_ID with the YouTube video's ID, the part after watch?v= in the regular YouTube URL.
https://www.youtube.com/embed/VIDEO_ID?rel=0&fullscreen=1&mute=1&autoplay=1&controls=0&modestbranding=1
The mute=1 and autoplay=1 parameters are both required. Browsers will not autoplay video with audio, and YouTube does not autoplay by default.
Notes¶
For a brief moment on first load, some of YouTube's UI may appear (the channel logo and video title can show briefly in the corners). This is YouTube's player, not CanvasPro.
For permanent overlays, host the video on your own server or use a Ventuz template instead of a YouTube embed.