neekeetab / CachingPlayerItem

Play and cache media content simultaneously on your iOS device
MIT License
520 stars 89 forks source link

Does this work for .mp4 URLs ?? #2

Closed FaridHaddad closed 7 years ago

neekeetab commented 7 years ago

Well, I haven't tested it with video files but I don't see any reason why it wouldn't work. Keep in mind though, that all cached data is stored completely in RAM and returned to you as NSData object, so I don't recommend playing large video files (>100Mb).

FaridHaddad commented 7 years ago

Okay thank you so much, but this would be cached for how long ? Can it last for a week for ex ?

neekeetab commented 7 years ago

As I said, you will be given NSData object upon successfull download. You are responsible for what to do with it next.

FaridHaddad commented 7 years ago

i know, but i meant the cache will stay for how long ? the data will stay cached for how long ? forever ?

neekeetab commented 7 years ago

CachingPlayerItem doesn't have internal cache. All it does is gives you ability to store downloaded resource by yourself.

FaridHaddad commented 7 years ago

I don't understand .. how it caches ?

neekeetab commented 7 years ago

Technically, it doesn't cache. It only loads the data and gives it to you.