HNHacker News
TopNewBestAskShowJobs

cbrandolino_

60 karma · joined September 19, 2012

I liek web
submissionscomments
cbrandolino_··on More HTML5 APIs
Oh please no, we barely got rid of the target attribute /:
cbrandolino_··on Genetic Algorithms in CoffeeScript
That's supernice!

You may want to fix the links in the readme though.

cbrandolino_··on HTML5 webcam to canvas stream (Demo + annotated code)
Uh, from the downvotes I gather that was inappropriate. Sorry; I'm completely new to HN.

Anyway the backstory is that me and jayniz used to work together, and he usually adds a gif to each of his readme files.

cbrandolino_··on HTML5 webcam to canvas stream (Demo + annotated code)
Oh you! Can you suggest a gif? ^^
cbrandolino_··on HTML5 webcam to canvas stream (Demo + annotated code)
Well, for what concerns the part I focused on (the canvas part) there should not be any performance issue with p2p.

For WebRTC p2p video streaming in general, it seems promising. At the moment, though, there's little to no browser support and getting a full system (there's also a server involved, to initiate the connections) is not automated or abstracted yet.

For more info, check out this page: http://www.webrtc.org/running-the-demos

cbrandolino_··on HTML5 webcam to canvas stream (Demo + annotated code)
Nice lib!

I was thinking of libifying my thingy, in a quite minimalistic way (at a minumum, the user would just pass two functions, one "update" and one "draw", which would receive a the current frame and, in the first case, the delta time).

This way you could just get freaky with the canvas effects and composing capabilities and stop caring about the low-level stuff.

I see you know your way around building nice, clean APIs; could you suggest me article/book about it? I'm kind of a newbie to that sort of things.

cbrandolino_··on HTML5 webcam to canvas stream (Demo + annotated code)
Wow, I was sure they implemented requestAnimationFrame already!

Anyway, I limited myself to trying out the various vendors' prefixes; this being mainly an experiment/preview I'd rather keep the code clean than support non-cutting-edge browsers.

I'll update the paragraph about the compatibility though; thanks for the heads up!

cbrandolino_··on HTML5 webcam to canvas stream (Demo + annotated code)
Lol, look at the commit history for the pages branch - the JS didn't change since submission ^^
cbrandolino_··on HTML5 webcam to canvas stream (Demo + annotated code)
I'm afraid it depends on the browser implementation. It works fine on Chrome 12 odd on linux, with all hardware accelerations activated under chrome://flags/