mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-02 04:05:56 +00:00
add onAudioTrackReady callback for controls
This commit is contained in:
@@ -19,3 +19,5 @@ On mobile platforms (iOS, Android), web views do not reliably support selecting
|
||||
- `controls.setAudioEnabled(enabled: boolean)` Enables/disables all audio output from the application. Output is enabled by default.
|
||||
- `showNativeAudioDevicePicker: (() => void) | undefined`. Callback called whenever the user presses the output button in the settings menu.
|
||||
This button is only shown on iOS. (`userAgent.includes("iPhone")`)
|
||||
- `controls.onAudioPlaybackStarted: ((id: string) => void) | undefined`: This will be called the first time we start
|
||||
playing audio in the webview. It can be helpful to do device setup on the native app when the webviews audio is ready.
|
||||
|
||||
Reference in New Issue
Block a user