Data object PlaybackState
interface struct PlaybackState
This type provides a cohesive view of the current playback state in a media session.
Fields
playbackStatus
The current status of media playback, indicating whether the media is playing, paused, not playing, or buffering.PlaybackStatus*— Required
playbackSpeed
float — Required
The speed at which media is being played back.
- A value of 1.0 indicates normal playback speed.
- Values greater than 1.0 represent accelerated playback.
- Values between 0.0 and 1.0 (excluding 0.0) indicate slowed playback.
- Values less than 0.0 but greater than -1.0 represent slowed down backwards playback.
- Values less than -1.0 represent accelerated backwards playback.
position
An optional current playback position. The optional nature of this property accomodates scenarios where position information might not be relevant or available, such as in live streaming without the ability to seek.PlaybackPosition?— Optional

