VideoSynchronizer

new Cesium.VideoSynchronizer(options)

Synchronizes a video element with a simulation clock.
参数名称 类型 描述信息
options object 可选 Object with the following properties:
参数名称 类型 默认值 描述信息
clock Clock 可选 The clock instance used to drive the video.
element HTMLVideoElement 可选 The video element to be synchronized.
epoch JulianDate Iso8601.MINIMUM_VALUE 可选 The simulation time that marks the start of the video.
tolerance number 1.0 可选 The maximum amount of time, in seconds, that the clock and video can diverge.
Demo:

成员(属性)

Gets or sets the clock used to drive the video element.

element : HTMLVideoElement

Gets or sets the video element to synchronize.
Gets or sets the simulation time that marks the start of the video.
默认值: Iso8601.MINIMUM_VALUE
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.
默认值: 1.0

方法

Destroys and resources used by the object. Once an object is destroyed, it should not be used.
Throws:
  • DeveloperError : This object was destroyed, i.e., destroy() was called.
Returns true if this object was destroyed; otherwise, false.
返回值:
True if this object was destroyed; otherwise, false.