diff --git a/src/Video.tsx b/src/Video.tsx index 8edb4ca87f..a0193a8737 100644 --- a/src/Video.tsx +++ b/src/Video.tsx @@ -50,7 +50,7 @@ export interface VideoRef { restoreUserInterfaceForPictureInPictureStopCompleted: ( restore: boolean, ) => void; - save: () => Promise; + save: (options: object) => Promise; } const Video = forwardRef( @@ -241,8 +241,8 @@ const Video = forwardRef( setIsFullscreen(false); }, [setIsFullscreen]); - const save = useCallback(() => { - return VideoManager.save(getReactTag(nativeRef)); + const save = useCallback((options: object) => { + return VideoManager.save(options, getReactTag(nativeRef)); }, []); const pause = useCallback(() => { diff --git a/src/VideoNativeComponent.ts b/src/VideoNativeComponent.ts index 5c98ab41c1..3e34eeb4ad 100644 --- a/src/VideoNativeComponent.ts +++ b/src/VideoNativeComponent.ts @@ -364,7 +364,7 @@ export type VideoSaveData = { }; export interface VideoManagerType { - save: (reactTag: number) => Promise; + save: (option: object, reactTag: number) => Promise; setPlayerPauseState: (paused: boolean, reactTag: number) => Promise; setLicenseResult: ( result: string,