Bug 145222

Summary: [Mac] inform media session of all state changes
Product: WebKit Reporter: Eric Carlson <eric.carlson>
Component: MediaAssignee: Eric Carlson <eric.carlson>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed patch. none

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