media is a readable stream and speaks stream events: data, error and end. that means you can pipe media output to anything that accepts streams, such as an XHR. in this case the data events will be DataURI representations of the user's webcam frame captures