When you make a request to start a new screen share, the JSON content that you get back will contain a
viewerUrl. You can integrate the viewer by either redirecting the user to the
viewerUrl or embedding the
viewerUrl into an
The viewer can be customized by adding optional query string parameters to the
|fitToWindow||By default, the screen share renders for the viewer at the actual size, to ensure
the highest quality image. To resize the screen share to fit within the user's browser display area,
set this option to
|showStop||If this parameter is set to
|showResize||If this parameter is set to
|externalId||You may now pass in an external ID of up to 32 characters to save with the viewer data in a screen share.
This can be useful for later connecting screen share viewer connections to records on your system.
WARNING: If passed in, the external ID needs to be unique for each viewer in a screen share. Assigning the same external ID to multiple viewers in a screen share will break viewing for for the screen share.
|redirectOnError*||A URL to which the user should be redirected if there is an error. If omitted, an error message is displayed.|
|redirectOnEnd*||A URL to which the user should be redirected when the screen share ends. If omitted, a message is displayed to inform the user that the screen share has ended.|
|language||The code of the language in which to translate viewer messages. By default, Screenleap will attempt to pick up the correct language from the "Accept-language" HTTP header.
The currently available languages are listed below. To request a language not already on the list, please contact support.
iframe; this option would need to be used for a full-window viewer.
If you are embedding the viewer page in an
iframe, you can get notified of screen share events from
the viewer page by adding a listener to your page. Some events, such as the
are automatically sent by the viewer page to your page if you have a listener defined. Other events, such as the
VIEWPORT_SIZE event, require you to first post a message to the viewer page to let it know that you
are interested in listening for the event before the viewer page will start sending notifications for the event.
To get alerted about changes to the viewport size (which is useful if you want to change the layout of your page in response to changes in the aspect ratio of the shared screen), you would need to make the following call:
Viewer Customization Wizard
The API demo lets you try out
each of the customization options above. We recommend that you click
Show viewer options on the demo page, use it
to find the configuration that will work for you, then copy the URL from that page to use in your