Class VideoRecorder
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Steuert den Recorder in der Szene als MonoBehaviour und bietet Funktionen zur Erweiterung in der Unity-Umgebung.
Der Benutzer hat die vollständige Kontrolle über den aufgenommenen Videoinhalt. Die Bildschirmaufnahme-Funktion zeichnet den Bildschirm oder die Kameraausgabe nicht automatisch auf. Die Videodaten müssen kontinuierlich über RecordFrame(RenderTexture) übergeben werden.
Hinweis: Nur in der non-Enterprise-Version von Sense verfügbar, und zwar unter Android GLES2/3 und bei deaktiviertem Multithread-Rendering.
public class VideoRecorder : MonoBehaviour
- Vererbung
-
VideoRecorder
Felder
AudioProfile
Audiokonfiguration. Änderungen sind nur wirksam, bevor StartRecording(Action<bool, PermissionStatus, string>, Action<string>) aufgerufen wird.
public VideoRecorder.AudioProfiles AudioProfile
CustomVideoProfile
Benutzerdefinierte Bildschirmaufnahme-Konfiguration. Wird verwendet, wenn VideoProfile == Custom ist. Änderungen sind nur wirksam, bevor StartRecording(Action<bool, PermissionStatus, string>, Action<string>) aufgerufen wird.
public VideoRecorder.VideoProfiles CustomVideoProfile
FilePath
Ausgabepfad für die Bildschirmaufnahme-Datei. Änderungen sind nur wirksam, bevor StartRecording(Action<bool, PermissionStatus, string>, Action<string>) aufgerufen wird.
public string FilePath
FilePathType
Typ des Ausgabepfads für die Bildschirmaufnahme-Datei. Änderungen sind nur wirksam, bevor StartRecording(Action<bool, PermissionStatus, string>, Action<string>) aufgerufen wird.
public WritablePathType FilePathType
Orientation
Ausrichtung des aufgenommenen Videos. Änderungen sind nur wirksam, bevor StartRecording(Action<bool, PermissionStatus, string>, Action<string>) aufgerufen wird.
public VideoRecorder.VideoOrientation Orientation
VideoProfile
Videokonfiguration. Änderungen sind nur wirksam, bevor StartRecording(Action<bool, PermissionStatus, string>, Action<string>) aufgerufen wird.
public VideoRecorder.RecordProfile VideoProfile
ZoomMode
Skalierungsmodus für die Bildschirmaufnahme. Änderungen sind nur wirksam, bevor StartRecording(Action<bool, PermissionStatus, string>, Action<string>) aufgerufen wird.
public VideoRecorder.RecordZoomMode ZoomMode
Eigenschaften
IsAvailable
Ob die Bildschirmaufnahme-Funktion verfügbar ist (nur in der non-Enterprise-Version von Sense verfügbar, und zwar unter Android GLES2/3 und bei deaktiviertem Multithread-Rendering).
public static bool IsAvailable { get; }
NotAvailableReason
Grund, wenn nicht verfügbar.
public static string NotAvailableReason { get; }
Methoden
RecordFrame(RenderTexture)
Zeichnet einen Frame mit texture auf.
public void RecordFrame(RenderTexture texture)
Parameter
texture
StartRecording(Action<bool, PermissionStatus, string>, Action<string>)
Startet die Bildschirmaufnahme. Die Videodaten müssen kontinuierlich über RecordFrame(RenderTexture) aufgenommen werden.
public void StartRecording(Action<bool, PermissionStatus, string> onStart, Action<string> onRecordError)
Parameter
onStartonRecordError
StopRecording()
Beendet die Bildschirmaufnahme.
public bool StopRecording()