[video_player_platform_interface] Add video track selection support#11474
Open
nateshmbhat wants to merge 1 commit intoflutter:mainfrom
Open
[video_player_platform_interface] Add video track selection support#11474nateshmbhat wants to merge 1 commit intoflutter:mainfrom
nateshmbhat wants to merge 1 commit intoflutter:mainfrom
Conversation
Adds VideoTrack class and getVideoTracks(), selectVideoTrack(), isVideoTrackSupportAvailable() methods for video track (quality) selection. Platform interface breakout PR for flutter#10688.
This was referenced Apr 9, 2026
There was a problem hiding this comment.
Code Review
This pull request updates the video_player_platform_interface to version 6.7.0, adding a VideoTrack class and methods for video track selection: getVideoTracks, selectVideoTrack, and isVideoTrackSupportAvailable. The changes include default implementations in the platform interface and corresponding unit tests. I have no feedback to provide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Platform interface breakout PR for #10688.
VideoTrackclass with metadata fields:trackId,size(width/height), andbitrategetVideoTracks()method to retrieve available video quality variantsselectVideoTrack()method to switch between quality tracksisVideoTrackSupportAvailable()method to check platform supportDependency Chain
This PR is first in a series of breakout PRs:
video_player_platform_interface(this PR)video_player_android(pending)video_player_avfoundation(pending)video_player+video_player_web(pending - original PR [video_player] : Add video track selection support for Android and iOS #10688 updated)Test Plan
VideoTrackclass (constructor, equality, hashCode, toString)