video_player_hdr 1.2.0
video_player_hdr: ^1.2.0 copied to clipboard
A fork of video_player with HDR support
1.2.0 #
- Adds audio track selection, matching upstream
video_player2.11.0:getAudioTracks(),selectAudioTrack()andisAudioTrackSupportAvailable()onVideoPlayerHdrController, plus theVideoAudioTracktype re-exported from the platform interface. - Adds video track (quality variant) selection — not yet exposed by upstream's
app-facing package:
getVideoTracks(),selectVideoTrack()andisVideoTrackSupportAvailable(), plus theVideoTracktype. For HLS/DASH this allows picking specific variants, including HDR ones. VideoPlayerOptions.backBufferDurationMsis now passed through to the platform implementations, matching upstreamvideo_player2.12.0.- Honors
VideoPlayerOptions.preventsDisplaySleepDuringVideoPlayback: adds the field toVideoPlayerHdrValueandsetPreventsDisplaySleepDuringVideoPlayback()to the controller, to control whether the display sleeps during playback on iOS and macOS, matching upstreamvideo_player2.13.0.
1.1.0 #
- Syncs bug fixes from upstream
video_player2.10.1 and 2.11.1:- Fixes
VideoPlayerHdrandVideoProgressIndicatorno longer updating after being reparented in the widget tree with aGlobalKey. VideoProgressIndicatornow handles videos with zero duration instead of dividing by zero.- Optimizes closed caption lookup with a binary search (adds a dependency on
package:collection).
- Fixes
- Raises dependency lower bounds to the versions the package is developed and
tested against, matching upstream
video_player2.13.0:video_player_android^2.11.0,video_player_avfoundation^2.11.0,video_player_platform_interface^6.9.0. - Updates minimum supported SDK to Flutter 3.44 / Dart 3.12.
- Android: modernizes the plugin build (AGP 8.13, Kotlin 2.3, Java 17,
compileSdk 36) and raises minSdk from 21 to 24, matching
video_player_android, which already required API 24+ for playback. - Updates the example app to current Flutter tooling.
- Removes
.gitignorerules that covered two checked-in example files (project.pbxproj,Info.plist), sopub publishno longer warns and the published example is complete.
1.0.1 #
- Fixes a crash in
getSupportedHdrFormats()on Android API < 24: the native side returned a boolean instead of a list, causing a cast error in Dart. It now returns an empty list. - Fixes HDR methods on web: they now throw the documented
HdrVideoErrorinstead of crashing withUnsupportedErrorfromdart:io. getVideoMetadata()on iOS now honors the controller'shttpHeadersfor network videos (previously they were only applied on Android).- Fixes the iPhone 16 family model identifier mapping (Pro/non-Pro were swapped) and adds the iPhone 16e, iPhone 17 family, iPhone 17e and iPhone Air to the HDR format detection on iOS.
- Fixes the
@Deprecatedmessage ofVideoPlayerHdrController.networkto reference the correct class name. - Updates the iOS podspec: version aligned with the package, minimum iOS raised from
10.0 to 12.0 (Flutter's supported minimum), declares
swift_version, removes the obsolete i386 exclusion, and fixes the homepage URL.
1.0.0 #
- Initial release