Class NtpTimecodeSource
A component that gets timecode from an network time protocol (NTP) server.
Inherited Members
Namespace: Unity.LiveCapture .Ntp
Assembly: Unity.LiveCapture.Ntp.dll
Syntax
[ExecuteAlways]
[CreateTimecodeSourceMenuItem("NTP Timecode Source", 0)]
[AddComponentMenu("Live Capture/Timecode/NTP Timecode Source")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.live-capture@4.0/manual/ref-component-ntp-timecode-source.html")]
public class NtpTimecodeSource : TimecodeSource, ITimecodeSource, IRegistrable
Properties
FrameRate
The frame rate of the timecode source.
Declaration
public override FrameRate FrameRate { get; }
Property Value
Type | Description |
---|---|
Frame |
Overrides
Remarks
This value may change during a frame.
FriendlyName
Get a human-readable name for the instance.
Declaration
public override string FriendlyName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
ForceUpdate()
Queries the NTP server to resynchronize the time with the server clock.
Declaration
public void ForceUpdate()
OnDisable()
This method is called by Unity when the component becomes disabled.
Declaration
protected override void OnDisable()
Overrides
OnEnable()
This method is called by Unity when the component becomes enabled and active.
Declaration
protected override void OnEnable()
Overrides
TryPollTimecode(out FrameRate, out Timecode)
Gets the latest timecode from the timecode source.
Declaration
protected override bool TryPollTimecode(out FrameRate frameRate, out Timecode timecode)
Parameters
Type | Name | Description |
---|---|---|
Frame |
frameRate | The rate at which the timecode is incremented. |
Timecode | timecode | The most recent timecode. |