Table of Contents

Class VideoRecorder

Ruang Nama
easyar
Rakitan
EasyAR.Sense.dll

Um/Un MonoBehaviour que mengontrol Recorder di scene dan menyediakan ekstensi fungsi di lingkungan Unity.

Pengguna memiliki kontrol penuh atas konten video yang direkam. The screen recording feature does not silently record the screen or camera output; recorded video data must be continuously passed in through RecordFrame(RenderTexture).

Note: Available only in non-Enterprise Sense on Android GLES2/3 with multithreaded rendering disabled.

public class VideoRecorder : MonoBehaviour
Pewarisan
VideoRecorder

Bidang

AudioProfile

Konfigurasi audio. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.AudioProfiles AudioProfile

CustomVideoProfile

Konfigurasi rekaman layar kustom. Used when VideoProfile == Custom. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.VideoProfiles CustomVideoProfile

FilePath

Path output file rekaman layar. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public string FilePath

FilePathType

Jenis path output file rekaman layar. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public WritablePathType FilePathType

Orientation

Orientasi video rekaman layar. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.VideoOrientation Orientation

VideoProfile

Konfigurasi video. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.RecordProfile VideoProfile

ZoomMode

Mode skala rekaman layar. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.RecordZoomMode ZoomMode

Properti

IsAvailable

Apakah fitur rekaman layar tersedia (available only in non-Enterprise Sense on Android GLES2/3 with multithreaded rendering disabled).

public static bool IsAvailable { get; }

NotAvailableReason

Alasan saat tidak tersedia.

public static string NotAvailableReason { get; }

Metode

RecordFrame(RenderTexture)

Merekam satu frame data menggunakan texture.

public void RecordFrame(RenderTexture texture)

Parameter

texture

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

Memulai rekaman layar. Recorded video data must be continuously passed in through RecordFrame(RenderTexture).

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

Parameter

onStart
onRecordError

StopRecording()

Menghentikan rekaman layar.

public bool StopRecording()