Table of Contents

Class VideoRecorder

Espace de noms
easyar
Assembly
EasyAR.Sense.dll

Um/Un MonoBehaviour que controle Recorder dans la scene et fournit des extensions fonctionnelles dans l'environnement Unity.

Les utilisateurs ont un controle complet sur le contenu enregistre dans la 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
Héritage
VideoRecorder

Champs

AudioProfile

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

public VideoRecorder.AudioProfiles AudioProfile

CustomVideoProfile

Configuration personnalisee de l'enregistrement d'ecran. Used when VideoProfile == Custom. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.VideoProfiles CustomVideoProfile

FilePath

Path de sortie du fichier d'enregistrement d'ecran. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public string FilePath

FilePathType

Type de path de sortie du fichier d'enregistrement d'ecran. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public WritablePathType FilePathType

Orientation

Orientation video de l'enregistrement d'ecran. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.VideoOrientation Orientation

VideoProfile

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

public VideoRecorder.RecordProfile VideoProfile

ZoomMode

Mode d'echelle de l'enregistrement d'ecran. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.RecordZoomMode ZoomMode

Propriétés

IsAvailable

Indique si la fonction d'enregistrement d'ecran est disponible (available only in non-Enterprise Sense on Android GLES2/3 with multithreaded rendering disabled).

public static bool IsAvailable { get; }

NotAvailableReason

La raison lorsqu'elle est indisponible.

public static string NotAvailableReason { get; }

Méthodes

RecordFrame(RenderTexture)

Enregistre un frame de donnees avec texture.

public void RecordFrame(RenderTexture texture)

Paramètres

texture

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

Demarre l'enregistrement d'ecran. Recorded video data must be continuously passed in through RecordFrame(RenderTexture).

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

Paramètres

onStart
onRecordError

StopRecording()

Arrete l'enregistrement d'ecran.

public bool StopRecording()