0
所以我可以记录与下面的代码的东西阵营本地使用反应 - 原生音频工具如何访问文件
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。这在Android或iOS中保存在哪里?在每次更新应用程序或每次重新编译之后,它们都会保留在那里。