youtube_player_flutter
Flutter plugin for playing or streaming inline YouTube videos using the official iFrame player API. Powered by youtube_player_iframe.
10.0.1
187K downloads/mo
#878 most downloaded on pub.dev
sarbagyastha/youtube_player_flutter
What this package is like to depend on
Last release 2 months ago
30 May 2026
Ships fairly regularly
a new release about every 4 months
Most releases are documented
notes for 49 of 57 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
62 releases · first in 2019
3 releases in the last 12 months
see the full history below
Release timeline
62 releases · Apr 2019 to May 2026Releases
latest 60 of 62-
10.0.130 May 2026Release notes
Open source →May 31, 2026
- Patch release to trigger pub.dev documentation refresh.
- Bumps
youtube_player_iframedependency to^6.0.2.
-
10.0.030 May 2026Release notes
Open source →May 30, 2026
Breaking Changes
- Complete rewrite powered by
youtube_player_iframe. The underlying engine has switched fromflutter_inappwebviewto the official YouTube IFrame API viawebview_flutter. Most APIs have changed — see the README for the new API. YoutubePlayerBuilderhas been removed. Fullscreen is now handled internally by the player.YoutubePlayerControlleris now re-exported fromyoutube_player_iframe. Refer to its changelog for the full API surface.- Bumps minimum Flutter version to
>=3.38.0/ Dart SDK^3.10.0.
New Features
- Adds macOS and Web support.
- Adds built-in Material-style controls overlay with progress bar, playback speed picker, title bar, and fullscreen button.
- Adds
YoutubePlayerThemefor customizing the default controls (colors, text styles). - Adds
YoutubePlayerThumbnailwidget — shows a thumbnail and only initializes the WebView on tap, ideal for lists.
- Complete rewrite powered by
-
9.1.306 Oct 2025 -
9.1.207 Aug 2025Release notes
Open source →- Fixes type error when handling YouTube error codes (error where int was expected as String).
- Improves error handling for YouTube error codes 150 and 152.
-
9.1.128 Sep 2024 -
9.1.024 Sep 2024Release notes
Open source →- Updates minimum supported SDK version to Flutter 3.24/Dart 3.5.
- Updates dependencies.
-
9.0.420 Sep 2024 -
9.0.313 Aug 2024Release notes
Open source →- Fixes issue where loading indicator would always show.
- Updates the default color of the progress indicator to be primary container color.
-
9.0.207 Aug 2024 -
9.0.112 Apr 2024 -
9.0.021 Feb 2024 -
9.0.0-beta.007 Aug 2023 pre-releaseNothing published for this version
-
8.1.226 Dec 2022Release notes
Open source →- Bumps
flutter_inappwebviewto latest version. - Adds support for extracting video id from YouTube Shorts & Music URL.
- Bumps
-
8.1.111 Oct 2022Release notes
Open source →- Bumps
flutter_inappwebviewto latest version. - Fixed cast error in YouTube error.
- Bumps
-
8.1.016 May 2022 -
8.0.027 Mar 2021 -
7.0.031 May 2020Release notes
Open source →- (Fixed) random crashes
- (Fixed) issues with orientation
- (Improvements) Added automatic fullscreen toggle wrt to orientation change
BREAKING CHANGE
- Requires iOS:
--ios-language swift, Xcode version>= 11 - Requires Android:
minSdkVersion 17 - Removed exported
WebViewwidget
-
7.0.0+131 May 2020Release notes
Open source →- (Fixed) random crashes
- (Fixed) issues with orientation
- (Improvements) Added automatic fullscreen toggle wrt to orientation change
- Added
YoutubePlayerBuilder - (Fixed) progress color being ignored #221
BREAKING CHANGE
- Requires iOS:
--ios-language swift, Xcode version>= 11 - Requires Android:
minSdkVersion 17 - Removed exported
WebViewwidget
-
7.0.0+201 Jun 2020Release notes
Open source →- Added
onEnterFullScreen&onExitFullScreencallback toYoutubePlayerBuilder. - Player switches back to normal mode on system back, if on fullscreen.
- Added
thumbnailparameter toYoutubePlayer, removedthumbnailUrl. Now any widget can be used as thumbnail. - Fixed issues with progress colors.
Release notes
Open source →- Added
onEnterFullScreen&onExitFullScreencallback toYoutubePlayerBuilder. - Player switches back to normal mode on system back, if on fullscreen.
- Added
thumbnailparameter toYoutubePlayer, removedthumbnailUrl. Now any widget can be used as thumbnail. - Fixed issues with progress colors.
- Added
-
7.0.0+302 Jun 2020 -
7.0.0+422 Jun 2020Release notes
Open source →- Updated dependencies. Fixes #262
- Added clear error description for 101, 105 and 150 error codes.
-
7.0.0+522 Jun 2020 -
7.0.0+624 Jun 2020 -
7.0.0+712 Jul 2020 -
6.1.104 May 2020 -
6.1.021 Feb 2020Nothing published for this version
-
6.1.0+121 Feb 2020Nothing published for this version
-
6.1.0+221 Feb 2020Release notes
Open source →- (Fixed) Some videos not playing Issue #119
- (Improvements) Faster initial video loading time
- Added
forceHDflag - Shows buffer indicator until video is playable
BREAKING CHANGE If you're using
webview_flutteralongside, then remove it from dependencies. The package exports webview on its own. -
6.1.0+423 Feb 2020Nothing published for this version
-
6.1.0+617 Apr 2020 -
6.1.0+717 Apr 2020 -
6.0.316 Nov 2019Nothing published for this version
-
6.0.3+116 Nov 2019Release notes
Open source →- Moved
videoId,title,authoranddurationto separate YoutubeMetaData class. - (Fixed) Issue with invalid video id being shown while switching to fullscreen. Issue #118
- Moved
-
6.0.3+217 Nov 2019Release notes
Open source →- (New Feature) Pinch in/out on the player to fit video.
- (Improvements) Video plays in high definition, if supported.
-
6.0.215 Nov 2019 -
6.0.111 Nov 2019Release notes
Open source →- (New Feature) Added
titleandauthorproperty toYoutubePlayerController. - Removed DataConnectionChecker dependency.
- Removed
startandendfrom flags as it wasn't functioning anyway. - (Improvement) Implemented effective dart lints.
- (Improvement) Changed thumbnails to fetch webp format.
- (Fixed) Issue with Live UI Issue #115.
- (New Feature) Added
-
6.0.002 Nov 2019Release notes
Open source →- (Improvement) Smooth fullscreen toggle and crash fix. Issue #46 & Issue #105
- (Fixed) Issue #93.
- (Fixed)
PlayerState.endedbeing call multiple times. Issue #108 - (Improvement) Exposed
controllerparameter to all widgets. Issue #109. This comes handy when the widgets are to used outside the context ofYoutubePlayerwidget. - (Improvement) UI and performance optimizations.
BREAKING CHANGES
- From now on,
YoutubePlayerControlleris to be passed to the player explicitly. (See the updated readme) - Removed
contextandvideoIdproperties fromYoutubePlayer. flagsproperty is moved toYoutubePlayerControllerfromYoutubePlayer. Since flags were only needed for the first time when player initializes.showVideoProgressIndicatorproperty moved toYoutubePlayer.
5.2.0+1
- (Fixed) aspect ratio in fullscreen mode.
- (Fixed) sometimes showing up buffering indicator instead of error.
-
5.2.024 Oct 2019Release notes
Open source →BREAKING CHANGES
- Renamed
videoIdproperty in YoutubePlayer toinitialVideoId. - From now on changing video id must be done using either load() or cue().
- (Fixed) Video playing sound only, on videoId change. Issue #99
- (Improvement) Minor optimizations.
- Example updated with video list.
- Added
PlayerState.stopped. - Added
actionsPaddingproperty.
- Renamed
-
5.2.0+125 Oct 2019Nothing published for this version
-
5.1.023 Oct 2019Release notes
Open source →- Renamed
TotalDurationwidget toRemainingDuration. - Renamed
PlayButtonwidget toPlayPauseButton. - (Improvement) Better handling of invalid video id.
- (Improvement) Better video orientation handling.
- (Improvement) Better play/pause handling w/r/t app lifecycle.
- (Fixed) Video pausing after jumping to certain position using progress bar.
- BREAKING Switched back to
webview_flutter. - Updated dart docs.
- Renamed
-
5.0.013 Oct 2019Nothing published for this version
-
5.0.0+113 Oct 2019Release notes
Open source →BREAKING CHANGES
- Everything is modular now. See the docs for details.
- Automatically switches to landscape on fullscreen mode.
- Added proper display of errors and detects internet connection status.
- Workarounds for iOS.
webview_flutteris swapped withytview. If you've been usingWebViewwidget, then consider changing import paths to ytview instead.- Added flags to enable/disable caption and looping.
- Added flags to change caption language, start and end time of video.
-
4.1.013 Aug 2019 -
4.0.011 Aug 2019Nothing published for this version
-
4.0.0+111 Aug 2019Release notes
Open source →BREAKING CHANGES
YoutubePLayerScaffoldhas been removed.- Improved Orientations
- Uses
webview_flutterinstead ofytview
-
4.0.0+212 Aug 2019 -
3.0.023 Jun 2019Release notes
Open source →- BREAKING CHANGES See Migrating to 3.x.x for detail.
- Faster fullscreen toggling.
- Toggles fullscreen on orientation change. Issue #3.
- Option to add own custom thumbnail.
- (Fixed) Video stuck at unknown state Issue #24.
- Added
hideThumbnailanddisableDragSeekflags. #27, #29. - (Fixed) Fullscreen toggle in iOS.
- Minor UI improvements here and there.
-
3.0.0+123 Jun 2019Nothing published for this version
-
3.0.0-beta.409 Jun 2019 pre-releaseNothing published for this version
-
3.0.0-beta.309 Jun 2019 pre-releaseNothing published for this version
-
3.0.0-beta.209 Jun 2019 pre-releaseNothing published for this version
-
3.0.0-beta.108 Jun 2019 pre-releaseNothing published for this version
-
2.0.005 Jun 2019Release notes
Open source →- (Fixed) iOS playback is fully functional. Issue #2
- Added
forceHideAnnotationproperty which hides the default YouTube annotation. Read Issue #17 for detail - Added option to
muteplayer.
-
1.2.003 Jun 2019Release notes
Open source →- Added
actionsproperty, which can be used to add menus in top bar of video. See example for details. - Added option to hide fullscreen button.
- (Fixed) Current position always showing 00:00 Issue #17
- Added
-
1.1.115 May 2019 -
1.1.1+115 May 2019 -
1.1.021 Apr 2019Release notes
Open source →- Minor Improvements.
- Built and tested on iOS device.
- Migrated to AndroidX.
- Removed warnings on iOS builds.
-
1.0.112 Apr 2019Release notes
Open source →- Fixed Disabled navigation inside the player. This solves the issue where tapping on actions would navigate to different web pages.
- Removed
foreceHDparam, in favor ofdesktopMode. ThedesktopModealso supports changing quality in fullscreen mode. - Added two new methods,
hideTopMenu()andhidePauseOverlay(). Visit ReadMe for more detail.
-
1.0.1+112 Apr 2019 -
1.0.012 Apr 2019Release notes
Open source →- Initial Release.
- Includes Dart Documentation.
- Includes support for Live Videos.
- Includes fast forward and rewind feature.