Notify when screensharing has been initiated

This commit is contained in:
perroned 2015-11-02 13:09:28 -08:00
parent 98f1414c5b
commit 2aa743a1fd
2 changed files with 4 additions and 0 deletions

View File

@ -90,3 +90,6 @@ class @NotificationControl
"Sorry,<br/>#{if browserName isnt 'settings' then browserName else 'your browser'} doesn't support WebRTC") "Sorry,<br/>#{if browserName isnt 'settings' then browserName else 'your browser'} doesn't support WebRTC")
(new Raphael('browser-icon-container', 35, 35)).path(NotificationControl.icons["#{browserName}_IconPath"]).attr({fill: "#FFF", stroke: "none"}) (new Raphael('browser-icon-container', 35, 35)).path(NotificationControl.icons["#{browserName}_IconPath"]).attr({fill: "#FFF", stroke: "none"})
).display("webRTC_NotSupported") ).display("webRTC_NotSupported")
@notification_ScreenShared = ->
Meteor.NotificationControl.create("screenBeingShared", 'success', 'You are now broadcasting your screen', 2500).display("screenBeingShared")

View File

@ -104,6 +104,7 @@ this.doshare = function(on, callback, videoTag) {
share_call.rtc.options.callbacks = $.extend(share_call.rtc.options.callbacks, callbacks); share_call.rtc.options.callbacks = $.extend(share_call.rtc.options.callbacks, callbacks);
setTimeout(function() { setTimeout(function() {
notification_ScreenShared();
return simulatePresenterDeskshareHasStarted(); return simulatePresenterDeskshareHasStarted();
}, 4000); }, 4000);
}); });