init
TypeScriptstatic init(state: MediaPlaybackSnapshot_PlaybackState, defaultPlaybackRate?: number, elapsedTime?: (number) | null, timestamp?: (globalThis.Date) | null): MediaPlaybackSnapshotSwift declarationinit(state: MediaPlaybackSnapshot.PlaybackState, defaultPlaybackRate: Float = 1.0, elapsedTime: TimeInterval? = nil, timestamp: Date? = nil)Creates a playback snapshot with the specified state and timing. - Parameters: - state: The current playback state. - defaultPlaybackRate: The baseline rate the player returns to after temporary rate changes. Defaults to `1.0`. - elapsedTime: The current elapsed time, in seconds. - timestamp: The wall-clock time associated with `elapsedTime`, used to extrapolate the current position. - Precondition: When `state` is `.playing(let rate)`, `rate` must be finite and non-zero. - Precondition: `defaultPlaybackRate` must be finite and greater than `0`.