What is this site?

HTML5Labs is where Microsoft prototypes early and unstable specifications from web standards bodies such as W3C. Sharing these prototypes helps us have informed discussions with developer communities, and enables us to provide better feedback on draft specifications based on this implementation experience. To find out more about HTML5Labs, read the blog by Jean Paoli, President, Microsoft Open Technologies, Inc.

Media Capture API (updated)

We previously released a prototype implementation of the audio portion of a working draft of the W3C Media Capture API on HTML5 Labs. This prototype publicized some proposed API enhancements described in section 6.1 of Microsoft's HTML Speech XG Speech API Proposal. We have now updated the prototype to include image and video capture features to support scenarios we've heard are important for Web developers, as well as incorporating your feedback on audio.

As more and more consumers use mobile devices to take still pictures, videos, and sound clips, Web developers increasingly need support to import image, video, and sound into their Web sites and applications. A usable and standardized API for media capture means Web sites and apps will be able to access these features in a common way across all browsers in the future.

Our experience with the development of this prototype has helped us generate new
ideas to discuss within the W3C HTML Speech Incubator Group and Device APIs Working Group. In order to provide implementation experience and give Web developers early access
to these work-in-progress APIs, we continue to evolve this prototype. The end goal remains to create the best possible standard for the benefit of the whole Web community.

Download the prototype now!

Install the prototype, open the samples in IE and click on the microphone/record icons:
each web page will capture the sound, image, or video until it either hears silence, or you press the stop button, depending on the sample. When the Play button is pressed, the media just captured will then play back in the page.