MediaSessionAction Enum

An action of a media session, which the user triggers from the media controls (https://w3c.github.io/mediasession/#enumdef-mediasessionaction).

public enum MediaSessionAction

Fields

NameValueDescription
Play0Plays the media.
Pause1Pauses the media.
SeekBackward2Seeks backward (by MediaSessionActionDetails.SeekOffset seconds, or a default offset).
SeekForward3Seeks forward (by MediaSessionActionDetails.SeekOffset seconds, or a default offset).
PreviousTrack4Moves to the previous track.
NextTrack5Moves to the next track.
SkipAd6Skips the advertisement that is playing.
Stop7Stops the playback.
SeekTo8Seeks to MediaSessionActionDetails.SeekTime.
ToggleMicrophone9Mutes or unmutes the microphone of a call.
ToggleCamera10Turns the camera of a call on or off.
ToggleScreenshare11Starts or stops sharing the screen in a call.
HangUp12Ends a call.
PreviousSlide13Moves to the previous slide of a presentation.
NextSlide14Moves to the next slide of a presentation.
EnterPictureInPicture15Shows the media in a picture-in-picture window.
VoiceActivity16The user agent detected that the user speaks (with a muted microphone, e.g. to unmute it).