diff --git a/index.html b/index.html
index f8fbaa7..3091410 100644
--- a/index.html
+++ b/index.html
@@ -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;
+ });