I am using a tag on an Android Webview. This is the code:
<div class="video-wrapper">
<video id="video" class="video-full-screen" preload="none" webkit-playsinline poster={poster url here}>
<source id="mp4" src="{Video Source here}" type="video/mp4">
<p>Your user agent does not support the HTML5 Video element.</p>
</video>
</div>
I register the following video events:
var video = $('video');
video.bind("canplay", function(){
console.log("canplay");
});
video.bind("playing", function(){
console.log("playing");
});
video.bind("waiting", function(){
console.log("waiting");
});
video.bind("ended", function(){
console.log("ended");
});
video.bind("canplay", function(){
console.log("canplay");
});
When I disconnect the internet before pressing video's poster, I receive the following events (after clicking the poster):
"waiting"
"canplay"
"playing"
"ended"
All of those events are happening in few seconds (the video is not playing). Tested on Samsung Galaxy S4 4.2.2.
This is obviously some kind of bag? (not happening on iOS / Nexus 4, Android 4.4)