I am breaking my head with this html5 video tag for the past few hours. I have checked the answers in this site and nothing works for me.
I want to load a video file on andriod phones version 2.3 and above. Any help will be highly appreciatable. I took code from this url: HTML5 Video Javascript
My Javascript function:
<script type="text/javascript">
function PlayVideo() {
new_video = document.createElement('video');
new_video.setAttribute('scr', 'Work.mp4');
window.onload = function() { new_video.play(); }
//new_video.play();
}
</script>
My HTML
<input type="button" onclick="PlayVideo()" value="Play2" />
Kindly help me with this code. And one more question, will andriod versions 2+ supports HTML5 video tag?
Thanks Haan