Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios: Prevent volume slider overlay to display #136

Open
pke opened this issue Oct 5, 2021 · 5 comments
Open

ios: Prevent volume slider overlay to display #136

pke opened this issue Oct 5, 2021 · 5 comments

Comments

@pke
Copy link

pke commented Oct 5, 2021

It seems the iOS camera app can hide the volume slider overlay when its active and the user presses the volume buttons.
Is there a way to achieve this too as long as volume listeners are registered?

@EWTDTHK2
Copy link

I think so.
RTCSystemSetting.m
add

[self showVolumeUI:NO];

before

[self sendEventWithName:@"EventVolume" body:@{@"value": [NSNumber numberWithFloat:volume]}];

not sure if this is what you want.

@pke
Copy link
Author

pke commented Oct 16, 2021

And this will prevent the UI to show the slider only when the app is active and restore the original behaviour when the app is in the background or terminated?

@EWTDTHK2
Copy link

Yes, I think so.

@awcchungster
Copy link

Could anyone implement this on main please?

@awcchungster
Copy link

Willing to sponsor coffee for the person who fixes this if they DM me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants