====== getScreen() ====== wrtc.getScreen() starts screensharing, the contents of your screen is transmitted as video media stream to the caller. She will no longer see your camera image but your screen's contents. She will however still be able to hear you. To stop screensharing call wrtc.getScreen(false) [[ixnx:wrtc:js:screensharing|Read more about screensharing here.]] ===== Arguments ===== wrtc.getScreen(enable, constraints) * enable - (optional) boolean: missing or true means start screensharing, false means stop screensharing * constraints - (optional) json structure with [[https://www.w3.org/TR/screen-capture/#constrainable-properties|constraints]] ==== Start screensharing ==== call wrtc.getScreen() or wrtc.getScreen(true) ==== Stop screensharing ==== call wrtc.getScreen(false) The user can also end screensharing manually using the ESC button. ===== Returns ===== Nothing. ===== Events ===== If screensharing is not supported by web browser calling wrtc.getScreen() will result in [[ixnx:wrtc:js:api:wrtc:onerror|wrtc.onError]](703, "browser reports getScreen not available")