English中文

VideoSynchronizer

new Cesium.VideoSynchronizer(options)

将视频元素与模拟时钟同步。 Synchronizes a video element with a simulation clock.
名称 Name 类型 Type 说明 Description
options object 可选 optional 具有以下属性的对象: Object with the following properties:
名称 Name 类型 Type 默认值 Default 说明 Description
clock Clock 可选 optional 用于驱动视频的时钟实例。 The clock instance used to drive the video.
element HTMLVideoElement 可选 optional 要同步的视频元素。 The video element to be synchronized.
epoch JulianDate Iso8601.MINIMUM_VALUE 可选 optional 标志着视频开始的模拟时间。 The simulation time that marks the start of the video.
tolerance number 1.0 可选 optional 时钟和视频可以偏离的最长时间(以秒为单位)。 The maximum amount of time, in seconds, that the clock and video can diverge.
演示: Demo:

成员 Members

获取或设置用于驱动视频元素的时钟。 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.
默认值: Default Value: Iso8601.MINIMUM_VALUE
获取或设置在执行视频搜索之前视频的 currentTime 和时钟的 currentTime 可以偏离的时间量(以秒为单位)。值越低,同步越准确,但视频性能可能会受到影响。较高的值可提供更好的性能,但会牺牲准确性。 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.
默认值: Default Value: 1.0

方法 Methods

销毁对象并使用其资源。一旦对象被销毁,就不应再使用。 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.
如果该对象被销毁则返回 true;否则为假。 Returns true if this object was destroyed; otherwise, false.
返回: Returns:
如果该对象被销毁,则为 True;否则为假。 True if this object was destroyed; otherwise, false.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.