Frage

I'm using the soundcloud API and so far it was working fine until I hit this track: https://soundcloud.com/katyperryofficial/roar

I don't know what's wrong with this track but it really wouldn't play. I can get all info of it just not the stream part. I checked chrome network tab and it gives me this. It just cancels without any error:

Name                     Method  Status      Type   Initiator   Size  Time
stream?consumer_key=###  GET     (canceled)  Other              13B   1.02s

Any ideas? Have I missed something?

War es hilfreich?

Lösung

Soundcloud devs made some changes in their code, and i don't know why, they are switching back to rtmp protocol.

Even the response said that track is streamable it can't be streamed with a regular stream_url.

After some digging in dev tools, i've noticed that some tracks use rtmp protocol instead of http/https

Anyway, you can find the streams of the track on: http://api.soundcloud.com/tracks/TrackID/streams?consumer_key=XXX

from here, you're on your own. from my research, only flash (why?) can play rtmp streams.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top