"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkWebRTCSupport = exports.mediaDevices = exports.WebRTCMediaStream = exports.RTCSessionDescription = exports.RTCPeerConnection = void 0;
// Browser compatibility checks for WebRTC
const checkWebRTCSupport = () => {
    if (typeof window === "undefined") {
        throw new Error("WebRTC is not available in non-browser environments");
    }
    if (!window.RTCPeerConnection) {
        throw new Error("RTCPeerConnection is not supported in this browser. Please use a modern browser that supports WebRTC.");
    }
    if (!window.RTCSessionDescription) {
        throw new Error("RTCSessionDescription is not supported in this browser. Please use a modern browser that supports WebRTC.");
    }
};
exports.checkWebRTCSupport = checkWebRTCSupport;
// Check support immediately
try {
    checkWebRTCSupport();
}
catch (error) {
    console.error("WebRTC Compatibility Error:", error.message);
}
exports.RTCPeerConnection = window.RTCPeerConnection;
exports.RTCSessionDescription = window.RTCSessionDescription;
exports.WebRTCMediaStream = window.MediaStream;
exports.mediaDevices = navigator.mediaDevices;
//# sourceMappingURL=webrtc-primitives.js.map