用于存储音频的IndexedDB [英] IndexedDB to store audio
本文介绍了用于存储音频的IndexedDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在网页上使用IndexedDB来存储音频?
Is it possible to use IndexedDB on a web page to store audio?
当前正在尝试使用Cache API,但是正在寻找可以更持久的东西.
Currently trying out the Cache API, but looking for something that can be a little more persistent.
推荐答案
可以,只要您的文件占用的设备存储空间不超过设备存储空间的10%或不超过2GB(可以是较小的空间),就可以将所需的任何二进制文件存储在IndexedDB中.
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.
这篇关于用于存储音频的IndexedDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文