-
Notifications
You must be signed in to change notification settings - Fork 196
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
Use in-call volume and mode for EC #4481
base: develop
Are you sure you want to change the base?
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
@@ -161,6 +167,10 @@ private fun CallWebView( | |||
} | |||
}, | |||
onRelease = { webView -> | |||
// Reset audio mode | |||
val audioManager = webView.context.getSystemService<AudioManager>() | |||
audioManager?.mode = AudioManager.MODE_NORMAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe store the previous mode and restore it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I saw in some issues (this is poorly documented, AFAICT) the app can be 'blacklisted' if it doesn't play any audio in the 6s after enabling this mode or doesn't return to the MODE_NORMAL
when it's done playing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks.
acdf636
to
e5ec2c4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4481 +/- ##
===========================================
- Coverage 80.09% 80.07% -0.03%
===========================================
Files 2081 2082 +1
Lines 55550 55574 +24
Branches 6785 6793 +8
===========================================
+ Hits 44495 44499 +4
- Misses 8724 8738 +14
- Partials 2331 2337 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I tested it and it works. I can change the output volume while in a call with the hardware buttons (without using androids per sink volume control ui) I think this makes sense to become its own issue? It will would be interesting to have an experiment if it event works?
|
Another issue I observed with this is, that the min volume is still very audible (there is no 0 volume option for in call audio) Which is very nice for the user so they will never be stuck with no sound and also what a normal call does. It is still sth we need to be aware of, since we might want to be able to silence the phone if in a conference when someone else comes by in the real world. I think this is sth we would like to solve in EC where we provide a mute output button or similar. |
@jmartinesp |
Content
Motivation and context
Screenshots / GIFs
Tests
Tested devices
Checklist
…ccording to the bounds and shape of the user avatar and display name