/usblVideoEnded.html Secret
Last active
September 14, 2017 13:12
-
-
Save lennardtastic/e3081b5ab2e73059e7b48ff68a4108d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Example HTML video --> | |
<video width="400" controls id="vjs_video_3_html5_api"> | |
<source src="video_filename.mp4" type="video/mp4"> | |
Your current browser does not support HTML5 video. | |
</video> | |
<!-- Add this piece of script to the frame that you load where the video is located. --> | |
<!-- Make sure to change the ID of the video element on which you want to target --> | |
<!-- Additionally make sure to add the manual trigger to the campaign you want to show --> | |
<script> | |
var usblVid = document.getElementById("vjs_video_3_html5_api"); | |
usblVid.addEventListener("ended", usblCpgmnVideoEnded); | |
function usblCpgmnVideoEnded(){ | |
window.usabilla_live('trigger', 'vjsEnded'); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment