[webvtt] Browser doesn't render WebVTT embedded Styles used by Voice/Class spans
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
People
(Reporter: rmikhael, Assigned: alwu)
Details
Attachments
(4 files)
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Comment 2•6 years ago
|
||
Reporter | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Hi, Rafik,
Do you mind to provide a link for us in order to check this problem?
Thank you!
Reporter | ||
Comment 6•6 years ago
|
||
Hi Alastor,
Unfortunately our testing urls are secured, so won't work for you. Besides, I have styles disabled in production.
But you can serve attached file locally very easy. I am sure you have your own way to do the same:
- Install http-server (e.g. https://www.youtube.com/watch?v=vnPemSnnJYY)
- Put any sample video .mp4, the attached .vtt file above, and any sample favicon.ico in a directory.
- Create a new index.html file in the same directory. Fill it as below (modify .mp4 name).
- cd to that directory, run "http-server". This will start a local server on port 8080.
<!DOCTYPE html>
<html>
<head>
<title>Rafik's Test Video Element</title>
<link rel="shortcut icon" href="">
</head>
<body>
<video id="video" width=“1920” height="1080" controls>
<source src="3319786.mp4" type="video/mp4">
<track label="English" kind="subtitles" srclang="en" src="WebVTTshort.vtt" default>
</video>
</body>
</html>
- install https://addons.mozilla.org/en-US/firefox/addon/native_hls_playback/ on firefox
- open firefox and hit localhost:/8080
You will see how the browser renders the WebVTT with embedded styles (for the first 6 seconds). Totally ignores all the voice or class spans, and just applies whatever the default CSS used by the player (native_hls_playback in this case). No colors, shadows, outline or background colors, font family or font-size honored.
The method above uses one full .vtt file as a subtitle track. In our test environment we actually receive an HLS index.m3u8 detailing the URL for each segmented .vtt (example below), and receive segmented WebVTT files with the used styles in that segment defined. And we still see the same exact rendering as the method above.
example index.m3u8:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-ALLOW-CACHE:YES
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:5.000,
https://a-vrv.akamaized.net/evs/1acf83d03bf9161bead529f454bbc099/assets/43e5c7085dc24b1515622513a15fedc6_timed_text_subtitle_en-US.srt/seg-1.vtt?t=st=1551465487~exp=1551551887~acl=/evs/1acf83d03bf9161bead529f454bbc099/assets/43e5c7085dc24b1515622513a15fedc6_timed_text_subtitle_en-US.srt/*~hmac=8131d58fd03a3d52b87c3882437a6733672e6520dad6f6f7803ae59f39a128e3
#EXTINF:5.000,
https://a-vrv.akamaized.net/evs/1acf83d03bf9161bead529f454bbc099/assets/43e5c7085dc24b1515622513a15fedc6_timed_text_subtitle_en-US.srt/seg-2.vtt?t=st=1551465487~exp=1551551887~acl=/evs/1acf83d03bf9161bead529f454bbc099/assets/43e5c7085dc24b1515622513a15fedc6_timed_text_subtitle_en-US.srt/*~hmac=8131d58fd03a3d52b87c3882437a6733672e6520dad6f6f7803ae59f39a128e3
#EXTINF:10.000,
https://a-vrv.akamaized.net/evs/1acf83d03bf9161bead529f454bbc099/assets/43e5c7085dc24b1515622513a15fedc6_timed_text_subtitle_en-US.srt/seg-3.vtt?t=st=1551465487~exp=1551551887~acl=/evs/1acf83d03bf9161bead529f454bbc099/assets/43e5c7085dc24b1515622513a15fedc6_timed_text_subtitle_en-US.srt/*~hmac=8131d58fd03a3d52b87c3882437a6733672e6520dad6f6f7803ae59f39a128e3
#EXT-X-ENDLIST
Reporter | ||
Comment 7•6 years ago
|
||
localhost:8080
Assignee | ||
Comment 8•6 years ago
|
||
Thank you for your detailed information, assign this bug to myself and will check it later.
Assignee | ||
Comment 9•6 years ago
|
||
We haven't implement the ::cue()
, so not just voice or span, all selectors are not working currently.
Description
•