Under the hood, this embed doesn't use oEmbed directly, rather, it uses
repository of patterns and functions to fetch the ID and translate the URL into a compatible format.
The reason this works is providers like YouTube, Vimeo, and so on are inclined to keep embed formats stable (so existing embeds across the web don't break).
Dynamic content backends
- users enter a media URL, such as a YouTube link
- HTML content where embeds are saved
Also common is detecting if a URL is embeddable or not, in that case see
@social-embed/libSee StackOverflow, Regex websites detecting embed URLs
(google search: youtube regex site:stackoverflow.com)
- embed.ly and iframely - invoked as script. finds / replaces urls with rich context
- plyr - component. customizable frontend for video players, intakes URLs
<o-embed> can handle simple embeds with open embedding, such as YouTube, DailyMotion,
Vimeo, and Spotify.
SyntaxError: Unexpected token (1:8) 1 : return () ^
<o-embed> can be used with declarative rendering libraries like Angular, React, Vue, and lit-html