|
| 1 | +export declare class PLAYER_MODULE_BRIGHTCOVE { |
| 2 | + VERSION: string; |
| 3 | + PlayerChangeLoadFlg: boolean; |
| 4 | + CONFIG: { |
| 5 | + mode: string; |
| 6 | + id: string; |
| 7 | + player_id: string; |
| 8 | + player_id_wrap: string; |
| 9 | + player_ui_id: string; |
| 10 | + player_style_id: string; |
| 11 | + videoid: string; |
| 12 | + account: string; |
| 13 | + width: string; |
| 14 | + height: string; |
| 15 | + player: string; |
| 16 | + volume: number; |
| 17 | + playsinline: string; |
| 18 | + loop: string; |
| 19 | + muted: string; |
| 20 | + ui_controls: string; |
| 21 | + ui_autoplay: string; |
| 22 | + ui_default: boolean; |
| 23 | + ui_default_css: boolean; |
| 24 | + stop_outfocus: boolean; |
| 25 | + poster: boolean; |
| 26 | + add_style: string; |
| 27 | + classname_active_wrap: string; |
| 28 | + classname_active: string; |
| 29 | + }; |
| 30 | + on: { |
| 31 | + PlayerInit: any; |
| 32 | + PlayerEnded: any; |
| 33 | + PlayerPlay: any; |
| 34 | + PlayerPause: any; |
| 35 | + TimeUpdate: any; |
| 36 | + VolumeChange: any; |
| 37 | + PlayPrep: any; |
| 38 | + Play: any; |
| 39 | + Pause: any; |
| 40 | + Stop: any; |
| 41 | + PauseAll: any; |
| 42 | + StopAll: any; |
| 43 | + Change: any; |
| 44 | + }; |
| 45 | + PlayerMediaInfo: {}; |
| 46 | + Player: any; |
| 47 | + $: { |
| 48 | + playerElem: any[]; |
| 49 | + playerElemMainWrap: any[]; |
| 50 | + uiBtnPlay: any[]; |
| 51 | + uiBtnStop: any[]; |
| 52 | + uiBtnPause: any[]; |
| 53 | + uiBtnMute: any[]; |
| 54 | + uiBtnVolon: any[]; |
| 55 | + uiBtnVoloff: any[]; |
| 56 | + uiDisplayTime: any[]; |
| 57 | + uiDisplayTimeNow: any[]; |
| 58 | + uiDisplayTimeTotal: any[]; |
| 59 | + uiDisplayTimeDown: any[]; |
| 60 | + uiDisplayTimePar: any[]; |
| 61 | + uiDisplayPoster: any[]; |
| 62 | + uiDisplayPosterBg: any[]; |
| 63 | + uiDisplayName: any[]; |
| 64 | + uiSeekbarVol: any[]; |
| 65 | + uiSeekbarVolBg: any[]; |
| 66 | + uiSeekbarVolCover: any[]; |
| 67 | + uiSeekbarTime: any[]; |
| 68 | + uiSeekbarTimeBg: any[]; |
| 69 | + uiSeekbarTimeCover: any[]; |
| 70 | + uiBtnChange: any[]; |
| 71 | + uiBtnDataId: any[]; |
| 72 | + }; |
| 73 | + playerHtml: string; |
| 74 | + playerUiHtml: string; |
| 75 | + playerCss: string; |
| 76 | + playerCssOption: string; |
| 77 | + playerScriptCode: string; |
| 78 | + PlayerJson: {}; |
| 79 | + PlayerChangeSeekingFlg: boolean; |
| 80 | + state: { |
| 81 | + poster: string; |
| 82 | + }; |
| 83 | + constructor(options: any); |
| 84 | + private BuildPlayer; |
| 85 | + PlayerInstance(): void; |
| 86 | + AddGlobalObject(): void; |
| 87 | + CacheElement(): void; |
| 88 | + EventPlay(): void; |
| 89 | + EventPause(): void; |
| 90 | + EventStop(): void; |
| 91 | + EventMute(): void; |
| 92 | + EventVolon(): void; |
| 93 | + EventVoloff(): void; |
| 94 | + /** |
| 95 | + * When dragging a seek bar(volume). |
| 96 | + */ |
| 97 | + EventSeekbarVol(): void; |
| 98 | + /** |
| 99 | + * When dragging a seek bar(time). |
| 100 | + */ |
| 101 | + EventSeekbarTime(): void; |
| 102 | + EventChangeVideo(): void; |
| 103 | + ClassOn(): void; |
| 104 | + ClassOff(): void; |
| 105 | + Update(): void; |
| 106 | + Play(callback?: () => {}): void; |
| 107 | + Stop(callback?: () => {}): void; |
| 108 | + Pause(callback?: () => {}): void; |
| 109 | + Mute(): void; |
| 110 | + /** |
| 111 | + * When Media change. |
| 112 | + * |
| 113 | + * id | str | media-id. |
| 114 | + * isplay | boolean | auto start after changed media. |
| 115 | + * callback | function | callback function after changed media. |
| 116 | + */ |
| 117 | + Change(id: any, isplay?: boolean, callback?: () => {}): void; |
| 118 | + PauseAll(callback?: () => {}): void; |
| 119 | + StopAll(callback?: () => {}): void; |
| 120 | + SeekTo(sec: any): boolean; |
| 121 | + GetTime(): string; |
| 122 | + GetTimeDown(): string; |
| 123 | + GetTimeMax(): string; |
| 124 | + GetTimeRatio(): number; |
| 125 | + GetTimePar(): string; |
| 126 | + GetPoster(): any; |
| 127 | + GetMediaInfo(): any; |
| 128 | + SetVolume(vol?: number | 'off'): boolean; |
| 129 | + Destroy(): void; |
| 130 | + private _setPoster; |
| 131 | + private _setInfo; |
| 132 | + static parseNumber(num: number | string): string; |
| 133 | + static pad(n: number | string, width: number, z: string): string; |
| 134 | + static toFixedNumber(num: number | string, digits: number, base?: number): number; |
| 135 | +} |
0 commit comments