|
@@ -1,4 +1,4 @@
|
1
|
|
-/* global $, config, connection, chrome, alert, getUserMediaWithConstraints, changeLocalVideo, getConferenceHandler */
|
|
1
|
+/* global $, alert, changeLocalVideo, chrome, config, connection, getConferenceHandler, getUserMediaWithConstraints, VideoLayout */
|
2
|
2
|
/**
|
3
|
3
|
* Indicates that desktop stream is currently in use(for toggle purpose).
|
4
|
4
|
* @type {boolean}
|
|
@@ -283,9 +283,9 @@ function toggleScreenSharing() {
|
283
|
283
|
}
|
284
|
284
|
switchInProgress = true;
|
285
|
285
|
|
286
|
|
- // Only the focus is able to set a shared key.
|
287
|
286
|
if (!isUsingScreenStream)
|
288
|
287
|
{
|
|
288
|
+ // Switch to desktop stream
|
289
|
289
|
obtainDesktopStream(
|
290
|
290
|
function (stream) {
|
291
|
291
|
// We now use screen stream
|