ProjectManager/Video

Video Module
Parameters:
Name Type Description
opt object

Members

autoplay :boolean

Autoplay
Type:
  • boolean

currentTime :number

Current Time
Type:
  • number

(readonly) duration :number

Duration
Type:
  • number

endTime :number

End Time
Type:
  • number

isurl :boolean

Is url - Toggle between URL and Assets source
Type:
  • boolean

loop :boolean

Loop
Type:
  • boolean

muted :boolean

Muted
Type:
  • boolean

startTime :number

Start Time
Type:
  • number

(readonly) state :number

State
Type:
  • number

volume :number

Volume
Type:
  • number

Methods

(inner) addChangeListener(callback)

Add change listener
Example
const handler = (type, value)=> {
 console.log(type, value)
}
const video = Module.ProjectManager.getObject("123456789"); // key
video.addChangeListener(handler);
Parameters:
Name Type Description
callback Object callback method

(inner) clearChangeHandlers()

Clear change listeners
Example
const video = Module.ProjectManager.getObject("123456789"); // key
video.clearChangeHandlers();

(inner) pause()

Pause

(inner) play()

Play

(inner) remove()

Remove video
Example
// remove video
const video = Module.ProjectManager.getObject("123456789"); // key
video.remove();

(inner) removeChangeListener(callback)

Remove change listener
Example
const handler = (type, value)=> {
 console.log(type, value)
}
const video = Module.ProjectManager.getObject("123456789"); // key
video.removeChangeListener(handler);
Parameters:
Name Type Description
callback Object callback method used in add

(inner) stop()

Stop