alexwohlbruck / jukebox

A music server that streams mp3 files based on YouTube videos and Spotify data
https://jukebox-redux.herokuapp.com
10 stars 4 forks source link

Question #20

Closed LaganYT closed 1 year ago

LaganYT commented 1 year ago

Which part of the code makes the songs synchronized?

alexwohlbruck commented 1 year ago

Try https://github.com/alexwohlbruck/jukebox/blob/develop/app/sockets/player.socket.js

To be honest the sync feature isn't great, it tries to rely on a computation of the socket connection latency to offset the "play" event for different clients. There is also no sessions support, so all playback events are global. Feel free to experiment with it though!

LaganYT commented 1 year ago

Ok, I will look at it. I am trying to get everything running again by building the missing code from the ground up. Hoping that I can get it to work since I barely know what I'm doing lol

alexwohlbruck commented 1 year ago

go ahead and clone it and mess around! can't hurt

LaganYT commented 1 year ago

That's what I've been doing. Trying to get this thing up and running again.