VdoPlayer JS www.vdocipher.com
import Vdo from 'VdoPlayerJS/vdo/index.js'
public class | source

Vdo

Global vdo object

Method Summary

Public Methods
public

add(embedInfo: embedInfoType)

embed a new video overrides the add function to always create vdoplayer objects when creating new vdo players

public

Obtain a list of videos embedded in this page The order of embed is usually maintained There is no id based obtain for now, if you are not sure of the index, you can always iterate and find the desired entity

Public Methods

public add(embedInfo: embedInfoType) source

embed a new video overrides the add function to always create vdoplayer objects when creating new vdo players

Params:

NameTypeAttributeDescription
embedInfo embedInfoType

Check embedInfo docs for the structure

public getObjects(): Array<VdoPlayer> source

Obtain a list of videos embedded in this page The order of embed is usually maintained There is no id based obtain for now, if you are not sure of the index, you can always iterate and find the desired entity

Return:

Array<VdoPlayer>

An array of VdoPlayer objects