Created
February 16, 2018 22:48
-
-
Save jerrickhakim/714aef33d11ecbb56e6a8213006cd5f2 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
<video id="vid" width="100%" controls poster="/posterurlhere" playsinline autoplay muted><source src="/videourl.mp4" type="video/mp4">Your browser does not support HTML5 video.</video><script type="text/javascript"> | |
video = document.getElementById('vid'); | |
video.addEventListener('ended',function() {alert('video is ended');window.location.href = '/redirecturl';}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment