Hi I’m trying to use the <audio> tag to play a recording from Media, however, I cannot find where the src of the audio recording. Although it says it locate at /sdcard/myRecording100.wav ,but audio’s src didn’t find files.
html:
<audio class="widget uib_w_2 d-margins" data-uib="media/audio" data-ver="0" controls="controls">
<source src="/sdcard/myRecording100.wav" type="audio/wav">
</audio>
js:
function stopRecording() {
enableMic(0);
//document.getElementById('stopRecID').style.display="none";
// enable "record" button but disable "stop"
setButtonState(myMediaState.finishRec);
if (my_recorder)
my_recorder.stopRecord(); // the file should be moved to "/sdcard/"+mediaRecFile
clearProgressTimmer();
document.getElementById('RecStatusID').innerHTML = "Status: stopped record";
console.log("***test: recording stopped***");
}