VideoRecorder Class

Description

MonoBehaviour which controls Recorder in the scene, providing a few extensions in the Unity environment.

You have full control of what is recorded. The recorder do not record the screen or the camera output silently, the video data being recorded should be passed in continuously using VideoRecorder.RecordFrame

NOTE: only available on Android GLES2/3 and multi-thread rendering off when using Non-Enterprise Sense variant.


Enums

public enum VideoRecorder.RecordProfile

Video profile.

public enum VideoRecorder.RecordZoomMode

Video zoom mode.

public enum VideoRecorder.VideoSize

Video size.

public enum VideoRecorder.VideoOrientation

Record video orientation.


Classes

public class VideoRecorder.VideoProfiles

Video profile.

public class VideoRecorder.AudioProfiles

Audio profile.


Fields

VideoProfile

C#

public VideoRecorder.RecordProfile VideoProfile

Video profile. Only effective if modified before VideoRecorder.StartRecording .

CustomVideoProfile

C#

public VideoRecorder.VideoProfiles CustomVideoProfile

Record profile. Used when VideoRecorder.VideoProfile == VideoRecorder.RecordProfile.Custom . Only effective if modified before VideoRecorder.StartRecording .

AudioProfile

C#

public VideoRecorder.AudioProfiles AudioProfile

Audio profile. Only effective if modified before VideoRecorder.StartRecording .

Orientation

C#

public VideoRecorder.VideoOrientation Orientation

Record video orientation. Only effective if modified before VideoRecorder.StartRecording .

ZoomMode

C#

public VideoRecorder.RecordZoomMode ZoomMode

Record zoom mode. Only effective if modified before VideoRecorder.StartRecording .

FilePathType

C#

public WritablePathType FilePathType

Record output file path type. Only effective if modified before VideoRecorder.StartRecording .

FilePath

C#

public string FilePath

Record output file path. Only effective if modified before VideoRecorder.StartRecording .


Properties

IsAvailable

C#

public static bool IsAvailable { get; }

If the video recorder is available. Only true on Android GLES2/3 and multi-thread rendering off when using Non-Enterprise Sense variant.

NotAvailableReason

C#

public static string NotAvailableReason { get; }

Reasion when not available.


Methods

StartRecording

C#

public void StartRecording(Action<bool, PermissionStatus , string> onStart, Action<string> onRecordError)

Start recording. The video data being recorded should be passed in continuously using VideoRecorder.RecordFrame

StopRecording

C#

public bool StopRecording()

Stop recording.

RecordFrame

C#

public void RecordFrame( RenderTexture texture)

Record a frame using texture .