It\'s my first question here, so don\'t be severe.
I\'m playing video from the net using AVPlayer. I output the current frame using AVPlayerItemVideoOutput
Make sure that AVPlayerItem.status
equals AVPlayerItemStatusReadyToPlay
before calling - (void)addOutput:(AVPlayerItemOutput *)output
method on AVPlayerItem
Reference:Renaud's reply on this page
I got the same problem with my implementation. After trying the solutions proposed here, I think I finally found the relable way to do things
The
AVPlayerItemVideoOutput
must be created AFTER theAVPlayerItem
status is ready to play.So
Create player & player item, dispatch queue and display link
Register observer for
AVPlayerItem
status keyOn status
AVPlayerStatusReadyToPlay
, createAVPlayerItemVideoOutput
and start display linkThanks to all for the inspiration
Renaud