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 MediaSessionActionDetailsConstructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Action | Gets the action. |
| EnterPictureInPictureReason | Gets why the media is shown in a picture-in-picture window (MediaSessionAction.EnterPictureInPicture). |
| FastSeek | Gets whether the seek is part of a sequence of seeks (MediaSessionAction.SeekTo), which can be faster and less precise. |
| IsActivating | Gets whether the microphone, the camera or the screen sharing is turned on (the toggle actions). |
| SeekOffset | Gets the time to seek by, in seconds, for MediaSessionAction.SeekBackward and MediaSessionAction.SeekForward (null for the default offset). |
| SeekTime | Gets the time to seek to, in seconds, for MediaSessionAction.SeekTo (required for this action). |
Action
MediaSession.csGets the action.
public required MediaSessionAction Action { get; init; }EnterPictureInPictureReason
MediaSession.csGets why the media is shown in a picture-in-picture window (MediaSessionAction.EnterPictureInPicture).
public MediaSessionEnterPictureInPictureReason? EnterPictureInPictureReason { get; init; }FastSeek
MediaSession.csGets whether the seek is part of a sequence of seeks (MediaSessionAction.SeekTo), which can be faster and less precise.
public bool? FastSeek { get; init; }Property value
See also
IsActivating
MediaSession.csGets whether the microphone, the camera or the screen sharing is turned on (the toggle actions).
public bool? IsActivating { get; init; }Property value
See also
SeekOffset
MediaSession.csGets the time to seek by, in seconds, for MediaSessionAction.SeekBackward and MediaSessionAction.SeekForward (null for the default offset).
public double? SeekOffset { get; init; }Property value
See also
SeekTime
MediaSession.csGets the time to seek to, in seconds, for MediaSessionAction.SeekTo (required for this action).
public double? SeekTime { get; init; }