Fix playback of Deezer tracks
See original GitHub issueopenwhyd.org is an open-source music platform used daily by thousands of users to create playlists of songs from the web (Youtube, Soundcloud, etc…), and discover musical gems from similar users.
Tech stack: Node.js, MongoDB, Docker, Mocka, Webdriver.io, jQuery, Electron + iOS app
Problem
Deezer tracks do not play from openwhyd.org anymore.
Example: click on the play icon from https://openwhyd.org/c/53034e7f200c8a632700022a => the music should start within 2 seconds, but it does not…
Here’s what is displayed in the JavaScript console:
=> Hypothesis: Deezer’s SDK / API may have changed.
Howto
In order to solve this issue, please create a Pull Request after reading about playemjs’ debug/fixing process: https://github.com/openwhyd/openwhyd/blob/master/docs/playemjs-fix-procedure.md.
First, you may want to read about:
- How to install, setup and run Openwhyd on your computer:
INSTALL.md
- How to propose a valuable contribution to this repo:
CONTRIBUTING.md
I will be happy to assist you at any stage, if you want to try to solve this issue! If you have any question, just leave a comment below. Beginners are also welcome! 🤗
<bountysource-plugin>Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
If you want to try to make a fix, don’t forget to:
git pull
to the latest version of themaster
branchRe! I managed to get more informations about that error… it seems it’d be some kind of CORS issues… Those logs come from firefox that just seem to let it go through at some point, although chrome for exemple doesn’t…
SecurityError: Permission denied to access property "href" on cross-origin object
Chargement du contenu mixte d’affichage « http://e-cdn-preview-a.deezer.com/stream/ac64e4af7a06fe33b4b0c356a7864751-3.mp3 » (non sécurisé) sur une page sécurisée[En savoir plus]
And basically, chrome never seems to reach that step… :
DZ.override_https() from channel file true
and just goesWhile firefox seems to asynchronously do the job… there you’ll notice that if you add two deezer tracks in a row in a playlist, and play the first one, but start a second one… they’ll play at the same time (over each other)…
Does that means anything to you? Do you think i’m on the right track?
UPDATE : There are also mentions being sent of Flash not being accessible/installed (although it defo is on my machine)
UPDATE 2 :