Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ interface PlaybackNotificationInfo {
state?: 'playing' | 'paused';

skipInterval?: number;

// IOS only: shows the system "Live" indicator on the lock screen and CarPlay Now Playing UI
isLiveStream?: boolean;
}
```
</details>
Expand All @@ -183,6 +186,12 @@ interface PlaybackNotificationInfo {
- Pass `skipInterval` in the same `show()` call (or earlier) before enabling skip controls, so the interval is applied when controls are first set up.
- On Android, skip action icons show `15` when `skipInterval` is `15` (default); otherwise generic skip icons without a number are used.

#### `isLiveStream`

- Marks the current item as a live stream (e.g. live radio) rather than a track with a known duration.
- iOS only: maps to `MPNowPlayingInfoPropertyIsLiveStream`, which drives the "Live" label shown on the lock screen and CarPlay Now Playing UI.
- No effect on Android — there is no equivalent system-level indicator to map it to.

### `PlaybackControlName`

<details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
@"duration" : MPMediaItemPropertyPlaybackDuration, \
@"elapsedTime" : MPNowPlayingInfoPropertyElapsedPlaybackTime, \
@"speed" : MPNowPlayingInfoPropertyPlaybackRate, \
@"artwork" : MPMediaItemPropertyArtwork \
@"artwork" : MPMediaItemPropertyArtwork, \
@"isLiveStream" : MPNowPlayingInfoPropertyIsLiveStream \
}

// Must match PlaybackNotification.DEFAULT_SKIP_INTERVAL_SECONDS on Android.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ export interface PlaybackNotificationInfo {
state?: 'playing' | 'paused';
/** Skip interval in seconds for skipForward/skipBackward. Default: 15 */
skipInterval?: number;
/**
* Marks the current item as a live stream (e.g. live radio) rather than a
* track with a known duration. iOS-only: maps to
* `MPNowPlayingInfoPropertyIsLiveStream`, which drives the "Live" label the
* system shows on the lock screen and CarPlay Now Playing UI. Has no effect
* on Android, which has no equivalent system indicator.
*/
isLiveStream?: boolean;
}

/// Available playback control actions.
Expand Down
Loading