Community Videochat v.6.0
Installation/Integration manual

Home Adding video chat to your website

Adding Videochat to your website

First of all, you should decide how you want the chat to appear on your web site - in a popup window or as a part of the page. We recommend using popup mode; however it is your choice.

Popup mode

To make the video chat open in a popup window when a user clicks a site link, you should setup the link in the following way:

<a href="javascript:openVideochatWindow('RoomID','UID','LanguageID');">Open Chat</a>

Parameters RoomID, UID and LanguageID are optional and will be described further.

Also, you should add the following string to the header section of the html page:

<script language="JavaScript" src="http://www.yoursite.com/flashcoms/common/js/flashcoms.js">
</script>

Embedded mode

To incorporate the chat in an html page you should paste the following html code at the relevant place of your page:

<div id="flashcoms_lnk" style="text-align:center; height:20px">
<strong><font color=#5a6678><a href=http://www.flashcoms.com/ target=_blank>Flash Chat - The new feel of communication</a></font></strong>
</div>

<div id="videochat_swf" style="width:100%; height:100%;">
<p><strong>Videochat</strong></p>
<p>You need to upgrade your Flash Player.</p><p>Version 8 or higher is required.</p>download from <a href="http://www.adobe.com/go/getflashplayer">http://www.adobe.com/go/getflashplayer</a>
</div>

<script type="text/javascript">
//<![CDATA[
var so = new SWFObject("http://www.yoursite.com/flashcoms/flashcoms.swf", "videochat", "100%", "100%", "8", "#FFFFFF");
so.addVariable("rootPath", "http://www.yoursite.com/flashcoms/");
so.addVariable("app", "videochat/videochat.swf");
so.addVariable("uid", "UID");
so.addVariable("roomId", "RoomID");
so.addVariable("langId", "LanguageID");
so.write("videochat_swf");

// ]]>
</script>

Parameters RoomID, UID and LanguageID are optional and will be described further.

Please make sure that rootPath variable value is specified correctly (it should be set to the http address of flashcoms folder)

Also, you should add the following string to the header section of the html page:

<script language="JavaScript" src=" http://www.yoursite.com/flashcoms/common/js/flashcoms.js">
</script>

Chat parameters

RoomID parameter allows you to specify the room which the user enters upon login. If this parameter is not set, users are able to choose the room to join on the chat welcome screen.

UID parameter is used in integrated mode with non session/cookies based site authorization. For more information please refer to the integration section of this manual.

LanguageID parameter allows you to specify the default chat interface language.