|
Using ASF Audio and Video
ASF
(Advanced Streaming Format)
is a file format that stores audio and video
information and is specially designed to run over networks like
the Internet. It is a highly flexible and compressed format that
contains streaming audio, video, slide shows, and synchronized
events. ASF enables content to be delivered to you as a
continuous flow of data with little wait time before playback
begins. This means that you no longer have to wait for your
audio and video files to fully download before starting to view
them. You simply launch the Windows® Media Player and begin.

ASF Audio
Sample |
Try
it.
If you have the Windows® Media Player installed
you can click on the audio sample (left). This is
was a simple .wav file audio clip of Steve McCulloch,
past President of the TwinWest Chamber of Commerce, as
used on the TwinWest
Web Site. |
The .wav was converted to ASF using the Netshow
Encoder, which is included with
Windows
Media Tools.
Quick-Start: Posting an ASF
media file to your web site
- Select an existing ASF file that you wish
to use on your web site
(See links above for how to create an ASF file)
- To place a link to your ASF file from your
Web page, you will need to create a second file called an
ASX file. An ASX file is a text-based metafile that provides
a link between your page and the ASF file.
- Open your text editor. Copy and paste this
code:
<ASX version="3">
<Entry>
<ref href="path/file.asf">
</Entry>
</ASX>
- Change the path in the <REF HREF> tag
shown above so that it points to your ASF media file.
Save the ASX file into the same folder as the ASF
file. The extension of the ASX file must be changed
from .txt to .asx (ie: file.asx).
- Test this ASX file by clicking it. If you
are able to play your media file, you have configured your
ASX file correctly
- Add a link to your web page that points to
the ASX file.
<a href="path/file.asx">
Start Windows Media Presentation
</a>
- Test your Web page by clicking your link to
the ASX file.
|