xgplayer 2.32.5 → 2.32.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/controls/airplay.js +1 -1
- package/browser/controls/cssFullscreen.js +1 -1
- package/browser/controls/danmu.js +3 -1
- package/browser/controls/definition.js +1 -1
- package/browser/controls/download.js +1 -1
- package/browser/controls/enter.js +1 -1
- package/browser/controls/error.js +1 -1
- package/browser/controls/errorRetry.js +1 -1
- package/browser/controls/flex.js +1 -1
- package/browser/controls/fullscreen.js +1 -1
- package/browser/controls/loading.js +1 -1
- package/browser/controls/memoryPlay.js +1 -1
- package/browser/controls/miniplayer.js +9 -7
- package/browser/controls/mobile.js +1 -1
- package/browser/controls/nativeTextTrack.js +1 -1
- package/browser/controls/pc.js +1 -1
- package/browser/controls/pip.js +1 -1
- package/browser/controls/play.js +1 -1
- package/browser/controls/playNext.js +1 -1
- package/browser/controls/playbackRate.js +1 -1
- package/browser/controls/poster.js +1 -1
- package/browser/controls/progress.js +1 -1
- package/browser/controls/reload.js +1 -1
- package/browser/controls/replay.js +1 -1
- package/browser/controls/rotate.js +1 -1
- package/browser/controls/screenShot.js +1 -1
- package/browser/controls/start.js +1 -1
- package/browser/controls/textTrack.js +1 -1
- package/browser/controls/time.js +1 -1
- package/browser/controls/volume.js +1 -1
- package/browser/core_player.js +1 -1
- package/browser/core_player.js.map +1 -1
- package/browser/index.js +11 -7
- package/browser/index.js.map +1 -1
- package/browser/simple_player.js +1 -1
- package/browser/simple_player.js.map +1 -1
- package/dist/controls/airplay.js +1 -1
- package/dist/controls/cssFullscreen.js +1 -1
- package/dist/controls/danmu.js +3 -1
- package/dist/controls/definition.js +1 -1
- package/dist/controls/download.js +1 -1
- package/dist/controls/enter.js +1 -1
- package/dist/controls/error.js +1 -1
- package/dist/controls/errorRetry.js +1 -1
- package/dist/controls/flex.js +1 -1
- package/dist/controls/fullscreen.js +1 -1
- package/dist/controls/loading.js +1 -1
- package/dist/controls/memoryPlay.js +1 -1
- package/dist/controls/miniplayer.js +9 -7
- package/dist/controls/mobile.js +1 -1
- package/dist/controls/nativeTextTrack.js +1 -1
- package/dist/controls/pc.js +1 -1
- package/dist/controls/pip.js +1 -1
- package/dist/controls/play.js +1 -1
- package/dist/controls/playNext.js +1 -1
- package/dist/controls/playbackRate.js +1 -1
- package/dist/controls/poster.js +1 -1
- package/dist/controls/progress.js +1 -1
- package/dist/controls/reload.js +1 -1
- package/dist/controls/replay.js +1 -1
- package/dist/controls/rotate.js +1 -1
- package/dist/controls/screenShot.js +1 -1
- package/dist/controls/start.js +1 -1
- package/dist/controls/textTrack.js +1 -1
- package/dist/controls/time.js +1 -1
- package/dist/controls/volume.js +1 -1
- package/dist/core_player.js +2960 -2889
- package/dist/core_player.js.map +1 -1
- package/dist/index.js +1938 -3321
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -0
- package/dist/index.min.js +2 -0
- package/dist/index.min.js.map +1 -0
- package/dist/simple_player.js +274 -281
- package/dist/simple_player.js.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +216 -0
- package/es/constant.d.ts +4 -0
- package/es/constant.js +5 -0
- package/es/controls/airplay.js +1 -1
- package/es/controls/cssFullscreen.js +1 -1
- package/es/controls/danmu.js +3 -1
- package/es/controls/definition.js +1 -1
- package/es/controls/download.js +1 -1
- package/es/controls/enter.js +1 -1
- package/es/controls/error.js +1 -1
- package/es/controls/errorRetry.js +1 -1
- package/es/controls/flex.js +1 -1
- package/es/controls/fullscreen.js +1 -1
- package/es/controls/i18n.js +1 -1
- package/es/controls/keyboard.js +1 -1
- package/es/controls/loading.js +1 -1
- package/es/controls/localPreview.js +1 -1
- package/es/controls/memoryPlay.js +1 -1
- package/es/controls/miniplayer.js +9 -7
- package/es/controls/mobile.js +1 -1
- package/es/controls/nativeTextTrack.js +1 -1
- package/es/controls/pc.js +1 -1
- package/es/controls/pip.js +1 -1
- package/es/controls/play.js +1 -1
- package/es/controls/playNext.js +1 -1
- package/es/controls/playbackRate.js +1 -1
- package/es/controls/poster.js +1 -1
- package/es/controls/progress.js +1 -1
- package/es/controls/reload.js +1 -1
- package/es/controls/replay.js +1 -1
- package/es/controls/rotate.js +1 -1
- package/es/controls/screenShot.js +1 -1
- package/es/controls/start.js +1 -1
- package/es/controls/textTrack.js +1 -1
- package/es/controls/time.js +1 -1
- package/es/controls/volume.js +1 -1
- package/es/core_player.js +1 -1
- package/es/core_player.js.map +1 -1
- package/es/defaultConfig.d.ts +243 -0
- package/es/defaultConfig.js +85 -0
- package/es/error.d.ts +114 -0
- package/es/error.js +75 -0
- package/es/events.d.ts +61 -0
- package/es/events.js +62 -0
- package/es/icons.d.ts +2 -0
- package/es/index.css +499 -0
- package/es/index.d.ts +25 -0
- package/es/index.js +11 -7
- package/es/index.js.map +1 -1
- package/es/index.scss +29 -0
- package/es/index.umd.d.ts +60 -0
- package/es/index.umd.js +30 -0
- package/es/lang/en.d.ts +91 -0
- package/es/lang/en.js +77 -0
- package/es/lang/i18n.d.ts +36 -0
- package/es/lang/i18n.js +122 -0
- package/es/lang/index.d.ts +2 -0
- package/es/lang/jp.d.ts +91 -0
- package/es/lang/jp.js +77 -0
- package/es/lang/zh-cn.d.ts +91 -0
- package/es/lang/zh-cn.js +77 -0
- package/es/lang/zh-hk.d.ts +91 -0
- package/es/lang/zh-hk.js +77 -0
- package/es/mediaProxy.d.ts +334 -0
- package/es/mediaProxy.js +623 -0
- package/es/player.d.ts +825 -0
- package/es/player.js +1945 -0
- package/es/plugin/basePlugin.d.ts +180 -0
- package/es/plugin/basePlugin.js +259 -0
- package/es/plugin/hooksDescriptor.d.ts +60 -0
- package/es/plugin/hooksDescriptor.js +149 -0
- package/es/plugin/index.d.ts +13 -0
- package/es/plugin/plugin.d.ts +207 -0
- package/es/plugin/plugin.js +542 -0
- package/es/plugin/pluginsManager.d.ts +162 -0
- package/es/plugin/pluginsManager.js +362 -0
- package/es/plugin/preset.d.ts +1 -0
- package/es/plugin/preset.js +28 -0
- package/es/plugin/resizeObserver.d.ts +3 -0
- package/es/plugin/resizeObserver.js +108 -0
- package/es/plugins/assets/back.js +4 -0
- package/es/plugins/assets/download.js +4 -0
- package/es/plugins/assets/exitCssFull.js +4 -0
- package/es/plugins/assets/exitFull.js +4 -0
- package/es/plugins/assets/loading.js +4 -0
- package/es/plugins/assets/panel.js +4 -0
- package/es/plugins/assets/pause.js +4 -0
- package/es/plugins/assets/pipIcon.js +4 -0
- package/es/plugins/assets/pipIconExit.js +4 -0
- package/es/plugins/assets/play.js +4 -0
- package/es/plugins/assets/playNext.js +4 -0
- package/es/plugins/assets/replay.js +4 -0
- package/es/plugins/assets/requestCssFull.js +7 -0
- package/es/plugins/assets/requestFull.js +4 -0
- package/es/plugins/assets/rotate.js +4 -0
- package/es/plugins/assets/seekicon.js +4 -0
- package/es/plugins/assets/volumeLarge.js +4 -0
- package/es/plugins/assets/volumeMuted.js +4 -0
- package/es/plugins/assets/volumeSmall.js +4 -0
- package/es/plugins/common/iconPlugin.d.ts +5 -0
- package/es/plugins/common/iconPlugin.js +42 -0
- package/es/plugins/common/iconTools.d.ts +1 -0
- package/es/plugins/common/iconTools.js +8 -0
- package/es/plugins/common/index.scss +2 -0
- package/es/plugins/common/optionList.d.ts +15 -0
- package/es/plugins/common/optionList.js +120 -0
- package/es/plugins/common/optionsIcon.d.ts +40 -0
- package/es/plugins/common/optionsIcon.js +304 -0
- package/es/plugins/common/optionsIcon.scss +154 -0
- package/es/plugins/common/thumbnail.d.ts +62 -0
- package/es/plugins/common/thumbnail.js +191 -0
- package/es/plugins/common/thumbnail.scss +27 -0
- package/es/plugins/controls/index.css +132 -0
- package/es/plugins/controls/index.d.ts +73 -0
- package/es/plugins/controls/index.js +189 -0
- package/es/plugins/controls/index.scss +204 -0
- package/es/plugins/cssFullScreen/index.css +12 -0
- package/es/plugins/cssFullScreen/index.d.ts +40 -0
- package/es/plugins/cssFullScreen/index.js +136 -0
- package/es/plugins/cssFullScreen/index.scss +19 -0
- package/es/plugins/danmu/danmuIcon.d.ts +24 -0
- package/es/plugins/danmu/danmuIcon.js +98 -0
- package/es/plugins/danmu/danmuPanel.d.ts +39 -0
- package/es/plugins/danmu/danmuPanel.js +81 -0
- package/es/plugins/danmu/index.css +603 -0
- package/es/plugins/danmu/index.d.ts +96 -0
- package/es/plugins/danmu/index.js +313 -0
- package/es/plugins/danmu/index.scss +356 -0
- package/es/plugins/definition/index.css +4 -0
- package/es/plugins/definition/index.d.ts +38 -0
- package/es/plugins/definition/index.js +164 -0
- package/es/plugins/definition/index.scss +4 -0
- package/es/plugins/download/index.css +13 -0
- package/es/plugins/download/index.d.ts +31 -0
- package/es/plugins/download/index.js +107 -0
- package/es/plugins/download/index.scss +22 -0
- package/es/plugins/dynamicBg/index.css +16 -0
- package/es/plugins/dynamicBg/index.d.ts +83 -0
- package/es/plugins/dynamicBg/index.js +316 -0
- package/es/plugins/dynamicBg/index.scss +19 -0
- package/es/plugins/enter/index.css +104 -0
- package/es/plugins/enter/index.d.ts +19 -0
- package/es/plugins/enter/index.js +46 -0
- package/es/plugins/enter/index.scss +78 -0
- package/es/plugins/error/index.css +29 -0
- package/es/plugins/error/index.d.ts +8 -0
- package/es/plugins/error/index.js +75 -0
- package/es/plugins/error/index.scss +34 -0
- package/es/plugins/fpsDetect/index.d.ts +34 -0
- package/es/plugins/fpsDetect/index.js +149 -0
- package/es/plugins/fullscreen/backicon.d.ts +17 -0
- package/es/plugins/fullscreen/backicon.js +72 -0
- package/es/plugins/fullscreen/index.css +23 -0
- package/es/plugins/fullscreen/index.d.ts +58 -0
- package/es/plugins/fullscreen/index.js +202 -0
- package/es/plugins/fullscreen/index.scss +35 -0
- package/es/plugins/gapJump/index.d.ts +21 -0
- package/es/plugins/gapJump/index.js +142 -0
- package/es/plugins/keyboard/index.d.ts +89 -0
- package/es/plugins/keyboard/index.js +421 -0
- package/es/plugins/loading/index.css +58 -0
- package/es/plugins/loading/index.d.ts +11 -0
- package/es/plugins/loading/index.js +43 -0
- package/es/plugins/loading/index.scss +70 -0
- package/es/plugins/logger/index.d.ts +54 -0
- package/es/plugins/logger/index.js +311 -0
- package/es/plugins/miniScreen/index.css +179 -0
- package/es/plugins/miniScreen/index.d.ts +68 -0
- package/es/plugins/miniScreen/index.js +212 -0
- package/es/plugins/miniScreen/index.scss +198 -0
- package/es/plugins/miniScreen/miniScreenIcon.d.ts +11 -0
- package/es/plugins/miniScreen/miniScreenIcon.js +56 -0
- package/es/plugins/mobile/index.css +181 -0
- package/es/plugins/mobile/index.d.ts +125 -0
- package/es/plugins/mobile/index.js +631 -0
- package/es/plugins/mobile/index.scss +180 -0
- package/es/plugins/mobile/touch.d.ts +43 -0
- package/es/plugins/mobile/touch.js +214 -0
- package/es/plugins/netAdaption/index.d.ts +5 -0
- package/es/plugins/pc/index.css +3 -0
- package/es/plugins/pc/index.d.ts +14 -0
- package/es/plugins/pc/index.js +199 -0
- package/es/plugins/pc/index.scss +5 -0
- package/es/plugins/pip/index.css +12 -0
- package/es/plugins/pip/index.d.ts +37 -0
- package/es/plugins/pip/index.js +222 -0
- package/es/plugins/pip/index.scss +21 -0
- package/es/plugins/play/index.css +12 -0
- package/es/plugins/play/index.d.ts +23 -0
- package/es/plugins/play/index.js +127 -0
- package/es/plugins/play/index.scss +18 -0
- package/es/plugins/playNext/index.css +22 -0
- package/es/plugins/playNext/index.d.ts +19 -0
- package/es/plugins/playNext/index.js +104 -0
- package/es/plugins/playNext/index.scss +35 -0
- package/es/plugins/playbackRate/index.css +4 -0
- package/es/plugins/playbackRate/index.d.ts +31 -0
- package/es/plugins/playbackRate/index.js +140 -0
- package/es/plugins/playbackRate/index.scss +6 -0
- package/es/plugins/poster/index.css +39 -0
- package/es/plugins/poster/index.d.ts +27 -0
- package/es/plugins/poster/index.js +109 -0
- package/es/plugins/poster/index.scss +56 -0
- package/es/plugins/progress/index.css +234 -0
- package/es/plugins/progress/index.d.ts +178 -0
- package/es/plugins/progress/index.js +687 -0
- package/es/plugins/progress/index.scss +288 -0
- package/es/plugins/progress/innerList.d.ts +49 -0
- package/es/plugins/progress/innerList.js +285 -0
- package/es/plugins/progress/miniProgress.d.ts +9 -0
- package/es/plugins/progress/miniProgress.js +55 -0
- package/es/plugins/progressPreview/dotsApi.d.ts +1 -0
- package/es/plugins/progressPreview/dotsApi.js +269 -0
- package/es/plugins/progressPreview/index.css +190 -0
- package/es/plugins/progressPreview/index.d.ts +87 -0
- package/es/plugins/progressPreview/index.js +475 -0
- package/es/plugins/progressPreview/index.scss +235 -0
- package/es/plugins/prompt/index.css +47 -0
- package/es/plugins/prompt/index.d.ts +24 -0
- package/es/plugins/prompt/index.js +110 -0
- package/es/plugins/prompt/index.scss +53 -0
- package/es/plugins/replay/index.css +33 -0
- package/es/plugins/replay/index.d.ts +16 -0
- package/es/plugins/replay/index.js +109 -0
- package/es/plugins/replay/index.scss +41 -0
- package/es/plugins/rotate/index.css +0 -0
- package/es/plugins/rotate/index.d.ts +22 -0
- package/es/plugins/rotate/index.js +148 -0
- package/es/plugins/rotate/index.scss +0 -0
- package/es/plugins/rotate/index2.js +2 -0
- package/es/plugins/screenShot/index.css +3 -0
- package/es/plugins/screenShot/index.d.ts +30 -0
- package/es/plugins/screenShot/index.js +178 -0
- package/es/plugins/screenShot/index.scss +5 -0
- package/es/plugins/start/index.css +91 -0
- package/es/plugins/start/index.d.ts +41 -0
- package/es/plugins/start/index.js +267 -0
- package/es/plugins/start/index.scss +115 -0
- package/es/plugins/stats/index.d.ts +38 -0
- package/es/plugins/stats/index.js +194 -0
- package/es/plugins/testspeed/index.d.ts +26 -0
- package/es/plugins/testspeed/index.js +207 -0
- package/es/plugins/time/index.css +46 -0
- package/es/plugins/time/index.d.ts +28 -0
- package/es/plugins/time/index.js +225 -0
- package/es/plugins/time/index.scss +57 -0
- package/es/plugins/time/timesegments.d.ts +24 -0
- package/es/plugins/time/timesegments.js +216 -0
- package/es/plugins/track/index.css +91 -0
- package/es/plugins/track/index.d.ts +132 -0
- package/es/plugins/track/index.js +463 -0
- package/es/plugins/track/index.scss +111 -0
- package/es/plugins/track/nativeSubTitle.d.ts +22 -0
- package/es/plugins/track/nativeSubTitle.js +94 -0
- package/es/plugins/volume/index.css +95 -0
- package/es/plugins/volume/index.d.ts +88 -0
- package/es/plugins/volume/index.js +319 -0
- package/es/plugins/volume/index.scss +124 -0
- package/es/plugins/waitingTimeoutJump/index.d.ts +15 -0
- package/es/plugins/waitingTimeoutJump/index.js +88 -0
- package/es/presets/default-en.d.ts +33 -0
- package/es/presets/default-en.js +63 -0
- package/es/presets/default.d.ts +34 -0
- package/es/presets/default.js +70 -0
- package/es/presets/index.d.ts +4 -0
- package/es/presets/live.d.ts +94 -0
- package/es/presets/live.js +39 -0
- package/es/presets/mobile.d.ts +103 -0
- package/es/presets/mobile.js +34 -0
- package/es/simple_player.js +1 -1
- package/es/simple_player.js.map +1 -1
- package/es/state.d.ts +11 -0
- package/es/state.js +12 -0
- package/es/stateClassMap.d.ts +32 -0
- package/es/stateClassMap.js +32 -0
- package/es/style/common/animation.scss +16 -0
- package/es/style/common/svg-url.scss +70 -0
- package/es/style/common.scss +457 -0
- package/es/style/index.scss +4 -0
- package/es/style/variable.scss +76 -0
- package/es/utils/database.d.ts +31 -0
- package/es/utils/database.js +107 -0
- package/es/utils/debug.d.ts +10 -0
- package/es/utils/debug.js +43 -0
- package/es/utils/draggabilly.d.ts +54 -0
- package/es/utils/draggabilly.js +410 -0
- package/es/utils/sniffer.d.ts +28 -0
- package/es/utils/sniffer.js +150 -0
- package/es/utils/url.d.ts +1 -0
- package/es/utils/util.d.ts +304 -0
- package/es/utils/util.js +827 -0
- package/es/utils/xgplayerTimeRange.d.ts +7 -0
- package/es/utils/xgplayerTimeRange.js +25 -0
- package/es/version.d.ts +2 -0
- package/es/version.js +2 -0
- package/package.json +2 -3
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
export default Progress;
|
|
2
|
+
export type IProgressConfig = {
|
|
3
|
+
[propName: string]: any;
|
|
4
|
+
position?: string;
|
|
5
|
+
disable?: boolean;
|
|
6
|
+
isDragingSeek?: boolean;
|
|
7
|
+
closeMoveSeek?: boolean;
|
|
8
|
+
isPauseMoving?: boolean;
|
|
9
|
+
isCloseClickSeek?: boolean;
|
|
10
|
+
fragments?: Array<{
|
|
11
|
+
percent: number;
|
|
12
|
+
}>;
|
|
13
|
+
fragFocusClass?: string;
|
|
14
|
+
fragAutoFocus?: boolean;
|
|
15
|
+
miniMoveStep?: number;
|
|
16
|
+
miniStartStep?: number;
|
|
17
|
+
onMoveStart?: () => any;
|
|
18
|
+
onMoveEnd?: () => any;
|
|
19
|
+
endedDiff?: number;
|
|
20
|
+
};
|
|
21
|
+
declare class Progress extends Plugin {
|
|
22
|
+
/**
|
|
23
|
+
* @type IProgressConfig
|
|
24
|
+
*/
|
|
25
|
+
static get defaultConfig(): IProgressConfig;
|
|
26
|
+
static get FRAGMENT_FOCUS_CLASS(): {
|
|
27
|
+
POINT: string;
|
|
28
|
+
HIGHLIGHT: string;
|
|
29
|
+
};
|
|
30
|
+
constructor(args: any);
|
|
31
|
+
/**
|
|
32
|
+
* @readonly
|
|
33
|
+
*/
|
|
34
|
+
readonly useable: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @readonly
|
|
37
|
+
*/
|
|
38
|
+
readonly isProgressMoving: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @private
|
|
41
|
+
*/
|
|
42
|
+
private __dragCallBacks;
|
|
43
|
+
/**
|
|
44
|
+
* @private
|
|
45
|
+
*/
|
|
46
|
+
private _state;
|
|
47
|
+
_disableBlur: boolean;
|
|
48
|
+
get offsetDuration(): number;
|
|
49
|
+
get duration(): number;
|
|
50
|
+
get timeOffset(): number;
|
|
51
|
+
get currentTime(): any;
|
|
52
|
+
changeState(useable?: boolean): void;
|
|
53
|
+
show(): void;
|
|
54
|
+
/**
|
|
55
|
+
* @description 创建内部进度条,并挂载到xg-outer上,
|
|
56
|
+
* 并把一些对外API绑定在progress上供外部调用
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
_initInner(fragments?: any[], config?: {}): void;
|
|
60
|
+
innerList: InnerList;
|
|
61
|
+
_updateInnerFocus(data: any): void;
|
|
62
|
+
pos: {
|
|
63
|
+
x: number;
|
|
64
|
+
y: number;
|
|
65
|
+
moving: boolean;
|
|
66
|
+
isDown: boolean;
|
|
67
|
+
isEnter: boolean;
|
|
68
|
+
isLocked: boolean;
|
|
69
|
+
};
|
|
70
|
+
outer: HTMLElement;
|
|
71
|
+
isMobile: boolean;
|
|
72
|
+
progressBtn: HTMLElement;
|
|
73
|
+
/**
|
|
74
|
+
* @description 配置更新响应,插件内置调用api, 播放器整体配置更新的时候调用
|
|
75
|
+
* @param {IProgressConfig} config
|
|
76
|
+
*/
|
|
77
|
+
setConfig(config: IProgressConfig): void;
|
|
78
|
+
initCustomStyle(): void;
|
|
79
|
+
/**
|
|
80
|
+
* 触发某一类回调监听
|
|
81
|
+
* @param { string } type 类型 drag/dragend
|
|
82
|
+
* @param { any} data 具体数据
|
|
83
|
+
*/
|
|
84
|
+
triggerCallbacks(type: string, data: any, event: any): void;
|
|
85
|
+
/**
|
|
86
|
+
* 供外部插件添加回调
|
|
87
|
+
* @param {string} type 类型 drag/dragend
|
|
88
|
+
* @param {function} handle 回调函数句柄
|
|
89
|
+
*/
|
|
90
|
+
addCallBack(type: string, handle: Function): void;
|
|
91
|
+
/**
|
|
92
|
+
* 供外部插件移除回调
|
|
93
|
+
* @param {string} type 类型 drag/dragend
|
|
94
|
+
* @param {Function} event 回调函数句柄
|
|
95
|
+
*/
|
|
96
|
+
removeCallBack(type: string, event: Function): void;
|
|
97
|
+
/**
|
|
98
|
+
* @description 解除进度条的所动状态
|
|
99
|
+
* @returns
|
|
100
|
+
*/
|
|
101
|
+
unlock(): void;
|
|
102
|
+
bindDomEvents(): void;
|
|
103
|
+
_mouseDownHandlerHook: any;
|
|
104
|
+
_mouseUpHandlerHook: any;
|
|
105
|
+
_mouseMoveHandlerHook: any;
|
|
106
|
+
focus(): void;
|
|
107
|
+
blur(): void;
|
|
108
|
+
disableBlur(): void;
|
|
109
|
+
enableBlur(): void;
|
|
110
|
+
onMoveOnly: (e: any, data: any) => void;
|
|
111
|
+
/**
|
|
112
|
+
* 避免mouseup的时候触发父辈节点的click事件,和单击视频区域切换暂停/播放互斥
|
|
113
|
+
* @param {*} e
|
|
114
|
+
* @returns
|
|
115
|
+
*/
|
|
116
|
+
onBodyClick: (e: any) => void;
|
|
117
|
+
_mouseDownHandler: (event: any, data: any) => void;
|
|
118
|
+
_mouseUpHandler: (e: any, data: any) => void;
|
|
119
|
+
_mouseMoveHandler: (e: any, data: any) => void;
|
|
120
|
+
onMouseDown: (e: any) => boolean;
|
|
121
|
+
onMouseUp: (e: any) => void;
|
|
122
|
+
onMouseMove: (e: any) => void;
|
|
123
|
+
onMouseOut: (e: any) => void;
|
|
124
|
+
onMouseOver: (e: any) => void;
|
|
125
|
+
onMouseEnter: (e: any) => void;
|
|
126
|
+
onMouseLeave: (e: any) => void;
|
|
127
|
+
onVideoResize: () => void;
|
|
128
|
+
/**
|
|
129
|
+
* @description 根据currenTime和占用百分比更新进度条
|
|
130
|
+
* @param {Number} currentTime 需要更新到的时间
|
|
131
|
+
* @param {Number} seekTime 实际seek的时间
|
|
132
|
+
* @param {Number} percent 更新时间占比
|
|
133
|
+
* @param {Int} type 触发类型 0-down 1-move 2-up
|
|
134
|
+
*/
|
|
135
|
+
updateWidth(currentTime: number, seekTime: number, percent: number, type: Int): void;
|
|
136
|
+
computeTime(e: any, x: any): {
|
|
137
|
+
percent: number;
|
|
138
|
+
currentTime: number;
|
|
139
|
+
seekTime: any;
|
|
140
|
+
offset: number;
|
|
141
|
+
width: number;
|
|
142
|
+
left: number;
|
|
143
|
+
e: any;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* @description 更新时间插件,在拖拽状态下要接管时间插件的更新状态
|
|
147
|
+
* 本位置会和time插件交互
|
|
148
|
+
* @param {number} time 根据拖拽距离计算出的时间
|
|
149
|
+
*/
|
|
150
|
+
updateTime(time: number): void;
|
|
151
|
+
/**
|
|
152
|
+
* @description 复位正在拖拽状态 ,拖拽的时候要避免timeupdate更新
|
|
153
|
+
*/
|
|
154
|
+
resetSeekState(): void;
|
|
155
|
+
/**
|
|
156
|
+
* @description 拖拽过程中更新UI
|
|
157
|
+
* @param {number} percent 小于0的小数
|
|
158
|
+
*
|
|
159
|
+
*/
|
|
160
|
+
updatePercent(percent: number, notSeek: any): void;
|
|
161
|
+
/**
|
|
162
|
+
* @description 播放进度更新
|
|
163
|
+
* @param { boolean } isEnded 是否是播放结束的时候调用
|
|
164
|
+
* @returns
|
|
165
|
+
*/
|
|
166
|
+
onTimeupdate(isEnded: boolean): void;
|
|
167
|
+
/**
|
|
168
|
+
* @description 缓存进度更新
|
|
169
|
+
* @param { boolean } isEnded 是否是结束时触发
|
|
170
|
+
* @returns
|
|
171
|
+
*/
|
|
172
|
+
onCacheUpdate(isEnded: boolean): void;
|
|
173
|
+
onReset(): void;
|
|
174
|
+
thumbnailPlugin: any;
|
|
175
|
+
render(): string;
|
|
176
|
+
}
|
|
177
|
+
import Plugin from "../../plugin";
|
|
178
|
+
import InnerList from "./innerList";
|