import * as $p_a from '../android/index'; import * as $p_i from '../ios/index'; export declare enum PlaybackState { PLAYBACK_STATE_STOPPED = 0, PLAYBACK_STATE_PLAYING = 1, PLAYBACK_STATE_PAUSED = 2, PLAYBACK_STATE_ERROR = 3 } export declare enum PlayerLoadState { PLAYABLE = 1, STALLED = 2, ERROR = 3, TTVideoEngineLoadStateUnknown = 4 } export declare enum FillModeType { FillModeNone = 1, FillModeAspectFit = 2, FillModeAspectFill = 3, FillModeFill = 4, /** * @platform android */ IMAGE_LAYOUT_ASPECT_FILL_Y = 5 } export declare enum RotationType { RotationTypeNone = 0, RotationType90 = 90, RotationType180 = 180, RotationType270 = 270 } export declare enum EncodeType { H264 = 1, H265 = 2, /** * @platform android */ h266 = 3 } export declare class DirectUrlSource { protected _instance: any; protected __init(...args: any[]): void; protected __new_instance(...args: any[]): any; subtitleId(): number; vid(): string; } export declare class VideoModelSource { protected _instance: any; get ios_subtitleInfoModel(): $p_i.TTVideoEngineSubDecInfoModel; set ios_subtitleInfoModel(value: $p_i.TTVideoEngineSubDecInfoModel); get ios_customHeaders(): $p_i.NSDictionary<$p_i.NSString, $p_i.NSString>; set ios_customHeaders(value: $p_i.NSDictionary<$p_i.NSString, $p_i.NSString>); protected __init(...args: any[]): void; protected __new_instance(...args: any[]): any; /** * @platform android */ android_subtitleModel(): $p_a.SubDesInfoModelProvider; subtitleId(): number; vid(): string; resolution(): ResolutionType; ios_preloadVideoResolution(): $p_i.TTVideoEngineResolutionType; ios_initWithVid(vid: string, resolution: $p_i.TTVideoEngineResolutionType, videoModel: $p_i.TTVideoEngineModel): this; } export declare class VidSource { protected _instance: any; protected __init(...args: any[]): void; protected __new_instance(...args: any[]): any; vid(): string; playAuthToken(): string; encodeType(): string; subtitleAuthToken(): string; resolution(): ResolutionType; } export declare enum ResolutionType { Undefine = "Undefine", Standard = "Standard", High = "High", HighH = "HighH", SuperHigh = "SuperHigh", ExtremelyHigh = "ExtremelyHigh", TwoK = "TwoK", FourK = "FourK", Auto = "Auto", /** * @platform android */ HDR = 0, /** * @platform android */ L_Standard = 1, /** * @platform android */ ExtremelyHigh_50F = 2, /** * @platform android */ TwoK_50F = 3, /** * @platform android */ FourK_50F = 4, /** * @platform android */ ExtremelyHigh_60F = 5, /** * @platform android */ TwoK_60F = 6, /** * @platform android */ FourK_60F = 7, /** * @platform android */ ExtremelyHigh_120F = 8, /** * @platform android */ TwoK_120F = 9, /** * @platform android */ FourK_120F = 10, /** * @platform android */ L_Standard_HDR = 11, /** * @platform android */ Standard_HDR = 12, /** * @platform android */ High_HDR = 13, /** * @platform android */ H_High_HDR = 14, /** * @platform android */ SuperHigh_HDR = 15, /** * @platform android */ ExtremelyHigh_HDR = 16, /** * @platform android */ TwoK_HDR = 17, /** * @platform android */ FourK_HDR = 18, /** * @platform android */ EightK = 19, /** * @platform android */ ExtremelyHighPlus = 20 } export declare enum StrategyType { None = "None", Preload = "Preload", PreRender = "PreRender", Common = "Common" } export declare enum StrategyScene { SmallVideo = "SmallVideo", ShortVideo = "ShortVideo" } export declare class DownloadTask { protected _instance: any; get ios_taskDescription(): $p_i.NSString; set ios_taskDescription(value: $p_i.NSString); get ios_progress(): $p_i.double; set ios_progress(value: $p_i.double); get ios_error(): $p_i.NSError; set ios_error(value: $p_i.NSError); protected __init(...args: any[]): void; protected __new_instance(...args: any[]): any; get state(): DownloadTaskState; get countOfBytesReceived(): number; get countOfBytesExpectedToReceive(): number; get availableLocalFilePath(): string; android_setCustomDir(dir: string): void; android_getTaskDescription(): string; /** * @platform android */ android_setUseOriginalUrlEncode(useOriginalUrlEncode: number): void; /** * @platform android */ android_getUseOriginalUrlEncode(): number; /** * @platform android */ android_setState(state: number): void; android_getError(): Error; android_getVideoId(): string; invalidateAndCancel(): void; suspend(): void; resume(): void; get progress(): number; /** * @platform android */ android_getProgress(): number; } export declare enum DownloadTaskState { /** {en} * @brief Initializing */ Init = 0, /** {en} * @brief Waiting */ Waiting = 1, /** {en} * @brief Running */ Running = 2, /** {en} * @brief Suspended */ Suspended = 3, /** {en} * @brief Canceling */ Canceling = 4, /** {en} * @brief Completed */ Completed = 5 } export declare class t_ResolutionType { static ts_to_android(value: ResolutionType): $p_a.Resolution; static android_to_ts(value: $p_a.Resolution): ResolutionType; static ts_to_ios(value: ResolutionType): $p_i.TTVideoEngineResolutionType; static ios_to_ts(value: $p_i.TTVideoEngineResolutionType): ResolutionType; } export declare class t_PlaybackState { static ts_to_android(value: PlaybackState): $p_a.PlaybackState; static android_to_ts(value: $p_a.PlaybackState): PlaybackState; static ts_to_ios(value: PlaybackState): $p_i.TTVideoEnginePlaybackState; static ios_to_ts(value: $p_i.TTVideoEnginePlaybackState): PlaybackState; } export declare class t_PlayerLoadState { static ts_to_android(value: PlayerLoadState): $p_a.PlayerLoadState; static android_to_ts(value: $p_a.PlayerLoadState): PlayerLoadState; static ts_to_ios(value: PlayerLoadState): $p_i.TTVideoEngineLoadState; static ios_to_ts(value: $p_i.TTVideoEngineLoadState): PlayerLoadState; } export declare class t_FillModeType { static ts_to_android(value: FillModeType): $p_a.FillMode; static android_to_ts(value: $p_a.FillMode): FillModeType; static ts_to_ios(value: FillModeType): $p_i.TTVideoEngineScalingMode; static ios_to_ts(value: $p_i.TTVideoEngineScalingMode): FillModeType; } export declare class t_RotationType { static ts_to_android(value: RotationType): $p_a.RotationType; static android_to_ts(value: $p_a.RotationType): RotationType; static ts_to_ios(value: RotationType): $p_i.TTVideoEngineImageRotationType; static ios_to_ts(value: $p_i.TTVideoEngineImageRotationType): RotationType; } export declare class t_EncodeType { static ts_to_android(value: EncodeType): $p_a.EncodeType; static android_to_ts(value: $p_a.EncodeType): EncodeType; static ts_to_ios(value: EncodeType): $p_i.TTVideoEngineEncodeType; static ios_to_ts(value: $p_i.TTVideoEngineEncodeType): EncodeType; } export declare class t_StrategyType { static ts_to_android(value: StrategyType): $p_a.StrategyType; static android_to_ts(value: $p_a.StrategyType): StrategyType; static ts_to_ios(value: StrategyType): $p_i.TTVideoEngineStrategyType; static ios_to_ts(value: $p_i.TTVideoEngineStrategyType): StrategyType; } export declare class t_StrategyScene { static ts_to_android(value: StrategyScene): $p_a.StrategyScene; static android_to_ts(value: $p_a.StrategyScene): StrategyScene; static ts_to_ios(value: StrategyScene): $p_i.TTVEngineStrategyScene; static ios_to_ts(value: $p_i.TTVEngineStrategyScene): StrategyScene; } export declare class t_DownloadTaskState { static ts_to_android(value: DownloadTaskState): $p_a.DownloadTaskState; static android_to_ts(value: $p_a.DownloadTaskState): DownloadTaskState; static ts_to_ios(value: DownloadTaskState): $p_i.TTVideoEngineDownloadState; static ios_to_ts(value: $p_i.TTVideoEngineDownloadState): DownloadTaskState; }