![]() |
|
#1
|
|||
|
|||
|
Hello how would one go about using computeSpectrum() in AS3 with Wowza serving an RTMP stream? Adobe says it can't be done http://livedocs.adobe.com/flash/9.0/...=00000355.html) but the Wowza UserGuide suggests that it can (when switched on).
Thanks Hash |
|
#2
|
|||
|
|||
|
In the Application.xml file, see the Client node. I believe asterisks are required in StreamVideoSampleAccess and StreamAudioSampleAccess to allow those kind of client-side functions to work:
Code:
<Client> <IdleFrequency>-1</IdleFrequency> <Access> <StreamReadAccess>*</StreamReadAccess> <StreamWriteAccess>*</StreamWriteAccess> <StreamAudioSampleAccess></StreamAudioSampleAccess> <StreamVideoSampleAccess></StreamVideoSampleAccess> <SharedObjectReadAccess>*</SharedObjectReadAccess> <SharedObjectWriteAccess>*</SharedObjectWriteAccess> </Access> </Client> |
|
#3
|
|||
|
|||
|
Yes i've switched it on but i'm actually looking for client-side code example to test it because i can't get it to work! thanks
|
|
#4
|
|||
|
|||
|
Couple nice ones here:
http://mrsteel.wordpress.com/2007/05...s-as3-example/ |
|
#5
|
|||
|
|||
|
Sorry for not being clear, but i'm looking for an example that uses Netstream. All of the examples on the net use SoundChannel which is not what i need for streaming. I think this is because of a limitation with FMS2. However Wowza doesn't seem to have this limitation.
In fact i have managed to populate the ByteArray with Netstream sound data so i'm just working out how to extract that. I think there are implementation issues with reading the data from the bytearray. On two examples, one using netstream and one using soundchannel, the behaviour of the bytearray float reading is different... so saying the data is definitely in the array somewhere so i must be close to a solution! thanks Hash |
|
#6
|
|||
|
|||
|
It's official! computeSpectrum does work with Netstream and RTMP served by Wowza
Last edited by Hash Ultra; 10-07-2008 at 12:15 PM. |
|
#7
|
|||
|
|||
|
Any clues on how you did this? Given the new features in Flash 10 it would be very handy to be able to grab Netstream audio in to a byte array rather than playing it directly.
|
|
#8
|
|||
|
|||
|
What exactly are you trying to do? I am not sure I understand.
Charlie |
|
#9
|
|||
|
|||
|
With Flash 10 you can do dynamic sound generation by passing a ByteArray to a Sound object. Hash Ultra mentions that he "managed to populate the ByteArray with Netstream sound data". If it's truly possible to save the audio from a Netstream to a ByteArray rather than playing it, then you could manipulate that audio before it played. That's what I'm interested in.
|
|
#10
|
|||
|
|||
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|