View Single Post
Old 05-17-2005, 02:16 AM   PM User | #73
leopold
New to the CF scene

 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
leopold is an unknown quantity at this point
hello,

i've read this entire topic and it was definetely useful but i was wondering about something else:

i want to have a non-visible embedded media player on my website linked to a m3u playlist, with my own custom-made previous-play-pause-next buttons that control the media player, i tried it with a code like this and when i press play it does work but when i press next it does go to the next song but i have to press play again before the song starts...

also: is there any way i can have the title of the song (as stated in the m3u file) displayed on my site?

i hope anyone can help me, thanks in advance!

here is the code i have been using:

<body>
<OBJECT ID="WinMedia" width=0 height=0
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/
mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby=
"Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="playlist.m3u">
<PARAM NAME="AutoStart" Value="True">
<PARAM NAME="ShowControls" VALUE="False">
<PARAM NAME="ShowStatusBar" VALUE="True">
<EMBED type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/
MediaPlayer/" SRC="yourfile.asx" name="WinMedia"
autostart=1 width=160 height=120 ShowStatusBar=true
ShowControls=false>
</EMBED>
</OBJECT>

<A HREF="javascript:document.WinMedia.Previous()">
<IMG SRC="previous.gif" BORDER="0"</A>

<A HREF="javascript:document.WinMedia.Play()">
<IMG SRC="play.gif" BORDER="0"
ALT="PLAY BUTTON"></A>

<A HREF="javascript:document.WinMedia.Pause()">
<IMG SRC="pause.gif" BORDER="0"
ALT="PAUSE BUTTON"> </A>

<A HREF="javascript:document.WinMedia.Next()">
<IMG SRC="next.gif" BORDER="0"></A>

</body>

Last edited by leopold; 05-17-2005 at 02:20 AM..
leopold is offline