Changeset 272589 in webkit
- Timestamp:
- Feb 9, 2021 10:33:24 AM (18 months ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Modules/mediasession/MediaSession.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r272583 r272589 1 2021-02-09 Eric Carlson <eric.carlson@apple.com> 2 3 [Mac] Connect MediaSession with MediaRemote and NowPlaying 4 https://bugs.webkit.org/show_bug.cgi?id=221431 5 <rdar://problem/74000363> 6 7 Unreviewed, fix a layout test assert. 8 9 * Modules/mediasession/MediaSession.cpp: 10 (WebCore::platformCommandForMediaSessionAction): Map "skipad" to "nexttrack". 11 (WebCore::MediaSession::setActionHandler): Don't try to register media session actions 12 for which there is no platform command. 13 1 14 2021-02-09 Youenn Fablet <youenn@apple.com> 2 15 -
trunk/Source/WebCore/Modules/mediasession/MediaSession.cpp
r272445 r272589 59 59 { MediaSessionAction::Stop, PlatformMediaSession::StopCommand }, 60 60 { MediaSessionAction::Seekto, PlatformMediaSession::SeekToPlaybackPositionCommand }, 61 { MediaSessionAction::Skipad, PlatformMediaSession::NextTrackCommand }, 61 62 }; 62 63 }()); … … 117 118 ALWAYS_LOG(LOGIDENTIFIER, "adding ", action); 118 119 m_actionHandlers.set(action, handler); 119 PlatformMediaSessionManager::sharedManager().addSupportedCommand(platformCommandForMediaSessionAction(action)); 120 auto platformCommand = platformCommandForMediaSessionAction(action); 121 if (platformCommand != PlatformMediaSession::NoCommand) 122 PlatformMediaSessionManager::sharedManager().addSupportedCommand(platformCommand); 120 123 } else { 121 124 if (m_actionHandlers.contains(action)) {
Note: See TracChangeset
for help on using the changeset viewer.