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)

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 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 wrtc.onError(703, "browser reports getScreen not available")

ixnx/wrtc/js/api/wrtc/getscreen.txt · Last modified: by tibor
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0