MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifikace Strana 89

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 369
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 88
About Flash Communication Server 11
Flash Communication Server objects
As mentioned earlier, Flash Communication Server provides two application program interfaces
(APIs): a client-side API and a server-side API. The client-side API provides the following objects:
Camera, Microphone, NetConnection, NetStream, SharedObject, and Video. For more
information on using these objects, see the Client-Side Communication ActionScript Dictionary.
The server-side API provides the following objects: Application, Client, NetConnection,
SharedObject, and Stream. For more information on using these objects, see the Server-Side
Communication ActionScript Dictionary.
As you can see, some objects have the same name in both APIs, such as NetConnection. However,
a client-side object and a server-side object of the same name dont provide the same functionality.
In addition, some client-side objects have server-side counterparts, but others do not. The
following sections briefly describe each client-side and server-side object, then explain how some
of them work together to allow client-server communications.
Client-side objects
These objects are used only in client-side ActionScript. For more information about these objects,
see the Client-Side Communication ActionScript Dictionary.
Camera object The client-side Camera object lets you capture video from a video camera
attached to the computer that is running the Flash Player. When used with the Flash
Communication Server, this object lets you transmit, display, and optionally record the video
being captured. With these capabilities, you can develop communication applications such as
videoconferencing, instant messaging with video, and so on.
You can also use a Camera object without a server (for example, to view a video feed from a
webcam attached to your local system).
Microphone object The client-side Microphone object lets you capture audio from a
microphone attached to the computer that is running the Flash Player. When used with the Flash
Communication Server, this object lets you transmit, play, and optionally record the audio being
captured. With these capabilities, you can develop communication applications such as instant
messaging with audio, recording 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 object The client-side NetConnection object allows the Flash client to open a
TCP socket on the Flash Communication Server for continuous exchange of data using the Real-
Time Messaging Protocol (RTMP). You can also use the NetConnection object to connect to an
application server (see Chapter 5, “Connecting through Flash Remoting,” on page 85), but this
manual focuses on using the NetConnection object to communicate with the Flash
Communication Server.
NetStream object The client-side NetStream object opens a one-way streaming connection
between the Flash Player and the Flash Communication 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
“Recorded stream files” on page 68.
Zobrazit stránku 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 368 369

Komentáře k této Příručce

Žádné komentáře