MPNowPlayingInfoCenter Live 图标 [英] MPNowPlayingInfoCenter Live icon

查看:38
本文介绍了MPNowPlayingInfoCenter Live 图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个广播应用程序,并注意到在 iHeartRadio 应用程序以及 Apple Music 应用程序 (Beats 1) 中似乎有一个用于实时媒体的 Live 图标.我想在我的应用程序中实现它,但不知道如何去做.我正在使用 Swift 3 和 MPNowPlayingInfoCenter.任何答案都会有所帮助.(图标在下面的照片中称为 iHeart Radio LIVE 图标.)谢谢!

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 电台直播图标.

iHeart Radio LIVE Icon 2.

推荐答案

Swift 3... 属性在 MPNowPlayingInfoCenter.h 中

Swift 3... the properties are in MPNowPlayingInfoCenter.h

MPNowPlayingInfoCenter.default().nowPlayingInfo =[MPNowPlayingInfoPropertyIsLiveStream: true]

这篇关于MPNowPlayingInfoCenter Live 图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆