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
BedrockMission!

Learn More

View all

Sign in to view all badges

AudioSubscribers and new Publishers

Avatar

Avatar
Validate 1
Level 1
asciibn
Level 1

Likes

0 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
asciibn
Level 1

Likes

0 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
asciibn
Level 1

19-04-2011

Hi,

If i set:

view.audioSubscriber.setLocalVolume(0, userID);

and

view.audioSubscriber.setLocalVolume(0);

This seems to be fine. Untill...

New user comes on. I also find that it just stops working. no clicking or anything. its silent then i get volume.

Does the volume reset when there are new people on?

thanks.

...russ

Accepted Solutions (0)

Answers (8)

Answers (8)

Avatar

Avatar
Boost 5
Employee
aponnusa
Employee

Likes

46 likes

Total Posts

455 posts

Correct Reply

53 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile

Avatar
Boost 5
Employee
aponnusa
Employee

Likes

46 likes

Total Posts

455 posts

Correct Reply

53 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
aponnusa
Employee

19-04-2011

Yep Russ, That’s the ways...

You can add listener to StreamManager or AudioSubsriber and make each client to set the volume of the new stream.

Ex - audioSub.addEventListener(StreamEvent.STREAMRECEIVE,onStreamRecieve);

Thanks

Arun

Avatar

Avatar
Validate 1
Level 1
asciibn
Level 1

Likes

0 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
asciibn
Level 1

Likes

0 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
asciibn
Level 1

19-04-2011

Arun,

It sounds like the best way to handle it is..

See if there is a new stream. The tell each client to check their settings and reset them.

So I add a listener to stream manager and check whats going though.

Am i close

thanks.

...russ

Avatar

Avatar
Validate 1
Level 1
asciibn
Level 1

Likes

0 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
asciibn
Level 1

Likes

0 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
asciibn
Level 1

19-04-2011

LOL it's cool.

Yea im trying to get some level of volume control and tried 5 different ways but im sure im doing it wrong.

it seemed to reset when dealing with other streams.

thanks guys!

...russ

Avatar

Avatar
Boost 50
Level 7
Nigel_Pegg
Level 7

Likes

103 likes

Total Posts

909 posts

Correct Reply

81 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile

Avatar
Boost 50
Level 7
Nigel_Pegg
Level 7

Likes

103 likes

Total Posts

909 posts

Correct Reply

81 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile
Nigel_Pegg
Level 7

19-04-2011

Ah, now I get what you all mean - you're trying to mute the streams

locally. I was reading it all backwards... Silence is a good thing! 😃

nigel

Avatar

Avatar
Boost 50
Level 7
Nigel_Pegg
Level 7

Likes

103 likes

Total Posts

909 posts

Correct Reply

81 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile

Avatar
Boost 50
Level 7
Nigel_Pegg
Level 7

Likes

103 likes

Total Posts

909 posts

Correct Reply

81 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile
Nigel_Pegg
Level 7

19-04-2011

Hey Russ,

Could you clarify a little? What happens when the new user comes in? I

found this hard to sort out :

A) It just stops working

B) It's silent

C) Then you get volume

thanks

nigel

Avatar

Avatar
Boost 5
Employee
aponnusa
Employee

Likes

46 likes

Total Posts

455 posts

Correct Reply

53 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile

Avatar
Boost 5
Employee
aponnusa
Employee

Likes

46 likes

Total Posts

455 posts

Correct Reply

53 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
aponnusa
Employee

19-04-2011

Hi Russ,

I was able to reproduce the scenario you mentioned.

So when a new user enters, you might be able to hear him but not others who were already there and whose stream volume was already modified.

To be more specific, setLocalVolume adjusts the volume of the audio stream that is recieved at the subscribers end. So when you call setLocalVolume(0), then it adjusts the volume of all audio streams present to 0. But when a new user enters after setLocalVolume is called, his stream volume is not set. Hence you hear him.

The work around would be to call setLocalVolume to every new user who starts publishing.

Thanks

Arun

Avatar

Avatar
Validate 1
Level 1
asciibn
Level 1

Likes

0 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
asciibn
Level 1

Likes

0 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
asciibn
Level 1

19-04-2011

Thanks Arun,

I should be a litle more clear.

Its not when someone comes into the room. its when someone starts streaming the mic and cam.

I have my volume set to 0 then I pickup somone's stream and then I hear them again.

thanks.

...russ

Avatar

Avatar
Boost 5
Employee
aponnusa
Employee

Likes

46 likes

Total Posts

455 posts

Correct Reply

53 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile

Avatar
Boost 5
Employee
aponnusa
Employee

Likes

46 likes

Total Posts

455 posts

Correct Reply

53 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
aponnusa
Employee

19-04-2011

According to the code, the volume doesn’t get reset when new people join a session :). I would test the scenario you mentioned, and follow up with you.

Thanks

Arun