olifarago
asked on
Sending Audio to a Server Using NetStream (or similar) in Flex (not Mic or webcam)
Hi,
I am trying to ascertain if it is possible to stream audio to a server using NetStream in the same way you can with a microphone.
To clarify I know how to send webcam or microphone content (using AttachAudio and AttachVideo). What I am trying to achieve is have a button in the flex app to play a soundfile and have that sound file streamed to the server.
I can't find any way of doing it currently and am hoping someone might know a workaround.
Oli
I am trying to ascertain if it is possible to stream audio to a server using NetStream in the same way you can with a microphone.
To clarify I know how to send webcam or microphone content (using AttachAudio and AttachVideo). What I am trying to achieve is have a button in the flex app to play a soundfile and have that sound file streamed to the server.
I can't find any way of doing it currently and am hoping someone might know a workaround.
Oli
It's possible, just call the publish method of your NetStream instance without calling attachAudio.
ASKER
And what will that transmit over the stream?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have had to abandon this project for now so this is untested. I thought this solution starts on demand streaming an MP3 that is stored on a server to the client over the netstream but the answer is suggesting it will stream form the client to the server.
I don't have time to test so I have accepted in case it is useful for others.
I don't have time to test so I have accepted in case it is useful for others.