VideoManager

.Videos. VideoManager

视频管理器,用于管理多个视频对象

Constructor

new Glodon.Bimface.Plugins.Videos.VideoManager(VideoManagerConfig)

Parameters:
Name Type Description
VideoManagerConfig Glodon.Bimface.Plugins.Videos.VideoManagerConfig

视频管理器配置项

Methods

addVideo(video)

添加单个视频对象

Parameters:
Name Type Description
video Glodon.Bimface.Plugins.Videos.Video

视频对象

addVideos(videos)

添加多个视频对象

Parameters:
Name Type Description
videos Array

由多个视频对象组成的数组

clear()

清空管理器内所有视频对象

getVideoById(id)

根据ID获取视频对象

Parameters:
Name Type Description
id String

视频对象ID

Returns:
Type Description
Glodon.Bimface.Plugins.Videos.Video

视频对象

getVideos()

获取管理器内所有的视频对象

Returns:
Type Description
Array

由多个视频对象组成的数组

hideVideoById(id)

根据ID隐藏视频对象

Parameters:
Name Type Description
id String

视频对象ID

removeVideoById(id)

根据ID移除视频对象

Parameters:
Name Type Description
id String

视频对象ID

showVideoById(id)

根据ID显示视频对象

Parameters:
Name Type Description
id String

视频对象ID