timing-provider
Version:
An implementation of the timing provider specification.
10 lines • 409 B
JavaScript
export const createRTCPeerConnectionFactory = (window) => () => {
if (window === null) {
throw new Error('A native EventTarget could not be created.');
}
return new window.RTCPeerConnection({
iceCandidatePoolSize: 1,
iceServers: [{ urls: ['stun:stun.l.google.com:19302', 'stun:stun1.l.google.com:19302'] }]
});
};
//# sourceMappingURL=rtc-peer-connection-factory.js.map