Update index.d.ts (#35650)

* Update index.d.ts

* Update index.d.ts
This commit is contained in:
Kamil Lewandowski
2019-05-28 21:53:51 +02:00
committed by Sheetal Nandi
parent 9e26db59d7
commit fcc4f70ab2

View File

@@ -36,6 +36,12 @@ export interface LoadError {
};
}
export interface OnSeekData {
currentTime: number;
seekTime: number;
target?: number;
}
export const TextTrackType: {
SRT: 'application/x-subrip';
TTML: 'application/ttml+xml';
@@ -87,7 +93,7 @@ export interface VideoProperties extends ViewProps {
onBuffer?(): void;
onError?(error: LoadError): void;
onProgress?(data: OnProgressData): void;
onSeek?(): void;
onSeek?(data: OnSeekData): void;
onEnd?(): void;
onFullscreenPlayerWillPresent?(): void;
onFullscreenPlayerDidPresent?(): void;