Skip to main content
Participant
December 31, 2017
Answered

function ended on video canvas

  • December 31, 2017
  • 1 reply
  • 396 views

What's wrong with my code?

var videoURL = "https://images-tv.adobe.com/avp/vr/15a99ccf-0e7c-4601-b270-87dd82624086/5078a43c-81f9-4a93-836c-815278b83a8e/e9cf12a0-7c4b-414f-a5c9-97ef49340aa9_20160203035417.960x540at1200_h264.mp4";

this.video.on("added", function() {

    $("#video")[0].src = videoURL;

}, this, true);

this.video.on('ended', function() {

  console.log("ended");

});

The ended doesn't work

This topic has been closed for replies.
Correct answer ClayUUID

You're adding the event listener to the component, not the actual video element.

1 reply

ClayUUIDCorrect answer
Legend
December 31, 2017

You're adding the event listener to the component, not the actual video element.

Participant
December 31, 2017

Thanks!