audio & express socket.io

This commit is contained in:
bach
2025-02-28 14:51:15 +01:00
parent b1c9f6170b
commit 840ec3e044
13 changed files with 1579 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
const socket = io();
var myAudio = document.createElement('audio');
myAudio.setAttribute('src','muddy_files.mp3');
socket.on('speed', (speed) => {
console.log('recieved speed', speed);
myAudio.playbackRate = speed;
});
myAudio.playbackRate = 0.1;
myAudio.play();
Binary file not shown.
File diff suppressed because one or more lines are too long
+3
View File
@@ -0,0 +1,3 @@
body{
background-color: red;
}