In fact, the role of ASX files is not limited to making playback index files in the MSN space, but also to creating local playlist files and music index files for websites, the list of radio stations on many radio stations is just an ASX file, which records the network addresses of different radio stations.
ASX files are indexing files in Microsoft streaming media format. Normal ASX files are multimedia indexing files that record the addresses and methods of ASF, WMV, and other multimedia files in text format, it mainly aims to redirect streaming information, similar to RPM (RM transit File) files. Sometimes the downloaded movie extension is Asx, Which is changed for some reason. In fact, when playing a video with a media player, you will know which encoder Microsoft uses to encode the file attributes, therefore, all tools that support ASF file conversion support ASX file conversion.
The ASX file contains the URL corresponding to the media content. When we connect a hyperlink to ASX in HTML, the browser will directly send the content of ASX to media player, media Player uses the corresponding protocol to open the multimedia information stream or multimedia file at the specified position based on the information of the ASX file.
The main reasons for redirecting stream information using the ASX file are:
Currently, common browsers generally do not support the MMS protocol for stream playback. Therefore, we use ASX files. After the ASX file is used, when the browser finds that a connection is related to Asx, it knows that media player is required to play the stream information, so it starts the media player, media Player can use the MMS protocol to play stream information.
For more detailed tutorial instructions, visit Microsoft's website:
Http://www.microsoft.com/china/t... eploy/strmedia. mspx
If you are familiar with HTML, you will find that the ASX file is very similar to HTML. The tags they use are very similar to HTML tags to some extent, and some tags are even identical. The following is an example of an ASX file:
<ASX version = "3.0">
<Entry>
<Title> my love </title>
<Author> Xicheng boys </author>
<Copyright> anyshine </Copyright>
<Ref href = "http://www.jb51.net/song/mylove.asf">
</Entry>
</ASX>
Note:
<ASX version = "3.0"> the ASX tag declares that this file is an ASX file; version = "3.0". The command version used by this file is 3.0.
<Entry>, entry. The information of each song must be contained in a pair of <entry> tags.
<Title>, song title.
<Author> artist name
<Ref href = "#">, # represents the path of the song, can be a network address (such as: http://www.jb51.net/song/mylove.asf), or a local file path of the Computer (such as: C: /My Documents documents/my music/mylove. ASF), however, if it is a local computer path, it can only be used on its own computer; the song format can be: WMA, ASF, MP3, etc.
Note:
Except for <ref href = "#">, all other tags must be paired, that is, a slash must be added to the <> below, otherwise the ASX file will not work.
ASX File Creation
1. Open notepad:
"Program-"Attachment"-"Notepad"
2. Enter the following content in the new notepad:
<ASX version = "3.0">
<Entry>
<Title> my love </title>
<Author> Xicheng boys </author>
<Copyright> anyshine </Copyright>
<Ref href = "http://www.jb51.net/song/mylove.asf">
</Entry>
</ASX>
Note:
<ASX>, <entry>, and <ref href = "#"> are mandatory attributes;
<Title>, <author>, and <copyright> are optional. The content above can also be written in the following omitted format:
<ASX version = "3.0">
<Entry>
<Ref href = "song address 1">
</Entry>
<Entry>
<Ref href = "song address 2">
</Entry>
<Entry>
<Ref href = "song address 3">
</Entry>
</ASX>
3. Save the notepad File
"Save as" Notepad file, change the suffix "TXT" to "ASX" and click "save. The saved file is changed to a music file icon. Then, you can use the media player to play the music file.
Media Player plays ASX files
Start the Media Player and open the saved ASX file to play the added music.
Reference an ASX file on a webpage
First, save the edited ASX file to the webpage space, and then addCodeFor example:
<A Hrer = "http://www.jb51.net/yourfile.asx"> my songs </a>
Open the edited webpage file in a browser. When you click the "My songs" link, the computer automatically starts Windows Media Player to play the songs in sequence.