new Cesium.VideoSynchronizer(options)

用模拟时钟同步视频元素.
Name Type Description
options object optional 下列属性的对象 :
Name Type Default Description
clock Clock optional 用来驱动视频的时钟实例.
element HTMLVideoElement optional 要同步的视频元素 .
epoch JulianDate Iso8601.MINIMUM_VALUE optional The simulation time that marks the start of the video.
tolerance number 1.0 optional 时钟和视频可以分辨的最大时间,以秒计.
Demo:

Members

clock : Clock

获取或设置用于驱动视频元素的时钟.

element : HTMLVideoElement

获取或设置视频元素以同步.

epoch : JulianDate

获得或设定标志着视频开始的模拟时间.
Default Value: -NT=0=- 翻译:

tolerance : number

Gets or sets the amount of time in seconds the video's currentTime 和时钟的当前 在视频搜索完成之前,时间可能有所不同. 数值较低使同步更准确但视频 表现可能会受到影响。 较高的数值提供更好的业绩 但以准确性为代价.
Default Value: 1.0

Methods

destroy()

破坏对象所使用的资源. 一旦物体被销毁,就不应使用.
Throws:
  • DeveloperError : This object was destroyed, i.e., destroy() was called.

isDestroyed()boolean

如果此对象被销毁, 返回真实; 否则, 错误 .
Returns:
如果此天体被销毁, 则属真; 否则, 属假 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.