"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ICE_SERVERS = exports.HD_QUALITY_PEERS_LIMIT = exports.SCREEN_SHARING_SVC_ENCODINGS = exports.SCREEN_SHARING_SIMULCAST_ENCODINGS = exports.WEBCAM_KSVC_ENCODINGS = exports.WEBCAM_SIMULCAST_ENCODINGS_VGA = exports.WEBCAM_SIMULCAST_ENCODINGS = exports.PC_PROPRIETARY_CONSTRAINTS = exports.VIDEO_CONSTRAINS_SCREENSHARE = exports.VIDEO_CONSTRAINS = void 0;
exports.VIDEO_CONSTRAINS = {
    qqvga: { width: { ideal: 160 }, height: { ideal: 120 } },
    qvga: { width: 320, height: 240 },
    vga: { width: 640, height: 480 },
    hd: { width: 1280, height: 720 },
    hd_cropped: { width: 900, height: 720 },
};
exports.VIDEO_CONSTRAINS_SCREENSHARE = {
    vga: { width: { max: 640 }, height: { max: 480 } },
    hd: { width: { max: 1280 }, height: { max: 720 } },
    full_hd: { width: { max: 1980 }, height: { max: 1080 } },
};
exports.PC_PROPRIETARY_CONSTRAINTS = {
    optional: [
        { googDscp: true },
        { googHighStartBitrate: 0 },
        { googPayloadPadding: true },
        { googScreencastMinBitrate: 100 },
        { googCpuOveruseDetection: true },
        { googCpuOveruseEncodeUsage: true },
        { googCpuUnderuseThreshold: 55 },
        { googCpuOveruseThreshold: 85 },
    ],
};
// Used for simulcast webcam video.
exports.WEBCAM_SIMULCAST_ENCODINGS = [
    { rid: 'r0', scalabilityMode: 'S1T3' },
    { rid: 'r1', scalabilityMode: 'S1T3' },
    { rid: 'r2', scalabilityMode: 'S1T3' },
];
exports.WEBCAM_SIMULCAST_ENCODINGS_VGA = [
    { rid: 'r0', scalabilityMode: 'S1T2' },
    { rid: 'r1', scalabilityMode: 'S1T2' },
];
// Used for VP9 webcam video.
exports.WEBCAM_KSVC_ENCODINGS = [{ scalabilityMode: 'L3T3_KEY' }];
// Used for simulcast screen sharing.
exports.SCREEN_SHARING_SIMULCAST_ENCODINGS = [
    { dtx: true, maxBitrate: 1500000 },
    { dtx: true, maxBitrate: 6000000 },
];
// Used for VP9 screen sharing.
exports.SCREEN_SHARING_SVC_ENCODINGS = [
    { scalabilityMode: 'L3T3', dtx: true },
];
exports.HD_QUALITY_PEERS_LIMIT = 1;
exports.ICE_SERVERS = [
    {
        urls: 'turn:turn.dyte.in:443?transport=tcp',
        username: 'dyte',
        credential: 'dytein',
        credentialType: 'password',
    },
    {
        urls: 'turn:turn.dyte.in:3478?transport=udp',
        username: 'dyte',
        credential: 'dytein',
        credentialType: 'password',
    },
];
//# sourceMappingURL=RoomConfig.js.map