Using Communication Components > Using your component with the SetBandwidth component |
Using your component with the SetBandwidth component
Once a camera and microphone are registered with the Quality Manager object (see FCSetBandwidth object), your component can subscribe to events that notify the server when the quality of a camera or microphone has changed. To listen to these events, do the following:
1 |
Provide an |
listener.onChanged = function(microphone, camera)
{
// Re-adjust the settings, etc.
}
|
|
2 |
Register your listener with the Quality Manager, as shown here: |
gFlashCom.quality.addListener(listener); |
These steps ensure that the onChanged method is called whenever the SetBandwidth component adjusts the settings of a microphone or camera.