Fallback for WebP poster in video tag, how?
Asked Answered
J

0

21
<video controls poster="image.webp">
   <source src="video.mp4" type="video/mp4">
</video>

I would use poster in WebP format, how I can make fallback to JPG for browsers that don't support WebP?

Jaworski answered 13/12, 2019 at 17:9 Comment(2)
you'd want to use something like this - https://mcmap.net/q/172802/-detecting-webp-support- and based on the response choose the WebP or JPG posterBola
Hey did you find a solution other than @Bola one?Lisettelisha

© 2022 - 2024 — McMap. All rights reserved.