Change real-time sound with SampleDataEvent for audio in NetStream

I broadcast audio using NetConnection and NetStream. I know that you can modify sample data in real time using the Sound object, however I cannot find a SampleDataEvent to play sound using the NetStream object. Is there a way to transfer sound from a NetStream object to a Sound object and change the sound on that object?

Edit: I am ready to do any crazy hacks, so any decision is fine!

+5
source share
2 answers

- , netstream, , ( ) NetStream.send()/NetConnection.call() . - URL- Sound URLStream

+2

, , , , URLStream , URLStream SampleDataEvent , .

, MP3 Waveform ( [] ), .

URLStream , , Sound SampleDataEvent ( "" ). -, URLStream, SampleDataEvent.data( , ).

, WAV- . , OGG AS3 ( ) , , .

+2

All Articles