我有MusicPlayerViewController,您可以播放一些本地MP3文件。我需要启用remoteControlReceived对于我的应用程序,请在应用程序之外更改音乐(播放/暂停,下一个播放)。我的问题是仅在应用程序中使用的切换按钮工作MusicPlayerViewController。例如,如果该风险投资驳回或背叛这些行动将不再起作用!。首先,我在MusicPlayerViewController:overridefuncviewDidLoad(){super.viewDidLoad()//ControlMusicNotificationCenter.default.addOb