Files
Testing/videocall1/MediaStreamRecorder/demos/flash-audio-recorder-upload.html
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

43 lines
1.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>Audio Recording using FlashAudioRecorder</title>
<script src="https://www.webrtc-experiment.com/MediaStreamRecorder/AudioStreamRecorder/FlashAudioRecorder.js">
</script>
</head>
<body>
<h1>
Audio Recording using <a href="https://github.com/streamproc/MediaStreamRecorder" target="_blank">FlashAudioRecorder</a>
</h1>
<script>
var flashRecorder = new FlashAudioRecorder({
uploadParams: {
method: "POST",
url: "http://url",
audioParam: "qqfile",
params: {}
}
});
flashRecorder.onstart = function(e) {
console.log('start');
}
flashRecorder.onstop = function(e) {
console.log('stop');
}
flashRecorder.ondataavailable = function(e) {
console.log('file url:' + e.url);
}
flashRecorder.onready = function(e) {
console.log('ready');
}
flashRecorder.start();
setTimeout(function() {
flashRecorder.stop();
}, 2000);
</script>
</body>
</html>