---
title: MediaPlaybackSnapshot
framework: nowplaying
role: symbol
role_heading: Structure
path: nowplaying/mediaplaybacksnapshot
---

# MediaPlaybackSnapshot

A snapshot of playback state and timing for a Now Playing session.

## Declaration

```swift
struct MediaPlaybackSnapshot
```

## Mentioned in

Publishing media sessions

## Overview

Overview Use a snapshot to describe whether the session is playing, paused, or buffering, along with the current elapsed time and the timestamp at which that elapsed time was captured. The system uses the snapshot to extrapolate elapsed time between updates.

## Topics

### Initializers

- [init(state:defaultPlaybackRate:elapsedTime:timestamp:)](nowplaying/mediaplaybacksnapshot/init(state:defaultplaybackrate:elapsedtime:timestamp:).md)

### Enumerations

- [MediaPlaybackSnapshot.PlaybackState](nowplaying/mediaplaybacksnapshot/playbackstate.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Playback

- [Content types and metadata](nowplaying/content-types-and-metadata.md)
- [Playback commands](nowplaying/playback-commands.md)
