Dash-Industry-Forum / dash.js

A reference client implementation for the playback of MPEG DASH via Javascript and compliant browsers.
http://reference.dashif.org/dash.js/nightly/samples/dash-if-reference-player/index.html
Other
5.09k stars 1.67k forks source link

What's the expected behavior when settings.get().streaming.text.defaultEnabled is true? #4531

Open riksagar opened 1 month ago

riksagar commented 1 month ago

Hi,

I'm dealing with a multiperiod stream. The main content has a text track, but the ad breaks don't have a text track. This is a SSAI live stream.

I notice, when we come out of ad break, that the captions automatically enable themselves.

If I've manually turned off captions before the ad break, they will still reenable themselves after the ad break.

I notice that, in the TextController.js, it checks to see if a track was already current, but doesn't check to see if the track was showing.

Should that logic in _onTextTracksAdded() be checking the showing/hidden state of currentTrack?

I notice allTracksAreDisabled is always cleared and lastEnabledIndex is always set to current index (even if it was previously -1

riksagar commented 1 month ago

Oh, the captions track in question is a 608/708 track. Not sure if that'd make any difference.

I think this call to setTextTrack() is what re-enables the captions.

dsilhavy commented 1 month ago

@riksagar Thanks, can you provide your content to reproduce the issue?

riksagar commented 1 month ago

Hi Daniel, If you're in the US you can see the behavior on some of our live production channels. For example: this one.

Not sure if our web player is accessible from Germany though. What do you want to look at? Did you just want to look at the MPDs or are you trying to repro the behavior?

riksagar commented 1 month ago

As a work around, I'm experimenting with setting the following before starting playback: dashPlayer.updateSettings({ streaming: { text: { defaultEnabled: false } } });

This fixes (hides?) the problem. I've not seen any side effects.

dsilhavy commented 1 month ago

Thanks @riksagar I cant access the link you pasted above. I would like to reproduce the issue in one of the next milestones. I will check if we have similar testcontent in our testvector database.

riksagar commented 1 month ago

Hi Daniel,

We're working on a stream that's not geolocked, so you can try repro.

Regards, Rik.

dsilhavy commented 1 month ago

Hi Daniel,

We're working on a stream that's not geolocked, so you can try repro.

Regards, Rik.

Perfect, thank you!