Table of Contents

Class VideoRecorder

Espacio de nombres
easyar
Ensayo
EasyAR.Sense.dll

Um/Un MonoBehaviour que controla Recorder en la scene y proporciona extensiones funcionales en el entorno Unity.

Los usuarios tienen control total sobre el contenido grabado en el 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
Herencia
VideoRecorder

Campos

AudioProfile

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

public VideoRecorder.AudioProfiles AudioProfile

CustomVideoProfile

Configuracion personalizada de grabacion de pantalla. Used when VideoProfile == Custom. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.VideoProfiles CustomVideoProfile

FilePath

Path de salida del archivo de grabacion de pantalla. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public string FilePath

FilePathType

Tipo de path de salida del archivo de grabacion de pantalla. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public WritablePathType FilePathType

Orientation

Orientacion del video de grabacion de pantalla. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.VideoOrientation Orientation

VideoProfile

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

public VideoRecorder.RecordProfile VideoProfile

ZoomMode

Modo de escala de grabacion de pantalla. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).

public VideoRecorder.RecordZoomMode ZoomMode

Propiedades

IsAvailable

Si la funcion de grabacion de pantalla esta disponible (available only in non-Enterprise Sense on Android GLES2/3 with multithreaded rendering disabled).

public static bool IsAvailable { get; }

NotAvailableReason

La razon cuando no esta disponible.

public static string NotAvailableReason { get; }

Métodos

RecordFrame(RenderTexture)

Graba un frame de datos usando texture.

public void RecordFrame(RenderTexture texture)

Parámetros

texture

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

Inicia la grabacion de pantalla. Recorded video data must be continuously passed in through RecordFrame(RenderTexture).

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

Parámetros

onStart
onRecordError

StopRecording()

Detiene la grabacion de pantalla.

public bool StopRecording()