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
Additional empty transparent region when playing STPP/TTML subtitles in Chrome #4429
Comments
Reproduced in Chrome, bug not present in Firefox. In Chrome, inspecting the elements, the unwanted area is not part of the DOM tree associated with the rendered TTML captions; it's not actually inspectable at all. I suspect the browser is attempting to render the VTTCue in the shadow DOM, that's intended to be used only for timing purposes to render the TTML. I'm not sure if there's a Chrome-specific way to prevent this: on my system (MacOS 14.3.1) the Chrome settings for captions takes the user to the System Preferences for Captions, but that shouldn't really be relevant - the browser shouldn't be attempting to render these VTTCues at all, so the question is why it is doing so and if it can be prevented. |
@nigelmegitt Do you think this is a bug in Chrome, that should be reported there? |
@tobbee probably, yes. |
I think we discussed this before at some point and there was a CSS based solution to disable the background. I tried something like this for testing but didnt work:
@bbert Do you remember what we did to disable this grey background in Chrome? In any case, as @nigelmegitt pointed out we are using TextTrack to handle the timing for the custom rendering. I would like to move to custom handling completely like we did here: https://reference.dashif.org/dash.js/nightly/samples/captioning/vttjs.html. This should also solve this issue then. |
@jeffcunat I think you're the one who found this trick to disable the grey background, do you remember? you're still my css expert... |
Hi @bbert, as far as I remember it is some vendor specific pseudo class like those mentioned here : video::-webkit-media-text-track-region |
To see the actual pseudo elements that the browser uses you can activate the Developer Tools preference on Elements => Show user agent shadow DOM |
@jeffcunat Thanks for your input. |
Environment
Steps to reproduce
Observed behavior
Synchronised with the TTML subtitles, there is a wide transparent region with rounded corners at the bottom of
the image. This shadow is not present when playing in Safari.
The region is similar to the subtitle region when playing subtitles using wvtt:
https://livesim2.dashif.org/livesim2/timesubswvtt_de/testpic_2s/Manifest.mpd
The text was updated successfully, but these errors were encountered: