mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-08-16 02:56:22 +00:00
fix: update onError definition to match implementation (#3349)
Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
This commit is contained in:
co-authored by
olivier
parent
abd73dca4a
commit
fdbd6a6ba8
@@ -241,11 +241,21 @@ export type OnReceiveAdEventData = Readonly<{
|
||||
}>;
|
||||
|
||||
export type OnVideoErrorData = Readonly<{
|
||||
errorString: string;
|
||||
errorException: string;
|
||||
errorStackTrace: string;
|
||||
errorCode: string;
|
||||
error: string;
|
||||
error: OnVideoErrorDataDetails;
|
||||
target?: number; // ios
|
||||
}>;
|
||||
|
||||
export type OnVideoErrorDataDetails = Readonly<{
|
||||
errorString?: string; // android
|
||||
errorException?: string; // android
|
||||
errorStackTrace?: string; // android
|
||||
errorCode?: string; // android
|
||||
error?: string; // ios
|
||||
code?: number; // ios
|
||||
localizedDescription?: string; // ios
|
||||
localizedFailureReason?: string; // ios
|
||||
localizedRecoverySuggestion?: string; // ios
|
||||
domain?: string; // ios
|
||||
}>;
|
||||
|
||||
export type OnAudioFocusChangedData = Readonly<{
|
||||
|
||||
+14
-5
@@ -118,13 +118,22 @@ export type OnReceiveAdEventData = Readonly<{
|
||||
}>;
|
||||
|
||||
export type OnVideoErrorData = Readonly<{
|
||||
errorString: string;
|
||||
errorException: string;
|
||||
errorStackTrace: string;
|
||||
errorCode: string;
|
||||
error: string;
|
||||
error: OnVideoErrorDataDetails;
|
||||
target?: number; // ios
|
||||
}>;
|
||||
|
||||
export type OnVideoErrorDataDetails = Readonly<{
|
||||
errorString?: string; // android
|
||||
errorException?: string; // android
|
||||
errorStackTrace?: string; // android
|
||||
errorCode?: string; // android
|
||||
error?: string; // ios
|
||||
code?: number; // ios
|
||||
localizedDescription?: string; // ios
|
||||
localizedFailureReason?: string; // ios
|
||||
localizedRecoverySuggestion?: string; // ios
|
||||
domain?: string; // ios
|
||||
}>;
|
||||
export type OnAudioFocusChangedData = Readonly<{
|
||||
hasAudioFocus: boolean;
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user