Quick Introduction to ASF,ASX, and Networking Media Distribution - Sample “.asx” metafiles:
(Page 2 of 3 )
Sample 1 (Simple metafile):
<asx version=”3.0”>
<entry>
<ref href=”http://servername/path/asf-file1.
asf” />
</entry>
</asx>
Explanation:
<asx version=”3.0”> … </asx>
-- Shows the version number of the metafile.
<entry> … </entry>
--Shows the individual media file detail.
<ref href=”…” />
-- Shows the location of the media file.
Sample 2 (Simple metafile with Title, Author and Copyright):
<asx version=”3.0”>
<entry>
<title> Title of the file </title>
<author> Author of the file </author>
<copyright> Copyright information </
copyright>
<ref href=”http://servername/path/asf-file1.
asf” />
</entry>
</asx>
Explanation:
<title> … </title>
-- Displays the Title of the clip in the Clip and Title bar of the Windows Media Player.
<author> … </author>
-- Displays the Author name in Windows Media Player author column.
<copyright> … </copyright>
-- Shows the Copyright information in Windows Media Player Copyright column.
Sample 3 (Metafile with Playlist):
<asx version=”3.0”>
<entry>
<title> Title of the file 1 </title>
<author> Author of the file 1 </author>
<copyright> Copyright information 1 </copyright>
<ref href=”http://servername/path/asf-file1.asf” />
</entry>
<entry>
<title> Title of the file 2 </title>
<author> Author of the file 2 </author>
<copyright> Copyright information 2 </copyright>
<ref href=”http://servername/path/asf-file2.asf” />
</entry>
</asx>
<asx version=”3.0”>
<title> Title of the files </title>
<author> Author of the files </author>
<copyright> Copyright information </copyright>
<entry>
<ref href=”http://servername/path/asf-file1.asf” />
</entry>
<entry>
<ref href=”http://servername/path/asf-file2.asf” />
</entry>
</asx>
Sample 4 (Advanced ASX file - Protocol rollover):
[Reference]
Ref1=http://servername/path/asf-file1.asf
Ref2= mms://servername/path/asf-file1.asf
BaseURL = http://servername/path/
[Description]
Program Title=Title of the ASF file
Program Description=Description of the ASF file
Program Author=Author name
Program Copyright=Copyright
Explanation:
Ref1 – First reference to try (HTTP Server).
Ref2 – Second reference to try (NetShow Server).
BaseURL – Base URL (Basic Path) for relative references in the ASF stream to use this as a base path.
ASF path:
Path should be one of the following:
mms://servername/path/asf-file1.asf
- NetShow server path.
http://servername/path/asf-file1.asf
- HTTP server path.
file://\\servername\path\asf-file1.asf
- Network server path.
File://c:\path\asf-file1.asf
- Fixed drive path / Hard drive path.
Next: How to Link the ASX File to Web Pages >>
More Code Examples Articles
More By S. Balaji