Class VideoRecorder
- Пространство имен
- easyar
- Сборка
- EasyAR.Sense.dll
Um/Un MonoBehaviour que управляет Recorder в scene и предоставляет функциональные расширения в среде Unity.
Пользователь полностью контролирует содержимое записываемого видео. 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
- Наследование
-
VideoRecorder
Поля
AudioProfile
Конфигурация аудио. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public VideoRecorder.AudioProfiles AudioProfile
CustomVideoProfile
Пользовательская конфигурация записи экрана. Used when VideoProfile == Custom. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public VideoRecorder.VideoProfiles CustomVideoProfile
FilePath
Output path файла записи экрана. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public string FilePath
FilePathType
Тип output path файла записи экрана. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public WritablePathType FilePathType
Orientation
Ориентация видео записи экрана. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public VideoRecorder.VideoOrientation Orientation
VideoProfile
Конфигурация видео. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public VideoRecorder.RecordProfile VideoProfile
ZoomMode
Режим масштабирования записи экрана. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public VideoRecorder.RecordZoomMode ZoomMode
Свойства
IsAvailable
Доступна ли функция записи экрана (available only in non-Enterprise Sense on Android GLES2/3 with multithreaded rendering disabled).
public static bool IsAvailable { get; }
NotAvailableReason
Причина недоступности.
public static string NotAvailableReason { get; }
Методы
RecordFrame(RenderTexture)
Записывает один frame данных с использованием texture.
public void RecordFrame(RenderTexture texture)
Параметры
texture
StartRecording(Action<bool, PermissionStatus, string>, Action<string>)
Начинает запись экрана. Recorded video data must be continuously passed in through RecordFrame(RenderTexture).
public void StartRecording(Action<bool, PermissionStatus, string> onStart, Action<string> onRecordError)
Параметры
onStartonRecordError
StopRecording()
Останавливает запись экрана.
public bool StopRecording()