Centillien/webcam — pull request #4 by brettp (2014-03-21 15:18:13+00:00)
Title: Improved HTML5 / Flash detection. Improved Flash object.

This uses HTML5 as default, falling back to Flash, then finally disabling the webcam interface completely.

I've converted the Flash object to a Haxe project. [Haxe](http://haxe.org) is an OSS flash compiler, among other things. You should be very familiar with the syntax, as it's basically the same as AS2/3. I haven't added the shutter sound or the "snap" effect to the Flash version yet.

I also made a number of improvements to the Flash capture so that it saves the image data the same way as HTML5. This means we can reuse some of the JS and the can post immediately to the profile/avatar/edit action without having to save the image separately through Flash.

I've tested this in Chrome, FF, and Safari. I don't have IE so can't check that. If you have any questions about this approach, just let me know! If it looks good, feel free to merge!