h-online: With the release of Chrome 21, web applications can now directly access the local system’s built-in camera and microphone. Instead of requiring a special plugin, the major stable update to the WebKit-based web browser includes a new HTML5 <a href="http://www.html5rocks.com/en/tutorials/getusermedia/intro/">getUserMedia</a>
API – currently a W3C Editor’s Draft – to provide web apps with access to the camera and microphone. For security purposes, users will be prompted to grant apps permission to access the hardware.
Google Software Engineer Shijing Xian says that the new release is Chrome’s “first step” towards implementing the Web Real Time Communication (WebRTC) standard, which enables browsers to use JavaScript to control real-time communications. The addition of the getUserMedia
API support also enables functionality such as motion detection and real-time video effects – one demo, from StinkDigital, lets users play a xylophone by waving their hands, while another web app called HTML5 Webcam Toy uses WebGL fragment shaders (GLSL) to apply real-time special effects to a live camera video feed.
Before accessing a user’s built-in camera and microphone in Chrome, web apps must first get the user’s permission
Other changes include the addition of a Gamepad JavaScript API that enables game controllers to be used with web-based games, and improvements to Google’s Cloud Print technology, which lets users to print over the web from PCs, smartphones and tablets. On Mac OS X systems, Chrome 21 now supports the new Retina display (HiDPI) in Apple’s latest MacBook Pro laptop.
Version 21 of Chrome also closes a total of 26 security holes in the browser. These include integer overflows, use-after-free errors and out-of-bounds writes in the PDF viewer, as well as a use-after-free problem in CSS DOM, and a buffer overflow in the WebP image format decoder, all of which are rated as “high severity” by the company. A critical vulnerability in tab handling and a medium-severity cross-process interference problem in renderers that affect Linux systems have also been corrected.
A full list of security fixes can be found in a post on the Google Chrome Releases blog. Chrome 21 is available to download from google.com/chrome for Windows, Mac OS X and Linux; existing users can upgrade using the built-in update function. Chrome is built from Chromium, the open source browser project run by Google.