Skip to content

[video_player] Allow audio track selection #59437

Closed
flutter/packages
#9925

Description

@tmp05

Video_player needs a possibility to change audio tracks in video, like TrackSelector in Exoplayer do.

Activity

  1. balvinderz commented on Jun 16, 2020

    @balvinderz
    Contributor

    i have actually done some work in this. I have worked on the android part . Only ios part is remaining. I will create a PR When i m done.

  2. tmp05 commented on Jun 16, 2020

    @tmp05
    Author
  3. balvinderz commented on Jun 17, 2020

    @balvinderz
    Contributor
  4. tmp05 commented on Aug 14, 2020

    @tmp05
    Author
  5. balvinderz commented on Aug 14, 2020

    @balvinderz
    Contributor

    you can use my fork
    in pubspec.yaml
    for getting my fork
    copy this
    video_player:
    git:
    url: https://github.com/balvinderz/plugins
    ref: features/change_audio
    path: packages/video_player/video_player

    call getAudios() to get audios after initialize() and call setAudio to set the audio.
    To make it work on web
    add
    <script src="https://cdn.jsdelivr.net/npm/hls.js@latest" type="application/javascript"></script>
    in index.html above
    <script src="main.dart.js" type="application/javascript"></script>
    .
    I have also uploaded a demo app if you want to see a demo
    https://github.com/balvinderz/change_audio_demo

  6. tmp05 commented on Aug 14, 2020

    @tmp05
    Author
  7. balvinderz commented on Aug 14, 2020

    @balvinderz
  8. tmp05 commented on Aug 20, 2020

    @tmp05
    Author
  9. balvinderz commented on Aug 20, 2020

    @balvinderz
  10. tmp05 commented on Aug 20, 2020

    @tmp05
    Author
  11. 47 remaining items

  12. loeffel-io commented on Sep 28, 2023

    @loeffel-io
  13. abdoutech93 commented on Nov 27, 2023

    @abdoutech93

    We are preparing a PR but it was tested only with Android, I don't know if it will be accepted !!

    flutter/packages#5548

  14. usilitel commented on Feb 10, 2024

    @usilitel
  15. changed the title [-]Video_player and audio tracks in video[/-] [+][video_player] Allow audio track selection[/+] on Jun 24, 2024
  16. nateshmbhat commented on Aug 10, 2025

    @nateshmbhat

    I'm working on this adding this audio track selection feature. As of now, i'm focusing on just providing a method to get the list of audio tracks available on android and ios to start with.

    on android i've implemented and tested it. works fine.
    ios WIP.

    I might need some help to get this PR landed in this repo as its my first contribution to this flutter repo.

  17. nateshmbhat commented on Aug 11, 2025

    @nateshmbhat

    Once this gets merged, I will be adding functionality for selecting a particular track.

  18. NavidFarahmandian commented on Sep 2, 2025

    @NavidFarahmandian

    Once this gets merged, I will be adding functionality for selecting a particular track.

    What's up on this? how we can have your code?

  19. github-actions commented on Mar 3, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  20. locked as resolved and limited conversation to collaborators on Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions