[webvtt] update cue display immediately after adding or removing cue
Categories
(Core :: Audio/Video: Playback, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
According to the spec [1], we will run TimeMarchesOn
everytime when we add or remove a cue.
However, we won't update the cue display correctly if the media hasn't start, the TimeMarchesOn
will early return here [2]. It's not the spec said, we should update cue display no matter video starts or not.
[1]
https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:time-marches-on-2
https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:time-marches-on-3
Assignee | ||
Comment 1•6 years ago
|
||
According to the spec [1], we will run TimeMarchesOn
everytime when we add or remove a cue. However, the spec didn't mention that we need to abort the algorithm steps if media hasn't started.
We should complete the TimeMarchesOn
in order to update cue display after adding or removing a cue, no matter video starts or not.
[1]
https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:time-marches-on-2
https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:time-marches-on-3
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 3•6 years ago
|
||
According to the spec [1], whenever the media element's readyState is changed back to HAVE_NOTHING
, we have to reset all cues' active flag and update cue display in order to hide them.
It also means that we should not set any cue's flag when media element's readyState is HAVE_NOTHING
, so we should abort the TimeMarchesOn
in this situation.
[1] https://html.spec.whatwg.org/multipage/media.html#text-track-cue-active-flag
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 4•6 years ago
|
||
In patch2, whenever the media element's readyState is changed back to HAVE_NOTHING, we would reset all cues' active flag and update cue display in order to hide them.
It also means that we should not set any cue's flag when media element's readyState is HAVE_NOTHING
, so we should abort the TimeMarchesOn
in this situation.
Updated•6 years ago
|
Assignee | ||
Comment 5•6 years ago
|
||
To change code order in order to follow the spec's steps order.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/667010d35e34
https://hg.mozilla.org/mozilla-central/rev/894e0713977b
https://hg.mozilla.org/mozilla-central/rev/1a3bb9e678fe
https://hg.mozilla.org/mozilla-central/rev/c64974ef15b2
https://hg.mozilla.org/mozilla-central/rev/005917cd9f36
Description
•