PDA

View Full Version : Windows Media files as .asx -problem


CSDesigns
2-2-04, 05:43 PM
Hello, I just recently signed up for PowWeb & am setting up my website (lost in the great Endore disaster :o )... and i have a .asx file that is supposed to stream the .wma file, but when i click on the link - it just opens the file in the browser (as text) rather than streaming it. any help would be appreciated!:cool:

Croc Hunter
2-2-04, 08:08 PM
Where's the link?.. Did you ftp upload the .asx metafile in ASCII mode?. And ftp upload the .wma media file in binary mode.

CSDesigns
2-2-04, 08:43 PM
yes, I uploaded them both in those modes.

is this .asx file the right way to do it, to make it work correctly?

<ASX version = "3.0">
<TITLE>My title goes here</TITLE>
<Entry>
<TITLE>My title goes here</TITLE>
<AUTHOR>Myself</AUTHOR>
<COPYRIGHT>(c)2004 Me</COPYRIGHT>
<Ref href = "realaudio/myfile.wma" />
</Entry>
</ASX>

Link to audio file (http://www.victoryworship4u.com/realaudio/OutOfTheAshes.asx)
Link to page (http://www.victoryworship4u.com/avlibrary.html)

muijefr
2-2-04, 09:02 PM
I stream a lot of .wma from my site and I have found you need to link your ASX with HTML as a simulated server. The HTML links the ASX and the ASX links the .wma to play. The following is an example of HTML that links an ASX that plays a .wma. It also provides a MediaPlayer alternated for nor IE browsers.

The HTML that is linked to play the ASX...click this HTML to play the ASX
<HTML>
<HEAD>
<!--#include virtual="../SSIMETAS_01.txt" -->
<META NAME="TITLE" CONTENT="WWW.The-eBiz.Net">
<META NAME="revisit-afters" content="7 days">
<META NAME="rating" content="Safe for Kids">
<META NAME="distribution" content="Global">
<META NAME="robots" content="ALL">
<META NAME="language" content="en-us">
<META NAME="OWNER" CONTENT="ColumbiaRiverPictures@The-eBiz.Net">
<META NAME="author" content="Fred Muije">
<META NAME="resource-type" content="document">
<META HTTP-EQUIV="CHARSET" CONTENT="ISO-8859-1">
<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="English">
<TITLE>Come Away With Me by Norah Jones</TITLE>
<link rel=stylesheet href="../nobody.css" type="text/css">
<style>
<!--
body {font-weight : bold;
font-family : Arial, Verdana, Geneva;
font-size : 10pt;
scrollbar-base-color : #352409;
scrollbar-track-color : #352409;
scrollbar-face-color : #352409;
scrollbar-highlight-color : #352409;
scrollbar-3dlight-color : #c7c6ac;
scrollbar-darkshadow-color : #352409;
scrollbar-shadow-color : #352409;
scrollbar-arrow-color : #c7c6ac;
}
// -->
</style>
</HEAD>
<BODY BGCOLOR="#352409">

<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=300 height=380 standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="ComeAwayWithMe_s.asx"/>
<PARAM NAME="AutoStart" Value="true"/>
<PARAM NAME="ShowControls" Value="true"/>
<PARAM NAME="ShowStatusBar" VALUE="true"/>
<PARAM NAME="uiMode" VALUE="full"/>
<param name="ShowDisplay" value="true"/>
<Embed type="application/x-mplayer2"
pluginspage=
"http://www.microsoft.com/Windows/MediaPlayer/"
src="ComeAwayWithMe_s.asx"
Name=MediaPlayer
AutoStart=1
ShowControls=1
showtracker="1"
showstatusbar="1"
showcaptioning="1"
allowscan="1"
enablecontextmenu="1"
Width=300
Height=380
></embed>
</OBJECT>
<img border=0 width=100% height=25 src=../common/bx.gif>
<table width=300 bgcolor=#131514
border=0 cellpadding=5 cellspacing=0
bordercolorlight=#131514
bordercolor=#131514>
<tr><td class=small_01 align=center>
<img border=0 src=NJ_3se.jpg><br>
<font color=#f5f6f0>
<br>
Come away with me - in the night<br>
Come away with me<br>
And I will write you a song<br><br>

Come away with me - on a bus<br>
Come away where they can't tempt us<br>
With their lies<br><br>
</font>
</td></tr></table>
<img border=0 width=100% height=600 src=../common/bx.gif>
</BODY>
</HTML>

The ASX link by the above HTML
<ASX Version="3.0">
<TITLE>Streaming by Columbia River Pictures</TITLE>
<BANNER href ="../common/crp.jpg">
<MOREINFO HREF="http://www.the-ebiz.net/index.html" />
<ABSTRACT>Columbia River Pictures</ABSTRACT>
</BANNER>
<ENTRY>
<REF HREF="ComeAwayWithMe_s.wma"/>
<AUTHOR>Norah Jones</AUTHOR>
<COPYRIGHT>2002</COPYRIGHT>
<TITLE>Come Away With Me</TITLE>
<PARAM name="Album" value="Come Away With Me"/>
<PARAM name="Artist" value="Norah Jones"/>
</ENTRY>
</ASX>

Test Drive It (http://www.the-ebiz.net/NorahJones/ComeAwayWithMe_s.html)



OK, another thing is the frequency at which you ripped the tune(s). I record one version at 98kbs for broadband users and another at 31kbs for 56kbs dial up although some are recorded at as low as 16kbs. What ever, the dial up user will never hear the 98kbs until totally downloaded and they dig it out of the Internet Temporary files (if they have a Media Player less than 8 it will not even be downloaded).

http://www.the-ebiz.net/Smilies/hapy0007.gif

Croc Hunter
2-2-04, 09:30 PM
Okaaay... :p

I just use, for example:

<ASX VERSION="3.0">
<ENTRY>
<REF HREF="http://yourdomain.com/music.wma" />
</ENTRY>
</ASX> If that doesn't work in .asx use that in a .wax file created in notepad. Its possible it's not setting the right MIME type. .wax are more commonly used with .wma then link with <a href="music.wax" type="audio/x-ms-wax">Play music</a>

muijefr
2-2-04, 09:50 PM
c_h I think at best you solution will download rather than stream. Now, MediaPlayer8 and above, streams as it downloads but for MediaPlayers less than 8 your solution is definitely a download then play.



http://www.the-ebiz.net/Smilies/hapy0007.gif

Croc Hunter
2-2-04, 10:04 PM
Maybe.. but I just thought keep it simple and get it going first. Then he can wade through your code and add all the pretty stuff.

If the visitor has > MPlayer 7 they probably have a 10 Mb hardrive 386 with 2 x 4Mb ram. They won't be clicking media links.

CSDesigns
2-2-04, 10:09 PM
Croc Hunter, I took out all of the author & copyright stuff, making it simple, and put the < ref href = > together & now it works. The .wax thing worked as well. thanks! :cool:

And muijefr, thanks for that info as well, I may use something like that soon.:)

muijefr
2-2-04, 10:23 PM
RE:
http://www.the-ebiz.net/Smilies/hapy0007.gif

If the visitor has > MPlayer 7 they probably have a 10 Mb hardrive 386 with 2 x 4Mb ram. They won't be clicking media links.

Yo big mouth, has anyone call you that for short, that's exactly the point of streaming and yes they do click media links, a lot. It appears the person in need was not looking to stream anyway. My streaming is turn to MediaPlay 6.4. so there.

Croc Hunter
2-2-04, 11:18 PM
Originally posted by muijefr
http://www.the-ebiz.net/Smilies/hapy0007.gifNeat trick, did Judas teach you how to smile while you twist the knife. Yo big mouth, has anyone call you that for short, Not until now. All the better to bite you with. http://www.the-ebiz.net/Smilies/hapy0007.gif that's exactly the point of streaming and yes they do click media links, a lot. Yes.. and now he's sure it works he can try and sift the useful code out of you're post and do just that, as he has stated. I'm certain he would be grateful if you did that for him even. It appears the person in need was not looking to stream anyway. My streaming is turn to MediaPlay 6.4. so there. Bully for you. I'm a Nora fan to but I'm removing most of the lyrics you posted to pay her respect as it's a violation of copyright and powwebs TOC. Now go take your medication grumble bum.

muijefr
2-3-04, 12:12 AM
RE:
Neat trick, did Judas teach you how to smile while you twist the knife
http://www.the-ebiz.net/Smilies/hapy0007.gif
Wow, I did not know you have a Jesus complex. Do I now get my 30 pieces of silver.

RE:
http://www.the-ebiz.net/Smilies/hapy0007.gif

All the better to bite you with.

So glad you were able to see I used the 'big mouth' phrase as a term of endearment. And you need not remove the words from this forum in as much as they are not her words I reproduced but the words from the CD I purchase and have a right to use my copy of them. There's a legal word for these rights of mine, the fair use guidelines contained in the Copyright Act of 1976 do not address many of the issues that have arisen in the digital age and no new guidelines have been developed.

While copyright law makes it technically illegal to reproduce almost any new creative work (other than under fair use) without permission, if the work is unregistered and has no real commercial value, it gets very little protection. The author can sue for an injunction against the publication, actual damages from a violation, and possibly court costs. Actual damages means actual money potentially lost by the author due to publication, plus any money gained by the defendant. But if a work has no commercial value, such as a typical E-mail message or conversational USENET posting (such as THIS FORUM), the actual damages will be zero. Only the most vindictive (and rich) author would sue when no damages are possible, and the courts don't look kindly on vindictive plaintiffs, unless the defendants are even more vindictive.