View Full Version : My .asx files are now opening up as a web page
It was working earlier, but I have been making a few changes. I uploaded all of my .asx files and now they are opening up as a web page. I tried transfering them with binary and ascii mode but it still does not work. Does anyone know what I may be doing wrong.
Thanks in advance...
Croc Hunter
1-12-05, 10:51 PM
First
ASX files are uploaded in ASCII mode
ASF files are uploaded in Binary mode
ASX files are metafiles (textual command files) that manage streaming of ASF files. They are very small in size (about 1K) because they contain no data, just instructions. When a user clicks a link to an ASX file, the browser downloads it to the cache directory, launches the Windows Media Player, and then starts the streaming. Powweb is not a true streaming type and that makes ASX problematic. You will be using the http server so the code in your ASX should look like this:
<ASX VERSION="3">
<ENTRY>
<REF HREF="http://www.domain.com/folder/movie.asf/">
</ENTRY>
</ASX>Your link would then be:<a href="http://www.domain.com/folder/movie.asx">Play Media</a>
Paste your code in here if you want us to check it.
Change the path in the <REF HREF> tag shown above so that it points to your ASF media file. Upload the ASX file into the same folder as the ASF file. If you used Notepad or similar text editor the extension of the ASX file must be changed from .txt to .asx (ie: movie.asx).
Different media types require different metafile extensions and code. You need to save the metafile as an .asx file if it refers to .ASF media files .wvx if it refers to .WMV files and the file extension of .wax if it refers to .WMA files.
Well, I found out that asx files are textual command files when i was searching the subject last night, but I have had my mp3 files saved as .asx files and uploaded them to powweb and they played without a problem. They were the same size of a wma file and had no problems but I did change everything last night. I set each file up with a asx command file like your script below and had them link to my .asx song file. It has been working fine. I finally decided to embed the media player in a webpage and now i don't get the problem that I first mentioned above. So everything appears to be working fine.
But what kind of problems are you talking about that I might have. "quoting: "Powweb is not a true streaming type and that makes ASX problematic."
THANKS for the info..
<div align="center"><OBJECT ID="WinMedia"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" width=280 height="68"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="fileName" VALUE="http://mytextualcommandfile.asx">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="ShowStatusBar" VALUE="true"/>
<PARAM NAME="showControls" VALUE="true">
</OBJECT> </div>
asx file:
<ASX Version="3.0">
<ENTRY>
<REF HREF="http://myaudiofile.asx"/>
<TITLE>mytitle</TITLE>
<AUTHOR>my author</AUTHOR>
<COPYRIGHT>2005</COPYRIGHT>
</ENTRY>
</ASX>
Croc Hunter
1-14-05, 06:14 AM
But what kind of problems are you talking about that I might have. "quoting: "Powweb is not a true streaming type and that makes ASX problematic."
THANKS for the info..Basically it comes down to how PowWeb has set MIME types on their servers. For example - both mp3 and m3u files on the web server require; M3U Mime type: audio/x-mpegurl ; MP3 Mime type: audio/mpeg. Whereas both ram and rm files require; RM Mime type : audio/x-realaudio ; RAM Mime type: audio/x-pn-realaudio. - I have no idea which type is set here or if any is even set.
vBulletin v3.6.0, Copyright ©2000-2010, Jelsoft Enterprises Ltd.