Interesting! It works pretty well except that there's no IE support. So the resizing logic included in the library is useful for projects that need IE10+ support.
I did try to work around slow network speed (can see in the network_speed_optim branch on github but with the current APIs it's a tough problem to crack.
The current implementation is basic but works well. Suggestions welcome so that I can improve it.
It likely can't - videos are enforced as tap-to-play on iPhones, no matter what.
Which is good in most ways, but also means that people are converting videos into hugely bandwidth-wasting GIFs instead. I'd rather videos be "tap for sound" and autoplay at this point.
[+] [-] bpedro|9 years ago|reply
Using `object-fit: cover` will make the video resize maintaining its aspect ratio and filling its entire box.
See https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit for more info.
[+] [-] binarydreams|9 years ago|reply
[+] [-] addedlovely|9 years ago|reply
[+] [-] binarydreams|9 years ago|reply
I did try to work around slow network speed (can see in the network_speed_optim branch on github but with the current APIs it's a tough problem to crack.
The current implementation is basic but works well. Suggestions welcome so that I can improve it.
[+] [-] wanda|9 years ago|reply
[+] [-] angry-hacker|9 years ago|reply
[+] [-] fessa|9 years ago|reply
[+] [-] untog|9 years ago|reply
Which is good in most ways, but also means that people are converting videos into hugely bandwidth-wasting GIFs instead. I'd rather videos be "tap for sound" and autoplay at this point.
[+] [-] binarydreams|9 years ago|reply
[+] [-] andreapaiola|9 years ago|reply
[+] [-] detaro|9 years ago|reply
[+] [-] binarydreams|9 years ago|reply
[+] [-] rhubarbquid|9 years ago|reply
[+] [-] electic|9 years ago|reply
[+] [-] chinchang|9 years ago|reply
[+] [-] lambdacomplete|9 years ago|reply
[+] [-] binarydreams|9 years ago|reply