Skip to content

Commit

Permalink
force updateCamera aspectRatio to ask 16:9
Browse files Browse the repository at this point in the history
  • Loading branch information
edolix committed Aug 10, 2021
1 parent 96a6c8c commit da9a3c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/webrtc/src/BaseConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ export class BaseConnection

updateCamera(constraints: MediaTrackConstraints) {
return this.updateConstraints({
video: constraints,
video: {
aspectRatio: 16 / 9,
...constraints,
},
})
}

Expand Down

0 comments on commit da9a3c3

Please sign in to comment.