John P
Posts: 0
Joined: Tue Oct 14, 2014 7:51 pm

Appery video widget .. events?

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?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Appery video widget .. events?

Hello John,

Only those event in the dropdown are available.

John P
Posts: 0
Joined: Tue Oct 14, 2014 7:51 pm

Appery video widget .. events?

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?

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Appery video widget .. events?

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();

John P
Posts: 0
Joined: Tue Oct 14, 2014 7:51 pm

Appery video widget .. events?

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

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Appery video widget .. events?

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

Return to “Issues”