VideoElement

构造函数

构造函数

VideoElement

构造函数

new VideoElement(properties?)

参数

返回:VideoElement VideoElement对象

属性

content

视频内容

content: HTMLVideoElement

类型: HTMLVideoElement

loadError

加载错误

loadError: Error

类型: Error

loadStatus

加载状态

loadStatus: "not-loaded" | "loading" | "failed" | "loaded"

类型: "not-loaded" | "loading" | "failed" | "loaded"

loadWarnings

加载警告

loadWarnings: any[]

类型: any[]

opacity

透明度

opacity: number

类型: number

type

元素类型

type: "video"

类型: "video"

video

视频元素

video: string | HTMLVideoElement

类型: string | HTMLVideoElement

访问器

georeference

地理参考

get georeference(): ControlPointsGeoreference | CornersGeoreference | ExtentAndRotationGeoreference
set georeference(value: ExtentAndRotationGeoreferenceProperties & object | CornersGeoreferenceProperties & object | ControlPointsGeoreferenceProperties & object): void

返回: void

方法

cancelLoad

取消加载

cancelLoad(): void

返回:void

isFulfilled

检查是否已完成

isFulfilled(): boolean

返回:boolean

isRejected

检查是否已拒绝

isRejected(): boolean

返回:boolean

isResolved

检查是否已解决

isResolved(): boolean

返回:boolean

load

加载资源

load(options?): Promise

参数

返回:Promise

when

等待完成

when(callback?, errback?): Promise

参数

  • callback?: Function Promise解决时调用的函数
  • errback?: Function Promise失败时执行的函数

返回:Promise

BIMFlux AI