Getting Started > Publishing and playing a stream > Examining the sample connection file

 

Examining the sample connection file

The doc_connect file shows how to initialize a movie, connect to the server, and publish and play a stream. It also explains where to save your sample file.

Note: These instructions assume that the service is running. For information on starting the service, see Starting the service.

 
To view the source file:

Open the doc_connect.fla file located in the .../help_collateral/doc_connect directory.

 
To see the sample in action:

1

Create a directory named doc_connect in the applications directory in the Flash Communication Server installation directory.

2

Open the doc_connect.swf file located in the .../help_collateral/doc_connect directory.

Note: If the application doesn't seem to be working, make sure the service is running; see Starting the service.

After allowing access to the audio and video devices, you see two images: the live stream from the camera and the published stream sent back from the server.