Open Murmur opened 1 year ago
Test dashjs subtitles one-line fix (hbbtv1+hbbtv2 no changes)
Go to _testing: Settings/HbbTV Testingdebug (MSE-EME) menu entry to open an internal testing_debug fork.
This forked dashjs is able to render and switch ttml subtitles(yellow button) on that one of the major hbbtv manufacturer's browser
as well.
https://refapp.hbbtv.org/testing/
Dashjs(MSE) player is using a native
videoElem.textTrack.mode="showing"
to control which of the TTML text tracks are rendered. This works fine on PC browsers and most HbbTV devices. Rendering of the actual ttml texts is using a normalDIV+SPAN
html styling.At least one of the major hbbtv manufacturer's browser always keep
textTrack.mode="hidden"
so no subs are considered visible for rendering.Forking a dashjs sources to use
showing+hidden
values enables subtitle rendering, but this quick test may introduce side effects.DashJS developers comment: We will probably move away from native tracks as they are not properly implemented on all devices.
https://github.com/Dash-Industry-Forum/dash.js/issues/3519 https://github.com/Dash-Industry-Forum/dash.js/issues/4032#issuecomment-1808299114 https://github.com/Dash-Industry-Forum/dash.js/pull/4089
For reference this is how Dashjs
video-caption
container DIV looks like in a DOM tree after rendering a text line.