|
|
|
@ -51,8 +51,7 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter' |
|
|
|
}, this)); |
|
|
|
}, this)); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Screensharing.prototype.globalNotify = function() { |
|
|
|
Screensharing.prototype.globalNotify = { |
|
|
|
return { |
|
|
|
|
|
|
|
screensharingStart: function() { |
|
|
|
screensharingStart: function() { |
|
|
|
$window.dispatchEvent(GLOBAL_SCREENSHARING_START_EVENT); |
|
|
|
$window.dispatchEvent(GLOBAL_SCREENSHARING_START_EVENT); |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -60,7 +59,6 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter' |
|
|
|
$window.dispatchEvent(GLOBAL_SCREENSHARING_STOP_EVENT); |
|
|
|
$window.dispatchEvent(GLOBAL_SCREENSHARING_STOP_EVENT); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Screensharing.prototype.initialize = function() { |
|
|
|
Screensharing.prototype.initialize = function() { |
|
|
|
|
|
|
|
|
|
|
|
@ -76,7 +74,7 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter' |
|
|
|
// To work, the current domain must be whitelisted in
|
|
|
|
// To work, the current domain must be whitelisted in
|
|
|
|
// media.getusermedia.screensharing.allowed_domains (about:config).
|
|
|
|
// media.getusermedia.screensharing.allowed_domains (about:config).
|
|
|
|
// See https://wiki.mozilla.org/Screensharing for reference.
|
|
|
|
// See https://wiki.mozilla.org/Screensharing for reference.
|
|
|
|
that.globalNotify().screensharingStart(); |
|
|
|
that.globalNotify.screensharingStart(); |
|
|
|
var d = $q.defer(); |
|
|
|
var d = $q.defer(); |
|
|
|
var dlg = dialogs.create('/dialogs/screensharedialogff.html', screenshareDialogFFController, {selection: "screen"}, {}); |
|
|
|
var dlg = dialogs.create('/dialogs/screensharedialogff.html', screenshareDialogFFController, {selection: "screen"}, {}); |
|
|
|
dlg.result.then(function(source) { |
|
|
|
dlg.result.then(function(source) { |
|
|
|
|