Class SpectatorViewTimeSynchronizer
Synchronizes time adjustments between the compositor and the HoloLens.
Inherited Members
Namespace: Microsoft.MixedReality.SpectatorView
Assembly: cs.temp.dll.dll
Syntax
public class SpectatorViewTimeSynchronizer
Methods
GetPoseTimeFromCameraTime(Single)
Gets the timestamp of a HoloLens pose from a video camera time.
Declaration
public float GetPoseTimeFromCameraTime(float cameraTime)
Parameters
Type | Name | Description |
---|---|---|
Single | cameraTime | The timestamp in the video camera timeline. |
Returns
Type | Description |
---|---|
Single | The timestamp of the HoloLens pose associated with the video, in the HoloLens timeline. |
GetUnityTimeFromCameraTime(Single)
Gets the timestamp of a HoloLens pose from a video camera time.
Declaration
public float GetUnityTimeFromCameraTime(float cameraTime)
Parameters
Type | Name | Description |
---|---|---|
Single | cameraTime | The timestamp in the video camera timeline. |
Returns
Type | Description |
---|---|
Single | The timestamp of the video frame in Unity's timeline. |
Reset()
Resets the time synchronization for a new synchronization session.
Declaration
public void Reset()
Update(Int32, Single, Int32, Single)
Records a sample to update the time synchronizer.
Declaration
public void Update(int cameraFrame, float cameraTime, int poseIndex, float poseTime)