You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/controls.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ A few aspects of Element Call's interface can be controlled through a global API
12
12
13
13
These functions must be used in conjunction with the `controlledOutput` URL parameter in order to have any effect.
14
14
15
-
-`controls.setOutputDevices(devices: { id: string, name: string }[]): void` Sets the list of available audio outputs.
15
+
-`controls.setOutputDevices(devices: { id: string, name: string, forEarpiece?: boolean }[]): void` Sets the list of available audio outputs. `forEarpiece` is used on ios only.
16
+
It flags the device that should be used if the user selects earpice mode. This should be the main (stereo loudspeaker) of the device.
16
17
-`controls.onOutputDeviceSelect: ((id: string) => void) | undefined` Callback called whenever the user or application selects a new audio output.
17
18
-`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.
0 commit comments