import { int, String, long, Context, Map, Integer, JSONObject, HashMap, float, List, double, ArrayList } from './types'; import { DataLoaderListener2, IPreLoaderItemCallBackListener, PreloaderVidSubtitleItemFetchListener } from './callback'; import { SubDesInfoModel, VideoModel } from './api'; export declare class DataLoaderHelper { static readonly ERROR_TYPE_NONE = 0; static readonly ERROR_TYPE_FETCHVIDEOMODEL = 1; static readonly ERROR_TYPE_MODULESTART = 2; static readonly ERROR_TYPE_FETCHDATA = 3; static readonly ERROR_TYPE_FILEOPERATION = 4; static readonly ERROR_TYPE_FETCH_SUBTITLE_MODEL = 5; static getDataLoader(): DataLoaderHelper; notifyPreloadCancelled(reason: String, traceId: String): void; notifyTriggerPreload(buffer: long): void; updateSettings(): void; addListener(listener: DataLoaderListener2): void; removeListener(listener: DataLoaderListener2): void; updateLockType(type: int): void; setContext(context: Context): void; getContext(): Context; setReportLogEnable(reportLogEnable: boolean): void; isReportLogEnable(): boolean; start(): void; isRunning(): boolean; resumeFileWriteIO(): void; close(): void; disableAutoTrim(key: String): void; enableAutoTrim(key: String): void; addTask(key: String, vidItem: PreloaderVidItem): void; addTask_vidItem(vidItem: PreloaderVidItem): void; addTask_urlItem(urlItem: PreloaderURLItem): void; addTask_subtitleVidItem(subtitleVidItem: PreloaderVidSubtitleItem): void; addTask_key$videoId$videoModel$resolution$preloadSize(key: String, videoId: String, videoModel: VideoModel, resolution: Resolution, preloadSize: long): void; addTask_videoModel$resolution$preloadSize(videoModel: IVideoModel, resolution: Resolution, preloadSize: long): void; addTask_videoModel$resolution$params$preloadSize(videoModel: IVideoModel, resolution: Resolution, params: Map, preloadSize: long): void; preConnect(url: String): void; switchToCellularNetwork(): void; switchToDefaultNetwork(): void; getCDNLog(fKey: String): JSONObject; getDownloadCountByVid(vid: String): long; p2pPredown(url: String): void; addTask_modelItem(modelItem: PreloaderVideoModelItem): void; addTask_key$videoId$url$preloadSize(key: String, videoId: String, url: String, preloadSize: long): void; addTask_key$videoId$urls$preloadSize(key: String, videoId: String, urls: Array, preloadSize: long): void; addTask_key$videoId$urls$preloadSize$cacheDir(key: String, videoId: String, urls: Array, preloadSize: long, cacheDir: String): void; addTask_url$videoId$preloadSize$filePath(url: String, videoId: String, preloadSize: long, filePath: String): void; addTask_urls$videoId$preloadSize$filePath(urls: Array, videoId: String, preloadSize: long, filePath: String): void; removePriorityPreloadTask(key: String): void; checkLoaderType(loaderType: int): void; removeAllPreloadMedia(sceneId: String, moveFlag: int): void; setIntValue(key: int, value: int): void; setLongValue(key: int, value: long): void; setPlayInfo(key1: int, key2: String, vid: String, value: long): void; isNeedPlayInfo(): boolean; setPlayInfoOnlyForPreload(key1: int, key2: String, vid: String, value: long): void; updateCurrentNetStatus(): void; setStringValue(key: int, value: String): void; setIntValueSync(key: int, value: int): void; setStringValueSync(key: int, value: String): void; setCacheInfoLists(dirs: Array, maxCaches: Array): void; setProtectCacheDirsAvoidClear(dirs: Array): void; getStringValue(key: int): String; getLongValue(key: int): long; getIntValue(key: int): int; getCacheFileSize(key: String): long; tryQuickGetCacheFileSize(key: String): long; quickQueryCacheFileSize(key: String): long; getPlayLog(traceId: String): String; getIoWriteError(traceId: String): long; isNotifyNetworkErrorCodes(value: int): boolean; getPreloadTraceId(rawKey: String): String; resetPreloadTraceId(rawKey: String): void; getCacheSizeByFilePath(filePath: String): long; getMissReason(type: int, info: String, vid: String, groupId: String): long; tryToClearCachesByUsedTime(time: long): void; tryToClearAndGetCachesByUsedTime(time: long, isNeedDeleteFile: boolean): long; clearNetinfoCache(): void; cancelTaskByFilePath(filePath: String): void; updateDnsInfo(dnsInfo: JSONObject, dnsTime: long): void; cancelTaskByVideoId(vid: String): void; cancelTask(key: String): void; cancelAllTasks(): void; cancelAllWaitReqs(): void; removeCacheFile(key: String): void; removeDownloadFile(key: String): void; getAllCacheSize(): long; clearAllCaches(): void; clearAllCaches_force(force: boolean): void; cleanSpecifiedCacheDir(dirpath: String, force: int): void; writeDataToFile(fileKey: String, fileSize: long, off: long, length: int, buffer: ArrayBuffer): int; getCacheSize(key: String): long; getContinueCacheSize(key: String, mediaType: int, timestamp: long): long; cleanCacheDir(leftSize: long): void; cacheFileInfo(key: String): DataLoaderCacheFileInfo; cancelAllTasksInternal(): void; generateSubUrlKey(mainKey: String, subUrl: String): String; proxyUrl(key: String, url: String): String; proxyUrl_key$rawKey$url(key: String, rawKey: String, url: String): String; proxyUrl_key$rawKey$urls$resolution$decryptionKey(key: String, rawKey: String, urls: Array, resolution: Resolution, decryptionKey: String): String; proxyUrl_key$rawKey$urls$resolution$decryptionKey$filePath(key: String, rawKey: String, urls: Array, resolution: Resolution, decryptionKey: String, filePath: String): String; getDataLoaderUrl(key: String, rawKey: String, urls: Array, resolution: Resolution, decryptionKey: String): String; _getProxyUrl(protocolUrl: String): String; } export declare class DataLoaderTaskProgressInfo { mKey: String; mVideoId: String; mLocalFilePath: String; mMediaSize: long; mResolution: Resolution; mDecryptionKey: String; } export declare class CacheInfo { mKey: String; mMediaSize: long; mLocalFilePath: String; mError: Error; } export declare class DataLoaderCacheFileInfo { mLocalFilePath: String; mMediaSize: long; } export declare class DirectUrlSource { firstItem(): UrlItem; subtitleModel(): SubDesInfoModelProvider; subtitleId(): Integer; vid(): String; codecStrategy(): int; tag(): Object; isSmartUrlEnabled(): boolean; } export declare class Source { static readonly KEY_COST_SAVING_FIRST = 1; static readonly KEY_HARDWARE_DECODE_FIRST = 2; static readonly customHeaders: Map; static isCodecStrategyValid(codecStrategy: int): boolean; vid(): String; codecStrategy(): int; tag(): Object; isCodecStrategyValid(): boolean; setCustomHeader(hashMap: Map): void; getCustomHeaders(): Map; } export declare class UrlItem { getUrl(): String; getUrls(): Array; getCacheKey(): String; getPlayAuth(): String; getEncodeType(): String; getFormat(): String; getBitrate(): int; } export declare class DirectUrlSource$UrlItem$Builder { constructor(urlItem: UrlItem); constructor(); setUrl(url: String): this; setUrls(urls: Array): this; setCacheKey(cacheKey: String): this; setPlayAuth(playAuth: String): this; setEncodeType(encodeType: String): this; setFormat(format: String): this; setBitrate(bitrate: int): this; build(): UrlItem; } export declare class DirectUrlSource$Builder { constructor(); setVid(vid: String): this; addItem(urlItem: UrlItem): this; setSubtitleModel(subtitleModel: SubDesInfoModelProvider): this; setSubtitleId(subtitleId: Integer): this; setTag(tag: Object): this; build(): DirectUrlSource; } export declare class VideoModelSource { subtitleModel(): SubDesInfoModelProvider; subtitleId(): Integer; vid(): String; videoModel(): IVideoModel; resolution(): Resolution; } export declare class VidPlayAuthTokenSource { vid(): String; playAuthToken(): String; encodeType(): String; subtitleAuthToken(): String; tag(): Object; resolution(): Resolution; getUrlExtendParams(): Map; } export declare class VidPlayAuthTokenSource$Builder { constructor(); setVid(vid: String): this; setPlayAuthToken(playAuthToken: String): this; setEncodeType(encodeType: String): this; setResolution(resolution: Resolution): this; setSubtitleAuthToken(subtitleAuthToken: String): this; setUrlExtendParams(urlExtendParams: Map): this; build(): VidPlayAuthTokenSource; } export declare class PreloaderURLItem { constructor(key: String, videoId: String, preloadSize: long, urls: Array); constructor(videoId: String, preloadSize: long, urls: Array, filePath: String); constructor(source: DirectUrlSource, preloadSize: long); constructor(key: String, videoId: String, preloadSize: long, urls: Array, cacheDir: String); getUrls(): Array; getVideoId(): String; setTag(tag: String): void; getTag(): String; setSubTag(subTag: String): void; getSubTag(): String; getPreloadSize(): long; getCallBackListener(): IPreLoaderItemCallBackListener; setCallBackListener(listener: IPreLoaderItemCallBackListener): void; setFormatType(formatType: String): void; getFormatType(): String; getHash(): String; setUseOriginalUrlEncode(useOriginalUrlEncode: int): void; getUseOriginalUrlEncode(): int; setEnableHlsProxy(enable: boolean): void; getEnableHlsProxy(): boolean; setEnableDashProxy(enable: boolean): void; getEnableDashProxy(): boolean; } export declare class PreloaderVidItem { constructor(vid: String, authorization: String, resolution: Resolution, preloadSize: long, codecType: String); constructor(vid: String, authorization: String, onlyFetchVideoModel: boolean); constructor(source: VidPlayAuthTokenSource, preloadSize: long); constructor(vid: String, resolution: Resolution, preloadSize: long, ish265: boolean); constructor(vid: String, resolution: Resolution, preloadSize: long, codecType: String); constructor(vid: String, resolution: Resolution, preloadSize: long, ish265: boolean, forbidP2p: boolean); constructor(vid: String, resolution: Resolution, preloadSize: long, codecType: String, forbidP2p: boolean); constructor(vid: String, authorization: String, resolution: Resolution, preloadSize: long, ish265: boolean); mGearStrategyExtraParams: Map; mGearStrategyEnabled: int; mStartTimestamp: long; getUrlExtendParams(): Map; setUrlExtendParams(urlExtendParams: Map): void; setTag(tag: String): void; getTag(): String; setSubTag(subTag: String): void; getSubTag(): String; setCallBackListener(listener: IPreLoaderItemCallBackListener): void; getCallBackListener(): IPreLoaderItemCallBackListener; setStartTimestamp(timestamp: long): void; getStartTimestamp(): long; setFormatType(formatType: String): void; getFormatType(): String; getHash(): String; setCustomHeader(key: String, value: String): void; customHeaders(): HashMap; } export declare class PreloaderVideoModelItem { constructor(videoModel: VideoModel, resolution: Resolution, preloadSize: long, forbidP2p: boolean); constructor(videoModel: VideoModel, resolution: Resolution, preloadSize: long, preloadMilliSecondOffset: long, preloadMilliSecond: long, forbidP2p: boolean); constructor(videoModel: VideoModel, resolution: Resolution, preloadSize: long, preloadMilliSecondOffset: long, forbidP2p: boolean); constructor(videoModel: VideoModel, resolution: Resolution, preloadMilliSecond: float, timePreloadLowerLimitSize: long, timePreloadUpperLimitSize: long); constructor(videoModel: VideoModel, resolution: Resolution, preloadMilliSecondOffset: long, preloadMilliSecond: float, timePreloadLowerLimitSize: long, timePreloadUpperLimitSize: long); constructor(source: VideoModelSource, preloadSize: long); mGearStrategyExtraParams: Map; mGearStrategyEnabled: int; setCallBackListener(listener: IPreLoaderItemCallBackListener): void; getCallBackListener(): IPreLoaderItemCallBackListener; setTag(tag: String): void; getTag(): String; setSubTag(subTag: String): void; getSubTag(): String; setFormatType(formatType: String): void; getFormatType(): String; setUseOriginalUrlEncode(useOriginalUrlEncode: int): void; getUseOriginalUrlEncode(): int; _notifyError(errorCode: int): void; getHash(): String; setDashVideoPreloadSize(videoPreloadSize: long): void; setDashAudioPreloadSize(audioPreloadSize: long): void; getDashVideoPreloadSize(): long; getDashAudioPreloadSize(): long; setCustomHeader(key: String, value: String): void; customHeaders(): HashMap; } export declare class PreLoaderItemCallBackInfo { static readonly KEY_IS_PRELOAD_END_SUCCEED = 2; static readonly KEY_IS_PRELOAD_END_FAIL = 3; static readonly KEY_IS_FETCH_END_VIDEOMODEL = 4; static readonly KEY_IS_PRELOAD_END_CANCEL = 5; static readonly KEY_IS_PRELOAD_INFO = 6; static readonly KEY_IS_PRELOAD_ADDED = 7; static readonly KEY_IS_PRELOAD_START = 8; static readonly KEY_IS_PRELOAD_ALL_URL_FAILED = 9; static readonly KEY_IS_FETCH_END_SUBTITLE_MODEL = 10; constructor(key: int); usingUrlInfos: List; preloadDataInfo: DataLoaderTaskProgressInfo; preloadError: Error; fetchVideoModel: VideoModel; fetchSubtitleModel: SubDesInfoModel; businessContext: String; getKey(): int; } export declare class VideoEngineInfos { static readonly USING_MDL_HIT_CACHE_SIZE = "mdlhitcachesize"; static readonly USING_MDL_HIT_CACHE_SIZE_SUBTITLE = "mdlHitCacheSizeSubtitle"; static readonly USING_RENDER_SEEK_COMPLETE = "renderSeekComplete"; constructor(); getKey(): String; getUsingMDLHitCacheSize(): long; setUsingMDLHitCacheSize(size: long): void; getUsingMDLPlayTaskKey(): String; getmUsingMDLPlayFilePath(): String; } export declare class PlaybackParams { getSpeed(): float; setSpeed(speed: float): this; } export declare class StrategySource { } export declare class SubDesInfoModelProvider { subtitleCount(): int; addSubModel(model: SubModelProvider): void; getSubModelList(): List; findSubModel(subId: int): SubModelProvider; } export declare class IVideoModel { static readonly MARK_FLAG_DEFAULT = 0; static readonly MARK_FLAG_OPTIONAL_GEAR_UPDATE = 1; static readonly MARK_FLAG_OPTIONAL_ENHANCE_TYPE_UPDATE = 2; static readonly MARK_FLAG_OPTIONAL_MEDIA_EXTRA_INFO = 8; hasData(): boolean; getVideoInfoList(): List; getSubInfoList(): List; getSource(): Source; getVideoInfo(resolution: Resolution): VideoInfo; getVideoInfo_otherDimensionalityMap(otherDimensionalityMap: Map): VideoInfo; getVideoInfo_resolution$otherDimensionalityMap(resolution: Resolution, otherDimensionalityMap: Map): VideoInfo; getVideoInfo_resolution$type$otherDimensionalityMap(resolution: Resolution, type: int, otherDimensionalityMap: Map): VideoInfo; getVideoInfo_resolution$downgrade(resolution: Resolution, downgrade: boolean): VideoInfo; getVideoInfo_resolution$otherDimensionalityMap$downgrade(resolution: Resolution, otherDimensionalityMap: Map, downgrade: boolean): VideoInfo; getVideoInfo_resolution$type$downgrade(resolution: Resolution, type: int, downgrade: boolean): VideoInfo; getVideoInfo_resolution$type$otherDimensionalityMap$downgrade(resolution: Resolution, type: int, otherDimensionalityMap: Map, downgrade: boolean): VideoInfo; allVideoURLs(resolution: Resolution): Array; allVideoURLs_resolution$otherDimensionalityMap(resolution: Resolution, otherDimensionalityMap: Map): Array; getSpadea(): String; getKid(): String; getWideVinePssh(): String; getCodecs(): Array; getVType(): String; getDynamicType(): String; getSupportResolutions(): Array; getSupportQualityInfos(): Array; getSupportSubtitleLangs(): Array; getDnsInfo(): JSONObject; getVideoRefInt(key: int): int; getVideoRefStr(key: int): String; getVideoRefBool(key: int): boolean; getVideoRefLong(key: int): long; getVideoRefFloat(key: int): float; setUpResolution(resolutionMap: HashMap): void; resolutionToString(resolution: Resolution): String; isSupportBash(): boolean; isSupportHLSSeamlessSwitch(): boolean; toMediaInfoJsonString(): String; getMediaInfo(): JSONObject; fromMediaInfoJsonString(jsonString: String): int; fromMediaInfoJsonObject(jsonObject: JSONObject): int; getSupportInfoId(mediaType: int): List; getVideoInfoByInfoId(infoId: int): VideoInfo; getSupportedTTSAudioInfo(): List; getOriginalAudioInfo(): List; } export declare class SubModelProvider { getSubId(): int; getLanguageId(): int; getCacheKey(): String; getOriginalUrl(): String; getUrlString(): String; toJson(): JSONObject; } export declare class VideoFormatInfo { fileFormat: String; bitrate: long; width: int; height: int; rotation: int; containerFps: float; channels: int; sampleRate: int; } export declare class VideoInfo { static readonly VALUE_VIDEO_INFO_MAIN_URL = 0; static readonly VALUE_VIDEO_INFO_VWIDTH = 1; static readonly VALUE_VIDEO_INFO_VHEIGHT = 2; static readonly VALUE_VIDEO_INFO_BITRATE = 3; static readonly VALUE_VIDEO_INFO_ENCRYPT = 4; static readonly VALUE_VIDEO_INFO_PLAY_AUTH = 5; static readonly VALUE_VIDEO_INFO_FORMAT_TYPE = 6; static readonly VALUE_VIDEO_INFO_DEFINITION = 7; static readonly VALUE_VIDEO_INFO_CODEC_TYPE = 8; static readonly VALUE_VIDEO_INFO_PRELOAD_SIZE = 9; static readonly VALUE_VIDEO_INFO_PRELOAD_MIN_STEP = 10; static readonly VALUE_VIDEO_INFO_PRELOAD_MAX_STEP = 11; static readonly VALUE_VIDEO_INFO_SIZE = 12; static readonly VALUE_VIDEO_INFO_PRELOAD_INTERVAL = 13; static readonly VALUE_VIDEO_INFO_FILE_HASH = 15; static readonly VALUE_VIDEO_INFO_URLS = 16; static readonly VALUE_VIDEO_INFO_BACKUP_URL_1 = 17; static readonly VALUE_VIDEO_INFO_QUALITY = 18; static readonly VALUE_VIDEO_INFO_LOGO_TYPE = 19; static readonly VALUE_VIDEO_INFO_GBR = 20; static readonly VALUE_VIDEO_INFO_USE_VIDEO_PROXY = 21; static readonly VALUE_VIDEO_INFO_SOCKET_BUFFER = 22; static readonly VALUE_VIDEO_INFO_BACKUP_URL_2 = 23; static readonly VALUE_VIDEO_INFO_BACKUP_URL_3 = 24; static readonly VALUE_VIDEO_INFO_STORE_PATH = 25; static readonly VALUE_VIDEO_INFO_RESOLUTION_STR = 26; static readonly VALUE_VIDEO_INFO_DURATION = 27; static readonly VALUE_VIDEO_INFO_FILEID = 28; static readonly VALUE_VIDEO_INFO_P2PVERIFYURL = 29; static readonly VALUE_VIDEO_INFO_URLEXPIRED = 30; static readonly VALUE_VIDEO_INFO_CHECK_INFO = 31; static readonly VALUE_VIDEO_INFO_QUALITY_DESC = 32; static readonly VALUE_VIDEO_INFO_BARRAGE_OFFSET = 33; static readonly VALUE_VIDEO_INFO_INIT_RANGE = 34; static readonly VALUE_VIDEO_INFO_INDEX_RANGE = 35; static readonly VALUE_VIDEO_INFO_KID = 36; static readonly VALUE_VIDEO_INFO_BARRAGE_URL = 37; static readonly VALUE_VIDEO_HEAD_SIZE = 38; static readonly VALUE_VIDEO_INFO_LOUDNESS = 39; static readonly VALUE_VIDEO_INFO_PEAK = 40; static readonly VALUE_VIDEO_INFO_QUALITY_TYPE = 41; static readonly VALUE_VIDEO_INFO_INFO_ID = 42; static readonly VALUE_VIDEO_INFO_AI_BARRAGE_URL = 43; static readonly VALUE_VIDEO_INFO_REAL_BITRATE = 44; static readonly VALUE_VIDEO_VIEWPORT = 45; static readonly VALUE_VIDEO_INFO_RESOLUTION_FILEID = 46; static readonly VALUE_VIDEO_INFO_FIRST_MOOF_RANGE = 47; static readonly VALUE_VIDEO_INFO_RESOLUTION = 48; static readonly VALUE_VIDEO_INFO_MAIN_URL_EXPIRE = 49; static readonly VALUE_VIDEO_INFO_BACKUP_URL_EXPIRE = 50; static readonly VALUE_VIDEO_INFO_URL_EXPIRES = 51; static readonly VALUE_VIDEO_INFO_AVG_BITRATE = 52; static readonly VALUE_VIDEO_INFO_SEGMENT_SIZE_INFO = 53; static readonly VALUE_VIDEO_INFO_ENCODE_USER_TAG = 54; static readonly VALUE_VIDEO_INFO_AUDIO_PROFILE = 55; static readonly VALUE_VIDEO_INFO_DRM_TYPE = 56; static readonly VALUE_VIDEO_INFO_ENCRYPTION_PSSH_WIDEVINE = 57; static readonly KEY_LOGO_TYPE = "logo_type"; static readonly DRM_TYPE_PRIVATE_ENCRYPT_UPGRADE = "private_encrypt_upgrade"; constructor(keyseed: String); mURLs: Array; mMainUrl: String; mBackupUrl1: String; mBackupUrl2: String; mBackupUrl3: String; mVWidth: int; mVHeight: int; mBitrate: int; mGbr: int; mEncrypt: boolean; mSpadea: String; mStorePath: String; mVType: String; mCodecType: String; mFileHash: String; mDefinition: String; preloadSize: int; playLoadMinStep: int; playLoadMaxStep: int; mSize: long; mVideoDuration: int; preloadInterval: int; useVideoProxy: int; isAutoDefinition: boolean; mQuality: String; mLoudness: float; mPeak: float; mInfoId: int; mLanguageId: int; mLanguageCode: String; mDubVersion: String; mRealBitrate: int; mMainUrlExpire: String; mBackupUrlExpire: String; mURLExpires: Array; extractFields(obj: JSONObject): void; copyInfo(): this; getVersion(): int; setVersion(version: int): void; getMediatype(): int; setMediaType(mediaType: int): void; getResolution(): Resolution; setResolution(resolution: Resolution): void; isUseVideoProxy(): boolean; getSocketBuffer(): int; getPreloadInterval(): int; getValueInt(key: int): int; getValueStr(key: int): String; getValueStrArr(key: int): Array; getValueFloat(key: int): float; getValueBool(key: int): boolean; getValueLong(key: int): long; setValue(key: int, value: Array): void; setValue_key$value(key: int, value: int): void; setResolutionBaseMap(resolutionMap: HashMap): void; toBashJsonObject(): JSONObject; toMediaInfo(): Map; fromMediaInfoJsonObject(jsonObject: JSONObject): int; setUrlExtendParams(urlExtendParams: Map): void; } export declare enum Resolution { Undefine = 0, Standard = 1, High = 2, SuperHigh = 3, ExtremelyHigh = 4, FourK = 5, HDR = 6, Auto = 7, L_Standard = 8, H_High = 9, TwoK = 10, ExtremelyHigh_50F = 11, TwoK_50F = 12, FourK_50F = 13, ExtremelyHigh_60F = 14, TwoK_60F = 15, FourK_60F = 16, ExtremelyHigh_120F = 17, TwoK_120F = 18, FourK_120F = 19, L_Standard_HDR = 20, Standard_HDR = 21, High_HDR = 22, H_High_HDR = 23, SuperHigh_HDR = 24, ExtremelyHigh_HDR = 25, TwoK_HDR = 26, FourK_HDR = 27, EightK = 28, ExtremelyHighPlus = 29 } export declare class VideoThumbInfo { static readonly VALUE_VIDEO_THUMB_INFO_IMG_NUM = 0; static readonly VALUE_VIDEO_THUMB_INFO_URI = 1; static readonly VALUE_VIDEO_THUMB_INFO_IMG_URL = 2; static readonly VALUE_VIDEO_THUMB_INFO_IMG_X_SIZE = 3; static readonly VALUE_VIDEO_THUMB_INFO_IMG_Y_SIZE = 4; static readonly VALUE_VIDEO_THUMB_INFO_IMG_X_LEN = 5; static readonly VALUE_VIDEO_THUMB_INFO_IMG_Y_LEN = 6; static readonly VALUE_VIDEO_THUMB_INFO_DURATION = 7; static readonly VALUE_VIDEO_THUMB_INFO_INTERVAL = 8; static readonly VALUE_VIDEO_THUMB_INFO_FEXT = 9; static readonly VALUE_VIDEO_THUMB_INFO_CAPTURE_NUM = 0; static readonly VALUE_VIDEO_THUMB_INFO_CELL_WIDTH = 3; static readonly VALUE_VIDEO_THUMB_INFO_CELL_HEIGHT = 4; static readonly VALUE_VIDEO_THUMB_INFO_FORMAT = 9; static readonly KEY_IMG_NUM = "img_num"; static readonly KEY_URI = "uri"; static readonly KEY_IMG_URI = "img_uri"; static readonly KEY_IMG_URL = "img_url"; static readonly KEY_IMG_URLS = "img_urls"; static readonly KEY_IMG_X_SIZE = "img_x_size"; static readonly KEY_IMG_Y_SIZE = "img_y_size"; static readonly KEY_IMG_X_LEN = "img_x_len"; static readonly KEY_IMG_Y_LEN = "img_y_len"; static readonly KEY_DURATION = "duration"; static readonly KEY_INTERVAL = "interval"; static readonly KEY_FEXT = "fext"; mImgNum: int; mUri: String; mImgUrl: String; mImgXsize: int; mImgYsize: int; mImgXlen: int; mImgYlen: int; mDuration: double; mInterval: double; mFext: String; mImgUrlList: ArrayList; setVersion(version: int): void; extractFields(obj: JSONObject): void; getValueInt(key: int): int; getValueStr(key: int): String; getValueDouble(key: int): double; getUrls(): List; } export declare class PreloaderVidSubtitleItem { constructor(vidSource: VidPlayAuthTokenSource, preloadSize: long); mSubtitleIds: String; setCallBackListener(listener: IPreLoaderItemCallBackListener): void; getCallBackListener(): IPreLoaderItemCallBackListener; setFetchEndListener(mListener: PreloaderVidSubtitleItemFetchListener): void; getFetchEndListener(): PreloaderVidSubtitleItemFetchListener; setResolution(resolution: Resolution): void; getResolution(): Resolution; setSubtitleId(subtitleId: int): void; getSubtitleId(): int; setSubtitleIds(subtitleIds: String): void; getSubtitleIds(): String; setTag(tag: String): void; getTag(): String; setSubTag(subTag: String): void; getSubTag(): String; getKey(): String; getVideoId(): String; getPreloadSize(): long; setPlayIndexGap(playIndexGap: int): void; getPlayIndexGap(): int; setPriorityLevel(priorityLevel: int): void; getPriorityLevel(): int; } export declare enum EncryptVersion { NONE = 0, MDL_VERSION_1 = 1 } export declare enum EncodeType { h264 = "h264", h265 = "h265", h266 = "h266" } export declare enum PlaybackState { PLAYBACK_STATE_STOPPED = 0, PLAYBACK_STATE_PLAYING = 1, PLAYBACK_STATE_PAUSED = 2, PLAYBACK_STATE_ERROR = 3 } export declare enum DownloadTaskState { DOWNLOAD_TASK_STATE_INIT = 0, DOWNLOAD_TASK_STATE_WAITING = 1, DOWNLOAD_TASK_STATE_RUNNING = 2, DOWNLOAD_TASK_STATE_SUSPENDED = 3, DOWNLOAD_TASK_STATE_CANCELING = 4, DOWNLOAD_TASK_STATE_COMPLETED = 5 } export declare enum StrategyType { STRATEGY_TYPE_COMMON = 0, STRATEGY_TYPE_PRELOAD = 1, STRATEGY_TYPE_PRE_RENDER = 2, STRATEGY_TYPE_NONE = 3 } export declare enum StrategyScene { STRATEGY_SCENE_SMALL_VIDEO = 0, STRATEGY_SCENE_SHORT_VIDEO = 1 } export declare enum PlayerLoadState { LOAD_STATE_PLAYABLE = 0, LOAD_STATE_STALLED = 1, LOAD_STATE_ERROR = 2 } export declare enum FillMode { IMAGE_LAYOUT_ASPECT_FIT = 0, IMAGE_LAYOUT_TO_FILL = 1, IMAGE_LAYOUT_ASPECT_FILL = 2, IMAGE_LAYOUT_ASPECT_FILL_X = 3, IMAGE_LAYOUT_ASPECT_FILL_Y = 4 } export declare enum RotationType { Rotation_0 = 0, Rotation_90 = 1, Rotation_180 = 2, Rotation_270 = 3 } export declare class SubInfo { mSubId: int; mLanguageId: int; mFormat: String; mVersion: String; } export declare class AppRegion { CHINA: string; AMERICA: string; SINGAPORE: string; MYA: string; }