There was some hype in the WebRTC browser in Firefox 22. This is for those who know about the development of Firefox: is there any support in Firefox for writing to the desktop screen?
The technology exists for Chrome 26+, which provides experimental support for screen capture (using the "screen" as the source of the device); code (snippet) for this:
// select any supported getUserMedia function navigator.getMedia = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia); // if getUserMedia is not supported, do nothing if( !navigator.getMedia ) return; // request for user media navigator.getMedia( { video : { mandatory : { // request 'screen' as a source media chromeMediaSource : 'screen' } } }, // success function( localMediaStream ) { // process local media stream... }, // failure function( error ) { // error handling });
Looking at W3C documents, the MediaSourceConstraints, MediaTrackConstraints, MediaTrackConstraintsSet are not yet standardized. It may just be that the API is too foggy for this feature to appear in Firefox production. It would be nice to know the current state of support.
javascript html5 firefox webrtc getusermedia
knight
source share