CTVideoPlayerView icon indicating copy to clipboard operation
CTVideoPlayerView copied to clipboard

More videos in a single view raises error -11839 "Cannot Decode"

Open ugochirico opened this issue 7 years ago • 5 comments

I added several CTVideoViews in a single view controller. After about 16 CTVideoViews (on iPhone 7 with iOS 11.2.5) I got the following error:

Error Domain=AVFoundationErrorDomain Code=-11839 "Cannot Decode" UserInfo={NSLocalizedDescription=Cannot Decode, NSUnderlyingError=0x1c1859fb0 {Error Domain=NSOSStatusErrorDomain Code=-12913 "(null)"}, NSLocalizedRecoverySuggestion=Stop any other actions that decode media and try again., NSLocalizedFailureReason=The decoder required for this media is busy.}

Any suggestions?

ugochirico avatar Feb 06 '18 14:02 ugochirico

does all the 16 video views share 1 url?

casatwy avatar Feb 07 '18 03:02 casatwy

@casatwy no, the urls are all different. Is there a way to avoid from this error?

ugochirico avatar Feb 07 '18 15:02 ugochirico

did you get any solution for it?

jagdev7dayz avatar May 21 '18 06:05 jagdev7dayz

No. You cannot load more then 16 videos. The only way is to implement an algo that manages the videos considering such limitation.

ugochirico avatar May 21 '18 07:05 ugochirico

@ugochirico do you have an example of how you solved this?

bstillitano avatar Oct 01 '18 12:10 bstillitano