Re:AnimGIFs need a better codec
by germanforblack on Saturday July 19, 2014 @08:56PM
(#8059267)
You could also use <video src="/path/to/vid.mp4" muted loop autoplay>
[ Parent
| on HN ]
That's what sites do currently, but it's still not quite there yet, because it requires special markup and doesn't loop when you share the URL directly (I hope the latter can be fixed easily: https://bugzilla.mozilla.org/show_bug.cgi?id=1041238 https://code.google.com/p/chromium/issues/detail?id=395413).
Annoyingly GIF isn't supported as a source in <video> either, which adds extra complexity when you want to provide a proper fallback.
I don’t think the markup for `<video autoplay muted loop>` is an issue. These attributes exist for this use case.
That being said, video in CSS background is a legit feature request.
Re:AnimGIFs need a better codec
by TazeTSchnitzel on Saturday July 19, 2014 @10:14PM
(#8059376)
>doesn't loop when you share the URL directly
You can deal with that server-side by checking referrers and other headers and serving HTML.