A default text track in language X is preferred over a forced text track in language Y when audio language Y is selected
See original GitHub issueWhen filing a question:
- What is the default behavior for
forced-subtitle
text tracks in exo-player, if no text track is selected then is it expected that theforced-subtitle
track, appropriate for that particular audio track will be selected? - At present with the demo application, I am able to see repeated text tracks (As mentioned in Issue #9432), and selecting
None
doesn’t select the appropriateforced-subtitle
track but it disables the renderer altogether?
I have shared a sample .mpd file in the mail.
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (10 by maintainers)
Top Results From Across the Web
The Embed Text Track element - HTML - MDN Web Docs
It lets you specify timed text tracks (or time-based data), for example to automatically handle subtitles. The tracks are formatted in WebVTT ...
Read more >4.8.8 The video element - HTML Standard - WhatWG
The track element allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own....
Read more >Nikse - Subtitle Edit - Help/FAQ
Translating Subtitle Edit to another language ... List view is the default. ... You can edit text and time codes here, delete and...
Read more >mkvmerge -- Merge multimedia streams into a Matroska file
Sets the default language code that will be used for tracks for which no ... mkvmerge(1) requires a video or an audio track...
Read more >TextView - Android Developers
A user interface element that displays text to the user. ... layout direction of this view is from deduced from the default language...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I added a comment to #9432 about whether the UI should expose that a forced track is selected at all.
While looking into this issue I also spotted what I think is a bug in
DefaultTrackSelector
when the content has both default and forced tracks in a variety of languages. Something like:Current behaviour:
I have a pending change which changes this behaviour to:
I’m going to re-open this issue and use it to track making this change.
I just played around some more, and I think my second bullet was incorrect - I’ve removed it now. The best way to get ‘automatic’ behaviour is just to start playback from scratch. The two track selectors in the demo app interact in quite a confusing way.
I observe:
StyledPlayerView
) selector (providing theStyledPlayerView
selector is not already set to ‘None’).StyledPlayerView
selector (tapping them has no effect, the ‘old’ track remains selected).StyledPlayerView
selector does work (subtitles disappear) - however the ‘top’ selector still shows the ‘old’ selection.StyledPlayerView
=None) then selecting any specific track in theStyledPlayerView
will re-enable the top-selected track (i.e. French).StyledPlayerView
before. i.e. the following steps will have the following result:StyledPlayerView
says ‘English’)StyledPlayerView
. French subtitles are shown. Top selector still says ‘Auto’.StyledPlayerView
selector now says ‘Spanish’.StyledPlayerView
selector says ‘French’.I think these are all UI problems resulting from having two different text track selectors in the demo app - with one intended to be a ‘real’ track selector that you might show to end users, while the other is a deliberately ‘advanced’ one that shows all available tracks, even if an end-user should never specifically select them. I don’t think any of this indicates a problem with the underlying track selection logic (which of course is mostly unrelated to the UI components: https://exoplayer.dev/track-selection.html).