Skip to content

mrdis/dzctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trying to implement remote control for deezer (Still just a proof of concept!)

Get started

  1. Open the install.html page and drag the bookmarklet link on the bookmark bar
  2. Open deezer and click on the bookmarklet. On the bottom left of the page a box will appear with "ID: XXXXXX - PIN: XXXX"
  3. Open the app.html page, insert the ID and PIN and click connect
  4. Now you should be able to control things on the deezer page!

How it works

The bookmarklet injects the "inject-dzctl.js" script into the deezer webpage. This script uses Peer.js to open a "server" endpoint that listen for connections from the "app" When you open the app.html page and click connect, you will use the ID to connect to the "server" peer, and pass the PIN as a basic form of authentication. From that point, the app will send commands to the server, and the server will sent status updates to the app

Known issues

This project is in super early development stage, it's barely working!

It's using free PeerJS service, so no TURN server, this means that complicated NAT traversal scenarios are not supported. But if deezer webpage and controller webpage are opened by devices in the same network, it should work.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published