0

I am getting alert message "Cannot Decode. Decoder required for this media is busy." when trying to play a video file fifth time in application. After searching I found AVPlayerItem fails with AVStatusFailed and error code "Cannot Decode", which says only 4 players canbe initialized in iOS. But I am playing only one player at a time. I am releasing player object and recreating for another play and it displays alert on fifth play.

Community
  • 1
  • 1
Hitesh
  • 61
  • 3
  • 7

1 Answers1

1

Set to nil your player in viewWillDisappear. or looks for AVQueuePlayer Class Reference.

grogers
  • 85
  • 1
  • 8