我正在制作一个广播应用程序,并注意到在 iHeartRadio 应用程序以及 Apple Music 应用程序 (Beats 1) 中似乎有一个直播媒体的 Live 图标。我想将此实现到我的应用程序中,但不知道该怎么做。我正在使用 Swift 3 和 MPNowPlayingInfoCenter。任何答案都会有所帮助。 (图标在下面的照片中称为 iHeart Radio LIVE 图标。)谢谢!
最佳答案
Swift 3...属性在 MPNowPlayingInfoCenter.h 中
MPNowPlayingInfoCenter.default().nowPlayingInfo =
[MPNowPlayingInfoPropertyIsLiveStream: true]
关于ios - MPNowPlayingInfoCenter 实时图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45203482/