When a user is facing an issue with embedding a Youtube video, many times, this will be an issue of restrictions on the video itself, by its Youtube owner.
Requirements:
1. Single video embeds only (for other YouTube content such as a livestream use the iframe embed instead)
Videos must be public
Video must have embed permissions set in YouTube
Content must not have other YouTube restrictions (such as age or geo or domain)
YouTube URL must be default and not include a timestamp or shorts formatting. (see: Embedding youtube video to CMS Leads to "Saving Failed" Error )
Causes of errors
If one of the following scenarios exists, an error will return in the network:
YouTube restriction: Video is on “private” visibility-
The video will not be embedded, and a “Forbidden” error will be returned from the request (403).
2. Youtube restriction: The video has the “Allow Embedding” toggle disabled.
The video will not be embedded, and an “Unauthorised” error will be returned from the request (401).
3. YouTube restriction: Video is restricted (geo, age, domain, etc.)
The user will be able to embed the video, but if you are under the black list of one of the above restrictions, an error message will show in the YouTube player embed with a link to YouTube page- “This video is “restriction type” restricted and only available on YouTube”
YouTube Podcasts / Livestreams / Playlists
Podcast-type videos, live streams, or YouTube playlists should be embedded in Voltax as an Iframe embed. The built-in YouTube embed in Voltax Media Playgrpund only supports single video embeds.
To collect an Iframe code off a YT video, click Share, then Embed and copy the iFrame code.
Paste the iFrame code in the Voltax iFrame Embed option in the playground.