mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-18 18:59:23 +00:00
@@ -317,8 +317,8 @@ class ControlledAudioOutput
|
|||||||
// This information is probably only of interest if the earpiece mode has
|
// This information is probably only of interest if the earpiece mode has
|
||||||
// been selected - for example, Element X iOS listens to this to determine
|
// been selected - for example, Element X iOS listens to this to determine
|
||||||
// whether it should enable the proximity sensor.
|
// whether it should enable the proximity sensor.
|
||||||
if (device !== undefined) {
|
if (device !== undefined && platform !== "ios") {
|
||||||
logger.info("[controlled-output] setAudioDeviceSelect called:", device);
|
logger.info("[controlled-output] onAudioDeviceSelect called:", device);
|
||||||
window.controls.onAudioDeviceSelect?.(device.id);
|
window.controls.onAudioDeviceSelect?.(device.id);
|
||||||
// Also invoke the deprecated callback for backward compatibility
|
// Also invoke the deprecated callback for backward compatibility
|
||||||
window.controls.onOutputDeviceSelect?.(device.id);
|
window.controls.onOutputDeviceSelect?.(device.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user