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:
- an rtsp
- an containing rtsp addresses; this being the case, the file extension have to be .rtsp