Basic sound controls ° keybaord shortcuts
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user