Skip to content

Instantly share code, notes, and snippets.

@dmlap
Created July 23, 2013 20:56
Show Gist options
  • Save dmlap/6066087 to your computer and use it in GitHub Desktop.
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
<!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