File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,22 @@ import React from 'react';
2
2
import { StyleProp , ViewStyle } from 'react-native' ;
3
3
import { WebViewProps } from 'react-native-webview' ;
4
4
5
+ export enum PLAYER_STATES {
6
+ ENDED = 'ended' ,
7
+ PAUSED = 'paused' ,
8
+ PLAYING = 'playing' ,
9
+ UNSTARTED = 'unstarted' ,
10
+ BUFFERING = 'buffering' ,
11
+ VIDEO_CUED = 'video cued' ,
12
+ }
13
+
14
+ export enum PLAYER_ERRORS {
15
+ HTML5_ERROR = 'HTML5_error' ,
16
+ VIDEO_NOT_FOUND = 'video_not_found' ,
17
+ EMBED_NOT_ALLOWED = 'embed_not_allowed' ,
18
+ INVALID_PARAMETER = 'invalid_parameter' ,
19
+ }
20
+
5
21
export interface YoutubeIframeRef {
6
22
getDuration : ( ) => Promise < number > ;
7
23
getVideoUrl : ( ) => Promise < string > ;
@@ -156,7 +172,7 @@ export interface YoutubeMeta {
156
172
thumbnail_url : string ;
157
173
}
158
174
159
- declare const YoutubeIframe : React . SFC < YoutubeIframeProps > ;
175
+ declare const YoutubeIframe : React . VFC < YoutubeIframeProps > ;
160
176
161
177
export default YoutubeIframe ;
162
178
You can’t perform that action at this time.
0 commit comments