Deprecate old naming and introduce new words

This commit is contained in:
Timo
2025-05-22 18:58:18 +02:00
parent 4eb867436a
commit 9f84a5cae0
6 changed files with 50 additions and 23 deletions

View File

@@ -367,7 +367,11 @@ function useControlledOutput(): MediaDeviceHandle {
// This information is probably only of interest if the earpiece mode has been
// selected - for example, Element X iOS listens to this to determine whether it
// should enable the proximity sensor.
if (selectedId) window.controls.onOutputDeviceSelect?.(selectedId);
if (selectedId) {
window.controls.onAudioDeviceSelect?.(selectedId);
// Call deprecated method for backwards compatibility.
window.controls.onOutputDeviceSelect?.(selectedId);
}
setAsEarpiece(selectedId === EARPIECE_CONFIG_ID);
}, [selectedId]);