Table of Contents

Class VideoRecorder

Spazio dei nomi
easyar
Assembly
EasyAR.Sense.dll

Um/Un MonoBehaviour que controlla Recorder nella scene e fornisce estensioni funzionali nell'ambiente Unity.

Gli utenti hanno pieno controllo sul contenuto registrato nel video. 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
Ereditarietà
VideoRecorder

Campi

AudioProfile

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

public VideoRecorder.AudioProfiles AudioProfile

CustomVideoProfile

Configurazione personalizzata della registrazione schermo. Used when VideoProfile == Custom. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.VideoProfiles CustomVideoProfile

FilePath

Path di output del file di registrazione schermo. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public string FilePath

FilePathType

Tipo di path di output del file di registrazione schermo. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public WritablePathType FilePathType

Orientation

Orientamento del video di registrazione schermo. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.VideoOrientation Orientation

VideoProfile

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

public VideoRecorder.RecordProfile VideoProfile

ZoomMode

Modalita di scala della registrazione schermo. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.RecordZoomMode ZoomMode

Proprietà

IsAvailable

Se la funzione di registrazione schermo e disponibile (available only in non-Enterprise Sense on Android GLES2/3 with multithreaded rendering disabled).

public static bool IsAvailable { get; }

NotAvailableReason

Il motivo quando non e disponibile.

public static string NotAvailableReason { get; }

Metodi

RecordFrame(RenderTexture)

Registra un frame di dati usando texture.

public void RecordFrame(RenderTexture texture)

Parametri

texture

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

Avvia la registrazione schermo. Recorded video data must be continuously passed in through RecordFrame(RenderTexture).

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

Parametri

onStart
onRecordError

StopRecording()

Interrompe la registrazione schermo.

public bool StopRecording()