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"
}
]);
Attribute | Description |
---|---|
begin* number | Cue location relative to the start of the media item, in seconds |
text* string | Label for the cue |
Passing an empty array as the argument will clear all of the cues from the time slider.
jwplayer('myElement').setCues([]);