W3 Mind Logo
Home » HTML5 Video not playing in Safari , iPhone and iPad

HTML5 Video not playing in Safari , iPhone and iPad

HTML5 Video not playing in Safari iPhone and iPad

Many people face the problem that video does not work in iPhone and iPad devices and mainly when video is set to autoplay. We see that the video works fine on desktop, But it does not play in iphone and ipad.

Here’s the solution.

Example:

				
					<video playsinline
      autoplay
      muted
      loop
      class="w3-video"
>
    <source src="/wp-content/themes/w3/video/w3-video.mp4" type="video/mp4" />
</video>
				
			
Note: In above code there is an attribute playsinline which we have to put so that video will autoplay in iphone and ipad.
About Author
W3Mind

W3Mind

W3Mind focuses on Blogging, Make Money Online, SEO, Business Blogging, Social Media, WordPress, Internet Tools, Web Design and Development.
Give it a Share
Facebook
Twitter
LinkedIn
You May Also Like
Leave a Reply

Your email address will not be published. Required fields are marked *

How to
START A
BLOG
(step by step)
Load WordPress Sites in as fast as 37ms!