Bug 145222 - [Mac] inform media session of all state changes
Summary: [Mac] inform media session of all state changes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-05-20 13:37 PDT by Eric Carlson
Modified: 2015-05-20 14:54 PDT (History)
1 user (show)

See Also:


Attachments
Proposed patch. (2.59 KB, patch)
2015-05-20 14:20 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2015-05-20 13:37:08 PDT
HTMLMediaSession::mediaStateDidChange isn't always called when state changes, so check for changes when a 'webkitplaybacktargetavailabilitychanged' listener is added or removed, and when the media engine changes.
Comment 1 Eric Carlson 2015-05-20 13:47:34 PDT
<rdar://problem/20981137>
Comment 2 Eric Carlson 2015-05-20 14:20:30 PDT
Created attachment 253462 [details]
Proposed patch.
Comment 3 Eric Carlson 2015-05-20 14:54:10 PDT
Committed r184662: https://trac.webkit.org/r184662