Skip to content

Commit c40fc9a

Browse files
authored
Merge pull request #15995 from nextcloud/fix/noid/breaking-output
2 parents 95a123e + 236cfcd commit c40fc9a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/composables/useDevices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export const useDevices = createSharedComposable(function() {
200200
updateAudioStream()
201201
updateVideoStream()
202202

203-
if (mediaDevicesManager.attributes.audioOutputId !== undefined) {
203+
if (mediaDevicesManager.attributes.audioOutputId !== soundsStore.audioOutputDeviceId) {
204204
soundsStore.setGeneralAudioOutput(mediaDevicesManager.attributes.audioOutputId)
205205
}
206206
}

src/stores/sounds.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const useSoundsStore = defineStore('sounds', {
3838
leave: null,
3939
wait: null,
4040
},
41+
audioOutputDeviceId: undefined,
4142
}),
4243

4344
actions: {
@@ -123,6 +124,7 @@ export const useSoundsStore = defineStore('sounds', {
123124
} catch (error) {
124125
console.error(error)
125126
}
127+
this.audioOutputDeviceId = deviceId
126128
},
127129
},
128130
})

0 commit comments

Comments
 (0)