ilyo
ilyo

Reputation: 36391

Why is there no play button in android browser on HTML5 video?

In iPhone a play button appears on a video automatically, like here:

enter image description here

Why is there no such thing in android? If i use a custom play button for both devices it will appear on top of the iphone plat button

any solutions?

Upvotes: 1

Views: 1565

Answers (1)

Pulkit Goyal
Pulkit Goyal

Reputation: 5654

Currently Android doesn't display the play button. A workaround this might be to detect if the user is coming to your website through iPhone or Android. Have a look at this to see you to do that. You can then show the button only if the user comes to the website through Android.

You will also have to manually play the video on Android.

var video = document.getElementById('video');
video.addEventListener('click',function(){
  video.play();
},false);

Upvotes: 3

Related Questions