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 MediaSessionActionFields
| Name | Value | Description |
|---|---|---|
Play | 0 | Plays the media. |
Pause | 1 | Pauses the media. |
SeekBackward | 2 | Seeks backward (by MediaSessionActionDetails.SeekOffset seconds, or a default offset). |
SeekForward | 3 | Seeks forward (by MediaSessionActionDetails.SeekOffset seconds, or a default offset). |
PreviousTrack | 4 | Moves to the previous track. |
NextTrack | 5 | Moves to the next track. |
SkipAd | 6 | Skips the advertisement that is playing. |
Stop | 7 | Stops the playback. |
SeekTo | 8 | Seeks to MediaSessionActionDetails.SeekTime. |
ToggleMicrophone | 9 | Mutes or unmutes the microphone of a call. |
ToggleCamera | 10 | Turns the camera of a call on or off. |
ToggleScreenshare | 11 | Starts or stops sharing the screen in a call. |
HangUp | 12 | Ends a call. |
PreviousSlide | 13 | Moves to the previous slide of a presentation. |
NextSlide | 14 | Moves to the next slide of a presentation. |
EnterPictureInPicture | 15 | Shows the media in a picture-in-picture window. |
VoiceActivity | 16 | The user agent detected that the user speaks (with a muted microphone, e.g. to unmute it). |