how to display "live" in the control center (swift iOS)

811 Views Asked by At

Apple Music displays "live" inside the control center, if you hear Beats 1. Is there any way to display this "live" label and hide the normal audio progress slider?

enter image description here

1

There are 1 best solutions below

0
raphael On

Update this string key MPNowPlayingInfoPropertyIsLiveStream when update nowPlayingInfo dictionnary from MPNowPlayingInfoCenter.

Here's an example: https://github.com/noreasonprojects/ModernAVPlayer/blob/develop/Sources/Core/Services/NowPlayingService.swift