more details in controls.md for onAudioPlaybackStarted

This commit is contained in:
Timo
2025-06-10 12:28:15 +02:00
parent ce1cf4a6a6
commit bb42fa2290

View File

@@ -21,3 +21,5 @@ On mobile platforms (iOS, Android), web views do not reliably support selecting
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.
In particular android is using it to setup the output channel so that the call volume can
be controlled by the hardware volume rocker.