mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Enforce constraints
This commit is contained in:
parent
3724bad03f
commit
d06cca34d4
@ -739,7 +739,7 @@ class CallWindow extends CustomEvents {
|
|||||||
* @param {MediaStream} stream Target stream
|
* @param {MediaStream} stream Target stream
|
||||||
*/
|
*/
|
||||||
async applyStream(peerID, muted, stream) {
|
async applyStream(peerID, muted, stream) {
|
||||||
|
|
||||||
// Remove any previous video stream
|
// Remove any previous video stream
|
||||||
if(this.videoEls.has(peerID)) {
|
if(this.videoEls.has(peerID)) {
|
||||||
this.removeVideoElement(peerID)
|
this.removeVideoElement(peerID)
|
||||||
@ -956,8 +956,8 @@ class CallWindow extends CustomEvents {
|
|||||||
const videoTrack = this.mainStream.getVideoTracks()[0];
|
const videoTrack = this.mainStream.getVideoTracks()[0];
|
||||||
|
|
||||||
// Fix video & canvas size
|
// Fix video & canvas size
|
||||||
videoTarget.width = videoTrack.getSettings().width
|
videoTarget.width = 320;
|
||||||
videoTarget.height = videoTrack.getSettings().height
|
videoTarget.height = 240;
|
||||||
canvasTarget.width = videoTarget.width;
|
canvasTarget.width = videoTarget.width;
|
||||||
canvasTarget.height = videoTarget.height;
|
canvasTarget.height = videoTarget.height;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user