"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VIDEO_WAITING_END_TIMEOUT_MS=exports.VIDEO_RECREATE_BACKGROUND_THRESHOLD_DEFAULT_MS=exports.VIDEO_FIRST_FRAME_TIMEOUT_DEFAULT_MS=exports.LIVE_VIDEO_WAITING_THRESHOLD_DEFAULT_COUNT=exports.LIVE_SUCCESS_CODE_DEFAULT=exports.LIVE_STALL_WINDOW_DEFAULT_MS=exports.LIVE_STALL_THRESHOLD_DEFAULT_COUNT=exports.LIVE_RETRY_ROUND_MAX=exports.LIVE_MIN_CACHE_DEFAULT=exports.LIVE_MAX_CACHE_DEFAULT=exports.LIVE_LOADING_TIMEOUT_DEFAULT_MS=exports.LIVE_FIRST_FRAME_TIMEOUT_DEFAULT_MS=exports.LIVE_ENGINE_MODE_DEFAULT=exports.DEFAULT_MINI_SDK_CONFIG=exports.API_RETRY_MAX=void 0;var _types=require("./types"),_constant=require("../../utils/constant"),LIVE_RETRY_ROUND_MAX=3;exports.LIVE_RETRY_ROUND_MAX=LIVE_RETRY_ROUND_MAX;var LIVE_SUCCESS_CODE_DEFAULT=_types.LiveStateCode.SUCCESS;exports.LIVE_SUCCESS_CODE_DEFAULT=LIVE_SUCCESS_CODE_DEFAULT;var LIVE_LOADING_TIMEOUT_DEFAULT_MS=2e4;exports.LIVE_LOADING_TIMEOUT_DEFAULT_MS=LIVE_LOADING_TIMEOUT_DEFAULT_MS;var LIVE_STALL_WINDOW_DEFAULT_MS=5e3;exports.LIVE_STALL_WINDOW_DEFAULT_MS=LIVE_STALL_WINDOW_DEFAULT_MS;var LIVE_STALL_THRESHOLD_DEFAULT_COUNT=3;exports.LIVE_STALL_THRESHOLD_DEFAULT_COUNT=LIVE_STALL_THRESHOLD_DEFAULT_COUNT;var LIVE_VIDEO_WAITING_THRESHOLD_DEFAULT_COUNT=2;exports.LIVE_VIDEO_WAITING_THRESHOLD_DEFAULT_COUNT=LIVE_VIDEO_WAITING_THRESHOLD_DEFAULT_COUNT;var LIVE_MIN_CACHE_DEFAULT=5;exports.LIVE_MIN_CACHE_DEFAULT=LIVE_MIN_CACHE_DEFAULT;var LIVE_MAX_CACHE_DEFAULT=20;exports.LIVE_MAX_CACHE_DEFAULT=LIVE_MAX_CACHE_DEFAULT;var API_RETRY_MAX=4;exports.API_RETRY_MAX=API_RETRY_MAX;var LIVE_FIRST_FRAME_TIMEOUT_DEFAULT_MS=15e3;exports.LIVE_FIRST_FRAME_TIMEOUT_DEFAULT_MS=LIVE_FIRST_FRAME_TIMEOUT_DEFAULT_MS;var VIDEO_FIRST_FRAME_TIMEOUT_DEFAULT_MS=3e4;exports.VIDEO_FIRST_FRAME_TIMEOUT_DEFAULT_MS=VIDEO_FIRST_FRAME_TIMEOUT_DEFAULT_MS;var VIDEO_WAITING_END_TIMEOUT_MS=2e3;exports.VIDEO_WAITING_END_TIMEOUT_MS=VIDEO_WAITING_END_TIMEOUT_MS;var VIDEO_RECREATE_BACKGROUND_THRESHOLD_DEFAULT_MS=3e4;exports.VIDEO_RECREATE_BACKGROUND_THRESHOLD_DEFAULT_MS=VIDEO_RECREATE_BACKGROUND_THRESHOLD_DEFAULT_MS;var LIVE_ENGINE_MODE_DEFAULT=_constant.BUILD_VIDEO_ONLY?"video":"auto";exports.LIVE_ENGINE_MODE_DEFAULT=LIVE_ENGINE_MODE_DEFAULT;var DEFAULT_MINI_SDK_CONFIG={player:{live:{buffer:{minCache:LIVE_MIN_CACHE_DEFAULT,maxCache:LIVE_MAX_CACHE_DEFAULT},stability:{successCode:LIVE_SUCCESS_CODE_DEFAULT,firstFrameTimeoutMs:LIVE_FIRST_FRAME_TIMEOUT_DEFAULT_MS,loadingTimeoutMs:LIVE_LOADING_TIMEOUT_DEFAULT_MS,stall:{windowMs:LIVE_STALL_WINDOW_DEFAULT_MS,threshold:LIVE_STALL_THRESHOLD_DEFAULT_COUNT},videoWaitingThreshold:LIVE_VIDEO_WAITING_THRESHOLD_DEFAULT_COUNT,perfDebounceMs:Math.min(LIVE_LOADING_TIMEOUT_DEFAULT_MS,LIVE_STALL_WINDOW_DEFAULT_MS)},strategy:{enableQualityDowngrade:!0,enableStreamSwitch:!0,enableStreamSwitchOnPerfIssue:!0,streamSwitchRoundMax:LIVE_RETRY_ROUND_MAX,reduceQualityOnWeakNetAtStart:!0,reduceQualityOnLowPerformanceDeviceAtStart:!0},engine:{mode:LIVE_ENGINE_MODE_DEFAULT,forceUseVideoDevices:[{platform:"devtools"}]}},video:{stability:{firstFrameTimeoutMs:VIDEO_FIRST_FRAME_TIMEOUT_DEFAULT_MS},strategy:{enableStreamSwitch:!0,reduceQualityOnWeakNetAtStart:!0,reduceQualityOnLowPerformanceDeviceAtStart:!0}},videoRecreate:{backgroundThresholdMs:VIDEO_RECREATE_BACKGROUND_THRESHOLD_DEFAULT_MS,unexpectedPauseRecreate:!0,appShowRecreateDevices:[{platform:"ohos"}],pageShowRecreateDevices:[{platform:"ohos"}],videoErrorCallbackRecreateDevices:[{platform:"ohos"}]},backgroundPlayback:{enabledDevices:[],disabledDevices:[{platform:"ios"},{platform:"android"},{platform:"ohos"},{platform:"devtools"},{platform:"windows"},{platform:"mac"}]}}};exports.DEFAULT_MINI_SDK_CONFIG=DEFAULT_MINI_SDK_CONFIG;