Coder Social home page Coder Social logo

dzctl's Introduction

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.

dzctl's People

Contributors

yaneth avatar

Watchers

Moreno avatar

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.