mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-04 05:37:22 +00:00
add earpice mode
This commit is contained in:
@@ -12,6 +12,7 @@ A few aspects of Element Call's interface can be controlled through a global API
|
||||
|
||||
These functions must be used in conjunction with the `controlledOutput` URL parameter in order to have any effect.
|
||||
|
||||
- `controls.setOutputDevices(devices: { id: string, name: string }[]): void` Sets the list of available audio outputs.
|
||||
- `controls.setOutputDevices(devices: { id: string, name: string, forEarpiece?: boolean }[]): void` Sets the list of available audio outputs. `forEarpiece` is used on ios only.
|
||||
It flags the device that should be used if the user selects earpice mode. This should be the main (stereo loudspeaker) of the device.
|
||||
- `controls.onOutputDeviceSelect: ((id: string) => void) | undefined` Callback called whenever the user or application selects a new audio output.
|
||||
- `controls.setOutputEnabled(enabled: boolean)` Enables/disables all audio output from the application. This can be useful for temporarily pausing audio while the controlling application is switching output devices. Output is enabled by default.
|
||||
|
||||
Reference in New Issue
Block a user