Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a python method exist to play deezer song?

Tags:

python

deezer

I'd like to know if it's possible to have a deezer player under a Python application. I'm working on a XBMC Deezer plugin in order to have deezer integrated in XBMC software (a famous media center software).

XBMC plugin are written in Python and as you already know there is no SDK for this language. The only way I found to do this is to open a web page which integrates a Deezer player in it. My web page and my Python plugin communicate by an Ajax communication.
I just wanted to know if it's possible to receive an audio stream by the Deezer api. For example does it exist a method like this http://api.deezer.com/play?id=xxxx&time=xxxx ? where id is the ID of a song and time is the moment where of the begining of the stream. This method will return a PCM stream or any else audio format stream of x seconds.

Thanks.

like image 777
user3227395 Avatar asked Sep 26 '26 03:09

user3227395


1 Answers

The only way to play a stream from Deezer is to use one of the existing SDKs as we don't provide streams directly from the API (for encryption issues). Since we don't have any SDK for Python, is there any way you could make the Javascript one work?

like image 93
Julaie Avatar answered Sep 28 '26 18:09

Julaie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!