JeffMony / JeffVideoCache

Better than AndroidVideoCache, it supports M3U8 and MP4
Apache License 2.0
290 stars 65 forks source link

请问可以支持只缓存部分数据吗? #13

Open muqidi opened 2 years ago

muqidi commented 2 years ago

缓存全部视频数据的话,占用空间比较大。想只缓存前 3 秒数据,请问需要怎么做呢?

JeffMony commented 2 years ago

这是一个纯网络的库,只能控制缓存的size。

saptan commented 2 years ago

@JeffMony Hi! Thanks for your library.

Please tell me how to make exoplayer start playing the video before it loads it completely? Now i need to wait 10-15 seconds before the video starts playing. In the danikula/AndroidVideoCache library, I managed to ensure that the video starts in 1-2 seconds, without waiting for the video to be loaded at 100 percent

JeffMony commented 2 years ago

@JeffMony Hi! Thanks for your library.

Please tell me how to make exoplayer start playing the video before it loads it completely? Now i need to wait 10-15 seconds before the video starts playing. In the danikula/AndroidVideoCache library, I managed to ensure that the video starts in 1-2 seconds, without waiting for the video to be loaded at 100 percent

Okay, "Now i need to wait 10-15 seconds before the video starts playing." Could you send the loading video url to me ?

saptan commented 2 years ago

@JeffMony Thanks for the quick answer to my question This video https://bfb453d0-8fa3-44b8-b198-a30b75e3e759.selcdn.net/00/a1/85/H5TZgVc8TNmBdKjcDgYAj.mp4

saptan commented 2 years ago

The problem is that ExoPlayer starts playback only after it downloads the entire file, and it works very strangely. I use exoPlayerImpl for sample sdk

muqidi commented 2 years ago

这是一个纯网络的库,只能控制缓存的size。

请求如何控制单素材缓存的 size 呢?在 builder 中只看到有设置整体的缓存空间大小。