|
How do I use HTTP streaming for RealAudio and RealVideo?
The HTTP protocol enables audio and video content providers to stream
RealAudio and RealVideo from a World Wide Web server. While this
method is not as robust or efficient as using a RealAudio Server, it
provides a reasonable method for delivering RealAudio content.
To stream RealMedia content using HTTP:
- Copy your encoded RealAudio or RealVideo files (files with the
.ra or .rm extensions) to your World Wide Web server.
- Use a text editor (such as Notepad) to create a metafile
containing a RealAudio URL. For example, the contents of your file should be
in the following form:
http://yourdomain.com/path/file.ra
or
http://yourdomain.com/path/file.rm
where yourdomain.com is the name of your World Wide Web server. For
example:
- Save your metafile in as text using a .ram filename extension.
- In your HTML document, reference the metafile in a hyperlink.
For example:
<A HREF="filename.ram">
or
<A HREF="http://yourdomain.com/file.ram">
You can use relative or complete paths. If you use complete
paths, you must include both the yourdomain.com and the complete path. For example:
<A
HREF="http://yourdomain.com/directory/file.ram">
- When a user clicks on the link, the audio file(s) begin to
download. The
RealAudio Player begins playing after a few seconds; it does
not need to wait
for the entire file to be downloaded.
|