-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Parse optional line and position settings in VTT #469
Comments
There's no reason we couldn't parse that. It looks like we're not parsing any of the optional parts of the individual settings. Here's the relevant text from the spec, for reference: A WebVTT line cue setting consists of the following components, in the order given:
A WebVTT position cue setting consists of the following components, in the order given:
https://w3c.github.io/webvtt/#cue-settings However, be forewarned Chrome has not yet implemented the |
A bug on Chrome to implement support for positionAlign and lineAlign attributes: https://bugs.chromium.org/p/chromium/issues/detail?id=633690 |
@OrenMe, the Chromium authors have stated that these attributes were not implemented in Chromium because they didn't have a real use-case. If you're interested to see these attributes implemented in Chrome, please go to the Chromium bug tracker and explain what you need: https://bugs.chromium.org/p/chromium/issues/detail?id=633690#c6 |
Thanks @joeyparrish, my main concern was that the parser was failing and stopping playback more then actually the support of this attributes in the browser. |
I'm having a similar issue using the latest from master but it's because the webVTT tracks we are using have As I understand it, that second draft is the bleeding edge and is not settled. What do you think of adding support for the previous version of the spec since that is the one that I think is currently stable. |
No reason we can't support both for now. |
@sanbornhnewyyz should be good to go now. |
If VTT cue has position alignment, e.g.
position:10%,line-left
thenvtt_text_parser.parseSettings
method is unable to parse the setting string, resulting in an exception.Is there any issue with parsing and applying this kind of vtt cue settings?
See here for full options: https://w3c.github.io/webvtt/#webvtt-cue-position-alignment
The text was updated successfully, but these errors were encountered: