End of Video Events with Vimeo

A few people asked how to create trigger an end video event with Vimeo, so here goes.

1. Create an html file (paste it into a notepad, and change the extension to .html)  with the following:

<!doctype html>

<html>

<head>

<meta charset=”utf-8″>

<title>Untitled Document</title>

</head>

<body>

//ENTER VIMEO EMBED HERE

<iframe src=”https://player.vimeo.com/video/XXXXXXXXXXX” width=”640″ height=”360″ frameborder=”0″ webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

<script src=”https://player.vimeo.com/api/player.js”></script>

<script>

    var iframe = document.querySelector(‘iframe’);

    var player = new Vimeo.Player(iframe);

    player.on(‘ended’, function() {

//ENTER END TRIGGER FUNCTION HERE

        alert(“Your Vimeo video has now ended”);

Read the full story by

Tags:

RELATED READS
Learndash/Captivate quick and dirty and free integration Importing Microsoft PowerPoint into Adobe Captivate Quick Tip
We are updating our Privacy Policy, so please make sure you take a minute to review it. As of May 25, 2018 your continued use of our services will be subject to this new Privacy Policy.
Review Privacy Policy OK