Control a media player on mac, windows, linux using a remote control in the browser.
I wanted to watch anime on Crunchyroll on my samsung tv, sending it from my cell phone via airplay, but the content wouldn't load, so I ran Crunchyroll on the PC sending it to the TV, but I needed a method to control the player, there are already several apps that are used for this, but most of them release this Media Player function just by paying, so I decided to make mine only with the functions I needed.
Clone the project
git clone https://github.com/Krash0/nodejs-player-remote-control.git
Enter the project directory
cd nodejs-player-remote-control
Install the dependencies
npm install
Start the server
node index.js
Access the web remote control using http://localhost:3000/ or http://LOCAL_IP:3000/
For you to control the player (with the exception of increasing and decreasing the volume) the window has to be active, because the server simulates pressing the keys: space = pause left arrow = retrosseder right arrow = forward
Front-end: Bootstrap, Socket.io
Back-end: Node, Express, RobotJs, Socket.io