Using Communication Components > VideoConference component > Using the VideoConference component

 

Using the VideoConference component

You can use this versatile communication component in applications to create a video conference space for users.

Drag the VideoConference, SimpleConnect, SetBandwidth, and ConnectionLight components onto the Stage to create a video conferencing application.

 
To use the component in your application:

1

Make sure Flash Communication Server is running.

2

Create a directory in the Flash Communication Server MX applications directory, and name it video_test.

3

In Flash MX, drag the VideoConference component onto the Stage.

4

In the Property inspector, give the component an instance name, such as videoconf_mc. To set additional parameters, see VideoConference component Property inspector.

5

Drag the SimpleConnect component onto the Stage.

6

In the Property inspector for the SimpleConnect component, provide the following two parameters:

In the Application Directory text box, type the URI of the application that you created in Step 2: rtmp:/video_test.

Double-click the Communication Components text box. In the Values dialog box that appears, click the plus sign (+) and type the instance name of the VideoConference component: videoconf_mc. Click OK.

By providing this value, you are using the SimpleConnect component to handle the connection for the VideoConference component. When the SimpleConnect component successfully connects to the server, the VideoConference component automatically connects to the server.

7

Save and publish the file as video_test.swf.

8

In this application's directory, create a file named main.asc with the following code:

load("components.asc");

Note: You can also copy the main.asc file from another application directory to this application's directory.

9

Open the SWF file. (Alternatively, select Control > Test Movie in the Flash MX authoring environment.) Log in and click the Auto checkbox.

If you have not previously set privacy settings for the Flash Player, you are asked for permission to allow camera and audio access.

If your audio device is running, the audio level moves up when you speak. If your video device is running, you can see the output in the video display. Move your mouse pointer over the video display to see the user interface for the microphone and camera as well as a button that lets you stop transmitting audio and video data.

If the dragSharing property is set to true, you can move the video screen around.

 
VideoConference component Property inspector

Name

Variable

Description

Show Boundary

showBoundary

A Boolean value; the default value is true. Determines if the boundary around the video conference area appears.

Show Background

showBackground

A Boolean value; the default value is false. Determines whether the video conference has a background or is transparent.

Clip Mask

clipMask

A Boolean value; the default value is true. Determines whether the video windows are clipped to the video conference area.

Drag Sharing

dragSharing

A Boolean value; the default value is true. Determines whether the video windows' positions are shared. Sharing lets video windows move when a remote user drags them; any drags are visible to other users.