Skip to content
pubscout

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
$ flutter pub add youtube_player_flutter
Source repository

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.

  • video_player

    General purpose video playback for local or network streams, not limited to YouTube

  • chewie

    Higher‑level wrapper around video_player with customizable UI

  • media_kit

    Feature‑rich, cross‑platform media player supporting many formats and advanced controls

Works with

Packages commonly used together with youtube_player_flutter: ones it builds on, ones built on it, and its own family.