Example of HTML5 media api for capturing video stream forma a webcam