Expand my Community achievements bar.

Problem with Setting Local Volume of External Streams!

Avatar

Former Community Member

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

Avatar

Former Community Member

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!