Volume

Post your questions and bug-reports about the audio/video streaming add-on based on Red5 Media Server.

Moderators: Lapo, Bax

juancarlos
Posts: 69
Joined: 21 Dec 2007, 17:19
Contact:

Volume

Postby juancarlos » 14 Nov 2008, 11:07

Hello.
I have one problem with the volume in the Video Streaming with RedBox.
Basically, I don't know how to modify the volume of the streaming in Action Script 2.
I have tried with setVolume or volume=, but it doesn't work.

I'd appreciate some help.

Thank you very much.
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 17 Nov 2008, 13:15

You should attach the sound to a movie clip, and
create a sound object to control the volume:

Code: Select all

createEmptyMovieClip("audio_mc", this.getNextHighestDepth())
soundControl = new Sound(audio_mc)
audio_mc.attachAudio(audioStream)


Now just call setVolume on the soundControl object.
Paolo Bax
The SmartFoxServer Team
juancarlos
Posts: 69
Joined: 21 Dec 2007, 17:19
Contact:

Postby juancarlos » 18 Nov 2008, 10:37

Thank you again :)

Return to “RedBox”

Who is online

Users browsing this forum: No registered users and 12 guests