|
|
|
@ -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' |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|