WMP script problem

Anything else. Post a funny site or tell us about yourself. Discuss current events or whatever else you want. Post off topic threads here.
Post Reply
User avatar
poehalcho
Elite Member
Posts: 6131
Joined: Mon Apr 30, 2007 3:32 pm
Quick Reply: Yes
Location: ┌(╬ಠ益ಠ)╯( ̄ー ̄)(ノ◕ヮ◕)ノ:・✧(╯°Д°)╯彡┻━┻ψ(`∇´)ψ(☞゚∀゚)☞¯\_(ツ)_/¯ლ(ಥ益ಥლ)ԅ༼ ◔ڡ◔༽งヽ༼ʘ̚ل͜ʘ̚༽ノᕕ(ᐛ)ᕗ( ͡° ͜ʖ ͡°)

WMP script problem

Post 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*
Last edited by poehalcho on Sat Dec 27, 2008 8:31 pm, edited 2 times in total.
Image
Day[9] wrote:"Tea is a lot like gold expansions - it helps you kill people."
- Day[9] Daily 337 -

User avatar
ThatBluePerson
Loyal Member
Posts: 1647
Joined: Sat Jun 23, 2007 2:06 pm
Quick Reply: Yes
Location: Earth

Re: WMP script problem

Post 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.

User avatar
poehalcho
Elite Member
Posts: 6131
Joined: Mon Apr 30, 2007 3:32 pm
Quick Reply: Yes
Location: ┌(╬ಠ益ಠ)╯( ̄ー ̄)(ノ◕ヮ◕)ノ:・✧(╯°Д°)╯彡┻━┻ψ(`∇´)ψ(☞゚∀゚)☞¯\_(ツ)_/¯ლ(ಥ益ಥლ)ԅ༼ ◔ڡ◔༽งヽ༼ʘ̚ل͜ʘ̚༽ノᕕ(ᐛ)ᕗ( ͡° ͜ʖ ͡°)

Re: WMP script problem

Post by poehalcho »

didnt work. besides loop should be activated after all songs have been played.
Image
Day[9] wrote:"Tea is a lot like gold expansions - it helps you kill people."
- Day[9] Daily 337 -

User avatar
poehalcho
Elite Member
Posts: 6131
Joined: Mon Apr 30, 2007 3:32 pm
Quick Reply: Yes
Location: ┌(╬ಠ益ಠ)╯( ̄ー ̄)(ノ◕ヮ◕)ノ:・✧(╯°Д°)╯彡┻━┻ψ(`∇´)ψ(☞゚∀゚)☞¯\_(ツ)_/¯ლ(ಥ益ಥლ)ԅ༼ ◔ڡ◔༽งヽ༼ʘ̚ل͜ʘ̚༽ノᕕ(ᐛ)ᕗ( ͡° ͜ʖ ͡°)

Re: WMP script problem

Post 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.
Image
Day[9] wrote:"Tea is a lot like gold expansions - it helps you kill people."
- Day[9] Daily 337 -

User avatar
[SD]Master_Wong
Forum God
Posts: 9509
Joined: Wed Jan 04, 2006 8:02 pm
Quick Reply: Yes
Location: Plymouth, University

Re: WMP script problem

Post 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
MaStEr
Image
credits zelzin ^^

User avatar
poehalcho
Elite Member
Posts: 6131
Joined: Mon Apr 30, 2007 3:32 pm
Quick Reply: Yes
Location: ┌(╬ಠ益ಠ)╯( ̄ー ̄)(ノ◕ヮ◕)ノ:・✧(╯°Д°)╯彡┻━┻ψ(`∇´)ψ(☞゚∀゚)☞¯\_(ツ)_/¯ლ(ಥ益ಥლ)ԅ༼ ◔ڡ◔༽งヽ༼ʘ̚ل͜ʘ̚༽ノᕕ(ᐛ)ᕗ( ͡° ͜ʖ ͡°)

Re: WMP script problem

Post by poehalcho »

thank you, wong :D
I'll see to it tommorow i guess
Image
Day[9] wrote:"Tea is a lot like gold expansions - it helps you kill people."
- Day[9] Daily 337 -

User avatar
[SD]Master_Wong
Forum God
Posts: 9509
Joined: Wed Jan 04, 2006 8:02 pm
Quick Reply: Yes
Location: Plymouth, University

Re: WMP script problem

Post 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
MaStEr
Image
credits zelzin ^^

User avatar
Cruor
Loyal Member
Posts: 1999
Joined: Wed Apr 12, 2006 1:22 am
Quick Reply: Yes
Location: Off topic

Re: WMP script problem

Post 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>
Image

User avatar
[SD]Master_Wong
Forum God
Posts: 9509
Joined: Wed Jan 04, 2006 8:02 pm
Quick Reply: Yes
Location: Plymouth, University

Re: WMP script problem

Post 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
MaStEr
Image
credits zelzin ^^

User avatar
Cruor
Loyal Member
Posts: 1999
Joined: Wed Apr 12, 2006 1:22 am
Quick Reply: Yes
Location: Off topic

Re: WMP script problem

Post 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.
Image

User avatar
[SD]Master_Wong
Forum God
Posts: 9509
Joined: Wed Jan 04, 2006 8:02 pm
Quick Reply: Yes
Location: Plymouth, University

Re: WMP script problem

Post by [SD]Master_Wong »

ahh, and looking over it having gaps in file names may also be a problem i guess your right
MaStEr
Image
credits zelzin ^^

Post Reply

Return to “Off Topic Lounge”