Skip to content

[video_player_platform_interface] Add video track selection support#11474

Merged
auto-submit[bot] merged 3 commits intoflutter:mainfrom
nateshmbhat:breakout/video-track-platform-interface
Apr 29, 2026
Merged

[video_player_platform_interface] Add video track selection support#11474
auto-submit[bot] merged 3 commits intoflutter:mainfrom
nateshmbhat:breakout/video-track-platform-interface

Conversation

@nateshmbhat
Copy link
Copy Markdown
Contributor

Summary

Platform interface breakout PR for #10688.

  • Adds VideoTrack class with metadata fields: trackId, size (width/height), and bitrate
  • Adds getVideoTracks() method to retrieve available video quality variants
  • Adds selectVideoTrack() method to switch between quality tracks
  • Adds isVideoTrackSupportAvailable() method to check platform support

Dependency Chain

This PR is first in a series of breakout PRs:

  1. video_player_platform_interface (this PR)
  2. video_player_android (pending)
  3. video_player_avfoundation (pending)
  4. video_player + video_player_web (pending - original PR [video_player] : Add video track selection support for Android and iOS #10688 updated)

Test Plan

  • Added unit tests for VideoTrack class (constructor, equality, hashCode, toString)
  • Added unit tests for default implementations of new platform interface methods

Adds VideoTrack class and getVideoTracks(), selectVideoTrack(),
isVideoTrackSupportAvailable() methods for video track (quality) selection.

Platform interface breakout PR for flutter#10688.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@stuartmorgan-g stuartmorgan-g added the CICD Run CI/CD label Apr 14, 2026
@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 27, 2026
@stuartmorgan-g
Copy link
Copy Markdown
Collaborator

@tarrinneal Ping, this approval so we can land it and unblock the next PR in the sequence.

Copy link
Copy Markdown
Contributor

@tarrinneal tarrinneal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry thought I'd done this already!

@tarrinneal tarrinneal added the CICD Run CI/CD label Apr 29, 2026
@tarrinneal
Copy link
Copy Markdown
Contributor

@stuartmorgan-g Ping, this approval so we can land it and unblock the next PR in the sequence.

@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 29, 2026
Copy link
Copy Markdown
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stuartmorgan-g stuartmorgan-g added autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD labels Apr 29, 2026
@auto-submit auto-submit Bot merged commit cac0fc5 into flutter:main Apr 29, 2026
82 checks passed
Mairramer pushed a commit to Mairramer/flutter that referenced this pull request Apr 29, 2026
…er#185748)

flutter/packages@ba80f8f...cde5b36

2026-04-29 stuartmorgan@google.com [file_selector] Switch to Kotlin
Pigeon (flutter/packages#11479)
2026-04-29 stuartmorgan@google.com [image_picker] Switch to Kotlin
Pigeon (flutter/packages#11504)
2026-04-29 stuartmorgan@google.com [quick_actions] Switch to Kotlin
Pigeon (flutter/packages#11507)
2026-04-29 git@reb0.org [pigeon] fix: Apply correct ThrowError success
callback (flutter/packages#11585)
2026-04-29 nateshmbhat1@gmail.com [video_player_platform_interface] Add
video track selection support (flutter/packages#11474)
2026-04-29 katelovett@google.com Update git ignore for
personal/iterating on agent skills and rules (flutter/packages#11600)
2026-04-29 stuartmorgan@google.com [file_selector] Update Windows
example for deprecations (flutter/packages#11570)
2026-04-29 git@reb0.org [various] Upgrade googletest to v1.15.2
(flutter/packages#11586)
2026-04-28 engine-flutter-autoroll@skia.org Roll Flutter (stable) from
cc0734a to 02085fe (2 revisions) (flutter/packages#11598)
2026-04-28 116356835+AbdeMohlbi@users.noreply.github.com [image_picker]
Update documentation of maxDuration to reflect that it only applies to
recording (flutter/packages#11417)
2026-04-28 suojae3@gmail.com [vector_graphics] add imageBuilder property
to VectorGraphic (flutter/packages#11094)
2026-04-28 engine-flutter-autoroll@skia.org Roll Flutter from
61fca76 to 81bc3d6 (1 revision) (flutter/packages#11597)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
nateshmbhat pushed a commit to nateshmbhat/flutter_packages that referenced this pull request Apr 30, 2026
…hed 6.7.0

Removes the local platform interface override now that
video_player_platform_interface 6.7.0 has been published (PR flutter#11474).

https://claude.ai/code/session_0158xcGQ1jV6BsCz7sLcRkPx
nateshmbhat pushed a commit to nateshmbhat/flutter_packages that referenced this pull request Apr 30, 2026
…ublished 6.7.0

Removes the local platform interface override now that
video_player_platform_interface 6.7.0 has been published (PR flutter#11474).

https://claude.ai/code/session_0158xcGQ1jV6BsCz7sLcRkPx
nateshmbhat added a commit to nateshmbhat/flutter_packages that referenced this pull request May 1, 2026
…ublished 6.7.0

Removes the local platform interface override now that
video_player_platform_interface 6.7.0 has been published (PR flutter#11474).

https://claude.ai/code/session_0158xcGQ1jV6BsCz7sLcRkPx
nateshmbhat added a commit to nateshmbhat/flutter_packages that referenced this pull request May 1, 2026
…hed 6.7.0

Removes the local platform interface override now that
video_player_platform_interface 6.7.0 has been published (PR flutter#11474).

https://claude.ai/code/session_0158xcGQ1jV6BsCz7sLcRkPx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD p: video_player

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants