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
AVPlayerItemVideoOutputmust be created AFTER theAVPlayerItemstatus is ready to play.So
Create player & player item, dispatch queue and display link
Register observer for
AVPlayerItemstatus keyOn status
AVPlayerStatusReadyToPlay, createAVPlayerItemVideoOutputand start display linkThanks to all for the inspiration
Renaud