add onAudioTrackReady callback for controls

This commit is contained in:
Timo
2025-06-03 13:39:21 +02:00
parent 9ff6bcb583
commit 5332970dcf
4 changed files with 14 additions and 2 deletions

View File

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