About Client-side classes

These classes are used only in client-side ActionScript. For more information about these classes, see the Client-Side ActionScript Language Reference for Flash Media Server 2.

Camera class The client-side Camera class lets you capture video from a video camera attached to any computer running Macromedia Flash Player. When used with Flash Media Server, this class lets you transmit, display, and optionally record the video being captured. With these capabilities, you can develop media applications such as videoconferencing, instant messaging with video, and so on.

Microphone class The client-side Microphone class lets you capture audio from a microphone attached to any computer running Flash Player. When used with Flash Media Server, this class lets you transmit, play, and optionally record the audio being captured. With these capabilities, you can develop media applications such as instant messaging with audio, record presentations so others can replay them at a later date, and so on.

You can also use a Microphone object without a server--for example, to transmit sound from your microphone through the speakers on your local system.

NetConnection class The client-side NetConnection class allows the Flash client to open a TCP socket on Flash Media Server for continuous exchange of data using the Real-Time Messaging Protocol (RTMP). You can also use the NetConnection class to connect to an application server but this chapter focuses on using the NetConnection class to communicate with Flash Media Server.

NetStream class The client-side NetStream class opens a one-way streaming connection between Flash Player and Flash Media Server through a connection made available by a client-side NetConnection object. A NetStream object is like a channel inside a NetConnection; this channel can either publish audio, video, and data, using the NetStream.publish() method, or subscribe to a stream and receive data, using the NetStream.play() method. You can publish or play live (real-time) data and play previously recorded data. Multiple clients can play a given stream, but a stream can have only one publisher at a time. For information about the creation and storage of recorded streams on the server, see Coding conventions.

SharedObject class Client-side local shared objects let you store information on a user's computer, such as the high score in a game, that can be used later by the same application or by a different application running on that computer. For more information about local shared objects, see Understanding shared objects.

Video class The client-side Video class lets you display streaming video on the Stage. To display a video feed being played or captured through the use of a NetStream.play() or Camera.get() command, place a Video object on the Stage and use the Video.attachVideo() method to attach the feed to the object.

To place a Video object on the Stage from within Flash:

  1. In Flash, select Window > Library to display the Library panel if it isn't open.
  2. Add an embedded Video object to the library by clicking the Options menu at the upper right of the Library panel and selecting New Video.
  3. Drag the Video object to the Stage and use the Property inspector to give it a unique name.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/fms/2/docs/00000046.html