Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

function ended on video canvas

New Here ,
Dec 30, 2017 Dec 30, 2017

What's wrong with my code?

var videoURL = "https://images-tv.adobe.com/avp/vr/15a99ccf-0e7c-4601-b270-87dd82624086/5078a43c-81f9-4a93-836c-8152...";

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

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

}, this, true);

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

  console.log("ended");

});

The ended doesn't work

336
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 30, 2017 Dec 30, 2017

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

Translate
LEGEND ,
Dec 30, 2017 Dec 30, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 30, 2017 Dec 30, 2017
LATEST

Thanks!    

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines