Quantcast
Channel: Foren
Viewing all articles
Browse latest Browse all 170

recording of Media save at where? and how to load it by html tag?

$
0
0

 

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***");
}

 


Viewing all articles
Browse latest Browse all 170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>