Show the getUserMedia camera stream when a MIDlet opens a capture://image media element
Take a shot from the camera stream
Send a MMAPI_EVENT native event when the screenshot is taken and return its data back to DirectPlayer. Fixes #358
Use image format for toBlob from the encoding parameter instead of hardcoding it as 'image/jpeg'
Missing fromJavaString in DirectPlayer::nStartSnapshot
Use 'image/jpeg' as default if getSnapshot parameter is null
Also add top offset
Merge pull request #643 from marco-c/camera_2

Support taking pictures