new VideoSynchronizer(optionsopt)
Synchronizes a video element with a simulation clock.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Object with the following properties:
Properties
|
- Source:
Members
clock :Clock
Gets or sets the clock used to drive the video element.
Type:
- Source:
element :HTMLVideoElement
Gets or sets the video element to synchronize.
Type:
- HTMLVideoElement
- Source:
epoch :JulianDate
Gets or sets the simulation time that marks the start of the video.
Type:
- Default Value:
- Iso8601.MINIMUM_VALUE
- Source:
tolerance :Number
Gets or sets the amount of time in seconds the video's currentTime
and the clock's currentTime can diverge before a video seek is performed.
Lower values make the synchronization more accurate but video
performance might suffer. Higher values provide better performance
but at the cost of accuracy.
Type:
- Number
- Default Value:
- 1.0
- Source:
Methods
destroy()
Destroys and resources used by the object. Once an object is destroyed, it should not be used.
- Source:
Throws:
-
This object was destroyed, i.e., destroy() was called.
- Type
- DeveloperError
isDestroyed() → {Boolean}
Returns true if this object was destroyed; otherwise, false.
- Source:
Returns:
True if this object was destroyed; otherwise, false.
- Type
- Boolean