Appearance
KBE3D / KBCore / Cesium / VideoSynchronizer
类: VideoSynchronizer
Synchronizes a video element with a simulation clock.
参数
Object with the following properties:
参数
The clock instance used to drive the video.
参数
The video element to be synchronized.
参数
The simulation time that marks the start of the video.
参数
The maximum amount of time, in seconds, that the clock and video can diverge.
属性
epoch
epoch:
JulianDate
Gets or sets the simulation time that marks the start of the video.
tolerance
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.
clock
clock:
Clock
Gets or sets the clock used to drive the video element.
element
element:
HTMLVideoElement
Gets or sets the video element to synchronize.
方法
destroy()
destroy():
void
Destroys and resources used by the object. Once an object is destroyed, it should not be used.
返回
void
isDestroyed()
isDestroyed():
boolean
Returns true if this object was destroyed; otherwise, false.
返回
boolean
True if this object was destroyed; otherwise, false.
构造函数
构造函数
new VideoSynchronizer(
options?: {clock?:Clock;element?:HTMLVideoElement;epoch?:JulianDate;tolerance?:number; }):VideoSynchronizer
参数
options?
clock?
element?
HTMLVideoElement
epoch?
tolerance?
number
返回
VideoSynchronizer
