ngx-scandoc 15.2.0 → 15.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -357,12 +357,16 @@ class WebcamComponent extends BaseComponent {
357
357
  if (max &&
358
358
  currentWidth &&
359
359
  max > currentWidth &&
360
- conWidth != max) {
361
- console.log('[SET NEW RESOLUTION]');
360
+ conWidth != max &&
361
+ currentWidth != 1920) {
362
+ console.log('[SET NEW RESOLUTION] ', max, currentWidth);
362
363
  this.setupAttempt++;
363
364
  if (this.setupAttempt < 4) {
364
365
  this.setup(videoTrackConstraints);
365
366
  }
367
+ else {
368
+ this.setDeviceId(stream);
369
+ }
366
370
  }
367
371
  else {
368
372
  this.setDeviceId(stream);