
AVChat 2 and AVConference are compatible with both FMS 2 & 3 and Red5 .
Making AVConference and AVChat 2 automatically adjust to the size of the browser window
Prerequisites:
- working AVChat 2 or AVConference installation
- acess to the web server where the client side files are installed
Introduction
You can change the size of AVChat 2 and AVconference flash client and/or admin interfaces to better fit with the design of your website.
How to do it
The size of the AVChat and AVConference flash interfeace is defined in the HMTL webpage that embeds the respective flash interface. By default AVChat 2 and AVConference ship with 2 html pages: index.html (that embeds the user interface: index.swf) and admin.html ( that embeds the admin interface: admin.swf).
In order to change the size of the AVChat 2 user interface for example, we will need to open index.html in a text editor and edit the code below:
width="970" height="580"
and change the value of the width and height variables. The above code can be found in 2 places in the HTML file so make sure you change in both. The above values are the default values in pixels. You can change these absolute values to make the interface better fit with your website layout. You can also use relative values like in the example below.
End result
To make the user interface fill all the available space in the browser window replace the above code with this one:
width="100%" height="100%"
Done
Now, do not forget to save and upload the modified index.html to your web site, and refresh.
The same procedure applies to admin.html
