nguyenvanphituoc / react-native-cache-video

Support cache video while playing with react-native-video
MIT License
17 stars 3 forks source link

Preload list of urls #3

Open sn4f opened 9 months ago

sn4f commented 9 months ago

Hello, first of all, I would like to thank you for the library. Is there a planned feature that would allow loading a list of movies before playback? The current hook is based on a single URL, but I need to load, for example, 4 movies into the cache. My second question concerns the reuse of the hook on the same URL that I loaded earlier. Is there a delay between each call to setVideoPlayUrlBy, and can it be somehow changed?

nguyenvanphituoc commented 9 months ago

Thanks for supporting me and great question.

enfipy commented 9 months ago

Hey @nguyenvanphituoc, absolutely awesome library!

About caching m3u8 videos - is it possible to not use multiple video sessions but just download the first one or two .ts files if we know the name of it?

nguyenvanphituoc commented 9 months ago

Hey @nguyenvanphituoc, absolutely awesome library!

About caching m3u8 videos - is it possible to not use multiple video sessions but just download the first one or two .ts files if we know the name of it?

Interesting question.