youtube_player_iframe
Flutter port of the official YouTube iFrame player API. Supports Android, iOS, macOS & Web.
6.0.2
173K downloads/mo
#907 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
Release timing varies
gaps range from 9 days to 11 months
Most releases are documented
notes for 30 of 39 stable releases
1 version withdrawn
withdrawn after publishing
6 years old
42 releases · first in 2020
3 releases in the last 12 months
see the full history below
Release timeline
42 releases · Jul 2020 to May 2026Releases
latest 42-
6.0.230 May 2026 -
6.0.130 May 2026Release notes
Open source →May 31, 2026
- Adds
credentiallesstoYoutubePlayerControllerandYoutubePlayerController.fromVideoId. On web, enables credentialless iframe mode for pages withCross-Origin-Embedder-Policyset. - Adds
videoStateUpdateIntervaltoYoutubePlayerParams. Controls how often (in milliseconds) the player polls for current time and loaded fraction while playing. Defaults to100(10 Hz), preserving existing behaviour. - Improves fullscreen-on-rotate transitions. The overlay now animates smoothly when the device rotates into and out of landscape.
- Fixes fullscreen button not appearing on Web.
- Fixes
videoUrlgetter returning a quote-wrapped string on some platforms. - Fixes
playlistandavailablePlaybackRatesthrowing aFormatExceptionwhen called before a playlist or video is loaded. - Fixes null crash when
getPlaylistreturns an empty response. - Broadens
loadVideoto accept all YouTube URL formats: watch,youtu.be,/shorts/,/embed/, andmusic.youtube.com. - Removes the deprecated
modestbrandingplayer parameter (dropped by YouTube in 2023). - Improves documentation for
PlayerStateandYoutubeErrorenums.
- Adds
-
6.0.016 May 2026Release notes
Open source →May 16, 2026
Breaking Changes
- Removes
YoutubePlayerScaffold. UseYoutubePlayerdirectly. Fullscreen is now handled internally. See the migration guide in the README. - Bumps minimum Flutter version to
>=3.38.0/ Dart SDK^3.10.0.
New Features
- Fullscreen navigation is no longer broken. Entering and exiting fullscreen is now smooth and works correctly across all supported platforms. Auto-enters fullscreen on landscape rotation; supports swipe-up/down gesture.
- Adds
YoutubePlayerThumbnailwidget. Shows the video thumbnail and only creates the WebView when the user taps, making it ideal for lists. - Adds
privacyEnhancedModetoYoutubePlayerParams(defaulttrue). Usesyoutube-nocookie.comso YouTube won't track visitors unless they play the video. - Adds
copyWithtoYoutubePlayerParams. - Adds
ThumbnailQualityandThumbnailFormatenums forYoutubePlayerController.getThumbnail. - Adds macOS support.
- Fixes fullscreen button handling on mobile platforms.
- Fixes event propagation on fullscreen button click.
- Fixes player not resizing correctly after orientation change.
- Fixes null
videoIdcrash in controller.
- Removes
-
5.2.207 Aug 2025 -
5.2.116 Nov 2024 -
5.2.024 Sep 2024Release notes
Open source →Sep 23, 2024
- Updates minimum supported SDK version to Flutter 3.24/Dart 3.5.
- Bumps dependency to latest version.
-
5.1.513 Aug 2024 -
5.1.403 Aug 2024Release notes
Open source →Aug 3, 2024
- Bumps dependency to latest version.
- Fixes issue where only one of player would initialize at a time in web.
-
5.1.301 Jul 2024 -
5.1.212 Apr 2024Release notes
Open source →Apr 12, 2024
- Bumps dependency to latest version.
- Updates minimum supported SDK version to Flutter 3.19.0/Dart 3.3.0.
-
5.1.121 Feb 2024 -
5.1.021 Feb 2024 -
5.0.020 Dec 2023Release notes
Open source →Dec 20, 2023
- Bumps dependency to latest version.
- Adds support for wasm.
- Bumps flutter version to
>=3.18.0-0. - Fixes issue using
WebViewWidgetfromwebview_flutterpackage, together with the package.
-
4.0.429 Jan 2023 -
4.0.329 Jan 2023Release notes
Open source →Jan 29, 2023
- Endorse
youtube_player_iframe_webas default web implementation package.
- Endorse
-
4.0.227 Jan 2023 withdrawnRelease notes
Open source →Jan 27, 2023
- Upgraded dependencies.
- Fixed issue with
YoutubePlayerController.close. - Exposed
YoutubePlayerValue.
-
4.0.126 Dec 2022 -
4.0.025 Dec 2022Release notes
Open source →Dec 25, 2022
Breaking Change
- Fixed video playback issues in web for some videos.
- Deprecated params in v3 has been removed.
- Deprecated
YoutubePlayerIFramehas been removed. YoutubePlayer.controlleris now required.YoutubePlayerController.onInithas been removed. As unlike before, the controller is available as soon as it's created.YoutubePlayerController.getCurrentPositionStreamhas been deprecated in favor ofYoutubePlayerController.videoStateStream.YoutubePlayerController.onFullscreenChangehas been deprecated in favor ofYoutubePlayerController.setFullScreenListener.- Added support for specifying
YoutubePlayerParams.pointerEvents. Thanks to @keithcwk. - Added [FullscreenYoutubePlayer].
- Upgraded dependencies.
-
3.1.015 Sep 2022Release notes
Open source →Sep 15, 2022
- Fixed issues with example app
- Fixed
strictRelatedVideosflag working incorrectly. Thanks to @ChisatoMatsuzaki. - Deprecated
startAt&endAtfrom YoutubePlayerParams. - Removed
volumefrom YoutubePlayerValue as it's no longer used.
-
3.0.421 Aug 2022Release notes
Open source →Aug 21, 2022
- Fixed video not loading on non-web platform when controls were disabled
- Added
YoutubePlayerController.fromVideoId. - Added
enableFullScreenOnVerticalDragproperty to YoutubePlayer. - Fixed issue with
videoUrlgetter. - Added video list and manual fullscreen examples.
- Added
getCurrentPositionStreamto YoutubePlayerController. - Deprecated
YoutubePlayerIFramein favor ofYoutubePlayer. - Deprecated
autoPlayparam in YoutubePlayerParams, as it's no longer used.
-
3.0.314 Aug 2022Release notes
Open source →- Fixed issues related to Fullscreen.
- Added
onInit&onFullscreenChangecallbacks to YoutubePlayerController. - Added Migrating to v3 section in the docs.
- Listed
Swipe up/down to enter/exit fullscreen modeas a feature in the docs. - Deprecated
autoPlayparam in YoutubePlayerParams, as it's no longer used. - Removed
hasPlayed,position&bufferedfrom YoutubePlayerValue, as these values can be accessed through YoutubePlayerController.
Release notes
Open source →Aug 14, 2022
- Fixed issues related to Fullscreen.
- Added
onInit&onFullscreenChangecallbacks to YoutubePlayerController. - Added Migrating to v3 section in the docs.
- Listed
Swipe up/down to enter/exit fullscreen modeas a feature in the docs. - Deprecated
autoPlayparam in YoutubePlayerParams, as it's no longer used. - Removed
hasPlayed,position&bufferedfrom YoutubePlayerValue, as these values can be accessed through YoutubePlayerController.
-
3.0.212 Aug 2022 -
3.0.112 Aug 2022 -
3.0.012 Aug 2022Release notes
Open source →Aug 12, 2022
Breaking Change
- Switched to
webview_flutter. - Better web support.
- APIs are now identical to that of Youtube Player Iframe API.
- Exposed all the supported iFrame APIs.
- Fixed issue with videos not playing on Android.
- Added support for FullScreen gestures like on Youtube Mobile App.
- Added support for YouTube Shorts URL.
- Added
YoutubePlayerScaffoldto better handle the fullscreen mode.
- Switched to
-
3.0.0-beta.209 Aug 2022 pre-releaseNothing published for this version
-
3.0.0-beta.105 Jun 2022 pre-releaseNothing published for this version
-
2.3.016 May 2022Release notes
Open source →May 16, 2022
- Upgraded minimum flutter version to
3.0.0 - Upgraded example app
2.2.2
- Fixed inline playback issue iOS. See #525
- UI update to example app
2.2.1
- Removed
YoutubePlayerController.setWebDebuggingInAndroid
2.2.0
Contains Breaking Changes
- Fixed issue iOS redirection issue
YoutubePlayerControlleris no more Stream.- Added
YoutubePlayerController.setWebDebuggingInAndroid - Added
buildWhento YoutubeValueBuilder - Fixed issue where metadata weren't updated correctly
- Fixed
desktopModeflag.
2.1.0
- Updated dependencies to latest version.
2.0.0
- Migrated to null safety
- Added
useHybridCompositionparam. - Updated dependencies to latest version.
- Upgraded minimum flutter version to
-
2.2.213 Aug 2021Nothing published for this version
-
2.2.129 Jul 2021Nothing published for this version
-
2.2.029 Jul 2021Nothing published for this version
-
2.1.013 Jun 2021Nothing published for this version
-
2.0.027 Mar 2021Nothing published for this version
-
1.2.011 Dec 2020Nothing published for this version
-
1.2.0+111 Dec 2020Nothing published for this version
-
1.2.0+211 Dec 2020Release notes
Open source →- Added
YoutubePlayerParams.privacyEnhancedflag. - Exposed
gestureRecognizersthroughYoutubePlayerIFramewidget. - Handled internal links correctly. Tapping on video suggestion will now play it and all the buttons are enabled.
- Flutter
>=1.22.0 <2.0.0is required.
- Added
-
1.1.001 Aug 2020 -
1.0.117 Jul 2020Release 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.
Release 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.012 Jul 2020 -
1.0.0+112 Jul 2020Nothing published for this version
-
1.0.0+212 Jul 2020Nothing published for this version
-
1.0.0+312 Jul 2020 -
1.0.0+412 Jul 2020