Skip to content

Commit 42f6b14

Browse files
fix: allow selectAudioOutput on Android (#1121)
`Helper.selectAudioOutput` already routes audio on Android via device ID strings (speaker, earpiece, bluetooth, wired-headset). The desktop-only gate was silently swallowing the call and leaving `room.setAudioOutputDevice()` as a no-op on Android. --------- Co-authored-by: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com>
1 parent f7530d3 commit 42f6b14

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
patch type="fixed" "Allow selectAudioOutput on Android"

lib/src/hardware/hardware.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ class Hardware {
119119
}
120120

121121
Future<void> selectAudioOutput(MediaDevice device) async {
122-
if (!lkPlatformIsDesktop()) {
123-
logger.warning('selectAudioOutput is only supported on Desktop');
122+
if (lkPlatformIs(PlatformType.web) || lkPlatformIs(PlatformType.iOS)) {
123+
logger.warning('selectAudioOutput is not supported on Web or iOS');
124124
return;
125125
}
126126
selectedAudioOutput = device;

0 commit comments

Comments
 (0)