PDA

View Full Version : How To Use Preview Pictures With Windows Media Player



raspotineiran
02-14-2008, 11:17 PM
hi
please help me

I wanna add this,http://i29.tinypic.com/wup64h.jpg,NOT ONLY http://img205.imageshack.us/img205/1893/wmprh8.png -on my website



i want display show images album music when playing music with windows media player on my website simillar this page
http://satup.freehostia.com/radio/radio.html

-------------------------------------------------
why dont show images album music this cod?


<P align=center>
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer1" width="240" height="245">
<param name="URL" value="http://radio.irlook.com/radio/mpfiles/persian/radio/Radio_ch_music_080.asx">

<param name="autostart=fasle" value="-1">
<param name="loop" value="1">
</object>
</p>
-----------------------------------
example asx :

<title>radio.irLook.com</title>
<PARAM name="Pic" value="http://radio.irlook.com/share/images/radio_def.jpg"/>
<entry>
<title>radio.irLook.com</title>
<author>IrLook</author>
<Ref href="http://www.irlook.net/media/mpfiles/persian/radio/radio_welcome_clip_02.mp3"/>
<PARAM name="Pic" value="http://radio.irlook.com/share/images/radio_def.jpg"/>
</entry>
<entry>
<title>Radio music</title>
<author>IrLook</author>
<Ref href="http://www.irlook.net/media/mpfiles/persian/radio/radio_music_clip_01.mp3"/>
<PARAM name="Pic" value="http://radio.irlook.com/share/images/radio_def.jpg"/>
</entry>
<entry>
<title>Sattar > Sedaye Baroon : bhar man gzshteh shaid</title>
<author>satar</author>
<Ref href="http://famu.irloop.com/media/mpfiles/persian/p41/Sattar__Sedaye_Baroon__bhar_man_gzshteh_shaid.mp3"/>
<PARAM name="Pic" value="http://fapic1.pooyaonline.net/media/images/mu/s/Sattar__Sedaye_Baroon.jpg"/>
</entry>
</asx>

raspotineiran
02-19-2008, 07:23 PM
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>Music Album - irLook.com</title>
</head>

<body onContextMenu="return false" onselectstart="return false" style="margin:0">

<div>
<img src="http://radio.irlook.com/share/images/radio_def.jpg" id="albumpic" width="170" height="170" style="border:1 solid #000000;background-color:#000000"><br>
<OBJECT id="MediaPlayer" Width=172 Height=45 CLASSID="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"
standby="Loading Microsoft Media Player components ..." type="application/x-oleobject">
<PARAM NAME="URL" VALUE="http://radio.irlook.com/radio/mpfiles/persian/radio/Radio_ch_music_101.asx">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="false">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM name="PlayCount" value="9999">
<PARAM NAME="ShowControls" VALUE="0">
<PARAM NAME="ShowAudioControls" VALUE="0">
<PARAM NAME="FullScreenMode" VALUE="1">
<PARAM NAME="uiMode" VALUE="full">
<PARAM name="EnableContextMenu" value="false">
<PARAM NAME="Volume" VALUE="100">
<embed TYPE="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba =Plugin"
Name=MediaPlayers ShowControls=0>
</embed></OBJECT>
</div>
<script language="javascript">function ShowPic(){pic=MediaPlayer.currentMedia.getItemInfo ('Pic');if(pic)document.getElementById("albumpic") .src=pic;}
</script><SCRIPT FOR="MediaPlayer" EVENT="PlayStateChange(bState)" LANGUAGE="Javascript">ShowPic();</SCRIPT>
</body>
</html>