您可以使用以下命令判断其正在播放: AVPlayer *player = ... if ((player.rate != 0) && (player.error == nil)) { // player is playing }. Swift 3扩展名:
確定! 回上一頁