• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL

Chapter 17. Creating Web Pages with Movi... > Embedding an RTSP QuickTime Movie in...

Embedding an RTSP QuickTime Movie in a Web Page

Things get slightly trickier when you want to embed an RTSP streaming movie in a Web page. You can’t use an RTSP address as the value of the SRC attribute in the EMBED tag, so you have to use a workaround. Two workarounds involve creating a file that points to the RTSP movie; then you write a standard EMBED tag and use the URL of this pointing movie as the value for the SRC attribute. A third method requires a new attribute: the QTSRC attribute.

To create and embed a movie that points to your RTSP movie:

Upload your properly prepared RTSP movie (see “Preparing Movies for RTSP Streaming” in Chapter 16) to your RTSP streaming server.

Open QuickTime Player, if it’s not already open.

From the File menu, choose Open URL (Figure 17.5) to display the Open URL dialog box.

Figure 17.5. First, upload the RTSP movie to an RTSP streaming server; then choose File > Open URL.

In the text box, type the URL of your RTSP movie (Figure 17.6); then click OK.

Figure 17.6. Enter the URL of the RTSP movie you uploaded, and click OK.

From the File menu, choose Save As (Figure 17.7) to open the Save dialog box.

Figure 17.7. Then choose Save As…

Internet Explorer 5.5 Problems

Certain versions of Windows Internet Explorer 5.5 SP1 actually disable the QuickTime plug-in. You may want to warn visitors to your Web site that if they are running Windows Internet Explorer 5.5 and can’t see your movies, they may want to switch to a different browser or different version of Internet Explorer.

Click the “Make movie self-contained” radio button, enter a file name with a .mov extension, specify a new location (if desired), and click Save (Figure 17.8).

Figure 17.8. …to save to your hard disk the file containing a pointer to your RTSP movie. Make sure that you give the file the .mov extension, and choose “Make movie self-contained.”

This newly saved movie does not contain the movie data, but rather the address of your RTSP movie. When a user opens it, a connection to the RTSP server will be made, and the movie data will be streamed.

In your HTML, write a standard EMBED tag, such as <EMBED SRC="mymovie.mov" WIDTH=160 HEIGHT=120>, replacing mymovie.mov with the name of the file you saved in step 6 and inserting the proper values for the WIDTH and HEIGHT attributes. See Figure 17.9 for an example.

Figure 17.9. Write an <EMBED> tag in which the movie you just saved is the value for the SRC attribute.

Upload both your Web page and the movie you saved in step 6 to your HTTP Web server.



Not a subscriber?

Start A Free Trial

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