Notify when screensharing has been initiated
This commit is contained in:
parent
98f1414c5b
commit
2aa743a1fd
@ -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")
|
||||||
|
@ -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);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user