mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
@types/react-native-video: Add type for onBuffer argument (#42891)
This commit is contained in:
parent
7ff34d029c
commit
92cbfa7e39
7
types/react-native-video/index.d.ts
vendored
7
types/react-native-video/index.d.ts
vendored
@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/react-native-community/react-native-video, https://github.com/brentvatne/react-native-video
|
||||
// Definitions by: HuHuanming <https://github.com/huhuanming>
|
||||
// Nekith <https://github.com/Nekith>
|
||||
// Philip Frank <https://github.com/bananer>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
@ -59,6 +60,10 @@ export interface OnExternalPlaybackChangeData {
|
||||
isExternalPlaybackActive: boolean;
|
||||
}
|
||||
|
||||
export interface OnBufferData {
|
||||
isBuffering: boolean;
|
||||
}
|
||||
|
||||
export const TextTrackType: {
|
||||
SRT: 'application/x-subrip';
|
||||
TTML: 'application/ttml+xml';
|
||||
@ -144,7 +149,7 @@ export interface VideoProperties extends ViewProps {
|
||||
|
||||
onLoadStart?(): void;
|
||||
onLoad?(data: OnLoadData): void;
|
||||
onBuffer?(): void;
|
||||
onBuffer?(data: OnBufferData): void;
|
||||
onError?(error: LoadError): void;
|
||||
onProgress?(data: OnProgressData): void;
|
||||
onBandwidthUpdate?(data: OnBandwidthUpdateData): void;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user