Skip to content

Commit

Permalink
Fixed FLUT-215
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed Jan 18, 2024
1 parent 6746268 commit 41009aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/hms_room_kit/lib/src/meeting/meeting_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class _MeetingHeaderState extends State<MeetingHeader> {
///else we render an empty SizedBox
Selector<MeetingStore, Tuple2<HMSAudioDevice?, bool>>(
selector: (_, meetingStore) => Tuple2(
meetingStore.currentAudioDeviceMode,
meetingStore.currentAudioOutputDevice,
meetingStore.isSpeakerOn),
builder: (_, data, __) {
return HMSEmbeddedButton(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2006,10 +2006,8 @@ class HmssdkFlutterPlugin :
val dict = HashMap<String, Any?>()
dict["current_audio_device"] = selectedAudioDevice.name
val audioDevicesList = ArrayList<String>()
hmssdk?.getAudioDevicesList()?.let { audioDevices ->
audioDevices.forEach { device ->
audioDevicesList.add(device.name)
}
availableAudioDevices.forEach { device ->
audioDevicesList.add(device.name)
}
dict["available_audio_device"] = audioDevicesList
args["data"] = dict
Expand Down Expand Up @@ -2045,12 +2043,10 @@ class HmssdkFlutterPlugin :
val dict = HashMap<String, Any?>()
dict["current_audio_device"] = selectedAudioDevice.name
val audioDevicesList = ArrayList<String>()
hmssdk?.getAudioDevicesList()?.let { audioDevices ->
audioDevices.forEach { device ->
audioDevicesList.add(device.name)
}
availableAudioDevices.forEach { device ->
audioDevicesList.add(device.name)
}
dict["available_audio_device"] = audioDevicesList
}
args["data"] = dict
if (args["data"] != null) {
CoroutineScope(Dispatchers.Main).launch {
Expand Down

0 comments on commit 41009aa

Please sign in to comment.