otommod / browser-mpris2

Implements the MPRIS2 interface for Chrome and Firefox
92 stars 21 forks source link

Support for all sites, providers by extension #21

Closed lt-mayonesa closed 5 years ago

lt-mayonesa commented 5 years ago

Hi!

First of all, great project! I had started playing around with something similar a while ago but got stuck with the native side so I stopped. Stumbling upon your repo got me motivated again :smile:.

I went ahead and re-wrote the javascript side in order for the extension to be able to also detect HTMLMediaElements on other websites. I also made it more modular so it should be easier to create new providers by extending the project's main classes.

I know it's a big PR (most files are .md & conf). I made the repo compile to a esdoc site browser-mpris2

If you want i can remove all non-js files from the PR.

Anyway, if you have the time, please let me know what you think.

Cheers

lt-mayonesa commented 5 years ago

I'll close this and open a new one with fewer changes!