Skip to content

Commit

Permalink
feat(webapp): change screen share width 1280
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Dec 22, 2023
1 parent b3eb0de commit dc67da1
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: 640 } })
stream = await navigator.mediaDevices.getDisplayMedia({ audio: false, video: { width: 1280 } })
} else {
stream = await navigator.mediaDevices.getUserMedia({ audio: false, video: { width: 320, deviceId: deviceId } })
}
Expand Down

0 comments on commit dc67da1

Please sign in to comment.