Skip to content

Commit

Permalink
Fix screen share without audio
Browse files Browse the repository at this point in the history
  • Loading branch information
jim3692 committed Apr 26, 2023
1 parent b400c42 commit d460801
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extension/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ function overrideGdm () {
const myDiscordAudioSink = await getAudioDevice('pipewire-screenaudio')
id = myDiscordAudioSink.deviceId
} catch (error) {
id = 'default'
return await navigator.mediaDevices.chromiumGetDisplayMedia({
video: true,
audio: false
})
}
const captureSystemAudioStream = await navigator.mediaDevices.getUserMedia({
audio: {
Expand Down

0 comments on commit d460801

Please sign in to comment.