Table of Contents

Class VideoRecorder

Namespace
easyar
Assembly
EasyAR.Sense.dll

Um/Un MonoBehaviour que Recorder in der scene steuert und funktionale Erweiterungen in der Unity-Umgebung bereitstellt.

Benutzer haben volle Kontrolle uber den Inhalt der Videoaufnahme. 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
Vererbung
VideoRecorder

Felder

AudioProfile

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

public VideoRecorder.AudioProfiles AudioProfile

CustomVideoProfile

Benutzerdefinierte Bildschirmaufnahme-Konfiguration. Used when VideoProfile == Custom. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.VideoProfiles CustomVideoProfile

FilePath

Ausgabepfad der Bildschirmaufnahmedatei. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public string FilePath

FilePathType

Typ des Ausgabepfads fur die Bildschirmaufnahmedatei. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public WritablePathType FilePathType

Orientation

Videoausrichtung der Bildschirmaufnahme. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.VideoOrientation Orientation

VideoProfile

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

public VideoRecorder.RecordProfile VideoProfile

ZoomMode

Skalierungsmodus der Bildschirmaufnahme. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.RecordZoomMode ZoomMode

Eigenschaften

IsAvailable

Ob die Bildschirmaufnahmefunktion verfugbar ist (available only in non-Enterprise Sense on Android GLES2/3 with multithreaded rendering disabled).

public static bool IsAvailable { get; }

NotAvailableReason

Der Grund, wenn sie nicht verfugbar ist.

public static string NotAvailableReason { get; }

Methoden

RecordFrame(RenderTexture)

Zeichnet einen frame Daten auf mit texture.

public void RecordFrame(RenderTexture texture)

Parameter

texture

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

Startet die Bildschirmaufnahme. 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()

Stoppt die Bildschirmaufnahme.

public bool StopRecording()