Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit aef4eb1

Browse files
iOS Live Stream Indicator (#353)
* Live Stream indicator implemented for iOS. * README.md updated for iOS Live Stream Indicator.
1 parent 99a623f commit aef4eb1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ MusicControl.setNowPlaying({
108108
colorized: true, // Android 8+ Only - Notification Color extracted from the artwork. Set to false to use the color property instead
109109
date: '1983-01-02T00:00:00Z', // Release Date (RFC 3339) - Android Only
110110
rating: 84, // Android Only (Boolean or Number depending on the type)
111-
notificationIcon: 'my_custom_icon' // Android Only (String), Android Drawable resource name for a custom notification icon
111+
notificationIcon: 'my_custom_icon', // Android Only (String), Android Drawable resource name for a custom notification icon
112+
isLiveStream: true // iOS Only (Boolean), Show or hide Live Indicator instead of seekbar on lock screen for live streams. Default value is false.
112113
})
113114
```
114115

ios/MusicControlManager.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ @interface MusicControlManager ()
3737
@"playbackQueueIndex": MPNowPlayingInfoPropertyPlaybackQueueIndex, \
3838
@"playbackQueueCount": MPNowPlayingInfoPropertyPlaybackQueueCount, \
3939
@"chapterNumber": MPNowPlayingInfoPropertyChapterNumber, \
40-
@"chapterCount": MPNowPlayingInfoPropertyChapterCount \
40+
@"chapterCount": MPNowPlayingInfoPropertyChapterCount, \
41+
@"isLiveStream": MPNowPlayingInfoPropertyIsLiveStream \
4142
}
4243

4344
@implementation MusicControlManager

0 commit comments

Comments
 (0)