hls.js icon indicating copy to clipboard operation
hls.js copied to clipboard

Captions are not exposed

Open capagrisdesu opened this issue 3 years ago • 1 comments

What do you want to do with Hls.js?

I'd like to find out how hls.js expects to handle 608 captions included in the stream. I can see that WebVTT are added to the subtitlesTrack but I can't select the 608 captions that are also included in the fragments. Hls.js still processes them and I can see the track in the textTrack. Why does not Hls.js exposes 608 captions as an additional subtitle? Many users may not even be aware that hls.js has processed any captions since the API does not facilitate its usage.

I'd like to understand why this approach was taken for captions but not for subtitles. Why are not both exposed either together or separately.

Sample stream https://d2zihajmogu5jn.cloudfront.net/advanced-fmp4/master.m3u8

Thanks

What have you tried so far?

No response

capagrisdesu avatar Jan 21 '22 04:01 capagrisdesu

Please fill out the Bug Report Template as part of your issue, making sure to include:

  • Test stream/page (if possible)
  • Steps to reproduce
  • Expected behavior
  • Actual behavior

If the issue is related to your stream, and you cannot share the stream, please include all the information we would need to reproduce the issue. This includes how to generate a stream that reproduces the issue.

robwalch avatar Jul 15 '22 00:07 robwalch

Closing due to inactivity.

If you'd like to reopen the issue please indicate what is meant by "exposing" captions. Using the formal bug report template to explain the behavior experienced is preferred.

Hls.js still processes them and I can see the track in the textTrack.

Isn't this considered exposed?

robwalch avatar Jan 05 '23 01:01 robwalch