stop function
This commit is contained in:
@@ -6,11 +6,17 @@
|
||||
function play(hash) {
|
||||
fetch("/play/" + hash);
|
||||
}
|
||||
|
||||
function stop() {
|
||||
fetch("/stop");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
{% for clip in clips %}
|
||||
<button onclick="play('{{clip.hash}}')">{{clip.file_name}}</button><br />
|
||||
{% endfor %}
|
||||
|
||||
<button onclick="stop()">Stop.</button>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user