Skip to content
New issue

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

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

Already on GitHub? # to your account

Regression starting with 1.2.1 -- Captions no longer show up #5292

Closed
3 of 5 tasks
dstreet26 opened this issue Mar 14, 2023 · 4 comments · Fixed by #5297
Closed
3 of 5 tasks

Regression starting with 1.2.1 -- Captions no longer show up #5292

dstreet26 opened this issue Mar 14, 2023 · 4 comments · Fixed by #5297
Labels
Bug Confirmed Bug report confirmed or reproduced. Regression A bug introduced in a recent release
Milestone

Comments

@dstreet26
Copy link
Contributor

dstreet26 commented Mar 14, 2023

What version of Hls.js are you using?

1.1.5 but we want to upgrade to 1.3.4

What browser (including version) are you using?

Chrome 110

What OS (including version) are you using?

Windows 10

Test stream

https://kids.video.cdn.pbs.org/videos/wild-kratts/4d11149b-b667-4cd9-8d8f-4700749cf24f/271221/hd-1080p-mezzanine-16x9/5fd29d63_wilk303-ep-r_m1080-16x9-hls-400-2500k_421.m3u8

Configuration

{}

Additional player setup steps

No response

Checklist

Steps to reproduce

  1. Run permalink demo for v.1.2.0
  2. Turn on "English" captions

  1. Run permalink demo for v.1.2.1
  2. Turn on "English" captions

v1.2.0
https://hls-js-bbdf933d-da48-407d-aaf3-68cc4ee058e7.netlify.app/demo/?src=https%3A%2F%2Fkids.video.cdn.pbs.org%2Fvideos%2Fwild-kratts%2F4d11149b-b667-4cd9-8d8f-4700749cf24f%2F271221%2Fhd-1080p-mezzanine-16x9%2F5fd29d63_wilk303-ep-r_m1080-16x9-hls-400-2500k_421.m3u8&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsInN0b3BPblN0YWxsIjpmYWxzZSwiZHVtcGZNUDQiOmZhbHNlLCJsZXZlbENhcHBpbmciOi0xLCJsaW1pdE1ldHJpY3MiOi0xfQ==

v1.2.1
https://hls-js-c682795c-032a-4c39-9374-225b776c04f6.netlify.app/demo/?src=https%3A%2F%2Fkids.video.cdn.pbs.org%2Fvideos%2Fwild-kratts%2F4d11149b-b667-4cd9-8d8f-4700749cf24f%2F271221%2Fhd-1080p-mezzanine-16x9%2F5fd29d63_wilk303-ep-r_m1080-16x9-hls-400-2500k_421.m3u8&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsInN0b3BPblN0YWxsIjpmYWxzZSwiZHVtcGZNUDQiOmZhbHNlLCJsZXZlbENhcHBpbmciOi0xLCJsaW1pdE1ldHJpY3MiOi0xfQ==

Expected behaviour

Captions show up on screen and are available on the video's textTracks

What actually happened?

Captions are not showing up and are not accessible on the video element :(

I bisected it to this commit: 9e1a3aa

Our manifest does contain: CHARACTERISTICS="public.accessibility.describes-music-and-sound,public.accessibility.transcribes-spoken-dialog" for what it's worth.

Console output

N/A

Chrome media internals output

No response

@dstreet26 dstreet26 added Bug Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels Mar 14, 2023
@mtoczko mtoczko added Confirmed Bug report confirmed or reproduced. Regression A bug introduced in a recent release and removed Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels Mar 14, 2023
@mtoczko
Copy link
Collaborator

mtoczko commented Mar 14, 2023

Hi @dstreet26
Here is the bug:

if (track.kind === 'subtitles' && track.label) {

    if ((track.kind === 'subtitles' || track.kind === 'captions' ) && track.label) {

@robwalch
Copy link
Collaborator

Here is the bug:

Thanks for the catch. Care to submit the fix as a PR?

It looks like the regression was introduced with #4850 where the track type is set to "captions" or "subtitles" based on the HLS CHARACTERISTICS attribute value in order to match TextTrack behavior with native HLS playback in Safari.

@robwalch robwalch added this to the 1.3.5 milestone Mar 15, 2023
@dstreet26
Copy link
Contributor Author

I implemented that change on master and it worked great. Thanks for the quick response!

I can make a PR for the fix that mtoczko posted.

@dstreet26
Copy link
Contributor Author

@robwalch PR is up! Please let me know if there's anything else needed for the PR (like if I need to add reviewers or if tests are required for this fix)

robwalch pushed a commit that referenced this issue Mar 17, 2023
…ns (#5297)

* fix for #5292 - push to filterSubtitleTracks output if kind is captions

* adding "captions" to all subtitle-track-controller tests
robwalch pushed a commit that referenced this issue Mar 17, 2023
robwalch pushed a commit that referenced this issue Mar 17, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Bug Confirmed Bug report confirmed or reproduced. Regression A bug introduced in a recent release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants