ZD Screen Recorder SDK API – ScnLib_RecoverVideoFile()

ScnLib_RecoverVideoFileA/W()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) BOOL __stdcall ScnLib_RecoverVideoFileA(LPCSTR pcszFromPath, LPCSTR pcszToPath);
__declspec(dllimport) BOOL __stdcall ScnLib_RecoverVideoFileW(LPCWSTR pcwszFromPath, LPCWSTR pcwszToPath);
C# [DllImport("ScnLib.dll", CharSet = CharSet.Unicode)] public static extern bool ScnLib_RecoverVideoFileW(string FromPath, string ToPath);
Basic Public Declare Unicode Function ScnLib_RecoverVideoFileW Lib "ScnLib.dll" (ByVal FromPath As String, ByVal ToPath As String) As Boolean
Delphi function ScnLib_RecoverVideoFileA(const FromPath: PAnsiChar; const ToPath: PAnsiChar): LongBool; stdcall; external 'ScnLib.dll';
function ScnLib_RecoverVideoFileW(const FromPath: PWideChar; const ToPath: PWideChar): LongBool; stdcall; external 'ScnLib.dll';
  • Description
    Recover an incomplete video file from a safe copy.

  • Parameters
    • FromPath [in]
      The specified path of the safe copy file that is to be recovered. The filename extension of a safe copy file will be .MP4_, .FLV_, or .AVI_, corresponding to the format of the original video file.
    • ToPath [in]
      The designated path for the video file that is being recovered. The filename extension for this video file can be .MP4, .FLV, or .AVI.
  • Return Value
    If the video recovery process is started successfully, the return value is TRUE, otherwise the return value is FALSE.

  • Remarks
    Use this function to recover an incomplete video file from a safe copy. The video file formats like MP4, FLV, and AVI require proper completion to be playable. Thus, if a screen recording is unexpectedly terminated due to a system or program crash, or a power outage, the video file will be incomplete and unplayable. To address such scenarios, the SDK offers a video recovery feature. This feature saves a safe copy of the ongoing recording. If the recording completes successfully, this copy is automatically deleted. However, if the recording is interrupted and the file becomes unplayable, you can recover the video from this safe copy using this function when your program is run next time.

    The video recovery process operates asynchronously. When this function is called, it promptly returns a success or failure response, without waiting for the video recovery process to complete. To monitor the progress of the ongoing video recovery, call ScnLib_GetVideoRecoveryProgress().

  • See Also
    ScnLib_GetVideoRecoveryProgress()
    ScnLib_StartRecording()
    ScnLib_EnableVideoRecovery()
    ScnLib_StopRecording()

Shopping Cart
  • Your cart is empty.
Scroll to Top