10
Setting Up a Web Page With Streamed Media
To embed streaming media in a Web page, you use the HTML EMBED tag. For complete
documentation on the features and use of the EMBED tag, go to www.apple.com/quicktime/
products
The following example code places a graphical link to a movie, “sample.mov,” on a Web page.
(You can rename the Sample Movie that comes with QuickTime and use it for the example.)
When a user clicks the link, the movie will start streaming in QuickTime Player.
<HTML>
<BODY>
This is a sample use of the EMBED tag.<BR>
<EMBED SRC="http://my.webserver.com/linkimage.mov" width="150"
height="64" href="rtsp://my.streamingserver.com/sample.mov"
target="QuickTimePlayer">
</BODY>
</HTML>
The URL specified in the
SRC
attribute is a link to a still image, “linkimage.mov,” that serves
as the link to the streaming movie. The
width
and
height
attributes specify the width and
height of the image area. The
HREF
attribute is the URL for the streaming movie that will start
playing when the image is clicked.
You can also let users view streaming media from a Web page by creating a reference movie
that contains a streaming track with an RTSP URL that points to the media on your streaming
server. You store the reference movie in the same directory as your Web site and include a
link to the reference movie on your Web page. For more information on creating a reference
movie, go to developer.apple.com/quicktime/quicktimeintro/tools/index.html and look for
the MakeRefMovie tool under “WebMaster Tools.”
A reference movie can simply be a text file with a “.mov” filename extension (such as
“ref.mov”). The format for the contents of the file is as follows:
rtsptext rtsp://my.streamingserver.com/sample.mov
Komentarze do niniejszej Instrukcji