Skip to content

[video_player] Issue 166411 preferred audio language support for player creation#12152

Open
Zubii12 wants to merge 5 commits into
flutter:mainfrom
Zubii12:issue-166411-preferred-audio-language
Open

[video_player] Issue 166411 preferred audio language support for player creation#12152
Zubii12 wants to merge 5 commits into
flutter:mainfrom
Zubii12:issue-166411-preferred-audio-language

Conversation

@Zubii12

@Zubii12 Zubii12 commented Jul 8, 2026

Copy link
Copy Markdown

Adds preferredAudioLanguage to platform interface options and forwards it during player creation

Fixes flutter/flutter#166411

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2

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

Copy link
Copy Markdown
Contributor

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 introduces support for configuring a preferred audio language during player creation via VideoPlayerOptions.preferredAudioLanguage across the video_player federated packages. The changes update the platform interface, forward the option during player initialization, and implement native track selection for Android (ExoPlayer) and iOS/macOS (AVFoundation). Unit tests and changelogs are updated accordingly. There are no review comments, so no additional feedback is provided.

@Zubii12 Zubii12 force-pushed the issue-166411-preferred-audio-language branch 3 times, most recently from b827a92 to ce1bb95 Compare July 9, 2026 18:19
@Zubii12 Zubii12 force-pushed the issue-166411-preferred-audio-language branch from ce1bb95 to 0db81a5 Compare July 10, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[video_player] Add support for preferred audio language

1 participant