cthit / playIT-python

A system for letting users queue Spotify, YouTube videos and SoundCloud songs for playback on a client
http://playit.chalmers.it
MIT License
2 stars 1 forks source link

Support for play, pause, and volume control #20

Open Edholm opened 8 years ago

Edholm commented 8 years ago

Would be nice (and necessary in some settings) to have "normal" playback controls from the frontend, on the currently playing media.

lindskogen commented 8 years ago

dat oxford comma

Dr-Horv commented 8 years ago

@Edholm A number of things that need to resolved though for this though:

  1. Who is allowed to change volume, Anyone? Admins only? Majority vote?
  2. How do we handle multiple playback clients? Should they all adjust volume? Have a way to "reset" to same state for 'em all?
Edholm commented 8 years ago

As for 1: I think that there would have to be a setting when starting the backend that specifies if playback controls are available. If so, then everybody is allowed to change it. You can implement some sort of abuse controls, such as you're not allowed to play, pause, play, pause etc in a short amount of time.. Then you can have playIT instances where it is possible to control playback, such as in the group room for example, and have instances where it is not possible, such as a lan.

Maybe you could have a conditional setting where only admins are allowed to change playback state, or only the queuer or another similar approach.

As for number 2: from the perspective of the frontend, multiple playback clients are seen as one coherent unit and therefore a change should affect all of them.