Created
July 23, 2013 20:56
-
-
Save dmlap/6066087 to your computer and use it in GitHub Desktop.
Test case for the `ended` event on Android for Chrome. Running this example should pop up an alert dialog when the video finishes but it does not on Android 4.0.4 with Chrome 28.0.1500.94 on an HTC One X
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
<!doctype html> | |
<html> | |
<head> | |
<title>No ended event on Android Chrome</title> | |
</head> | |
<video width=600 height=300 src="http://vjs.zencdn.net/v/oceans.mp4" controls> | |
<script> | |
var video = document.querySelector('video'); | |
video.addEventListener('ended', function() { | |
alert('ended'); | |
}, false); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment