Skip to content

Instantly share code, notes, and snippets.

@brianmed
Created October 22, 2013 02:22
Show Gist options
  • Select an option

  • Save brianmed/7094263 to your computer and use it in GitHub Desktop.

Select an option

Save brianmed/7094263 to your computer and use it in GitHub Desktop.
var iceServers = {
iceServers: [{
url: 'stun:23.21.150.121'
}]
};
var optionalRtpDataChannels = {
optional: [{DtlsSrtpKeyAgreement: true}, {RtpDataChannels: true }]
};
if (isFirefox) {
offerer = new mozRTCPeerConnection(iceServers, optionalRtpDataChannels);
}
else {
offerer = new webkitRTCPeerConnection(iceServers, optionalRtpDataChannels);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment