Created
November 16, 2019 10:40
-
-
Save themarcba/44ed15d2cbc97b6ef82ba9ff5274b4ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.App.startLocalMedia(video, screencapture, audioonly, receiveonly, null, null).then( | |
| function(o) { | |
| if (!receiveonly) { | |
| fm.liveswitch.Log.info('Started local media.') | |
| } | |
| fm.liveswitch.Log.info('Registering...') | |
| window.App.joinAsync(_this.incomingMessage, _this.peerLeft, _this.peerJoined, _this.clientRegistered).then( | |
| function(o) { | |
| fm.liveswitch.Log.info('Registered.') | |
| }, | |
| function(ex) { | |
| fm.liveswitch.Log.error('Could not joinAsync.', ex) | |
| stop() | |
| } | |
| ) | |
| }, | |
| function(ex) { | |
| fm.liveswitch.Log.error('Could not start local media.', ex) | |
| alert('Could not start local media.\n' + ex.message) | |
| stop() | |
| } | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment