Skip to content

Instantly share code, notes, and snippets.

@themarcba
Created November 16, 2019 10:40
Show Gist options
  • Select an option

  • Save themarcba/44ed15d2cbc97b6ef82ba9ff5274b4ce to your computer and use it in GitHub Desktop.

Select an option

Save themarcba/44ed15d2cbc97b6ef82ba9ff5274b4ce to your computer and use it in GitHub Desktop.
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