Class TimecodeSourceState
A class which may be used to manage the timecode updates for an ITimecode
Namespace: Unity.LiveCapture
Assembly: Unity.LiveCapture.dll
Syntax
public class TimecodeSourceState
Remarks
This handles updating the timecode at the best point in the update loop, and ensures
that the timecode source is genlocked when an ISync
Constructors
TimecodeSourceState(Func<FrameTimeWithRate?>)
Creates a new Timecode
Declaration
public TimecodeSourceState(Func<FrameTimeWithRate?> pollFrameTime)
Parameters
Type | Name | Description |
---|---|---|
Func<Frame |
pollFrameTime | A function that polls the timecode source at the start of the frame for the latest timecode. Return null if there is no timecode available. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if |
Properties
CurrentTime
The frame time and frame rate to use for the current frame.
Declaration
public FrameTimeWithRate? CurrentTime { get; }
Property Value
Type | Description |
---|---|
Frame |
Methods
Dispose()
Disposes this instance.
Declaration
public void Dispose()