ASX file Ultimate Tutorial 1th/2 Page _ Page Editor

Source: Internet
Author: User
Tags html tags
In fact, the role of ASX file is not limited to the production of MSN Space Playback index file, can also make local playlist files, the site's music index files, many network radio stations list is just an ASX file, which recorded the network address of different stations.

ASX file is the Microsoft Streaming Media Format index file, normal ASX is in the form of text to record ASF or WMV and other multimedia file address and way of the multimedia index file, it is the main purpose of the convection information redirection, similar to the RPM (RM transfer file) file. Sometimes the downloaded movie extension is ASX, this is due to some reason to change to this extension, in fact, when playing with media Player to see the file properties are known to use Microsoft's encoder code, so as long as the support ASF file conversion tools support the conversion of ASX files.

In the ASX file contains the corresponding URL of the media content, when we let a hyperlink in HTML contact with ASX, the browser will directly send the ASX content to media player,media The player will use the appropriate protocol to open the multimedia information flow or multimedia files at the specified location based on the ASX file.

The main reasons for redirecting streaming information using ASX files are:

Currently, general browsers are usually unable to directly support the protocol MMS for streaming information, so we adopt ASX files. After the ASX file, when the browser found that a connection is related to ASX, it knows the need to use media Player to play streaming information, so it will start media player,media player can use the MMS protocol to play streaming information.

For more detailed tutorial instructions, please visit Microsoft's website:
HTTP://WWW.MICROSOFT.COM/CHINA/T ... eploy/strmedia.mspx

Friends who are familiar with HTML will find that ASX files are very similar to HTML. The tags they use are somewhat similar to HTML tags, and some are even identical. Here 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>

Annotations:

&LT;ASX version= "3.0" >,asx tag declares that this file is an ASX file; version= "3.0", this file uses a markup command version of 3.0.
<entry>,entry (Entry), each song information should be included in a pair of <entry> tags inside.
<title&gt, song title.
<author> singer Name
<ref href= "#", #代表歌曲路径, can be network address (such as: HTTP://WWW.JB51.NET/SONG/MYLOVE.ASF), can also be a computer local file path (such as: C:/My documents/my MUSIC/MYLOVE.ASF), however, if it is the computer's local path, it can only be used on its own computer; The song format can be: Wma,asf,mp3, etc.

Attention:
In addition to <ref href= "#" >, the other tags should be pairs, that is, the <> must be followed by the slash, otherwise ASX file will not work.

Production of ASX files

First, open Notepad:
"Programs"-"attachments"-"notepad"

Second, in the new Notepad input content:

&LT;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>

Attention:
<asx>, <entry>, <ref href= "#" > These two are required attributes;
<title>, <author>, <copyright> tags are not required attributes. The above content can also be written in the following ellipsis format:


&LT;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>

Third, save the Notepad file
"Save as" Notepad file, the suffix name "txt" changed to "ASX" point "save" can be. The file you just saved becomes a music file icon, and then you can play the music file by opening it with the media player player.

Media Player plays an ASX file

Start the media Player player and open the saved ASX file to play the music that you have already added.

Web page referencing ASX file

First put the edited ASX file on the page space, and then in the Web page to add the reference ASX file code, such as:

<a hrer= "http://www.jb51.net/yourfile.asx" > My Song </a>

When you click on the "My Songs" link, the computer will automatically start Windows Media player to play the songs in the order that you want to open the edited page file in your browser.
Current 1/2 page 12 Next read the full text

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.