About computeSpectrum () and RTMP

Just wanted to ask, is it even possible to create a sound spectrum from the data transmitted by the RTMP server?

I read this computeSpectrum and it says

"In addition, this method cannot be used to extract data from RTMP streams, even if it is called by content that is in the same domain as the RTMP server."

I will not use FMS so that it remains impossible. Are there any hacks available with php and server or something else?

+4
source share
2 answers

So, after searching, I got the answer, and the answer is that there are no hacks with the flash memory itself and actionscript3, that is, you cannot access the raw sound data from the sound broadcast from the RTMP server if you are not using the Client API for the FMS server.

I tried with HTTP streaming using apache as a streaming server with php, but you cannot use the Sound AS3 object for the stream, just to download the sound file. And also Sound cannot play flv, which is my only choice.

If you use the Microphone class to receive bytes from the microphone and send them to the NetStream object for stream, as well as for drawing using SoundMixer.computeSpectrum (), than yes, but I am not allowed to use Mic: (

Available solutions would be fake sound waves.

thanks

+1
source

in the fms streaming space from which you receive streaming, add these codes to the main.asc file

application.onConnect = function( p_client) { p_client.audioSampleAccess = "/"; p_client.videoSampleAccess = "/"; } 

I tried it on a vod application, it will work on others, it gives both a snapshot (bitmap.draw ()) and an audio spectrum capture (soundmixer.computespectrum ()), it removes the security release

luck

+1
source

All Articles