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

function ended on video canvas

New Here ,
Dec 30, 2017 Dec 30, 2017

Copy link to clipboard

Copied

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

Views

297

Translate

Translate

Report

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.

Votes

Translate

Translate
LEGEND ,
Dec 30, 2017 Dec 30, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Thanks!    

Votes

Translate

Translate

Report

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