- 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:
node server.js
-
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
background.js:- Open the
background.jsfile inside theextensionfolder. - Replace the value of
SERVER_ADDRESSwith the server address displayed when you started the server (e.g.,192.xx.xx.x.x).
- Open the
- 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://192.xx.xx.x.x). - If you face connection issues:
- Ensure your firewall is configured to allow connections to the server.