Wowza Media Systems home
Wowza Pro is the best alternative to Adobe Flash Media Server. Try it today.
Now Hiring. Join the Wowza team!

Go Back   Wowza Media Server Forums > Wowza Media Server Pro Forums (version 1.7.x) > General Forum

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2008, 09:55 AM
Hash Ultra Hash Ultra is offline
Member
 
Join Date: Jun 2007
Posts: 44
Default computeSpectrum over RTMP

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
Reply With Quote
  #2  
Old 10-07-2008, 10:04 AM
rrlanham rrlanham is online now
Senior Member
 
Join Date: Dec 2007
Posts: 9,241
Default

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>
Reply With Quote
  #3  
Old 10-07-2008, 10:22 AM
Hash Ultra Hash Ultra is offline
Member
 
Join Date: Jun 2007
Posts: 44
Default

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
Reply With Quote
  #4  
Old 10-07-2008, 10:36 AM
rrlanham rrlanham is online now
Senior Member
 
Join Date: Dec 2007
Posts: 9,241
Default

Couple nice ones here:
http://mrsteel.wordpress.com/2007/05...s-as3-example/
Reply With Quote
  #5  
Old 10-07-2008, 11:36 AM
Hash Ultra Hash Ultra is offline
Member
 
Join Date: Jun 2007
Posts: 44
Default

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
Reply With Quote
  #6  
Old 10-07-2008, 12:12 PM
Hash Ultra Hash Ultra is offline
Member
 
Join Date: Jun 2007
Posts: 44
Default

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.
Reply With Quote
  #7  
Old 11-27-2008, 04:39 PM
grimcracker grimcracker is offline
Junior Member
 
Join Date: Jun 2008
Posts: 7
Default

Quote:
Originally Posted by Hash Ultra View Post
In fact i have managed to populate the ByteArray with Netstream sound data so i'm just working out how to extract that.
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.
Reply With Quote
  #8  
Old 11-28-2008, 08:38 AM
charlie charlie is offline
Administrator
 
Join Date: Nov 2006
Posts: 9,242
Default

What exactly are you trying to do? I am not sure I understand.

Charlie
Reply With Quote
  #9  
Old 11-28-2008, 01:11 PM
grimcracker grimcracker is offline
Junior Member
 
Join Date: Jun 2008
Posts: 7
Default

Quote:
Originally Posted by charlie View Post
What exactly are you trying to do? I am not sure I understand.
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.
Reply With Quote
  #10  
Old 11-28-2008, 01:37 PM
rrlanham rrlanham is online now
Senior Member
 
Join Date: Dec 2007
Posts: 9,241
Default

Have you seen this post:

http://www.wowzamedia.com/forums/showthread.php?p=13367

Richard
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:01 AM.


Copyright © 2006 - 2010, Wowza Media Systems
Wowza Media Systems