Windows Media Files

  • webmattster
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Feb 09, 2004
  • Posts: 42
  • Status: Offline

Post November 20th, 2007, 7:12 am

I'm working on a site and am trying to embed windows media files into a page. That works fine, everything looks normal but right when you load the page they all start at the same time...so it's like 7 movies playing at once and I'd like none to start when the page loads and then the viewer can play individual ones when they want.

Thanks!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 20th, 2007, 7:12 am

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post November 20th, 2007, 7:58 am

There should be an attribute for "autostart" and it should be set to "false", I think.
- dM
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post November 20th, 2007, 8:04 am

Suppose you looked at a youtube page and compared your code to theirs? It might give you some ideas.
How do you know when a politician is lying? His mouth is moving.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6134
  • Loc: Seattle, WA
  • Status: Offline

Post November 20th, 2007, 8:05 am

YouTube doesn't use Windows Media though, they use Flash video.
The Beer Monocle. Classy.
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Joined: Oct 02, 2007
  • Posts: 575
  • Loc: Phoenix, AZ
  • Status: Offline

Post November 20th, 2007, 11:32 am

digitalMedia wrote:
There should be an attribute for "autostart" and it should be set to "false", I think.

Only trouble is, autostart="false" only works in Internet Explorer.

I think you'd have to use Flash for the video instead.
phoenix web design
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Joined: Feb 11, 2004
  • Posts: 6744
  • Loc: Martinsburg, WV
  • Status: Offline

Post November 20th, 2007, 12:04 pm

I use this code on one of my pages and works just fine in both IE and FF

Code: [ Select ]
<OBJECT id="VIDEO" width="320" height="240" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"><br />
<PARAM NAME="URL" VALUE="/media/Without_Demo_1.mp3" /><br />
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True" /><br />
<PARAM NAME="AutoStart" VALUE="False" /><br />
<PARAM name="uiMode" value="full" /><br />
<PARAM name="enabled" value="True" /><br />
<PARAM name="windowlessVideo" value="True" /><br />
</OBJECT>
  1. <OBJECT id="VIDEO" width="320" height="240" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"><br />
  2. <PARAM NAME="URL" VALUE="/media/Without_Demo_1.mp3" /><br />
  3. <PARAM NAME="SendPlayStateChangeEvents" VALUE="True" /><br />
  4. <PARAM NAME="AutoStart" VALUE="False" /><br />
  5. <PARAM name="uiMode" value="full" /><br />
  6. <PARAM name="enabled" value="True" /><br />
  7. <PARAM name="windowlessVideo" value="True" /><br />
  8. </OBJECT>
‎"Be polite, be professional, but have a plan to kill everybody you meet." Maj. Gen. James Mattis
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6134
  • Loc: Seattle, WA
  • Status: Offline

Post November 20th, 2007, 1:37 pm

Even with the CAPITAL tag and attribute names? Wouldn't that fail validation for an XHTML strict doctype? :scratchhead:
The Beer Monocle. Classy.
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Joined: Oct 02, 2007
  • Posts: 575
  • Loc: Phoenix, AZ
  • Status: Offline

Post November 20th, 2007, 1:47 pm

grinch2171 wrote:
I use this code on one of my pages and works just fine in both IE and FF

Code: [ Select ]
<OBJECT id="VIDEO" width="320" height="240" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"><br />
<PARAM NAME="URL" VALUE="/media/Without_Demo_1.mp3" /><br />
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True" /><br />
<PARAM NAME="AutoStart" VALUE="False" /><br />
<PARAM name="uiMode" value="full" /><br />
<PARAM name="enabled" value="True" /><br />
<PARAM name="windowlessVideo" value="True" /><br />
</OBJECT>
  1. <OBJECT id="VIDEO" width="320" height="240" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"><br />
  2. <PARAM NAME="URL" VALUE="/media/Without_Demo_1.mp3" /><br />
  3. <PARAM NAME="SendPlayStateChangeEvents" VALUE="True" /><br />
  4. <PARAM NAME="AutoStart" VALUE="False" /><br />
  5. <PARAM name="uiMode" value="full" /><br />
  6. <PARAM name="enabled" value="True" /><br />
  7. <PARAM name="windowlessVideo" value="True" /><br />
  8. </OBJECT>

That's cool if there's a way to make it work. I looked on the link you gave and didn't see a WMP anywhere though?
phoenix web design
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Joined: Feb 11, 2004
  • Posts: 6744
  • Loc: Martinsburg, WV
  • Status: Offline

Post November 20th, 2007, 2:01 pm

spork wrote:
Even with the CAPITAL tag and attribute names? Wouldn't that fail validation for an XHTML strict doctype? :scratchhead:


It does indeed fail and quite honestly I am not all that worried about it, I will look into it though.

jameson5555 wrote:
That's cool if there's a way to make it work. I looked on the link you gave and didn't see a WMP anywhere though?


There is a Windows Media Player on that page, it is near the bottom.
‎"Be polite, be professional, but have a plan to kill everybody you meet." Maj. Gen. James Mattis
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post November 20th, 2007, 2:20 pm

Here, try this...
Code: [ Select ]
<object id="MediaPlayer" width="XXX" height="XXX" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading" type="application/x-oleobject">
<param name="FileName" value="XXXXXX.wmv">
<param name="autostart" value="false">
<param name="ShowControls" value="true">
<param name="ShowStatusBar" value="true">
<param name="ShowDisplay" value="true">
<embed type="application/x-mplayer2" src="XXXXXX.wmv" name="MediaPlayer"
width="XXX" height="XXX" showcontrols="1" showstatusbar="1" showdisplay="1" autostart="0"> </embed>
</object>
  1. <object id="MediaPlayer" width="XXX" height="XXX" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading" type="application/x-oleobject">
  2. <param name="FileName" value="XXXXXX.wmv">
  3. <param name="autostart" value="false">
  4. <param name="ShowControls" value="true">
  5. <param name="ShowStatusBar" value="true">
  6. <param name="ShowDisplay" value="true">
  7. <embed type="application/x-mplayer2" src="XXXXXX.wmv" name="MediaPlayer"
  8. width="XXX" height="XXX" showcontrols="1" showstatusbar="1" showdisplay="1" autostart="0"> </embed>
  9. </object>
- dM
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Joined: Oct 02, 2007
  • Posts: 575
  • Loc: Phoenix, AZ
  • Status: Offline

Post November 20th, 2007, 3:05 pm

grinch2171 wrote:
There is a Windows Media Player on that page, it is near the bottom.

Weird.. I do see the code for it in the source, but I just see a blank white space on that part of the page.
phoenix web design
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Joined: Oct 02, 2007
  • Posts: 575
  • Loc: Phoenix, AZ
  • Status: Offline

Post November 20th, 2007, 3:09 pm

jameson5555 wrote:
grinch2171 wrote:
There is a Windows Media Player on that page, it is near the bottom.

Weird.. I do see the code for it in the source, but I just see a blank white space on that part of the page.


I do see it in Internet Explorer, by the way.. just not in Firefox
phoenix web design
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Joined: Feb 11, 2004
  • Posts: 6744
  • Loc: Martinsburg, WV
  • Status: Offline

Post November 21st, 2007, 2:40 am

Now it isn't working in FF for me, it was yesterday and has before. :?

I tried your method DM and it severely broke my layout.
‎"Be polite, be professional, but have a plan to kill everybody you meet." Maj. Gen. James Mattis
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post November 21st, 2007, 4:09 am

grinch2171 wrote:
Now it isn't working in FF for me, it was yesterday and has before. :?

I tried your method DM and it severely broke my layout.


Really? Wow. That's the only method I could find that achieved the desired effect in FF. Bummer.

//Wait...broke how?

//btw: I just got done reading your "open letter..." and I can't stop laughing. :)
- dM
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Joined: Feb 11, 2004
  • Posts: 6744
  • Loc: Martinsburg, WV
  • Status: Offline

Post November 21st, 2007, 6:12 am

I'll put it back in so you can see how it broke it.
http://www.grinchynet.net/node/56

BTW, I did not write the open letter but thanks for the credit ;)
‎"Be polite, be professional, but have a plan to kill everybody you meet." Maj. Gen. James Mattis
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 21st, 2007, 6:12 am

Post Information

  • Total Posts in this topic: 21 posts
  • Users browsing this forum: No registered users and 104 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.