Page 1 of 1

WMP script problem

Posted: Sat Dec 27, 2008 5:40 pm
by poehalcho
I have to make a website as a school assignment. one of things required is sound files and video files. my problem is that i can't make my music files play one after another...
if anyone has suggestions

this is my code/script:

Code: Select all

<embed src="C:\Documents and Settings\Dani\Bureaublad\Website\muziek\Sonic - I Am All Of Me (Shadow the Hedgehog theme).mp3" 
"C:\Documents and Settings\Dani\Bureaublad\Website\muziek\sonic - Theme Of Sonic The Hedgehog ~2006 E3 Version~.mp3"
autostart="false" width="1024" height="24" loop="true">

i need to get like a playlist of 5 songs or so, but it just loops the first song and doesnt notice the 2nd song.



also for videos, how do i get my videoplayer to play a video without loading a to a new page. just click and play.
this is my video palyer code:

Code: Select all

<OBJECT id="VIDEO" width="352" height="300"
CLASSID = "CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE="C:\Documents and Settings\Dani\Bureaublad\Website\video\sonic short trailer.wmv">
<PARAM NAME="AutoStart" VALUE="false">
<PARAM name="uiMode" value="full">
</OBJECT>
</script>


*waits for cruor*

Re: WMP script problem

Posted: Sat Dec 27, 2008 7:46 pm
by ThatBluePerson

Code: Select all

<embed src="C:\Documents and Settings\Dani\Bureaublad\Website\muziek\Sonic - I Am All Of Me (Shadow the Hedgehog theme).mp3"
"C:\Documents and Settings\Dani\Bureaublad\Website\muziek\sonic - Theme Of Sonic The Hedgehog ~2006 E3 Version~.mp3"
autostart="false" width="1024" height="24" loop="true">


In there I guess because you have loop as true, it automatically just loops the first song.

Try turning it to false.

Re: WMP script problem

Posted: Sat Dec 27, 2008 8:19 pm
by poehalcho
didnt work. besides loop should be activated after all songs have been played.

Re: WMP script problem

Posted: Sat Dec 27, 2008 8:27 pm
by poehalcho
never mind, I already found it, had to put a playlist as the file instead of the songs.

now for the video problem. ones again how do i switch between videos without loading new pages.

Re: WMP script problem

Posted: Sat Dec 27, 2008 8:46 pm
by [SD]Master_Wong
two ways personally i would embed it within a frameset, which is set up with a number of pages ie

Index.html
Video_1.html
Video_2.html
Header.html
side_bar.html

it will appear on one page but each element works individually, so you can have links in say the side_bar.html that open a page in the index page without refreshing

Google it for the code its not hard to set up, other way is set up in tables but it will refresh as far as i know

finally the last option is set up a video playlist and work it via that way

Re: WMP script problem

Posted: Sat Dec 27, 2008 9:34 pm
by poehalcho
thank you, wong :D
I'll see to it tommorow i guess

Re: WMP script problem

Posted: Sun Dec 28, 2008 12:01 am
by [SD]Master_Wong
btw so not to confuse its all shown on one page with the frames set within that page, but they link out to seperate docs, it wont look no dif it will prolly look similar to SRF except i think this is done with tables

Re: WMP script problem

Posted: Sun Dec 28, 2008 8:04 am
by Cruor
Assuming you only need it to work with Internet Explorer, you can get by with something like this:

Code: Select all

<object id="player" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"></object>
<a href="#" onclick="document.player.url='video1.wmv';">Video 1</a>
<a href="#" onclick="document.player.url='video2.wmv';">Video 2</a>

Re: WMP script problem

Posted: Sun Dec 28, 2008 12:33 pm
by [SD]Master_Wong
Cruor wrote:Assuming you only need it to work with Internet Explorer, you can get by with something like this:

Code: Select all

<object id="player" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"></object>
<a href="#" onclick="document.player.url='video1.wmv';">Video 1</a>
<a href="#" onclick="document.player.url='video2.wmv';">Video 2</a>


most projects now require you to make something that works with other browsers well did for me, i had to make sure it worked on firefox and ie

Re: WMP script problem

Posted: Sun Dec 28, 2008 2:41 pm
by Cruor
[SD]Master_Wong wrote:most projects now require you to make something that works with other browsers well did for me, i had to make sure it worked on firefox and ie
His original example would require a second nested object or embed element to be cross-browser, so I'm assuming it doesn't matter.

Re: WMP script problem

Posted: Sun Dec 28, 2008 5:06 pm
by [SD]Master_Wong
ahh, and looking over it having gaps in file names may also be a problem i guess your right