Class TakeRecorder
A take recorder that manages a set of capture devices.
Namespace: Unity.LiveCapture
Assembly: Unity.LiveCapture.dll
Syntax
public static class TakeRecorder
Properties
FrameRate
The frame rate to use for recording.
Declaration
public static FrameRate FrameRate { get; set; }
Property Value
Type | Description |
---|---|
Frame |
IsLive
Indicates whether the take recorder is ready for recording.
Declaration
public static bool IsLive { get; set; }
Property Value
Type | Description |
---|---|
bool |
PlayTakeContents
Indicates whether or not to play the entire shot or just the range where the Take contains recorded data.
Declaration
public static bool PlayTakeContents { get; set; }
Property Value
Type | Description |
---|---|
bool |
Shot
The current Shot to record to.
Declaration
public static Shot? Shot { get; }
Property Value
Type | Description |
---|---|
Shot? |
Methods
GetPreviewDuration()
Returns the current playback duration of the selected take.
Declaration
public static double GetPreviewDuration()
Returns
Type | Description |
---|---|
double | The current duration in seconds. |
GetPreviewTime()
Returns the current playback time of the selected take.
Declaration
public static double GetPreviewTime()
Returns
Type | Description |
---|---|
double | The current time in seconds. |
GetRecordingElapsedTime()
Returns the time elapsed since the start of the recording.
Declaration
public static double GetRecordingElapsedTime()
Returns
Type | Description |
---|---|
double | The time elapsed since the start of the recording, in seconds. |
IsPreviewPlaying()
Checks whether the take recorder is playing the selected take or not.
Declaration
public static bool IsPreviewPlaying()
Returns
Type | Description |
---|---|
bool | true if playing; otherwise, false. |
IsRecording()
Checks whether the take recorder is recording or not.
Declaration
public static bool IsRecording()
Returns
Type | Description |
---|---|
bool | true if playing; otherwise, false. |
PausePreview()
Pauses the playback of the selected take.
Declaration
public static void PausePreview()
PlayPreview()
Starts playing the selected take.
Declaration
public static void PlayPreview()
SetPreviewTime(double)
Changes the current playback time of the selected take.
Declaration
public static void SetPreviewTime(double time)
Parameters
Type | Name | Description |
---|---|---|
double | time | The current time in seconds. |
StartRecording()
Starts the recording of a new take for the selected slate.
Declaration
public static void StartRecording()
StopRecording()
Stops the recording.
Declaration
public static void StopRecording()
Events
LiveStateChanged
TakeRecorder executes this event when live mode has been enabled or disabled.
Declaration
public static event Action LiveStateChanged
Event Type
Type | Description |
---|---|
Action |
PlaybackStateChanged
TakeRecorder executes this event when playback has started or stopped.
Declaration
public static event Action PlaybackStateChanged
Event Type
Type | Description |
---|---|
Action |
RecordingStateChanged
TakeRecorder executes this event when recording has started or stopped.
Declaration
public static event Action RecordingStateChanged
Event Type
Type | Description |
---|---|
Action |