将视频元素与模拟时钟同步。 Synchronizes a video element with a simulation clock.
| 名称 Name | 类型 Type | 说明 Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
可选 optional
具有以下属性的对象: Object with the following properties:
|
演示: Demo:
成员 Members
获取或设置用于驱动视频元素的时钟。 Gets or sets the clock used to drive the video element.
获取或设置要同步的视频元素。 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.
