Closed
Bug 983207
Opened 11 years ago
Closed 11 years ago
[webvtt] Tracks created from TrackElements should have their mode set to 'disabled' by default
Categories
(Core :: Audio/Video, defect)
Tracking
()
VERIFIED
FIXED
mozilla31
People
(Reporter: reyre, Assigned: reyre)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file, 1 obsolete file)
See http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#sourcing-out-of-band-text-tracks, specifically:
"The text track readiness state is initially not loaded, and the text track mode is initially disabled."
Assignee | ||
Comment 1•11 years ago
|
||
Comment 2•11 years ago
|
||
Comment on attachment 8390634 [details] [diff] [review]
v1: Tracks created through a TrackElement should have a default mode of 'disabled' r=cpearce
Review of attachment 8390634 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good.
::: content/media/TextTrack.cpp
@@ +36,4 @@
> SetDefaultSettings();
> SetIsDOMBinding();
> }
>
Does the default constructor need to initialize aMode, aLabel, and aLanguage? If so, please add this before landing. If not, please say so. :)
Attachment #8390634 -
Flags: review?(cpearce) → review+
Comment 3•11 years ago
|
||
(In reply to Chris Pearce (:cpearce) from comment #2)
> Comment on attachment 8390634 [details] [diff] [review]
> Does the default constructor need to initialize aMode, aLabel, and
> aLanguage? If so, please add this before landing. If not, please say so. :)
I guess not, given that you remove this in a later patch. ;)
Assignee | ||
Comment 4•11 years ago
|
||
Thanks for review Chris.
(In reply to Chris Pearce (:cpearce) from comment #3)
> I guess not, given that you remove this in a later patch. ;)
Yeah :-). We're also using the SetDefaultSettings() function in this patch to set the default mode, label, and language. I get rid of it later though, like you noticed.
Assignee | ||
Comment 5•11 years ago
|
||
Try looks green: https://tbpl.mozilla.org/?tree=Try&rev=13780e4ef5aa
Keywords: leave-open
Assignee | ||
Comment 6•11 years ago
|
||
Had to update the other TextTrack tests to have their TextTrack mode set to 'hidden' where applicable so that when they call textTrack.cues the cue lists are returned.
Carrying forward r=cpearce.
This is the patch that I pushed to the try server. Just didn't post them on the bug in order.
Attachment #8390634 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Keywords: leave-open → checkin-needed
Comment 7•11 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Comment 9•11 years ago
|
||
On Windows 7 64-bit and Mac OS X 10.8.5 with a HMTL page which contains:
<video src="http://people.mozilla.org/~rgiles/2013/demo.webm" controls >
<track src="sample.vtt" kind="subtitles" srclang="en" label="English" />
</video>
and the corresponding sample.vtt file saved in the same folder, the subtitles are not displayed. I'm inclined to say it is the expected result based on this fix. Any thoughts?
Flags: needinfo?(rick.eyre)
Assignee | ||
Comment 10•11 years ago
|
||
Correct. If a 'default' attribute is added to the track tag it will show by default if it is the first track to have it.
Flags: needinfo?(rick.eyre)
Assignee | ||
Comment 11•11 years ago
|
||
Without that default attribute though they do not display by default.
Comment 12•11 years ago
|
||
On latest Aurora (Build ID: 20140604004003), I've encountered the same result as in comment 9 - without the 'default' attribute, the tracks are not displayed.
Verified on:
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•