News for hackers. Stuff that matters.
Re:Show HN: faces.io – ridiculously simple video chat by dhotson on Monday February 10, 2014 @08:34PM (#7215097)
Isn't there a rule about if you're not embarassed about your 1.0 then you're not shipping fast enough? ;-)

Basically I just wanted to try out some ideas using WebRTC peer-to-peer video with some clever layout algorithms.

When I started this I was looking into libraries like Packery that are good at arranging rectangles in the smallest possible space. But I found what I really wanted was something to expand to fill all available space.

I ended up using D3's treemaps to arrange videos. Normally they're used for visualising things like diskspace, but I'm using it to fill the screen with videos.

https://github.com/mbostock/d3/wiki/Treemap-Layout

There are no comments on this comment yet.