MPNowPlayingInfoCenter Live icon

a 夏天 提交于 2020-01-06 06:36:00

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!