PDA

View Full Version : Muting/Changing Volume of netstream


Peter Parker
09-07-2007, 07:02 PM
I am trying to write a video/audio chat tool and I am having a heck of a time with muting and changing the broadcasters audio netstream volume. Is there anyway to do this, I see there is a something called soundTransform but I think it is only for AS 3.0 and I am developing in 2.0. If you can give me any help I would appreciate it.

Thanks in advance

atomic
09-07-2007, 07:31 PM
To control the sound in a movie, you need to create an instance of the Sound object. See:
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002668.html

Brucebannor
09-07-2007, 07:57 PM
but the sound isn't in a movie. Its playing with the video component.. also its possible to have audio w/ no movieClip or video component. It plays straight from the netstream. So is there a way to change the volume of a mic attached to a netStream inparticular.

Edit.. the liveDoc's says its possible to attach it to a movieClip then adjust the sound, but thats not working.

Peter Parker
09-10-2007, 04:27 PM
I am creating a flash video chat component with audio chat. I am using Red5 for the server side, and I am using Netstreams to send the video and audio. I was just wondering is there anyway to change the volume and mute the audio stream. I am developing in actionscript 2.0. Any ideas would be appreciated.

Thanks

elmon05
05-23-2008, 10:14 AM
is this possible? no one seems to know anything on this

kires
09-02-2009, 02:56 PM
Here it is:

_root.createEmptyMovieClip("vS",_root.getNextHighestDepth());
vS.attachAudio(ns);
var so:Sound = new Sound(vS);
so.setVolume(20);

Hope it helps