Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ensure native segment metadata track has mode hidden #1550

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mister-ben
Copy link
Contributor

Description

When using native text tracks, the segment metadata track was being created with mode disabled. This meant it wouldn't trigger cuechange events, but also Chrome (at least) does not add cues to disabled tracks. This change makes the track start out hidden.

Specific Changes proposed

  • Set mode to hidden
  • Adds a simple test for track mode. Testing whether the cues are added isn't simple as addSegmentMetadataCue_ is made noop in the tests.
  • Adds native text tracks as an option to the text page for manual verification.

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
  • Reviewed by Two Core Contributors

Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@9f1c4ad). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1550   +/-   ##
=======================================
  Coverage        ?   84.06%           
=======================================
  Files           ?       43           
  Lines           ?    11628           
  Branches        ?     2604           
=======================================
  Hits            ?     9775           
  Misses          ?     1853           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mister-ben mister-ben changed the title fix: Ensure native segment metadata track has mdoe hidden fix: Ensure native segment metadata track has mode hidden Oct 30, 2024
Copy link
Contributor

@phloxic phloxic left a comment

Choose a reason for hiding this comment

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

typo in commit message: s/mdoe hidden/mode hidden/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants