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

CEA 608/708 captions into video.js on Chrome/FireFox #17

Open
tbekiares opened this issue Jan 24, 2017 · 2 comments
Open

CEA 608/708 captions into video.js on Chrome/FireFox #17

tbekiares opened this issue Jan 24, 2017 · 2 comments

Comments

@tbekiares
Copy link

Hi, we are using hls.js+videojs-contrib-hls.js+video.js to playback live HLS content with embedded CEA 608/708 captions.

On Safari (using hls.js+videojs-contrib-hls.js via MSE, not native HLS playback), the CC button correctly appears in the video.js player control bar when the material contains CEA 608/708 captions; selecting "english" from the popup results in the proper rendering of captions.

On FireFox and Chrome, the CC button never appears.

If I try playing the source with the hls.js demo player in FireFox and Chrome (using hls.js directly on top of HTML5 video tag), the CC button shows up, and the captions render, suggesting the video.js part of this is working.

If I understand correctly, hls.js translates CEA 608/708 captions into text tracks which are then rendered by video.js and/or the HTML5 video control.

Is there additional glue code required in the videojs-control-hls.js bridge to make video.js aware of tracks in Chrome/FireFox?

I'm kind of surprised this works in Safari; it suggests that perhaps the HTML5 video element in safari is capable of handling text tracks wherein the video element in Chrome/FireFox isn't?

thoughts?

Thank you!
Ty

@dkkerr
Copy link

dkkerr commented Feb 15, 2017

Reverting to Video.js 5.13 works around the issue, which is due to this change:

videojs/video.js#3798

@tmm1
Copy link
Contributor

tmm1 commented May 5, 2017

On Safari (using hls.js+videojs-contrib-hls.js via MSE, not native HLS playback), the CC button correctly appears in the video.js player control bar when the material contains CEA 608/708 captions; selecting "english" from the popup results in the proper rendering of captions.

This is not the behavior I see with Safari 10 and video.js 5.19.2

In Safari, if I use MSE, I see the CC button with the english option. However, selecting it does nothing and no captions appear.

If I switch to native HLS (using skipContribHlsJs: true), then the CC button appears with an "unknown" option, and selecting it renders captions as expected.

In other browsers, no CC or subtitle button shows at all. If I use #19, then a subtitle button shows with two "unknown" options. Selecting the second makes captions show up, but not accurately.

On those same browsers, using hls.js directly without videojs renders captions as expected.

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

No branches or pull requests

3 participants