Show HN: BigVideo.js
dfcb.github.com
dfcb.github.com
Unless there's more to it than that IMHO you'd be better served making it independent of jQuery. As popular as jQuery is, it's not a given.
Nice work + demo, btw.
It's fairly trivial to cook up a simple jQuery like selector but others have already done it: e.g. https://github.com/ryt/Selector
* measuring window size
* creating a slider slider component without full <input type=range support>
* having appropriate snap points on that slider
* event model normalization
* pub/sub
* detecting when an image asset has loaded
* $(body).prepend() equivalence: insertBefore() can throw if someone's HTML has a comment comment directly inside the body tag (typical with HTML5 Boilerplate code)
Sure it'd be nice to have this be plain old JS, but as a developer you're signing up for a lot of pain that is merely just plumbing required to build your unique component. If BigVideo was targeting IE10 and everyone else, then we'd have a much better looking story in the code.This couldn't have come at a better time. I've just been tasked with creating a landing page with full-screen background scaling video and this plugin will make my life easier.
One thing BigVideo.js has is controls you can customize and I have an example where you can do autohiding of content on top of the background. http://dfcb.github.com/BigVideo.js/example-playlist.html
Also BigVideo.js is built on the Video.js api, so those methods are available to you.
upload your video to youtube, and use Tubular to serve it. +save bandwidth
or modify the JS to use an flv swf on your server.
Can you add custom controls? Like in this BigVideo example below (click one of the playlist buttons on the left): http://dfcb.github.com/BigVideo.js/example-playlist.html
Another benefit is the BigVideo.js is built on the Video.js api, so all those methods are available to you.
However, this project and another that is on the frontpage of HN reminded me that projects like these should always come with a checklist of browsers that support them, even though it is meant to be implicit that all browsers should support the projects.
I don't know if there's a Travis CI-like solution available to solve this task, but it's be useful and relevant if there is.
For example, the Path landing page uses a well designed background video and falls back to a simple image if the video isn't available: https://path.com/
(Incidentally the background video didn't load for me every time. Straight link to the video: https://s3.amazonaws.com/assets.path.com/v2_home/background....)
Now I'm still wondering how to autoplay a mp3 on page load and on subsequent clicks on a button. I've tried tinkering with an audio tag, never worked. The future is now. Kind of.
I love that film. Own the BluRay.
[update]: this is amazing great work!
[update]: here is a screenshot: http://i.imgur.com/Mogn3.png hopefully having the firebug inspector open helps...
Still, I like the idea behind it and I hope these things can be solved in later versions.
Does BV.getPlayer().play() work on mobile?
Nice work. :D
Also, video does not resize when browser size changes, leaving content missing.
Nice work tho.
Have you noticed any effect on site performance in terms of speed with this plugin installed?