Changeset 281013 in webkit


Ignore:
Timestamp:
Aug 13, 2021 4:57:19 AM (11 months ago)
Author:
Jean-Yves Avenard
Message:

nexttrack and previoustrack MediaSession handlers not working
https://bugs.webkit.org/show_bug.cgi?id=229068
rdar://80100092

Reviewed by Youenn Fablet.

Map between MediaSession action next/previousTrack and RemoteControlCommandType ones
were inverted.
There is no infrastrure in place to ensure that the right MRMediaRemoteCommand is
used with the MediaRemote backend, which prevents automating the test.

  • Modules/mediasession/MediaSession.cpp:

(WebCore::platformCommandForMediaSessionAction):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r281012 r281013  
     12021-08-13  Jean-Yves Avenard  <jya@apple.com>
     2
     3        nexttrack and previoustrack MediaSession handlers not working
     4        https://bugs.webkit.org/show_bug.cgi?id=229068
     5        rdar://80100092
     6
     7        Reviewed by Youenn Fablet.
     8
     9        Map between MediaSession action next/previousTrack and RemoteControlCommandType ones
     10        were inverted.
     11        There is no infrastrure in place to ensure that the right MRMediaRemoteCommand is
     12        used with the MediaRemote backend, which prevents automating the test.
     13
     14        * Modules/mediasession/MediaSession.cpp:
     15        (WebCore::platformCommandForMediaSessionAction):
     16
    1172021-08-13  Youenn Fablet  <youenn@apple.com>
    218
  • trunk/Source/WebCore/Modules/mediasession/MediaSession.cpp

    r278448 r281013  
    6565            { MediaSessionAction::Seekforward, PlatformMediaSession::SkipForwardCommand },
    6666            { MediaSessionAction::Seekbackward, PlatformMediaSession::SkipBackwardCommand },
    67             { MediaSessionAction::Previoustrack, PlatformMediaSession::NextTrackCommand },
    68             { MediaSessionAction::Nexttrack, PlatformMediaSession::PreviousTrackCommand },
     67            { MediaSessionAction::Previoustrack, PlatformMediaSession::PreviousTrackCommand },
     68            { MediaSessionAction::Nexttrack, PlatformMediaSession::NextTrackCommand },
    6969            { MediaSessionAction::Stop, PlatformMediaSession::StopCommand },
    7070            { MediaSessionAction::Seekto, PlatformMediaSession::SeekToPlaybackPositionCommand },
Note: See TracChangeset for help on using the changeset viewer.