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';
22import { StyleProp , ViewStyle } from 'react-native' ;
33import { WebViewProps } from 'react-native-webview' ;
44
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+
521export interface YoutubeIframeRef {
622 getDuration : ( ) => Promise < number > ;
723 getVideoUrl : ( ) => Promise < string > ;
@@ -156,7 +172,7 @@ export interface YoutubeMeta {
156172 thumbnail_url : string ;
157173}
158174
159- declare const YoutubeIframe : React . SFC < YoutubeIframeProps > ;
175+ declare const YoutubeIframe : React . VFC < YoutubeIframeProps > ;
160176
161177export default YoutubeIframe ;
162178
You can’t perform that action at this time.
0 commit comments