Open webhibegit opened 2 months ago
See doc: https://react-native-video.github.io/react-native-video/other/caching
Currently, caching is only supported for URLs that end in a .mp4, .m4v, or .mov extension
Let's move this request to feature.
Can I play the local cache directory .m3u8
file? Because I am trying to build my own caching system for that.
@webhibegit I am having the same issue with react-native-track-player. Apparently, local m3u8
files are broken. I asked our backend dev to provide both mp3
and m3u8
versions of the media and use mp3
for saving locally.
The issue here is that we currently have to easy way (or no implementation) to download chunks from the server. According to your trace, only the m3u is downloaded, but m3u is a master playlist which is also referencing sub files on the server (the chunks). So there is a real development to do in order to implement this behavior. That said we can have 2 ways to implement the feature.
Can we expect this feature (caching m3u8) to be introduced in near feature? I think the community calls for it :D
Bump. We need it!
I think this is something like this should be implemented: https://medium.com/google-exoplayer/downloading-adaptive-streams-37191f9776e but I think it will break ABR.
3 weeks have passed. Is there any chance this will be added in June?
Version
v6 (Beta)
What platforms are you having the problem on?
Android
Architecture
Old architecture
What happened?
Hi, I am trying to build a video caching system like Instagram or YouTube reels. Now I facing a problem. When I play my HLS video that is on the cloud is playing fine but when I try to play them from my cache directory then it gives me an error
{"error": {"extra": -2147483648, "what": 1}}
.Reproduction
repository link
Reproduction
Here I download my HLS video and its corresponding files to the cache directory
It downloads all files properly. And I check that playlist.m3u8 exists or not
and it gives
true
. So mym3u8
file exists.Now in the
<Video/>
sectionhere it gives error
{"error": {"extra": -2147483648, "what": 1}}
. But When I change the URI tocloud URL
or to its corresponding.ts
file like/storage/emulated/0/Android/data/com.charub/cache/videos/video_1712660382226/high0.ts
then it works fine. I won't understand what is happening.Please help me out.