youtube_player_flutter
10.0.2, released 5 days ago by sarbagyastha.com.np
Flutter widget for playing YouTube videos via the official IFrame Player API.
WASM-readyUses material_ui
What it does
Provides a ready‑to‑use YouTube player with built‑in controls, fullscreen handling, and live‑stream support. It abstracts the IFrame API behind a Flutter widget and controller.
AI-written summary of version 10.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to embed YouTube videos with minimal code
- You want built‑in playback UI and gesture support across Android, iOS, macOS and Web
Skip it when
- You require fine‑grained custom UI over the IFrame API
- You need offline video playback or non‑YouTube sources
Strengths
- Cross‑platform (mobile, web, macOS) support
- No YouTube API key needed
- Built‑in controls, live‑stream UI, fullscreen handling
Weaknesses
- Limited to YouTube content only
- Customization limited compared to using youtube_player_iframe directly
- Relies on WebView which may affect performance on low‑end devices
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
final controller = YoutubePlayerController(initialVideoId: 'dQw4w9WgXcQ', flags: const YoutubePlayerFlags(autoPlay: true));
YoutubePlayer(controller: controller, showVideoProgressIndicator: true);Alternatives
Packages that do the same job and could replace youtube_player_flutter.
Works with
Packages commonly used together with youtube_player_flutter: ones it builds on, ones built on it, and its own family.
- material_uiyoutube_player_flutter depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- youtube_player_iframeyoutube_player_flutter depends on itFlutter widget for embedding YouTube videos via the official iFrame API
- youtube_playerSame familyPlay YouTube videos with the official IFrame Player API, in a minimal native WebView on Android, iOS, macOS, Windows and Linux, and in the page on the web.