diff --git a/index.html b/index.html
index b636eaf8f..c796d2027 100644
--- a/index.html
+++ b/index.html
@@ -19,7 +19,7 @@
-
+
diff --git a/libs/app.bundle.js b/libs/app.bundle.js
index 10fa56029..3ede67bce 100644
--- a/libs/app.bundle.js
+++ b/libs/app.bundle.js
@@ -9577,13 +9577,18 @@ function initInlineInstalls()
$("link[rel=chrome-webstore-item]").attr("href", getWebStoreInstallUrl());
}
-function getSwitchStreamFailed(error) {
+function getVideoStreamFailed(error) {
console.error("Failed to obtain the stream to switch to", error);
switchInProgress = false;
isUsingScreenStream = false;
newStreamCreated(null);
}
+function getDesktopStreamFailed(error) {
+ console.error("Failed to obtain the stream to switch to", error);
+ switchInProgress = false;
+}
+
function streamSwitchDone() {
switchInProgress = false;
eventEmitter.emit(
@@ -9683,7 +9688,7 @@ module.exports = {
);
newStreamCreated(stream);
},
- getSwitchStreamFailed);
+ getDesktopStreamFailed);
} else {
// Disable screen stream
APP.RTC.getUserMediaWithConstraints(
@@ -9693,7 +9698,7 @@ module.exports = {
isUsingScreenStream = false;
newStreamCreated(stream);
},
- getSwitchStreamFailed, config.resolution || '360'
+ getVideoStreamFailed, config.resolution || '360'
);
}
}
diff --git a/modules/desktopsharing/desktopsharing.js b/modules/desktopsharing/desktopsharing.js
index be9af2341..361cf001d 100644
--- a/modules/desktopsharing/desktopsharing.js
+++ b/modules/desktopsharing/desktopsharing.js
@@ -237,13 +237,18 @@ function initInlineInstalls()
$("link[rel=chrome-webstore-item]").attr("href", getWebStoreInstallUrl());
}
-function getSwitchStreamFailed(error) {
+function getVideoStreamFailed(error) {
console.error("Failed to obtain the stream to switch to", error);
switchInProgress = false;
isUsingScreenStream = false;
newStreamCreated(null);
}
+function getDesktopStreamFailed(error) {
+ console.error("Failed to obtain the stream to switch to", error);
+ switchInProgress = false;
+}
+
function streamSwitchDone() {
switchInProgress = false;
eventEmitter.emit(
@@ -343,7 +348,7 @@ module.exports = {
);
newStreamCreated(stream);
},
- getSwitchStreamFailed);
+ getDesktopStreamFailed);
} else {
// Disable screen stream
APP.RTC.getUserMediaWithConstraints(
@@ -353,7 +358,7 @@ module.exports = {
isUsingScreenStream = false;
newStreamCreated(stream);
},
- getSwitchStreamFailed, config.resolution || '360'
+ getVideoStreamFailed, config.resolution || '360'
);
}
}