Skip to content

Commit

Permalink
change desktop share width 640
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Oct 28, 2024
1 parent 02416ed commit 1822c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/lib/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function asyncGetVideoStream(deviceId: string): Promise<MediaStream> {
let stream: MediaStream = new MediaStream
if (deviceId === "none") {
} else if (deviceId === "screen") {
stream = await navigator.mediaDevices.getDisplayMedia({ audio: false, video: { width: 1280 } })
stream = await navigator.mediaDevices.getDisplayMedia({ audio: false, video: { width: 640 } })
} else {
stream = await navigator.mediaDevices.getUserMedia({ audio: false, video: { width: 320, deviceId: deviceId } })
}
Expand Down

0 comments on commit 1822c82

Please sign in to comment.