如何将 iOS 应用程序与锁屏和底部面板中的播放控件集成?
How to integrate iOS app with playback controls in lock screen and bottom panel?
我想在 "standard" iOS 用户界面中使用 Play/Stop、下一个、上一个按钮、查找器和显示专辑封面,就像许多其他应用程序一样。
我应该使用什么类?
您需要 MPNowPlayingInfoCenter
来设置当前专辑封面。
并且您可以使用 - (void) remoteControlReceivedWithEvent:(UIEvent *)event
来处理播放控件。
Remote Control Events
中对此进行了全部解释
在 Google 上进行简单搜索就会找到这个。
我想在 "standard" iOS 用户界面中使用 Play/Stop、下一个、上一个按钮、查找器和显示专辑封面,就像许多其他应用程序一样。
我应该使用什么类?
您需要 MPNowPlayingInfoCenter
来设置当前专辑封面。
并且您可以使用 - (void) remoteControlReceivedWithEvent:(UIEvent *)event
来处理播放控件。
Remote Control Events
在 Google 上进行简单搜索就会找到这个。