Bug 181547 - Only listen to webkitplaybacktargetavailabilitychanged when media controls are visible to the user
Summary: Only listen to webkitplaybacktargetavailabilitychanged when media controls ar...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antoine Quint
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-01-11 11:21 PST by Antoine Quint
Modified: 2018-01-11 12:29 PST (History)
2 users (show)

See Also:


Attachments
Patch (11.83 KB, patch)
2018-01-11 11:25 PST, Antoine Quint
eric.carlson: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 2018-01-11 11:21:27 PST
Listening for "webkitplaybacktargetavailabilitychanged" yields some increased power usage on iOS so we need to only listen to those when the controls are visible to the user.
Comment 1 Antoine Quint 2018-01-11 11:21:37 PST
<rdar://problem/35947650>
Comment 2 Antoine Quint 2018-01-11 11:25:54 PST
Created attachment 331080 [details]
Patch
Comment 3 Antoine Quint 2018-01-11 12:29:32 PST
Committed r226796: <https://trac.webkit.org/changeset/226796>