Purpose

In order to support screen sharing the client api needs enumerate screens and windows.  This api provided a list of screens (each monitor) and list of windows available; providing title, id and thumbnail.  This api is essentially equivalent of electron api: https://electron.atom.io/docs/api/desktop-capturer/#desktopcapturergetsourcesoptions-callback

getMediaSources API

ssf.getMediaSources(options, callback);
where options (Object) is:
where callback (Function) has arguments:

where DesktopSource (Object) is: