Giter VIP home page Giter VIP logo

Comments (5)

izderadicka avatar izderadicka commented on June 11, 2024

Android client contains such functionality, audioserver also allows to download full folder as .tar archive.

Caching in web client is quite complex problem - while there is a Cache API in modern browsers, HTML media player is not working with that, it uses it's own caching. It'll then probably require to use Web Audio API to use cached content - I think it's quite complex task in browser.
For sure it'll require complete rebuild of web client, which is something I'll not do in near future (probably never). Web client was created as simple front end to start with. More complex web client is of course possible and probably even desirable, but now lacking time and interest to do that.

from audioserve.

KodeStar avatar KodeStar commented on June 11, 2024

The front end I'm working on allows you to cache all the files.

Currently the way it works is on the overview page there is a download button, if it's pressed all the files are downloaded to Cache API. If the app is installed as a PWA then this cache is persistant, if it's not then it could be cleared up, I haven't tested how that will present itself yet. If you don't click the button and start playing, what I'm doing at the moment it downloading the first file putting it in cache, and playing the cached file (no issues with seeking playing the cached file), then when it gets to the next file it downloads that one into cache it and then plays, and so on. The plan is for those files to be cleared up when the book is finished (and to maybe download the next book when it's near the end of the file).

Once that is all working as it should I'll then put back the options to allow transcoding instead of downloading and caching, but that is less important for me.

The one slight wrinkle in that is single file m4b's as you would essentially need to download the whole file to start off with, so I'm not sure how I'm going to deal with that yet. On the current web client the file is essentially cut up into smaller files and streamed.

from audioserve.

wtanksleyjr avatar wtanksleyjr commented on June 11, 2024

from audioserve.

izderadicka avatar izderadicka commented on June 11, 2024

@wtanksleyjr - current version of audioserve already allows to download a folder in zip format without compression (that is default now, tar is still possible under program option)

from audioserve.

izderadicka avatar izderadicka commented on June 11, 2024

New client how enables to cache whole folder (similar to Android client).
Only requirement is to serve client securely so Service Worker is available.

from audioserve.

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.