Joe Yan Joe Yan - 4 months ago 20
Android Question

How to autoplay HTML5 mp4 video on Android?

I had developed a mobile page by to play mp4 video.

I know iOS had disabled the autoplay function to minimize user bandwidth, so how can i
autoplay HTML5 mp4 video on Android ?

I had already put autoplay in HTML5 code, but it doesn't work.

The following is my code:

<video autoplay controls id='video1' width='100%' poster='images/top_icon.png' webkitEnterFullscreen poster preload='true'>
<source src='' type='video/mp4; codecs='avc1.42E01E, mp4a.40.2' >

Moreover, I had fixed the problem that user click on the image overlay can play the video.
Thanks Karthi

here are the code:

<script type="text/javascript">
$(document).ready(function() {
$("#video1").bind("click", function() {
var vid = $(this).get(0);
if (vid.paused) {; }
else { vid.pause(); }




I don't think autoplay works on Android, but getting a video to play can be annoyingly tricky. I suggest giving this article a read: Making HTML5 Video work on Android phones.