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
  • Create Video Recorder
  • Create GIF Recorder

Was this helpful?

  1. API

Create

PreviousFolder PathsNextCan Record (Service Availability)

Last updated 5 months ago

Was this helpful?

To access the api to record, you need to first create an instance of . ScreenRecorderBuilder provides a way to create IScreenRecorder instances for both Gif and Video.

Create Video Recorder

To create a video recorder IScreenRecorder instance, first you need to create an instance of VideoRecorderRuntimeSettings and pass it to .

Configuration

provides a way to configure the video recorder. You can change the microphone status to enable or disable for the current recording.

Create settings instance
VideoRecorderRuntimeSettings settings = new VideoRecorderRuntimeSettings(enableMicrophone: true);

IScreenRecorder instance for Video

Once you create a VideoRecorderRuntimeSettings instance, pass it to ScreenRecorderBuilder to create an IScreenRecorder instance.

IScreenRecorder recorder;
//...
//...

// Create settings
VideoRecorderRuntimeSettings settings = new VideoRecorderRuntimeSettings(enableMicrophone: true);

// Pass settings to ScreenRecorderBuilder and build
ScreenRecorderBuilder builder = ScreenRecorderBuilder.CreateVideoRecorder(settings);
recorder = builder.Build();

Create GIF Recorder

Create a GIF recorder IScreenRecorder instance vis ScreenRecorderBuilder.

Configuration

You can pass Camera instance to builder if you want to record only a specific camera.

IScreenRecorder instance for GIF

You can either record a specific camera or complete screen with GIF recorder.

Camera Recording
IScreenRecorder recorder;
Camera cameraInstance;
//....
ScreenRecorderBuilder builder = ScreenRecorderBuilder.CreateGifRecorder(cameraInstance);
recorder = builder.Build();
Full Screen Recording
IScreenRecorder recorder;
//....

ScreenRecorderBuilder builder = ScreenRecorderBuilder.CreateGifRecorder();
recorder = builder.Build();
IScreenRecorder
ScreenRecorderBuilder
VideoRecorderRuntimeSettings