Skip to content

Instantly share code, notes, and snippets.

@elmarti
Created March 26, 2016 02:00
Show Gist options
  • Save elmarti/2e8d82f23a1f5e340f45 to your computer and use it in GitHub Desktop.
Save elmarti/2e8d82f23a1f5e340f45 to your computer and use it in GitHub Desktop.
//RTCPeerConnection
window.RTCPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection ||
window.webkitRTCPeerConnection || window.msRTCPeerConnection;
//getUserMedia
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia || navigator.msGetUserMedia;
//SessionDescription
window.SessionDescription = window.RTCSessionDescription || window.mozRTCSessionDescription ||
window.webkitRTCSessionDescription || msSessionDescription;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment