Skip to content

[Bug]: Player does not prefer original audio track when no explicit choice is made #23

Description

@filippobaroni

Before submitting

  • I am using the latest available TypeType Android release.
  • I searched for an existing issue describing the same problem.

What happened?

When opening this video (but I assume the same problem would exist for many others), with "Audio track" set to "Auto", the player plays the French audio track, even though the original language is English.

According to an analysis by @Priveetee, this is what happens:

  • The server correctly identifies en-US.4 as both the original track and the default track.
  • Android receives that information, but doesn’t pass it through to the playback model.
  • When no explicit choice is made, Android picks the track with the highest bitrate.
  • Since all tracks have the same bitrate, it ends up selecting the first one in the list, which is the French track.
  • The frontend does the right thing by using preferredDefaultAudioTrackId, then originalAudioTrackId, so it selects English.

What I would expect is that, when no explicit choice is made, "Auto" would default to the original track (or whatever default language the user selected in settings).

Steps to reproduce

  1. Open https://www.youtube.com/watch?v=8P0JoCiSwKY on TypeType Android.
  2. Make sure the audio track is set to "auto".
  3. Listen French.

TypeType Android version

1.3.1

Android version and device

OxygenOS 16, OnePlus 13

TypeType instance version or revision

1.4.0

Video URL

https://www.youtube.com/watch?v=8P0JoCiSwKY

Network

Not relevant or not sure

Redacted diagnostics


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplayerPlayback, fullscreen, PiP, and MediaSession behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions