Using Communication Components > FCSetBandwidth object

 

FCSetBandwidth object

The FCSetBandwidth object manages the quality of cameras and microphones by setting up a global Quality Manager object (gFlashCom.quality) that has a manage and unmanage method.

The following example shows two sets of microphones and cameras being registered. The first and second parameters name the microphone and camera, respectively, that are being registered. The third parameter, which is optional, sets the aspect ratio (height/width) for the camera. The last parameter determines how bandwidth is shared. In the example, mic1/cam1 gets one-third and mic2/cam2 gets two-thirds. If the last parameter is unspecified, bandwidth is equally distributed.

gFlashCom.quality.manage(mic1, cam1, 1, 100);
gFlashCom.quality.manage(mic2, cam2, .75, 200);

Unmanaging the microphones and cameras stops the Quality Manager from automatically adjusting their quality, as shown in the following example:

gFlashCom.quality.unmanage(mic1, cam1);

If your application uses the SetBandwidth component but does not use the AVPresence component, you must use the Quality Manager object to register your microphones and cameras. The AVPresence component automatically calls the Quality Manager object.

 
Method summary for the FCSetBandwidth object

Method

Description

FCSetBandwidth.connect

Sets the bandwidth limits of the specified NetConnection object according to the currently selected bandwidths.

FCSetBandwidth.close

Cleans up after itself.


 
Property summary for the FCSetBandwidth object

Property

Description

FCSetBandwidth.modemUp

Determines the upload bandwidth when you select the Modem option. The defaults are 33 kilobits per second (Kbps) up and 33 Kbps down.

FCSetBandwidth.modemDown

Determines the download bandwidth when you select the Modem option. The default is 33 Kbps down.

FCSetBandwidth.dslUp

Determines the upload bandwidth when you select the DSL option. The default is 128 Kbps up.

FCSetBandwidth.dslDown

Determines the download bandwidth when you select the DSL option. The default is 256 Kbps down.

FCSetBandwidth.lanUp

Determines the upload bandwidth when you select the LAN option. The default is 1000 Kbps up.

FCSetBandwidth.lanDown

Determines the download bandwidth when you select the LAN option. The default is 1000 Kbps down.