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

audioSubscriber.setLocalVolume

Avatar

Level 2

does audioSubscriber.setLocalVolume(volume, publisherID) work when i have audioSubscriber.publisherIDs set as well? because it doesn't seem to be working for me...

0 Replies

Avatar

Employee

Hi JoelJuCom,

I ran a test Audio App that uses AudioSubscriber.setLocalVolume(volume, publisherID) . It seemed to work for me.

It might be possible that you are setting the volume in the range of 0-100. But the API accepts volume values between the range 0 - 1.

Can you double check your code.

Thanks

Arun

Avatar

Level 2

does it work constantly for you even after you set audioSubscriber.publisherIDs then call audioSubscriber.setLocalVolume(vol)?

i'm also thinking that if i set audioSubscriber.publisherIDs, then it is really supposed to change all the volume levels of the publishers listed in publisherIDs when i call audioSubscriber.setLocalVolume(vol)?   without the publisherIDs parameter

Avatar

Employee

Yes. It did work for me for all cases.

And as you mentioned, audioSubscriber.setLocalVolume(vol) does change all the volume levels of the publishers listed in publisherIDs

Thanks

Arun