|
|
|
@ -32,6 +32,9 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter'
@@ -32,6 +32,9 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter'
|
|
|
|
|
}; |
|
|
|
|
}]; |
|
|
|
|
|
|
|
|
|
var GLOBAL_SCREENSHARING_START_EVENT = new Event('webrtcStartScreensharing'); |
|
|
|
|
var GLOBAL_SCREENSHARING_STOP_EVENT = new Event('webrtcStopScreensharing'); |
|
|
|
|
|
|
|
|
|
// screensharing
|
|
|
|
|
return ["$window", "$q", "$timeout", "chromeExtension", "dialogs", "$templateCache", function($window, $q, $timeout, chromeExtension, dialogs, $templateCache) { |
|
|
|
|
|
|
|
|
@ -45,6 +48,17 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter'
@@ -45,6 +48,17 @@ define(['underscore', 'text!partials/screensharedialogff.html', 'webrtc.adapter'
|
|
|
|
|
}, this)); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
Screensharing.prototype.globalNotify = function() { |
|
|
|
|
return { |
|
|
|
|
screensharingStart: function() { |
|
|
|
|
$window.dispatchEvent(GLOBAL_SCREENSHARING_START_EVENT); |
|
|
|
|
}, |
|
|
|
|
screensharingStop: function() { |
|
|
|
|
$window.dispatchEvent(GLOBAL_SCREENSHARING_STOP_EVENT); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
Screensharing.prototype.initialize = function() { |
|
|
|
|
|
|
|
|
|
// Check if we can do screensharing.
|
|
|
|
|