"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VideoType=exports.SwitchReason=exports.Protocol=exports.LiveStateCode=exports.LivePusherStateCode=exports.LIVE_PLAYER_ERROR_CODES=exports.HeartbeatAction=exports.FailureReason=void 0;var VideoType={LIVE:"live",VOD:"vod",POSTER:"poster"};exports.VideoType=VideoType;var LiveStateCode={SUCCESS:2003,CONNECTED:2001,CONNECTED_PULL:2002,FIRST_VIDEO_PACKET:2003,BEGIN_PLAY:2004,PLAY_PROGRESS:2005,PLAY_ENDED:2006,LOADING_START:2007,DECODER_START:2008,RESOLUTION_CHANGED:2009,NETWORK_RECONNECTING:2103,STALL:2105,DECODE_VIDEO_ERROR:2101,DECODE_AUDIO_ERROR:2102,NETWORK_UNSTABLE:2104,HARD_DECODE_START_FAIL:2106,VIDEO_FRAME_DISCONTINUOUS:2107,HARD_DECODE_FIRST_I_FRAME_FAIL:2108,RTMP_DNS_ERROR:3001,RTMP_CONNECT_ERROR:3002,RTMP_HANDSHAKE_ERROR:3003,RTMP_RW_ERROR:3005,NETWORK_DISCONNECT:-2301,GET_URL_ERROR:-2302};exports.LiveStateCode=LiveStateCode;var LivePusherStateCode={ENCODER_START:1008,NETWORK_DISCONNECT:-1307};exports.LivePusherStateCode=LivePusherStateCode;var FailureReason={STALL_THRESHOLD:"stall_threshold",WAITING_THRESHOLD:"waiting_threshold",LOADING_TIMEOUT:"loading_timeout",FAIL_TIMEOUT:"fail_timeout",LIVE_ERROR:"live_error",VOD_PLAY_FAILED:"vod_play_failed",STATE_ERROR:"state_error"};exports.FailureReason=FailureReason;var SwitchReason={INIT:"init",QUALITY_DOWNGRADE:"quality_downgrade",MANUAL_DEFINITION:"manual_definition",STALL_THRESHOLD:"stall_threshold",WAITING_THRESHOLD:"waiting_threshold",LOADING_TIMEOUT:"loading_timeout",STATE_ERROR:"state_error"};exports.SwitchReason=SwitchReason;var Protocol={FLV:"flv",RTMP:"rtmp"};exports.Protocol=Protocol;var HeartbeatAction={PLAY:"play",TICK:"tick",PAUSE:"pause",ENDED:"ended"};exports.HeartbeatAction=HeartbeatAction;var LIVE_PLAYER_ERROR_CODES=[LiveStateCode.DECODE_VIDEO_ERROR,LiveStateCode.DECODE_AUDIO_ERROR,LiveStateCode.NETWORK_UNSTABLE,LiveStateCode.RTMP_DNS_ERROR,LiveStateCode.RTMP_CONNECT_ERROR,LiveStateCode.RTMP_HANDSHAKE_ERROR,LiveStateCode.RTMP_RW_ERROR,LiveStateCode.NETWORK_DISCONNECT,LiveStateCode.GET_URL_ERROR];exports.LIVE_PLAYER_ERROR_CODES=LIVE_PLAYER_ERROR_CODES;