Page 1 of 1

Appery video widget .. events?

Posted: Tue Jan 27, 2015 9:33 pm
by John P

Are any events triggered when a Video (or Youtube or Vimeo) ends? I see the drop-down menu suggests "Common Events" ... maybe there are other less-common events that can be caught?


Appery video widget .. events?

Posted: Tue Jan 27, 2015 9:58 pm
by Alena Prykhodko

Hello John,

Only those event in the dropdown are available.


Appery video widget .. events?

Posted: Wed Jan 28, 2015 11:16 am
by John P

Is there any other way (javascript?) to catch when a video has ended? I'd like to automatically move to the next screen, or to display a pop-up menu, etc. whenever the current video ends. Is that possible?


Appery video widget .. events?

Posted: Wed Jan 28, 2015 12:32 pm
by M&M

hi John,

This should work.

  1. Place a Video component on your screen

  2. Add a button

  3. Add the following JS code to the button

    function playVideo() {
    var video = $('video')[0];
    video.addEventListener('ended', function () {
    alert("Done Playing"); // Replace this with whatever command you wish to execute
    }, false);
    video.play();
    }

    playVideo();


Appery video widget .. events?

Posted: Wed Jan 28, 2015 1:42 pm
by John P

@M&M ... a big THANK YOU for that tip!!


Appery video widget .. events?

Posted: Wed Jan 28, 2015 1:52 pm
by M&M

This will work for the Appery "video" component but for the Youtube or Vimeo component, there could be some other way of achieving this....I haven't tried / tested that though