Created
October 22, 2013 02:22
-
-
Save brianmed/7094263 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
| 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