PDA

View Full Version : can you embed shuffle funtion to a windows playlist?


kan0
11-22-2005, 07:57 AM
Hey guys,

I would like to know if it is possible to embed some code into a windows playlist (.wpl) to make the media files play shuffled. any help on this would be great and much apreciated.

so far i have this

<?wpl version="1.0"?>
<smil>
<head>
<meta name="Generator" content="Microsoft Windows Media Player -- 10.0.0.3802"/>
<author/>
<title>video</title>
</head>
<body>
<seq>
<media src="1.avi"/>
<media src="2.avi"/>
<media src="3.avi"/>
<media src="4.avi"/>
<media src="5.avi"/>
<media src="6.avi"/>
</seq>
</body>
</smil>

its just what windows gave me

thanks:)

_Aerospace_Eng_
11-24-2005, 02:36 AM
Hmm I'm not entirely sure if this is possible. What you might have to do is use some server side scripting to generate the media order randomly and then create a file. You could probably get a random playlist to load on each page refresh using some random javascript and then writing the code to the page but a shuffle button that actually reloads the playlist in a different order I don't think is possible.

kan0
11-24-2005, 02:41 AM
do you know if it is possible to get a php script to load a random video file into the one video player without refressing or reloading the page?

_Aerospace_Eng_
11-24-2005, 02:49 AM
No its not because php is server side, you can probably use something like AJAX, search around for that, it allows JS to communicate with a server, you could possible just put the player in an iframe and just use JS to load a different video each time, then you would just need to refresh the iframe page but you aren't going to know the length of the video playing. I think people try to do too much with the Embedded WMP in the first place. It is NOT as verbose as the WMP on your own system.

kan0
11-24-2005, 02:53 AM
ok cool thanks m8