| Summary: | Styles not working in WebVTT tracks delivered via HLS | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Eran Kornblau <eran.kornblau> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | eric.carlson, jer.noble, pgorszkowski, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Eran Kornblau
2022-03-30 01:38:12 PDT
Hi Eran, I think I found the reason of the problem and I am working on the fix for it. There are missing implementation of the defaults definition of css classes in in file: https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/css/mediaControls.css In mean time you can try some workarounds for your problem: 1. if you can modify the WebVTT files you can add there css classes for missing defaults, e.g.: STYLE ::cue(.magenta) { color: rgba(255,0,255,1); } 2. if you can't modify the WebVTT files but you can modify the css in the HTML site on which your stream is used then you can also do this, e.g.: ::cue(.magenta) { color: rgba(255,0,255,1); } You can specify in such way any classes you would like to use in your WebVTT files. In the meantime I will try to push my fix and cross fingers for positive review:) Pull request: https://github.com/WebKit/WebKit/pull/2218 Committed 252464@main (df2ca59a2ba4): <https://commits.webkit.org/252464@main> Reviewed commits have been landed. Closing PR #2218 and removing active labels. |