rgero / Fajita

A custom YouTube wrapper designed to maintain a group video queue during gatherings, written in Typescript, utilizing React, MaterialUI, a custom backend, and websockets
0 stars 0 forks source link

When a client connects to web sockets, get the status and update Play/Pause button #19

Closed rgero closed 2 months ago

rgero commented 4 months ago

This needs a slight change from Vince's backend. But I should listen to the response when the client connects.

rgero commented 2 months ago

This was handled by the fact we have the progress event emitting every second or so. This means I just needed to have the PlayPause action listen for the progress to be changed, if it has been changed then the video is playing.

Once the status has been synced with what's happening, turn off the listener.