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:
Note: In above code there is an attribute
playsinline
which we have to put so that video will autoplay in iphone and ipad.