Post

Replies

Boosts

Views

Activity

AVPlayerItemVideoOutput's hasNewPixelBuffer always returns false
Trying my application on the iOS 16 beta I noticed that the video player does not work with streaming videos. The problem appears to be in AVPlayerItemVideoOutput's hasNewPixelBuffer. let time = output.itemTime(forHostTime: CACurrentMediaTime()) guard output.hasNewPixelBuffer(forItemTime: time), let pixbuf = output.copyPixelBuffer(forItemTime: time, itemTimeForDisplay: nil) else { return } output.hasNewPixelBuffer(forItemTime: time) always returns false. This only happens on iOS 16 and with streaming videos, with local videos everything works fine.
2
2
675
Sep ’22