• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Chapter 5. Managing Streams

Streams are a way to organize and manage the flow of data over a network connection. Audio, video, and ActionScript data can all be carried within a stream. Data within each stream flows in only one direction, but streams can carry more than one type of data, and multiple streams can be created within a single network connection. In many applications, a stream will carry audio and video from a Flash movie to the FlashCom Server while other streams will carry audio and video from the server to the movie. Within a Flash movie the NetStream class is used to create and manage streams, while on the server the Stream class is used.

Audio and video data is transferred over a network connection by attaching it to a stream. In FlashCom 1.5.2, a stream can contain only one audio and one video channel. A movie that creates a stream within a network connection and uses the stream to send data is publishing data, while a movie that creates a stream to receive data is a subscriber. A movie must create separate streams within a connection in order to both publish and subscribe at the same time. Streams can also carry more traditional data such as strings, numbers, and objects and are FlashCom's primary method for storing very large quantities of any kind of data on the server. FlashCom streams can be recorded and saved to disk by FlashCom in Flash Video format (FLV) files.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint