-
Notifications
You must be signed in to change notification settings - Fork 121
Description
I have an app similar to Instagram, which allows for scrolling through infinite videos. The vast majority of the time VideoPlayer + GSPlayer works great, but every once in a while a URL will get into a state where it won't play, and returns this error:
Error Domain=AVFoundationErrorDomain Code=-11829 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media may be damaged., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x600000a5f1b0 {Error Domain=NSOSStatusErrorDomain Code=-12848 "(null)"}}
As a contributor to both repo's I did my due diligence and spent hours trying to track this issue down, but I've been stuck for a few days. I am pretty sure that it's a caching issue, as the only thing that will get the URL to play again is calling VideoCacheManager.cleanAllCache(). After doing this the URL will re-download and play fine, but then eventually a different URL will throw the same error and refuse to play until the cache is cleared again.