forked from cookpete/react-player
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
44 lines (42 loc) · 964 Bytes
/
Copy pathindex.d.ts
File metadata and controls
44 lines (42 loc) · 964 Bytes
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
import * as React from 'react';
export interface ReactPlayerProps {
url?: string;
playing?: boolean;
loop?: boolean;
controls?: boolean;
volume?: number;
playbackRate?: number;
width?: string|number;
height?: string|number;
hidden?: boolean;
className?: string;
style?: Object;
progressFrequency?: number;
soundcloudConfig?: {
clientId: string,
showArtwork: boolean
};
youtubeConfig?: {
playerVars: Object,
preload: boolean
};
vimeoConfig?: {
iframeParams: Object,
preload: boolean
};
fileConfig?: {
attributes: Object
};
onReady?(): void;
onStart?(): void;
onPlay?(): void;
onPause?(): void;
onBuffer?(): void;
onEnded?(): void;
onError?(error: any): void;
onDuration?(duration: number): void;
onProgress?(state: { played: number, loaded: number }): void;
}
export default class ReactPlayer extends React.Component<ReactPlayerProps, any>{
seekTo(fraction: number): void;
}