Closed
Bug 882665
Opened 12 years ago
Closed 12 years ago
[webvtt] Add List of Pending Text Tracks to Media Element
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: reyre, Assigned: drexler)
References
()
Details
(Keywords: dev-doc-needed)
Attachments
(2 files, 1 obsolete file)
|
7.82 KB,
patch
|
rillian
:
review+
khuey
:
review+
|
Details | Diff | Splinter Review |
|
6.08 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
This comes into play to determine when the text tracks are ready and the Media Element can dispatch the loadedmetadata event.
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → andrew.quartey
| Assignee | ||
Comment 1•12 years ago
|
||
Changed how the Track element handles the readyState attribute per spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-track-readystate.
Attachment #817528 -
Flags: review?(giles)
| Assignee | ||
Comment 2•12 years ago
|
||
For this part of the spec: "When a media element is created by an HTML parser or XML parser, the user agent must set the element's blocked-on-parser flag to true. When a media element is popped off the stack of open elements of an HTML parser or XML parser, the user agent must honor user preferences for automatic text track selection, populate the list of pending text tracks, and set the element's blocked-on-parser flag to false", I'll merge it with the patch from bug 882668, pending your review comments.
Attachment #817531 -
Flags: review?(giles)
Comment 3•12 years ago
|
||
Comment on attachment 817528 [details] [diff] [review]
Part A: Add readyState attribute to Text Track.
Review of attachment 817528 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me. Can you cover the dom peer aspect, khuey?
Attachment #817528 -
Flags: review?(khuey)
Attachment #817528 -
Flags: review?(giles)
Attachment #817528 -
Flags: review+
Comment 4•12 years ago
|
||
Comment on attachment 817531 [details] [diff] [review]
Part B: Add pending list of text tracks to media element
Review of attachment 817531 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with nits.
Did you implement "Whenever a track element's parent node changes, the user agent must remove the corresponding text track from any list of pending text tracks that it is in."? There should be something in UnbindFromTree, no?
::: content/html/content/public/HTMLMediaElement.h
@@ +1157,5 @@
>
> // List of our attached text track objects.
> nsRefPtr<TextTrackList> mTextTracks;
> +
> + //List of text track objects awating loading.
space between // and the comment text, please.
Attachment #817531 -
Flags: review?(khuey)
Updated•12 years ago
|
Attachment #817531 -
Flags: review?(giles) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
(In reply to Ralph Giles (:rillian) from comment #4)
> Comment on attachment 817531 [details] [diff] [review]
> Part B: Add pending list of text tracks to media element
>
> Review of attachment 817531 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> r=me with nits.
>
> Did you implement "Whenever a track element's parent node changes, the user
> agent must remove the corresponding text track from any list of pending text
> tracks that it is in."? There should be something in UnbindFromTree, no?
Yes. It's taken care of already by: http://mxr.mozilla.org/mozilla-central/source/content/html/content/src/HTMLTrackElement.cpp#298. Also, just realized that i needed to update the HTMLMediaElement constructor and cycle collection bits as well with respect to |mPendingTextTracks|.
(In reply to Andrew Quartey [:drexler] from comment #5)
> Yes. It's taken care of already by:
> http://mxr.mozilla.org/mozilla-central/source/content/html/content/src/
> HTMLTrackElement.cpp#298. Also, just realized that i needed to update the
> HTMLMediaElement constructor and cycle collection bits as well with respect
> to |mPendingTextTracks|.
Should I be waiting for you to do this to review this patch?
Flags: needinfo?(andrew.quartey)
| Assignee | ||
Comment 7•12 years ago
|
||
No need. I updated the patch.
Attachment #817531 -
Attachment is obsolete: true
Attachment #817531 -
Flags: review?(khuey)
Attachment #819795 -
Flags: review?(khuey)
Flags: needinfo?(andrew.quartey)
Attachment #817528 -
Flags: review?(khuey) → review+
Attachment #819795 -
Flags: review?(khuey) → review+
| Assignee | ||
Comment 8•12 years ago
|
||
Rebased and moved over relevants bits to the new TextTrackManager. Try looks green: https://tbpl.mozilla.org/?tree=Try&rev=ee45450fc5e9
| Assignee | ||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2f3d1761b059
https://hg.mozilla.org/mozilla-central/rev/53dd3aa9be7e
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Updated•12 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•