MediaSessionActionDetails Class

An action of a media session and its parameters, given to the action handler (https://w3c.github.io/mediasession/#dictdef-mediasessionactiondetails).

public sealed class MediaSessionActionDetails

Constructors

NameDescription
MediaSessionActionDetails()

MediaSessionActionDetails()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public MediaSessionActionDetails()

No documentation is available.

Properties

NameDescription
ActionGets the action.
EnterPictureInPictureReasonGets why the media is shown in a picture-in-picture window (MediaSessionAction.EnterPictureInPicture).
FastSeekGets whether the seek is part of a sequence of seeks (MediaSessionAction.SeekTo), which can be faster and less precise.
IsActivatingGets whether the microphone, the camera or the screen sharing is turned on (the toggle actions).
SeekOffsetGets the time to seek by, in seconds, for MediaSessionAction.SeekBackward and MediaSessionAction.SeekForward (null for the default offset).
SeekTimeGets the time to seek to, in seconds, for MediaSessionAction.SeekTo (required for this action).

Gets the action.

public required MediaSessionAction Action { get; init; }

EnterPictureInPictureReason

MediaSession.cs

Gets whether the seek is part of a sequence of seeks (MediaSessionAction.SeekTo), which can be faster and less precise.

public bool? FastSeek { get; init; }

IsActivating

MediaSession.cs

Gets whether the microphone, the camera or the screen sharing is turned on (the toggle actions).

public bool? IsActivating { get; init; }

SeekOffset

MediaSession.cs

Gets the time to seek by, in seconds, for MediaSessionAction.SeekBackward and MediaSessionAction.SeekForward (null for the default offset).

public double? SeekOffset { get; init; }

Gets the time to seek to, in seconds, for MediaSessionAction.SeekTo (required for this action).

public double? SeekTime { get; init; }