react-native-system-setting icon indicating copy to clipboard operation
react-native-system-setting copied to clipboard

ios: Prevent volume slider overlay to display

Open pke opened this issue 4 years ago • 5 comments

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?

pke avatar Oct 05 '21 22:10 pke

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.

EWTDTHK2 avatar Oct 16 '21 21:10 EWTDTHK2

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?

pke avatar Oct 16 '21 21:10 pke

Yes, I think so.

EWTDTHK2 avatar Oct 17 '21 09:10 EWTDTHK2

Could anyone implement this on main please?

buildgreatthings avatar Oct 12 '22 21:10 buildgreatthings

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

buildgreatthings avatar Oct 12 '22 21:10 buildgreatthings