RajV RajV - 1 year ago 354
iOS Question

Strange AQDefaultDevice logging

I am playing video from a controller like this:

func playMovie() {
let path = Bundle.main.path(forResource: "xyz", ofType:"mov")
let url = URL(fileURLWithPath: path!)

self.player = AVPlayer(url: url)
let layer: AVPlayerLayer = AVPlayerLayer(player: self.player)

layer.frame = self.view.frame
layer.videoGravity = AVLayerVideoGravityResizeAspectFill


Even after the controller is destroyed and no longer in use, I get this log message every second or so:

AQDefaultDevice (173): skipping input stream 0 0 0x0

I can probably hide these messages by setting
(See). But I am concerned that the movie may be still playing somehow even after the controller is destroyed. Is there anything wrong in the way I am playing the movie. Or do I need to perform any cleanup?

Answer Source

I got this problem when i using AVPlayer Foundation on iOS Simulator (xcode 8.1).However it doesn't log anymore on iOS devices. In my opinion it's a log bug.The player or the layer is destroyed.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download