Skip to content

Ignore default track labels#135

Merged
MattiasBuelens merged 8 commits intomainfrom
bugfix/ignore-default-track-label
Apr 7, 2026
Merged

Ignore default track labels#135
MattiasBuelens merged 8 commits intomainfrom
bugfix/ignore-default-track-label

Conversation

@MattiasBuelens
Copy link
Copy Markdown
Collaborator

@MattiasBuelens MattiasBuelens commented Apr 7, 2026

THEOplayer sometimes sets TextTrack.label or MediaTrack.label to a default value, which can be:

  • The localized language name, e.g. "English"
  • The language code, e.g. "en"
  • For CEA-608 closed captions: the caption channel number, e.g. "CC1"

This PR detects these "default labels" so we can replace them with our own logic. This will also allow THEOplayer to (eventually) stop localizing language names in the SDK itself, and instead delegate that to the UI logic.

This aligns with THEOplayer/android-ui#84, THEOplayer/android-ui#95 and THEOplayer/react-native-theoplayer-ui#108.

@MattiasBuelens MattiasBuelens added the enhancement New feature or request label Apr 7, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 7, 2026

🦋 Changeset detected

Latest commit: 73f7dda

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown

@adadukin-dolby adadukin-dolby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MattiasBuelens MattiasBuelens force-pushed the bugfix/ignore-default-track-label branch from 6556699 to 73f7dda Compare April 7, 2026 13:33
@MattiasBuelens MattiasBuelens merged commit 1b16602 into main Apr 7, 2026
1 check passed
@MattiasBuelens MattiasBuelens deleted the bugfix/ignore-default-track-label branch April 7, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants