Class VideoRecorder
- 名前空間
- easyar
- アセンブリ
- EasyAR.Sense.dll
シーン内でレコーダーを制御するMonoBehaviour。Unity環境で機能拡張を提供します。
ユーザーは録画内容を完全に制御でき、スクリーン録画機能は画面やカメラ出力を黙って記録しません。録画された動画データはRecordFrame(RenderTexture)を通じて継続的に渡す必要があります。
注意: 非エンタープライズ版Senseのみ、Android GLES2/3かつマルチスレッドレンダリング無効時に使用可能です。
public class VideoRecorder : MonoBehaviour
- 継承
-
VideoRecorder
フィールド
AudioProfile
オーディオ設定。StartRecording(Action<bool, PermissionStatus, string>, Action<string>)前に変更する必要があります。
public VideoRecorder.AudioProfiles AudioProfile
CustomVideoProfile
カスタムスクリーン録画設定。VideoProfile == Customの場合に使用します。StartRecording(Action<bool, PermissionStatus, string>, Action<string>)前に変更する必要があります。
public VideoRecorder.VideoProfiles CustomVideoProfile
FilePath
スクリーン録画ファイルの出力パス。StartRecording(Action<bool, PermissionStatus, string>, Action<string>)前に変更する必要があります。
public string FilePath
FilePathType
スクリーン録画ファイルの出力パスタイプ。StartRecording(Action<bool, PermissionStatus, string>, Action<string>)前に変更する必要があります。
public WritablePathType FilePathType
Orientation
スクリーン録画の動画向き。StartRecording(Action<bool, PermissionStatus, string>, Action<string>)前に変更する必要があります。
public VideoRecorder.VideoOrientation Orientation
VideoProfile
動画設定。StartRecording(Action<bool, PermissionStatus, string>, Action<string>)前に変更する必要があります。
public VideoRecorder.RecordProfile VideoProfile
ZoomMode
スクリーン録画のスケーリングモード。StartRecording(Action<bool, PermissionStatus, string>, Action<string>)前に変更する必要があります。
public VideoRecorder.RecordZoomMode ZoomMode
プロパティ
IsAvailable
スクリーン録画機能が利用可能かどうか(非エンタープライズ版Senseのみ、Android GLES2/3かつマルチスレッドレンダリング無効時に使用可能)。
public static bool IsAvailable { get; }
NotAvailableReason
利用不可時の理由。
public static string NotAvailableReason { get; }
メソッド
RecordFrame(RenderTexture)
textureを使用して1フレーム分のデータを録画します。
public void RecordFrame(RenderTexture texture)
パラメーター
texture
StartRecording(Action<bool, PermissionStatus, string>, Action<string>)
スクリーン録画を開始します。録画された動画データはRecordFrame(RenderTexture)を通じて継続的に渡す必要があります。
public void StartRecording(Action<bool, PermissionStatus, string> onStart, Action<string> onRecordError)
パラメーター
onStartonRecordError
StopRecording()
スクリーン録画を停止します。
public bool StopRecording()