Skip to content

Commit

Permalink
tidy up the code
Browse files Browse the repository at this point in the history
  • Loading branch information
golgetahir committed Feb 21, 2021
1 parent 77a8e09 commit be91646
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/webapp/js/stream_merger.js
Expand Up @@ -10,11 +10,11 @@ export class StreamMerger{
this.audioDestination = this.audioCtx.createMediaStreamDestination()
this.autoMode = autoMode;

//9:16 portrait mode stream width height
//3:4 portrait mode stream width height
this.pwidth = 0
this.pheight = 0

//16:9 vertical mode stream width height
//4:3 vertical mode stream width height
this.vwidth = 0
this.wheight = 0;

Expand Down Expand Up @@ -55,8 +55,6 @@ export class StreamMerger{
this.audioCtx.resume();
stream.streamId = options.streamId;

let {width, height} = mediaStream.getVideoTracks()[0].getSettings();

stream.width = options.width || 150;
stream.height = options.height || 150;
stream.Xindex = options.Xindex || 0;
Expand Down

0 comments on commit be91646

Please sign in to comment.