Last active
August 15, 2018 21:32
-
-
Save ktoraskartwilio/40643f97d1cb6475f1fffcac2773c835 to your computer and use it in GitHub Desktop.
ConnectOptions showing setting iceTransportPolicy property usage
This file contains 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
var Video = require('twilio-video'); | |
var token = getAccessToken(); | |
Video.connect(token, { | |
name: 'my-cool-room', | |
iceTransportPolicy: 'relay' | |
}).then(function(room) { | |
room.on('participantConnected', function(participant) { | |
console.log(participant.identity + ' has connected'); | |
}); | |
room.once('disconnected', function() { | |
console.log('You left the Room:', room.name); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment