Cross Platform Screen Recorder Kit
  • Introduction
  • Installation
  • Version 2 vs Version 1
  • Plugin Structure
    • Settings
    • Folder Paths
  • API
    • Create
    • Can Record (Service Availability)
    • Register Listeners
    • Is Recording
    • Is Paused or Recording
    • Prepare Recording
    • Start Recording
    • Stop Recording
    • Open Recording
    • Discard Recording
    • Save Recorded Video
    • Share Recorded Video
    • Flush
  • Limitations
    • Android
  • Misc
    • Using in Native Android Projects (UaaL)
  • Upgrades
    • 2.4.2
    • 2.4.1
    • 2.4.0
    • 2.3.1
    • 2.3.0
    • 2.2.0
    • 2.1.0
    • 2.0.0
    • 1.7.0
    • 1.6
    • 1.5
  • Release Notes
    • 2.4.2
    • 2.4.1
    • 2.4.0
    • 2.3.1
    • 2.3.0
    • 2.2.0
    • 2.1.0
    • 2.0.0
    • 1.7.0
    • 1.6
    • 1.5
    • 1.4
    • 1.3
    • 1.0
Powered by GitBook
On this page

Was this helpful?

  1. API

Stop Recording

Learn how to stop a recording

This call stops the current recording and do the required steps for making the recorded video available for preview.

You need to have an active recording to call this method. Else it throws error.

recorder.StopRecording(callback: (success, error) =>
{
    if (success)
    {
        Debug.Log("Stop recording successful.");
    }
    else
    {
        Debug.Log($"Stop recording failed with error [{error}]");
    }
});

Example

using VoxelBusters.ScreenRecorderKit;

IScreenRecorder recorder;
//... Create instance for IScreenRecorder via ScreenRecorderBuilder

public void StopRecording()
{
    recorder.StopRecording((success, error) =>
    {
        if (success)
        {
            Debug.Log("Stop recording successful.");
        }
        else
        {
            Debug.Log($"Stop recording failed with error [{error}]");
        }
    });
}

PreviousStart RecordingNextOpen Recording

Last updated 5 months ago

Was this helpful?