Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

How to tell MediaItem.SubtitleConfigurations apart in ExoPlayer.getCurrentTracksInfo().getTrackGroupInfos()? #9673

Copy link
Copy link
@moneytoo

Description

@moneytoo
Issue body actions

I'm using latest ExoPlayer 2.16.0. Let's say I want to save and restore user selected audio and subtitle "tracks" on app restart. If I add multiple MediaItem.SubtitleConfigurations, how I can I distinguish these in ExoPlayer.getCurrentTracksInfo().getTrackGroupInfos()?

Format(null, null, null, application/x-subrip, null, -1, null, [-1, -1, -1.0], [-1, -1])
Format(null, null, null, application/x-subrip, null, -1, null, [-1, -1, -1.0], [-1, -1])

MediaItem.SubtitleConfiguration doesn't let me specify any id. Label or user facing name may not be necessarily unique, especially if I allow users loading subtitles. The only difference may be the subtitle content/uri.

In ExoPlayer 2.15.1, I was able to tell a difference from DefaultTrackSelector.SelectionOverride.groupIndex.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.