youtube.log

description

Note: since beta 0.4, blank parentheses default back "play". In beta 0.3, they default back to "all".

syntax

getYoutube(ELEMENT_NAME).log()

alternate(s)

  • getYoutube(ELEMENT_NAME).log("play")

  • getYoutube(ELEMENT_NAME).log("end")

  • getYoutube(ELEMENT_NAME).log("pause")

  • getYoutube(ELEMENT_NAME).log("buffer")

  • getYoutube(ELEMENT_NAME).log("play", "buffer", ...)

  • getYoutube(ELEMENT_NAME).log("all")

notes

  • Will add a line for the following events in the results file, regardless of whether they result from a click/key press or from a script command.

  • Each line will report the timestamp of the event, as well as the position (in seconds) of the video at the moment of the event. Given the asynchronous mechanism behind the Youtube API, there may be delays: for instance the position of an initial play event may not be 0, and you should subtract it from the reported timestamp to get an accurate measure of when the video really started playing.


example(s)


@newYoutube("myYoutube", "code")
$    .log("play", "buffer")
@    .play()
@    .wait()
  • Will start playing a Youtube video without showing it. Each play and each buffer event will add a line to the results file.