Closed
Bug 1187214
Opened 9 years ago
Closed 9 years ago
Implement a thread-safe observer to publish events across threads
Categories
(Core :: Audio/Video: Playback, defect)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: jwwang, Assigned: jwwang)
References
Details
Attachments
(2 files)
We will implement the observer pattern with a generic and thread-safe class. It will be used by the MediaQueue to publish push/pop/finish events across threads to its listeners.
Assignee | ||
Comment 1•9 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=23e6a45100a6
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jwwang
Component: Audio/Video → Audio/Video: Playback
Assignee | ||
Comment 2•9 years ago
|
||
Try again. https://treeherder.mozilla.org/#/jobs?repo=try&revision=15fcc853705b
Assignee | ||
Comment 3•9 years ago
|
||
Finally it is green. https://treeherder.mozilla.org/#/jobs?repo=try&revision=992ca7f6ee87
Assignee | ||
Comment 4•9 years ago
|
||
Bug 1187214. Part 1 - Implement MediaEventSource.
Attachment #8642905 -
Flags: review?(kinetik)
Assignee | ||
Comment 5•9 years ago
|
||
Bug 1187214. Part 2 - add test cases for MediaEventSource.
Attachment #8642906 -
Flags: review?(kinetik)
Assignee | ||
Comment 6•9 years ago
|
||
It is worth noting that each listener can be disconnected independently which gives more flexibility than MediaQueue::ClearListeners().
Assignee | ||
Comment 7•9 years ago
|
||
The usage will be in bug 1188257.
Comment 8•9 years ago
|
||
Comment on attachment 8642906 [details] MozReview Request: Bug 1187214. Part 2 - add test cases for MediaEventSource. https://reviewboard.mozilla.org/r/14981/#review13515 Ship It!
Attachment #8642906 -
Flags: review?(kinetik) → review+
Comment 9•9 years ago
|
||
Comment on attachment 8642905 [details] MozReview Request: Bug 1187214. Part 1 - Implement MediaEventSource. https://reviewboard.mozilla.org/r/14979/#review13517 Ship It! ::: dom/media/MediaEventSource.h:364 (Diff revision 1) > + this->NotifyInternal(true /* dummp */); Typo in comment.
Attachment #8642905 -
Flags: review?(kinetik) → review+
Assignee | ||
Comment 10•9 years ago
|
||
Thanks for the review!
Comment 11•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c0a6f89391ee https://hg.mozilla.org/integration/mozilla-inbound/rev/8caf2b95b275
Comment 12•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c0a6f89391ee https://hg.mozilla.org/mozilla-central/rev/8caf2b95b275
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•