我有一个使用AVPlayer和AVPlayerLayer播放视频的应用程序。在我的应用程序中,我可以在应用程序锁定时播放音频,方法是将我的AVPlayerLayer的player属性设置为nil进入后台:-(void)appEnteredBackgroundNotification:(NSNotification*)notification{[[selfplayerLayer]setPlayer:nil];}但是,当我这样做时,音频会滞后/闪烁约0.5秒。这听起来对最终用户来说真的很糟糕。当应用程序进入前台并且我重新设置player属性时也是如此。我怎样才能避免这个音频信号?作为测试,