Skip to content

Preferred audio language (English) is ignored; dual-audio files (Hindi + English) start with Hindi #384

Description

@jamestong420

When playing a dual-audio video that contains both Hindi and English tracks, the player selects the Hindi audio track by default even though the preferred audio language is set to English in the app settings.

This only happens with hindi + English dual audio file

Steps to reproduce

  1. Go to Settings → Audio (or the relevant audio preferences section).
  2. Set Preferred audio language(s) to en / eng / English (or whatever the exact setting label and format is).
  3. Open a dual-audio file that has both Hindi and English audio tracks (e.g. Hindi as the first/default track and English as the second).
  4. Observe which audio track is selected on playback start.

Additional information

  • This happens even though the preferred language is correctly set to English.
  • Manually switching to the English track works, but the preference is not respected on initial load / new files.
  • Related mpv option is typically --alang (preferred audio languages). It would be helpful to confirm whether the app is correctly passing the user’s preferred language(s) to libmpv (e.g. via alang).

Possible notes for developers

  • Language codes may be stored as hi/hin vs en/eng — matching logic should handle both 2- and 3-letter codes and prioritization order.
  • Track order / “default” flag in the file may be overriding the preferred language preference.
  • There may also be interaction with any “remember last selected audio track per video” feature.

Expected behavior

The player should automatically select the English audio track (matching the preferred language setting).

Actual behavior

The player starts with the Hindi audio track.

Crash logs or Logcat

No response

Media info & playback details (if applicable)

No response

REX Player version

5.2.0

Android version

12

Device model

Oppo A16

Additional context or screenshots

THIS BUG IS PRESENT IN EVERY MPVEX, MPVRX, MPVREX AND OTHER FORKS

Acknowledgements

  • I have searched existing issues and verified this is NOT a duplicate.
  • I have written a clear and descriptive issue title.
  • I have tested or updated to the latest release 5.1.0 or preview build.
  • I have filled out all required fields in this form.
  • I understand that issues caused by corrupted media files or dead stream links are outside the scope of REX Player.

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions