IndexedDB to store audio
Asked Answered
M

2

8

Is it possible to use IndexedDB on a web page to store audio?

Currently trying out the Cache API, but looking for something that can be a little more persistent.

Melanoid answered 30/6, 2017 at 15:58 Comment(1)
here are couple of optionsIsidore
B
2

Sure you can, as long as your files don't take more than 10% of the available space on the device's storage or 2GB whatever is smaller, you can store any binary file you wish in IndexedDB.

Bureaucrat answered 30/6, 2017 at 15:59 Comment(0)
S
-1

IndexedDB is not recommended to be used for caching files.

For that purpose you can try to use the FileAPI instead (canIuse).

Splanchnology answered 20/2, 2020 at 16:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.