标签: ios swift avplayer ios12 avplayerviewcontroller
我在特定版本的iOS中面临AVPlayer音频播放问题
代码:
let player = AVPlayerViewController() player.player = AVPlayer(url: url) self.present(player, animated: true) { player.player?.play() }
此代码在iOS 12.1中可以正常工作,但在iOS 12.1.2中不起作用