rename ControlledAudioOutput to iOSControlledAudioOutput

This commit is contained in:
Valere
2026-03-24 18:03:33 +01:00
parent 4f518819d3
commit 1bc2abb84f
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ const EARPIECE_CONFIG_ID = "earpiece-id";
* to have more control over the device selection process. This is used when the * to have more control over the device selection process. This is used when the
* `controlledAudioDevices` URL parameter is set, which is currently only true on mobile. * `controlledAudioDevices` URL parameter is set, which is currently only true on mobile.
*/ */
export class ControlledAudioOutput implements MediaDevice< export class IOSControlledAudioOutput implements MediaDevice<
AudioOutputDeviceLabel, AudioOutputDeviceLabel,
SelectedAudioOutputDevice SelectedAudioOutputDevice
> { > {

View File

@@ -30,7 +30,7 @@ import { platform } from "../Platform";
import { switchWhen } from "../utils/observable"; import { switchWhen } from "../utils/observable";
import { type Behavior, constant } from "./Behavior"; import { type Behavior, constant } from "./Behavior";
import { AndroidControlledAudioOutput } from "./AndroidControlledAudioOutput.ts"; import { AndroidControlledAudioOutput } from "./AndroidControlledAudioOutput.ts";
import { ControlledAudioOutput } from "./ControlledAudioOutput.ts"; import { IOSControlledAudioOutput } from "./IOSControlledAudioOutput.ts";
export type DeviceLabel = export type DeviceLabel =
| { type: "name"; name: string } | { type: "name"; name: string }
@@ -376,7 +376,7 @@ export class MediaDevices {
getUrlParams().callIntent, getUrlParams().callIntent,
window.controls, window.controls,
) )
: new ControlledAudioOutput(this.usingNames$, this.scope) : new IOSControlledAudioOutput(this.usingNames$, this.scope)
: new AudioOutput(this.usingNames$, this.scope); : new AudioOutput(this.usingNames$, this.scope);
public readonly videoInput: MediaDevice<DeviceLabel, SelectedDevice> = public readonly videoInput: MediaDevice<DeviceLabel, SelectedDevice> =