|
@@ -9577,13 +9577,18 @@ function initInlineInstalls()
|
9577
|
9577
|
$("link[rel=chrome-webstore-item]").attr("href", getWebStoreInstallUrl());
|
9578
|
9578
|
}
|
9579
|
9579
|
|
9580
|
|
-function getSwitchStreamFailed(error) {
|
|
9580
|
+function getVideoStreamFailed(error) {
|
9581
|
9581
|
console.error("Failed to obtain the stream to switch to", error);
|
9582
|
9582
|
switchInProgress = false;
|
9583
|
9583
|
isUsingScreenStream = false;
|
9584
|
9584
|
newStreamCreated(null);
|
9585
|
9585
|
}
|
9586
|
9586
|
|
|
9587
|
+function getDesktopStreamFailed(error) {
|
|
9588
|
+ console.error("Failed to obtain the stream to switch to", error);
|
|
9589
|
+ switchInProgress = false;
|
|
9590
|
+}
|
|
9591
|
+
|
9587
|
9592
|
function streamSwitchDone() {
|
9588
|
9593
|
switchInProgress = false;
|
9589
|
9594
|
eventEmitter.emit(
|
|
@@ -9683,7 +9688,7 @@ module.exports = {
|
9683
|
9688
|
);
|
9684
|
9689
|
newStreamCreated(stream);
|
9685
|
9690
|
},
|
9686
|
|
- getSwitchStreamFailed);
|
|
9691
|
+ getDesktopStreamFailed);
|
9687
|
9692
|
} else {
|
9688
|
9693
|
// Disable screen stream
|
9689
|
9694
|
APP.RTC.getUserMediaWithConstraints(
|
|
@@ -9693,7 +9698,7 @@ module.exports = {
|
9693
|
9698
|
isUsingScreenStream = false;
|
9694
|
9699
|
newStreamCreated(stream);
|
9695
|
9700
|
},
|
9696
|
|
- getSwitchStreamFailed, config.resolution || '360'
|
|
9701
|
+ getVideoStreamFailed, config.resolution || '360'
|
9697
|
9702
|
);
|
9698
|
9703
|
}
|
9699
|
9704
|
}
|