Answer the question
In order to leave comments, you need to log in
How is SoundCloud streaming architecturally designed?
All I understand so far is that a signed url is generated for a specific track and it looks like this:
https://cf-hls-media.sndcdn.com/media/9cfdVetE6Xak.128.mp3?{...Signed Url Credentials}
https://cf-hls-media.sndcdn.com/media/2075166/2234825/9cfdVetE6Xak.128.mp3?{...Signed Url Credentials}
Answer the question
In order to leave comments, you need to log in
Well... after a lot of research, I can say that it is very complicated. Firstly, different formats are supported (hls, opus, chromecast, http). The data from the /media/from/to/ request is still converted on the amazon side into range headers. Audio data is carefully parsed according to codec standards. If it is MP3, then every frame is parsed and seamless playback is organized. Everything is cached on the client side.
I found only one such open-source solution and only for MP3 format: Phonograph.js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question