add change audio button with callback on ios

This commit is contained in:
Timo
2025-05-16 12:28:49 +02:00
parent 7a4c189249
commit acaf69ca1b
5 changed files with 72 additions and 42 deletions

View File

@@ -17,3 +17,5 @@ These functions must be used in conjunction with the `controlledOutput` URL para
- `controls.onOutputDeviceSelect: ((id: string) => void) | undefined` Callback called whenever the user or application selects a new audio output.
- `controls.setOutputDevice(id: string): void` Sets the selected audio device in EC menu. This should be used if the os decides to automatically switch to bluetooth.
- `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.
- `showNativeOutputDevicePicker: () => void`. This callback will be code by the webview if the user presses the output button in the settings menu.
This button is only shown on ios. (`userAgent.includes("IPhone")`)