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?
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?
Hello John,
Only those event in the dropdown are available.
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?
hi John,
This should work.
Place a Video component on your screen
Add a button
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();
@M&M ... a big THANK YOU for that tip!!
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