AudioHardware.cpp:1200:AudioObjectRemovePropertyListener:AudioObjectRemovePropertyListener:没有给定ID 0的对象
在一个快速的项目,我试图启动的AVPlayer,由于某种原因,它导致我的例外说
AudioHardware.cpp:1200:AudioObjectRemovePropertyListener:AudioObjectRemovePropertyListener:没有给定ID为0的对象。
我想这个问题是与我的url。 这是我的代码
func initPlayer() { let url:NSURL = NSURL(string:"https://purelight1-163000.appspot.com/api/user/v2/media/track/60/sample")! self.playerItem = AVPlayerItem(url: url as URL) self.player=AVPlayer(playerItem: self.playerItem!) let playerLayer=AVPlayerLayer(player: self.player!) playerLayer.frame = CGRect(x: 0, y: 0, width: 10, height: 50) // actually this player layer is not visible self.view.layer.addSublayer(playerLayer) }
- AvAudioSession不能在iOS7中工作?
- AVPlayer不显示video
- URL编码问题在Swift ios中
- 从另一个ViewController在swift中调用函数
- 如何在iOS上用MPMoviePlayerController或AVPlayer播放没有文件扩展名的电影文件?
- 隐藏Quicktime Logo / AVPlayerViewControllerContentView图像
- 如何在AVFoundation中循环播放video,而不会有不必要的暂停?
- AVPlayer在播放HLS / AESencryptionvideo之前做出无关紧要的http请求
- AVPlayer seekToTime不能播放正确的位置