这样我就可以用下面的代码记录一些东西
let rec = new Recorder("filename.mp4").record();
// Stop recording after approximately 3 seconds
setTimeout(() => {
rec.stop((err) => {
// NOTE: In a real situation, handle possible errors here
// Play the file after recording has stopped
new Player("filename.mp4")
.play()
.on('ended', () => {
// Enable button again after playback finishes
this.setState({disabled: false});
});
});
}, 3000);我可以完美地记录音频,但我如何能够访问或删除或列表记录的文件,如filename.mp4。这在安卓或iOS中保存在哪里?在每次更新到app或每一次重新编译之后,这些都会留在那里吗?
发布于 2017-10-08 17:54:13
根据react本机-音频-工具包文档,您可以获得具有fsPath属性的文件parth。
fsPath - String (只读) 获取被记录到的文件系统路径。在准备()调用成功调用其回调后可用。
https://stackoverflow.com/questions/46633917
复制相似问题