Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using videos in img html

Referencing this article: https://cloudinary.com/blog/evolution_of_img_gif_without_the_gif

What is the compatibility situation with videos in img in 2020? I don't know what the name of the feature is called to look for in caniuse.

  • Now you can <img src=".mp4">s in Safari Technology Preview
  • Early results show mp4s in tags display 20x faster and decode 7x faster than the GIF equivalent - in addition to being 1/14th the file size!
  • Now we wait for the other browsers to catch-up
like image 436
Harry Avatar asked Sep 19 '25 21:09

Harry


1 Answers

By today (Oct 2022), we still can only use <img src=".mp4"> on Safari. If you want to make MP4 files work like GIFs on other browsers, you might wanna use <video autoplay muted loop>.

like image 122
Joel Lacerda Avatar answered Sep 23 '25 12:09

Joel Lacerda



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!