wrote a webapp (vue single-page application and packaged it with HBuilder. There is a function of listening to music offline after downloading. How to cache large audio files?
localstorage maximum 5m bar, is there any other plan, thank you!
wrote a webapp (vue single-page application and packaged it with HBuilder. There is a function of listening to music offline after downloading. How to cache large audio files?
localstorage maximum 5m bar, is there any other plan, thank you!
browsers will automatically cache video and audio files. LocalStorage can only store strings
download is impossible. Browsers cannot allow you to save indefinitely. If you want to download offline music, you need native
section. If you just need to exceed 5m
, you can use IndexedDB
, and if you just want to play played music, you can add http
cache header.