Skip to content

Implement subtitle and audio track language preferences

Nicolas Pomepuy requested to merge Aza/vlc-android:preferred_tracks into master

This is an external contribution that allows the user to setup a preferred language for the audio and subtitle tracks.

I relies on string comparison:

  • the preference is an EditTextPreference that allows the user to set "fr" for example
  • when a track is added during video playback, it will switch to the first track containing this string
  • this commit respects the external media metadata track selection (if a previous playback has been made using a different track, this track is restored).

I opened this MR to start the discussion about how this approach is relevant and to allow improving the code if needed.

Edited by Nicolas Pomepuy

Merge request reports