HI Aerospace_Eng
Thank you for code
i know how to use play list (ASX)
but i have some reason that canot use asx and mu3 playlist
are there anyway to make java script
onload and play song from start from 1234567 ?
and user can select song to start to play from?
ie..start to play from song 2-3-4-5-6-7
or song 5-6-7
---
---
Quote:
|
Originally Posted by _Aerospace_Eng_
So you aren't going to want to use the drop down menu correct, but you are going to want to allow the users to skip back and forth to other songs right? It sounds like you want a playlist, read the last post on this page and follow the link there to find out how to make an m3u playlist. Then you can just use the following code which is far less bulkier than the version you found.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
text-align:center;
}
-->
</style>
</head>
<body>
<object id="mediaPlayer" width="270" height="45"
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="http://url-to-your-playerlist.m3u">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
bgcolor="darkblue" showcontrols="true" width="270" height="45"
src="http://url-to-your-playerlist.m3u" autostart="true" designtimesp="5311" loop="true">
</object>
</body>
</html>
You will want to change the filename value to match your playlist location, and you will also want to change the src in the embed tag to match your playlist location. Autostart is set to true so it should start playing onload.
|