Wraithseeker
Wraithseeker

Reputation: 1904

HTML5 video play button not showing on iOS iPad

I have a HTML5 video that has a play button rendered by Safari on the iPhone but I can't figure out why it's not appearing on the iPad.

I took a look at Streamable and Gfycat and they both have a play button on their html5 videos.

I do not want to render the controls attribute of the video.

Upvotes: 0

Views: 1983

Answers (1)

Wraithseeker
Wraithseeker

Reputation: 1904

I got it to show using this script.

if((navigator.userAgent.match(/iPad/i)) && (navigator.userAgent.match(/iPad/i)!= null)){

        $('video').prop("controls",true);
    }

Upvotes: 3

Related Questions