- Node.js
- Browser
- Clone the project repository or download the ZIP file:
git clone https://github.com/Gaurav153fr/yt_remote
- Navigate to the project directory and install the required modules:
npm install
- Start the server from the repo root (runs on port
3000by default):You should seenpm start
Server running on http://localhost:3000in the terminal.
-
Open your browser and go to Extensions (e.g.,
chrome://extensions/for Chrome). -
Enable Developer Mode.
-
Click Load Unpacked and select the
extensionfolder from the cloned project.- This will add the YT Player Remote extension to your browser.
-
Edit the server address in
extension/background.js:- Set
SERVER_ADDRESSto the IP/hostname of the machine running the server (without protocol), e.g.,192.168.1.50. - The extension connects to
ws://SERVER_ADDRESS:3000, so keep port3000unless you changePORTinapi/server.js.
- Set
- Open YouTube Music in your browser.
- Return to the browser extensions page and click Reload next to the YT Player Remote extension.
- Check your terminal:
- If the server is receiving data, your setup is correct.
- Open the site hosted by the running server from any device (e.g.,
http://<server-ip>:3000). - If you face connection issues:
- Ensure your firewall is configured to allow connections to the server.