youtube_player_html library
The web implementation of youtube_player.
You don't depend on this package directly. Add youtube_player to your
app; it includes this package and uses it automatically on the web.
The player is a regular YouTube IFrame embed placed in your page. Works
with both the JavaScript and the --wasm builds.
Because the player iframe is cross-origin, the page cannot reach into it:
hiding player elements and intercepting clicks are not available, and links
open in a new tab. If your page is cross-origin isolated (COOP/COEP
headers, e.g. for multithreaded Wasm), set
YoutubePlayerParams(webCredentialless: true).
Requirements
- Dart 3.14 or newer
- Flutter 3.50 or newer
See the youtube_player package for the player API.
Classes
- WebYoutubePlayer
- Hosts players as IFrame API iframes directly in the page.