Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Problem with Setting Local Volume of External Streams!

phaseblue
Level 3
Level 3

Hello all,

I've created a slider to control the volume of the incoming stream(s) and am having some problems.  When I test it it doesn't change the incoming volume at all, and now a new problem has appeared, which may or may not be related to the new code.  When the first user opens the application in a browser it starts fine, but when the second user opens the app. in their browser and clicks the "publish" button to start the stream, everything locks up and they can"t click on the "allow"/"deny" buttons in the Flash pop-up.  This is very strange!

Here is my code:

...and here is the MXML for creating the audioSubscriber and HSlider:

It seems to me that making this audio slider should be a "no-brainer", but I can't figure out what I'm doing wrong!  Any help would be greately appreaciated!

Thanks in advance,

Matt

1 Reply
phaseblue
Level 3
Level 3

I solved it!  I did a bit of searching and found out that the volume range for setLocalVolume() must be between 0 and 1.

I divided gainSlider.value)/100 and now it works!