webrtc-test-suite
Version:
Testing webRTC capabilities by trying to use them. Not a feature detector. A capability tester.Also packs some utilities to make developer's live easier while making webRTC tools.
6 lines • 349 B
JavaScript
export default function createRTCPeerConnection(configuration){
if(window.RTCPeerConnection) return new RTCPeerConnection(configuration);
else if(window.webkitRTCPeerConnection) return new webkitRTCPeerConnection(configuration);
else if(window.mozRTCPeerConnection) return new mozRTCPeerConnection(configuration);
else return null;
}