Code Monkey home page Code Monkey logo

Comments (2)

benkaiser avatar benkaiser commented on July 17, 2024

Hi @myoblastic ! Thanks for chiming in. I have had thoughts on this idea. However this is how I would like to solve it:

  • Music is still always served to clients
  • when a client gives itself a remote name (through the remote setup dialog), others can control it

Currently the capacity of this is only to let the others control it through commands such as:

http://localhost:2000/command/my_remote_name/playpause
http://localhost:2000/command/my_remote_name/prev
http://localhost:2000/command/my_remote_name/next

(see README for how I setup keyboard shortcuts for this).

What I would like added, is a way to turn a current player into a controlling mode, where it looks exactly the same, but every click / command is delivered to the player it is controlling. This wouldn't be too complex, what would need changing is all the functions in the static/js/player/player.js would need to be changed to (when in controlling mode) push the command through to the remote player.

This would solve your requirements (I hope) if you just ran the player on the server (would need chrome or firefox installed), then you can opt in the other clients to remote control it.

It's not high on my list of priorities to implement currently, but you are welcome to have a go at it and submit a PR if you want. I'm also happy to give you advice on implementation if you need it!

from stretto.

benkaiser avatar benkaiser commented on July 17, 2024

Also, this feature suggestion is already present on trello: https://trello.com/c/scqlw6yx/1-remote-control-support
I'm closing this as it's not a bug / current focus of development.

from stretto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.