Skip to content
Snippets Groups Projects
Commit c2f33d56 authored by Julien Schmidt's avatar Julien Schmidt
Browse files

improve RTCPeerConnection support

parent 17dde2bd
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,12 @@ function ice() {
sdpSemantics: 'unified-plan'
};
RTCPeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection;
if (!!RTCPeerConnection) {
log("RTCPeerConnection not supported by browser or blocked.");
reject('UNSUPPORTED');
}
let best = null;
let pc = new RTCPeerConnection(config);
pc.onicecandidate = function(event) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment