WebRTC Plugin-free Screen Sharing
Copyright © 2013 Muaz Khan<@muazkh>.
Private sharing ??
|
Enable screen capture support in getUserMedia()
Allow web pages to request access to the screen contents via the getUserMedia() API. #enable-usermedia-screen-capture
You must enable this flag via "chrome://flags/"
To use code in your own site, you must understand following limitations:
Chrome Canary denies "screen capturing" request automatically if:
- You've not used '
chromeMediaSource
' constraint:
mandatory: {chromeMediaSource: 'screen'}- You requested audio-stream alongwith '
chromeMediaSource
' – it is not permitted.- You're not testing it on SSL origin (HTTPS domain).
- "screen capturing" is requested multiple times per tab. Maximum one request is permitted per page!
Remember, recursive cascade images or blurred screen is chrome's implementation issues. It will be solved soon.
mandatory: {chromeMediaSource: 'tab'}
can only be useful in chrome extensions. See Tab sharing using tabCapture APIs.
It is preferred to use RTCMultiConnection.js for audio/video/screen conferencing/broadcasting.