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:
Robin
2025-06-13 12:13:39 -04:00
parent eb09710e61
commit cd8768a1a6
4 changed files with 86 additions and 1 deletions

View File

@@ -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.