Class VideoRecorder
- 네임스페이스
- easyar
- 어셈블리
- EasyAR.Sense.dll
Um/Un MonoBehaviour que scene에서 Recorder를 제어하고 Unity 환경에서 기능 확장을 제공합니다.
사용자는 video recording 내용에 대해 완전한 제어권을 가집니다. 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
audio configuration. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public VideoRecorder.AudioProfiles AudioProfile
CustomVideoProfile
custom screen recording configuration. Used when VideoProfile == Custom. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public VideoRecorder.VideoProfiles CustomVideoProfile
FilePath
screen recording file output path. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public string FilePath
FilePathType
screen recording file output path type. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public WritablePathType FilePathType
Orientation
screen recording video orientation. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public VideoRecorder.VideoOrientation Orientation
VideoProfile
video configuration. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public VideoRecorder.RecordProfile VideoProfile
ZoomMode
screen recording scale mode. Changes take effect only before StartRecording(Action<bool, PermissionStatus, string>, Action<string>).
public VideoRecorder.RecordZoomMode ZoomMode
속성
IsAvailable
screen recording 기능을 사용할 수 있는지 여부 (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)
다음을 사용하여 데이터 1 frame을 기록합니다: texture.
public void RecordFrame(RenderTexture texture)
매개 변수
texture
StartRecording(Action<bool, PermissionStatus, string>, Action<string>)
screen recording을 시작합니다. Recorded video data must be continuously passed in through RecordFrame(RenderTexture).
public void StartRecording(Action<bool, PermissionStatus, string> onStart, Action<string> onRecordError)
매개 변수
onStartonRecordError
StopRecording()
screen recording을 중지합니다.
public bool StopRecording()