Table of Contents

Class VideoRecorder

네임스페이스
easyar
어셈블리
EasyAR.Sense.dll

씬에서 레코더를 제어하는 MonoBehaviour로, Unity 환경 내에서 기능 확장을 제공합니다.

사용자는 비디오 녹화 내용을 완전히 제어할 수 있으며, 화면 녹화 기능은 화면이나 카메라 출력을 조용히 녹화하지 않습니다. 녹화된 비디오 데이터는 RecordFrame(RenderTexture)를 통해 지속적으로 전달되어야 합니다.

참고: 비-엔터프라이즈 버전 Sense에서만 사용 가능하며, Android GLES2/3 환경에서 멀티스레드 렌더링이 비활성화된 경우에만 사용할 수 있습니다.

public class VideoRecorder : MonoBehaviour
상속
VideoRecorder

필드

AudioProfile

오디오 구성. StartRecording(Action<bool, PermissionStatus, string>, Action<string>) 전에 수정해야만 적용됩니다.

public VideoRecorder.AudioProfiles AudioProfile

CustomVideoProfile

사용자 정의 화면 녹화 구성. VideoProfile == Custom일 때 사용. StartRecording(Action<bool, PermissionStatus, string>, Action<string>) 전에 수정해야만 유효합니다.

public VideoRecorder.VideoProfiles CustomVideoProfile

FilePath

녹화 파일 출력 경로. StartRecording(Action<bool, PermissionStatus, string>, Action<string>)에서 녹화를 시작하기 전에 수정해야 유효합니다.

public string FilePath

FilePathType

녹화 파일 출력 경로 유형. StartRecording(Action<bool, PermissionStatus, string>, Action<string>)에서 StartRecording(System.Action{System.Boolean,easyar.PermissionStatus,System.String},System.Action{System.String}) 전에 수정해야 적용됩니다.

public WritablePathType FilePathType

Orientation

화면 녹화 방향. 수정은 StartRecording(Action<bool, PermissionStatus, string>, Action<string>) 전에만 유효합니다.

public VideoRecorder.VideoOrientation Orientation

VideoProfile

비디오 구성. StartRecording(Action<bool, PermissionStatus, string>, Action<string>) 전에 수정해야만 유효합니다.

public VideoRecorder.RecordProfile VideoProfile

ZoomMode

화면 녹화 확대/축소 모드. StartRecording(Action<bool, PermissionStatus, string>, Action<string>) 전에 수정해야만 유효합니다.

public VideoRecorder.RecordZoomMode ZoomMode

속성

IsAvailable

화면 녹화 기능 사용 가능 여부(비즈니스 버전이 아닌 Sense에서만, Android GLES2/3 및 멀티스레드 렌더링이 꺼진 상태에서 사용 가능).

public static bool IsAvailable { get; }

NotAvailableReason

사용 불가 시의 이유.

public static string NotAvailableReason { get; }

메서드

RecordFrame(RenderTexture)

texture를 사용하여 프레임 데이터를 기록합니다.

public void RecordFrame(RenderTexture texture)

매개 변수

texture

StartRecording(Action<bool, PermissionStatus, string>, Action<string>)

화면 녹화를 시작합니다. 녹화된 비디오 데이터는 RecordFrame(RenderTexture)를 통해 지속적으로 전달해야 합니다.

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

매개 변수

onStart
onRecordError

StopRecording()

화면 녹화를 중지합니다.

public bool StopRecording()