Basic sound controls ° keybaord shortcuts

This commit is contained in:
2021-06-14 10:46:34 +02:00
parent e99a5ed1e3
commit 37a8253387
3 changed files with 137 additions and 10 deletions
+7
View File
@@ -79,6 +79,7 @@
app.ports.seek.subscribe(function(arg) {
const video = document.getElementById('video');
console.log(arg);
video.currentTime = arg;
});
@@ -113,6 +114,12 @@
});
}
});
app.ports.setVolume.subscribe(function(arg) {
const video = document.getElementById('video');
video.volume = arg.volume;
video.muted = arg.muted;
});
</script>
</body>
</html>