Skip to main content

MediaRecorder

Description

Call the method to record a video or taking photo.

Parameters

ParamTypeDescription
_stopboolStop video recording
_takePhotoModeboolSwitch to take photo mode

Method

public void MediaRecorder(bool _stop, bool _takePhotoMode)

Example

internal static API ARMODAPI = new API(nameof(APITest));
private async void OnLoad(){
// Start a video recording
ARMODAPI.MediaRecorder(false,false);

// Record a 2-second video
await Task.Delay(2000);

// Stop video recording and save it
ARMODAPI.MediaRecorder(true,false);

}