Skip to content

KBE3D / KBCore / utils / createVideo

函数: createVideo()

createVideo(url: string, type?: string, className?: string, container?: HTMLElement): HTMLVideoElement

创建Video元素

参数

url

string

url地址

type?

string

视频类型(可选)

className?

string

样式名称(可选)

container?

HTMLElement

添加到指定的父节点(可选)

返回

HTMLVideoElement

创建的Video元素

KBE3D @3.0.0 Copyright © 2024-present KBE3D