MediaPositionState Class
The position of the playback of a media session (https://w3c.github.io/mediasession/#dictdef-mediapositionstate).
public sealed class MediaPositionStateConstructors
| Name | Description |
|---|---|
| MediaPositionState() |
MediaPositionState()
public MediaPositionState()No documentation is available.
Properties
| Name | Description |
|---|---|
| Duration | Gets the duration of the media, in seconds (positive infinity for a live stream). |
| PlaybackRate | Gets the playback rate (negative when the media plays backward). |
| Position | Gets the position of the playback, in seconds. |
Duration
MediaSession.csGets the duration of the media, in seconds (positive infinity for a live stream).
public double? Duration { get; init; }PlaybackRate
MediaSession.csGets the playback rate (negative when the media plays backward).
public double? PlaybackRate { get; init; }Property value
See also
Position
MediaSession.csGets the position of the playback, in seconds.
public double? Position { get; init; }