Forum Moderators: phranque

Message Too Old, No Replies

Help with asx file for streaming music

second song keeps cutting off

         

mmmwowmmm

1:17 pm on Apr 13, 2006 (gmt 0)

10+ Year Member



I’m trying to create streaming internet radio on my site. I’m using an .asx file, with Windows Media player embedded into the page.

The problem: 30 to 90 seconds into the second song, it suddenly “skips” to the next song. The rest of the songs play through fine after that. And it doesn’t matter which song the second one is, I’ve mixed them around, and it skips which ever song is playing second.

This is my first time writing an asx file, I was wondering if anyone could look at it for me and see if I’m doing something wrong. I’ll also include the embedded Wmplayer object. By the way – the asx file, plus all of the music and image files are stored in the same folder on the server.

Here’s the asx file:

<asx version = "3.0">

<title>This is the title</title>
<banner href="banner01.gif">
<abstract>Bla bla bla</abstract>
<moreinfo href="http://www.example.com" />
</banner>

<entry>
<title>Song One</title>
<abstract>This is song one</abstract>
<ref href = "songone.wma" />
<author>John Doe</author>
</entry>

<entry>
<title>Song Two</title>
<ref href = "songtwo.wma" />
<author>Jane Doe</author>
<abstract>This is song two</abstract>
<moreinfo href="http://www.example.com " />
<banner href="banner02.gif">
<abstract>This is song two</abstract>
<moreinfo href=" http://www.example.com " />
</banner>
</entry>

<entry>
<title>Song Three</title>
<ref href = "songthree.wma" />
<author>Joe Blow</author>
<abstract>This is song three</abstract>
<moreinfo href="http://www.example.com" />
<banner href="banner03.gif">
<abstract>This is song three</abstract>
<moreinfo href=" http://www.example.com" />
</banner>
</entry>

<entry>
<title>Song Four</title>
<ref href = "songfour.wma" />
<author>Joe Sixpack</author>
<abstract>This is song four</abstract>
<moreinfo href=" http://www.example.com" />
<banner href="banner04.gif">
<abstract>This is song four</abstract>
<moreinfo href=" http://www.example.com" />
</banner>
</entry>

</asx>

-------------

Here’s the WMPlayer object:

<object id="Player" height="400" width="400" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param value="http://example.com/Radio/radio.asx" name="URL" />
<param value="-1" name="CurrentPosition" />
<param value="1" name="playCount" />
<param value="-1" name="invokeURLs" />
<param value="100" name="volume" />
<param value="0" name="mute" />
<param value="full" name="uiMode" />
<param value="-1" name="stretchToFit" />
<param value="0" name="windowlessVideo" />
<param value="-1" name="enabled" />
<param name="Filename" />
<param value="-1" name="AnimationAtStart" />
<param value="0" name="AutoSize" />
<param value="-1" name="AutoStart" />
<param value="-1" name="EnableContextMenu" />
<param value="-1" name="EnablePositionControls" />
<param value="0" name="EnableFullScreenControls" />
<param value="0" name="ShowCaptioning" />
<param value="0" name="ShowControls" />
<param value="-1" name="ShowAudioControls" />
<param value="-1" name="ShowDisplay" />
<param value="0" name="ShowGotoBar" />
<param value="-1" name="ShowPositionControls" />
<param value="-1" name="ShowStatusBar" />
<param value="-1" name="ShowTracker" />
<param value="0" name="TransparentAtStart" />
</object>

Anyone see a problem?

mmmwowmmm

7:43 pm on Apr 13, 2006 (gmt 0)

10+ Year Member



Update:

I’ve been experimenting with it, and I’ve found that if I insert a silent 1 second wma file between the 1st and second song, the second song will no longer cut off… but then the third song will. If, however, I put a 1 second file between each song, then they all play fine. Otherwise, one of the songs will only load to about 30-60%, and then, when it gets to that point in the song, it suddenly cuts off and skips to the next song. It's as if the 1 second file "re-sets" the player somehow...

Just wondering if anyone had any idea what this might be. (?)

Thanks,
Phil