Class VideoRecorder
- 名前空間
- easyar
- アセンブリ
- EasyAR.Sense.dll
Um/Un MonoBehaviour que scene 内で Recorder を制御し、Unity 環境で機能拡張を提供します.
ユーザーは録画される 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
- 継承
-
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()