[Webkit-unassigned] [Bug 147633] Media Session: push paused state to the media session focus manager instead of polling

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 5 16:42:26 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=147633

--- Comment #7 from Matt Rajca <mrajca at apple.com> ---
(In reply to comment #6)
> Comment on attachment 258291 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=258291&action=review
> 
> > Source/WebCore/dom/Document.h:1263
> > +    WEBCORE_EXPORT void updateIsPlayingMedia(uint64_t);
> 
> How does this work if more than one media element is playing?

Every time any media element changes its 'playing' state, that information propagates to the UI process. The UI process keeps track of the currently focused media element belonging to a "Content" Media Session (there can only be one at a time). If the element IDs match, we can cache the 'playing' state as the focused media element's playing state.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150805/7523c224/attachment.html>


More information about the webkit-unassigned mailing list