Skip to content

Commit

Permalink
use provided constraints in getDisplayMedia (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcking committed Mar 8, 2021
1 parent a259765 commit f8cf4f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ export class LocalStream extends MediaStream {
},
) {
// @ts-ignore
const stream = await navigator.mediaDevices.getDisplayMedia({
video: true,
});
const stream = await navigator.mediaDevices.getDisplayMedia(constraints);

return new LocalStream(stream, {
...defaults,
Expand Down

0 comments on commit f8cf4f9

Please sign in to comment.