Contents
Navigation
Home User Reference Other Resources


Streaming involves sending movies from a server to a client over a network such as the Internet. The server breaks the movie into packets that can be sent over the network. At the receiving end, the packets are reassembled by the client and the movie is played as it comes in. A series of related packets is called a stream.

Streaming is different from , in that the client plays the movie as it comes in over the network, rather than waiting for the entire movie to download before it can be played. In fact, a streaming client may never actually download a streaming movie; it may simply play the movie’s packets as they come in, then discard them.

You create a client movie that includes streaming content by adding one or more streaming tracks. A streaming track tells the client where to get the streaming media. In its simplest form, a client movie consists of just a streaming track containing the URL of a movie on a server. A client movie can contain multiple streaming tracks. A client movie can contain non–streaming tracks with local media content as well as streaming tracks. Streaming tracks can be composited with local tracks. For example, a streaming track could be used as the source for an effect track that is local to the client movie. The QTPlgNewStreamTrack class lets you add a stream track to a movie.







The QTPlgNewStreamTrack class constructors are called when you create a new instance of the class, while the ˜QTPlgNewStreamTrack class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. See the validity conditions for more details.

The class provides you with the following initializer methods:
(m as , params as )
use this constructor to create a stream track and add it to the movie specified by the m; if the movie specified has been created in memory (see the of the class), the stream sample added to the track resides in memory as well. You specify the characteristics of the unique stream sample to be added to the track by setting the of the params object as appropriate

(data as string)
use this method to provide the data that have to be stored into the track. The type of data depends on the the value of the property specified by the params parameter passed to the . Note that you can add just one sample to the track; subsequent calls to this method will be simply ignored
returns nothing. Check the class property for errors
(data as )
use this method to provide the data that have to be stored into the track. The type of applicable data and data reference depends on the the value of the property specified by the params parameter passed to the . If the specified format is , then the data reference can be:
  • an rtsp
  • an containing rtsp addresses; this being the case, the file extension have to be .rtsp
Instead, if the specified format is , the data reference can be an containing sdp data for broadcasting receiving; this being the case, the file extension have to be .sdp. Note that you can add just one sample to the track; subsequent calls to this method will be simply ignored
returns nothing. Check the class property for errors