Hello! See, there is a file, for example, this one - " nashe1.hostingradio.ru/ultra-128.mp3 ". As you could understand, this is Internet radio - that is, this file is “dynamic”. So, is it possible to somehow get his binary data? The task is that I need to get its data and process it using WebAudioAPI - get the "arraybuffer" and execute the "decodeAudioData", and then play this file. I can work with static audio files, but with such - no. If you try to get the data of this file, they are “loaded” constantly and without an end result, that is, an infinite and ineffective download. Is it possible to realize getting this data in real time on JS or PHP? How to explain this more clearly:
- The user enters the page and presses, say, the "Play" button
- The request to "nashe1.hostingradio.ru/ultra-128.mp3" occurs, the server receives data from this source and returns them back (ajax) to the page
- JS receives this data (arraybuffer) and sends it to WebAudioAPI, which processes it (decodeAudioData), gets "getByteFrequencyData" and then plays this file.
I have already done everything - getting "getByteFrequencyData" and playing the file, but this is only for "completed" files - static ones. I hope everything is explained clearly. I would be very grateful for your advice! Thank!
* nashe1.hostingradio.ru/ultra-128.mp3 - for example. I have an audio stream on my server. I will describe completely what I need it for - visualization of Internet radio with the help of three.js. Everything is done and works as it should. However, only with static, with a flow is another story that I cannot figure out - that is why I wrote here from despair.