问题
I am making a radio app and noticed in the iHeartRadio app, along with the Apple Music app (Beats 1) there seems to be a Live icon for live media. I wanted to implement this into my app but have no idea on how to do it. I am using Swift 3 and MPNowPlayingInfoCenter. Any answers would help. (Icon is in the photos below called iHeart Radio LIVE icon.) Thanks!
iHeart Radio LIVE Icon.
iHeart Radio LIVE Icon 2.
回答1:
Swift 3... the properties are in MPNowPlayingInfoCenter.h
MPNowPlayingInfoCenter.default().nowPlayingInfo =
[MPNowPlayingInfoPropertyIsLiveStream: true]
来源:https://stackoverflow.com/questions/45203482/mpnowplayinginfocenter-live-icon