forked from MoePlayer/react-dplayer
-
Notifications
You must be signed in to change notification settings - Fork 5
/
react-dplayer.d.ts
63 lines (59 loc) · 2.23 KB
/
react-dplayer.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/// <reference types="dplayer" />
declare module "react-dplayer" {
import DPlayer, { DPlayerOptions } from "libdrive-dplayer";
import * as React from "react";
type DPlayerEventHandle = () => void;
export interface ReactDplayerProps {
options?: Partial<DPlayerOptions>,
onLoad?: (player: DPlayer) => void;
onAbort?: DPlayerEventHandle,
onCanplay?: DPlayerEventHandle,
onCanplaythrough?: DPlayerEventHandle,
onDurationchange?: DPlayerEventHandle,
onEmptied?: DPlayerEventHandle,
onEnded?: DPlayerEventHandle,
onError?: DPlayerEventHandle,
onLoadeddata?: DPlayerEventHandle,
onLoadedmetadata?: DPlayerEventHandle,
onLoadstart?: DPlayerEventHandle,
onMozaudioavailable?: DPlayerEventHandle,
onPause?: DPlayerEventHandle,
onPlay?: DPlayerEventHandle,
onPlaying?: DPlayerEventHandle,
onProgress?: DPlayerEventHandle,
onRatechange?: DPlayerEventHandle,
onSeeked?: DPlayerEventHandle,
onSeeking?: DPlayerEventHandle,
onStalled?: DPlayerEventHandle,
onSuspend?: DPlayerEventHandle,
onTimeupdate?: DPlayerEventHandle,
onVolumechange?: DPlayerEventHandle,
onWaiting?: DPlayerEventHandle,
onScreenshot?: DPlayerEventHandle,
onThumbnailsShow?: DPlayerEventHandle,
onThumbnailsHide?: DPlayerEventHandle,
onDanmakuShow?: DPlayerEventHandle,
onDanmakuHide?: DPlayerEventHandle,
onDanmakuClear?: DPlayerEventHandle,
onDanmakuLoaded?: DPlayerEventHandle,
onDanmakuSend?: DPlayerEventHandle,
onDanmakuOpacity?: DPlayerEventHandle,
onContextmenuShow?: DPlayerEventHandle,
onContextmenuHide?: DPlayerEventHandle,
onNoticeShow?: DPlayerEventHandle,
onNoticeHide?: DPlayerEventHandle,
onQualityStart?: DPlayerEventHandle,
onQualityEnd?: DPlayerEventHandle,
onDestroy?: DPlayerEventHandle,
onResize?: DPlayerEventHandle,
onFullscreen?: DPlayerEventHandle,
onFullscreenCancel?: DPlayerEventHandle,
onSubtitleShow?: DPlayerEventHandle,
onSubtitleHide?: DPlayerEventHandle,
onSubtitleChange?: DPlayerEventHandle,
}
export default class DPlayerWrap extends React.Component<ReactDplayerProps> {
dp?: DPlayer;
container?: Element;
}
}