Skip to content

Instantly share code, notes, and snippets.

@ganbaaelmer
Created August 5, 2022 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ganbaaelmer/f64c9387d5c4b87d50fc787b8a57f25d to your computer and use it in GitHub Desktop.
Save ganbaaelmer/f64c9387d5c4b87d50fc787b8a57f25d to your computer and use it in GitHub Desktop.
index.html
<!DOCTYPE html>
<html>
<head>
<title>Streaming Video Recorder</title>
</head>
<body>
<h1>Streaming Video Recorder</h1>
<div id="recorder">
<button id="record">Video record</button>
<button id="stop">Stop video record</button>
<a id="download"></a>
<script type="text/javascript" src="{{ url_for('static', filename='recorder.js') }}"></script>
<script>
window.onload=function(){
document.getElementById("record").click();
};
</script>
</div>
<img id="video" src="{{ url_for('video_viewer') }}">
<div>
<p>Дэмий их ярьдаг болхоор мик ээ хаав :)</p>
<audio controls autoplay>
<source src="{{ url_for('audio') }}" type="audio/x-wav;codec=pcm">
Your browser does not support the audio element.
</audio>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment