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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: reyre, Assigned: drexler)

References

()

Details

(Keywords: dev-doc-needed)

Attachments

(2 files, 1 obsolete file)

This comes into play to determine when the text tracks are ready and the Media Element can dispatch the loadedmetadata event.
Blocks: 882669
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Assignee: nobody → andrew.quartey
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)
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 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 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)
Attachment #817531 - Flags: review?(giles) → review+
(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)
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)
Rebased and moved over relevants bits to the new TextTrackManager. Try looks green: https://tbpl.mozilla.org/?tree=Try&rev=ee45450fc5e9
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Depends on: 931453
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: