---
title: "DropletMediaPlayerState, DroppyKit"
description: "Live state published by a MediaPlayerIntegrating droplet."
canonical: "https://getdroppy.app/docs/droppykit/api/droplet-media-player-state"
last-updated: "2026-09-09"
---

# DropletMediaPlayerState

Live state published by a MediaPlayerIntegrating droplet.

`struct DropletMediaPlayerState`

## Initializers

### init(isFavorite:isShuffleEnabled:repeatMode:queue:isLoadingQueue:queueStatusMessage:artworkURL:nowPlaying:)

`init(isFavorite: Bool = false, isShuffleEnabled: Bool = false, repeatMode: DropletMediaRepeatMode = .off, queue: [DropletMediaQueueItem] = [], isLoadingQueue: Bool = false, queueStatusMessage: String? = nil, artworkURL: URL? = nil, nowPlaying: DropletMediaNowPlaying? = nil)`

Creates a media player state snapshot.

## Type properties

### empty

`static let empty: DropletMediaPlayerState`

Empty initial state with no favorites, shuffle off, repeat off, and an empty queue.

## Properties

### artworkURL

`let artworkURL: URL?`

Optional high-resolution artwork URL for the currently playing track (`https`, `file`, or loopback `http`).

### isFavorite

`let isFavorite: Bool`

Whether the current track is marked as favorite/liked.

### isLoadingQueue

`let isLoadingQueue: Bool`

Whether the droplet is currently fetching or refreshing the queue.

### isShuffleEnabled

`let isShuffleEnabled: Bool`

Whether shuffle is enabled in the player.

### nowPlaying

`let nowPlaying: DropletMediaNowPlaying?`

Optional now-playing snapshot for droplets declaring [`nowPlayingFeed`](https://getdroppy.app/docs/droppykit/api/droplet-media-capabilities#now-playing-feed).

### queue

`let queue: [DropletMediaQueueItem]`

Playing Next queue rows (the host retains up to 25 rows).

### queueStatusMessage

`let queueStatusMessage: String?`

Optional user-facing status or error message shown inside the queue panel when no rows are available.

### repeatMode

`let repeatMode: DropletMediaRepeatMode`

Current repeat mode in the player.
