casatwy / CTVideoPlayerView

A video player view for iOS based on AVFoundation, better than PBJVideoPlayer, which can let you to play multiple video at the same time, and provide download, customized operation buttons, customized cover of video
Other
641 stars 81 forks source link

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

Open ugochirico opened 6 years ago

ugochirico commented 6 years ago

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?

casatwy commented 6 years ago

does all the 16 video views share 1 url?

ugochirico commented 6 years ago

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

jagdev7dayz commented 6 years ago

did you get any solution for it?

ugochirico commented 6 years ago

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

bstillitano commented 6 years ago

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