mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-25 06:40:26 +00:00
Add a global control for toggling earpiece mode
This will be used by Element X to show an earpiece toggle button in the header.
This commit is contained in:
@@ -23,3 +23,4 @@ On mobile platforms (iOS, Android), web views do not reliably support selecting
|
||||
playing audio in the webview. It can be helpful to do device setup on the native app when the webviews audio is ready.
|
||||
In particular android is using it to setup the output channel so that the call volume can
|
||||
be controlled by the hardware volume rocker.
|
||||
- `controls.toggleEarpieceMode(): void` Switches audio between the earpiece device and an arbitrary non-earpiece device.
|
||||
|
||||
Reference in New Issue
Block a user