setCues([cues])

Sets the cues displayed on the time slider

New cues replace the existing displayed cues.

jwplayer("myElement").setCues([
  {
    begin: 120,
    text: "First cue"
  }, 
  {
    begin: 575,
    text: "Second cue"
  }
]);
AttributeDescription
begin* numberCue location relative to the start of the media item, in seconds
text* stringLabel for the cue

Passing an empty array as the argument will clear all of the cues from the time slider.

jwplayer('myElement').setCues([]);