Reputation: 5167
I have wordpress home page where I added video tag. This is source code.
<video id="video1" width="auto" autoplay loop controls="false">
<source src="[email protected]" type="video/mp4">
</video>
Here, what the important is controls="false" and autoplay loop, I want to hide controls and autoplay with looping. It work well in chrome but not working in safari. It weird at first I open it on safari it works but if I reopen, it doesn't. I want to know how to solve this and if I have to use other video file type, what should I use?
Upvotes: 1
Views: 372
Reputation: 282
Try this:
<video loop autoplay controls="true" id="video1" src='[email protected]' type='video/mp4'></video>
Upvotes: 2