Mountain View
Jabber SDK API Documentation

Tutorial: Retrieving Monitor List

Retrieving Monitor List

Title Monitor list reflects list of monitors that are currently connected to local machine. Monitor list is retrieved through "onMonitorListChanged" event, so event handler must be set. The event is fired when MultimediaController.refreshMonitorList method is called. How to add event handler and retrieve monitor list is shown in the snippet below:

        // Monitor list retrieved will be save to this variable.
        var monitorList;

        function onMonitorListChanged(monitors)
        {
            monitorList = monitors;
            // Handle event...
        }

        cwic.MultimediaController.addEventHandler("onMonitorListChanged", onMonitorListChanged);
        cwic.MultimediaController.refreshMonitorList();
    

Next

Previous