The Client class
47
Suggested settings for different bandwidth speeds
The default camera settings provide a good viewing experience for all bandwidth settings.
However, you can experiment with different settings for different bandwidths.
The code for setting the bandwidth speeds is as follows:
my_cam = Camera.get();
my_cam.setQuality(bandwidthSpeed,quality)
Use the following table as a starting point if you want to experiment with camera settings at
different bandwidth speeds.
Using one camera in multiple applications
Multiple applications (SWF files) can use the same camera at the same time, provided that
they are running in the same process. Generally, multiple browser windows are all in the same
process, so in the browser environment this capability works well.
However, a camera cannot be shared between applications running in two different
processes—for example, one in the browser and one in a stand-alone player.
The Client class
When attaching methods to a Client object in server-side scripts, remember that all methods
on the client object can be called by a script in the SWF file on the client. You should not
include any methods on the Client object that you would not want a remote computer to
invoke. For example, you wouldn’t want a client to be able to call a method that could
disconnect an application.
Bandwidth
Effect
Code
Modem
Lower image quality, higher motion quality
my_cam.setQuality(4000,0)
Higher image quality, lower motion quality
my_cam.setQuality(0,65)
DSL
Lower image quality, higher motion quality
my_cam.setQuality(12000,0)
Higher image quality, lower motion quality
my_cam.setQuality(0,90)
LAN
Lower image quality, higher motion quality
my_cam.setQuality(400000,0)
Higher image quality, lower motion quality
my_cam.setQuality(0,100)
Summary of Contents for FLASH MEDIA SERVER 2-DEVELOPING MEDIA
Page 1: ...Developing Media Applications ...
Page 6: ...6 ...
Page 10: ...10 About This Manual ...
Page 36: ...36 Flash Media Server Architecture ...
Page 80: ...80 Debugging and Monitoring Applications ...
Page 106: ...106 Application Development Tips and Tricks ...
Page 114: ...114 ...