Referencia addCue()

addCue()

Schedules a function to call when the audio/video reaches a specific time during its playback.

The first parameter, time, is the time, in seconds, when the function should run. This value is passed to callback as its first argument.

The second parameter, callback, is the function to call at the specified cue time.

The third parameter, value, is optional and can be any type of value. value is passed to callback.

Calling media.addCue() returns an ID as a string. This is useful for removing the cue later.

Ejemplos

Sintaxis

addCue(time, callback, [value])

Parámetros

time

cue time to run the callback function.

callback

function to call at the cue time.

value

object to pass as the argument to callback.

Notice any errors or typos? Please let us know. Please feel free to edit src/dom/dom.js and open a pull request!

Referencias Relacionadas