0
早
目前,我有以下監聽我的AVPlayerAVPlayer停止斯威夫特3
NotificationCenter.default.addObserver(self, selector: #selector(self.didFinishPlaying), name: NSNotification.Name.AVPlayerItemDidPlayToEndTime, object: video.currentItem)
我想知道如何添加一個監聽器,當AVPlayer過早停止,當我用戶觀看全場景並擊中頂角的成就。
你試過了'AVPlayerItemFailedToPlayToEndTime'嗎? –
https://stackoverflow.com/questions/28671578/how-do-i-intercept-done-button-in-avplayerviewcontroller可能有幫助 –