GithubHelp home page GithubHelp logo

Comments (5)

sugarkawhi avatar sugarkawhi commented on July 23, 2024

边播边缓存设置为true了

from gsyvideoplayer.

CarGuo avatar CarGuo commented on July 23, 2024

是的,缓存逻辑现在和buffering的逻辑是分开的,目前缓存进度的返回还是由ijk那边来决定的,因为这里面涉及到seekto的一些问题,后面需要测试一下看看cache的缓存和buffering之间直接协调进度显示的问题。如果完全缓存下来了,那么就会直接读取本地的了。

from gsyvideoplayer.

sugarkawhi avatar sugarkawhi commented on July 23, 2024

那想获取到IJK的缓存进度有办法吗

from gsyvideoplayer.

CarGuo avatar CarGuo commented on July 23, 2024

IJK是没有缓存的,它是类似缓存了一块,然后抛弃了之前的一块这种,你可以试试ijk的demo的效果,其实就是你播放过的,任意拖动都是要触发重新请求。如果是获取VideoCache的缓存的话:

可以这样获取

Use HttpProxyCacheServer.registerCacheListener(CacheListener listener) method to set listener with callback onCacheAvailable(File cacheFile, String url, int percentsAvailable) to be aware of caching progress. Do not forget to to unsubscribe listener with help of HttpProxyCacheServer.unregisterCacheListener(CacheListener listener) method to avoid memory leaks.

Use HttpProxyCacheServer.isCached(String url) method to check was url's content fully cached to file or not.

from gsyvideoplayer.

CarGuo avatar CarGuo commented on July 23, 2024

更新了1.4.4,可以看看,修改了关于percent 的

from gsyvideoplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.