Class: Util

Util

The Util class contains functions used by the WebClient, Call, Session and Camera classes.

new Util()

#UTIL Util class
Source:

Methods

addVideoDisplay(conatinerId, width, height)

Adds a video display to the specifind HTML element.
Parameters:
Name Type Description
conatinerId string The ID of the HTML element.
width number The width of the display in pixels.
height number The height of the display in pixels.
Source:

createXMLHTTPObject() → {Object}

Returns an XXMLHTTPObject based on the browser which runs the script.
Source:
Returns:
An XMLHTTPObject.
Type
Object

draw(containerId, data)

Draws an image to the specified HTML element
Parameters:
Name Type Description
containerId string The ID of the HTML element.
data string The base64 data of the image.
Source:

getWebClient() → {Object}

Returns the flash object in the webpage.
Source:
Returns:
The flash object.
Type
Object

hideFlash()

The function hides the flash element in the webpage.
Source:

modifyVideoDisplay(conatinerId, width, height)

Modifies an existing video display.
Parameters:
Name Type Description
conatinerId string The ID of the HTML element.
width number The width of the display in pixels.
height number The height of the display in pixels.
Source:

removeVideoDisplay(conatinerId)

Removes an existing video display.
Parameters:
Name Type Description
conatinerId string The ID of the HTML element.
Source:

sendRequest(url, callback, postData)

Sends an HTTP Request to the specified url.
Parameters:
Name Type Description
url string The url to send the request to.
callback sendRequestCallback Function to handle the request callback.
postData string The data to be send with the request.
Source:

showFlash()

The function shows the flash element in the webpage.
Source:

waitForReady()

The function blocks until the flash client is not ready.
Source: