Windows Media Files

  • webmattster
  • Beginner
  • Beginner
  • webmattster
  • Posts: 42

Post 3+ Months Ago

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!
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

There should be an attribute for "autostart" and it should be set to "false", I think.
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

Suppose you looked at a youtube page and compared your code to theirs? It might give you some ideas.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

YouTube doesn't use Windows Media though, they use Flash video.
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Posts: 575
  • Loc: Phoenix, AZ

Post 3+ Months Ago

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.
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Posts: 6810
  • Loc: Martinsburg, WV

Post 3+ Months Ago

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>
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Even with the CAPITAL tag and attribute names? Wouldn't that fail validation for an XHTML strict doctype? :scratchhead:
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Posts: 575
  • Loc: Phoenix, AZ

Post 3+ Months Ago

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?
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Posts: 6810
  • Loc: Martinsburg, WV

Post 3+ Months Ago

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.
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

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>
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Posts: 575
  • Loc: Phoenix, AZ

Post 3+ Months Ago

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.
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Posts: 575
  • Loc: Phoenix, AZ

Post 3+ Months Ago

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
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Posts: 6810
  • Loc: Martinsburg, WV

Post 3+ Months Ago

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.
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

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. :)
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Posts: 6810
  • Loc: Martinsburg, WV

Post 3+ Months Ago

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 ;)
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Posts: 6810
  • Loc: Martinsburg, WV

Post 3+ Months Ago

Another thing, when checked in IE7 the layout is fine but the media player looks weird and doesn't play the mp3.
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Posts: 6810
  • Loc: Martinsburg, WV

Post 3+ Months Ago

I figured out why it was breaking the layout. Drupal was adding <p> and <br> tags when it shouldn't have been. But the mp3 still doesn't play.
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

I thought we were doing WMV? The markup I posted has all the tool bars turned on too. Is that what you mean by weird?
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Posts: 6810
  • Loc: Martinsburg, WV

Post 3+ Months Ago

Possibly.

I don't do WMV, if you have a better method for mp3 then I am all ears.
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

grinch2171 wrote:
Possibly.

I don't do WMV, if you have a better method for mp3 then I am all ears.


:) For mp3, I built my own XML based Flash player called myPlayah. Honestly, I'd use a Flash solution for video as well. I was trying to respond to the original post in the thread, however.
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Posts: 6810
  • Loc: Martinsburg, WV

Post 3+ Months Ago

I got this to work for mp3 but it should work for WMV since it is Windows Media Player

Code: [ Select ]
<object id="MediaPlayer1" width="320" height="240" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player..." type="application/x-oleobject">
<param name="FileName" value="/misc/Without_Demo_1.mp3">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="false">
<param name="autoStart" value="false">
<param name="showControls" value="true">
<param name="Volume" value="-100">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" Name="MediaPlayer" src="/misc/Without_Demo_1.mp3" AutoStart="true" ShowStatusBar="1" volume="-1" height="240" width="320"></embed>
</object>
  1. <object id="MediaPlayer1" width="320" height="240" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player..." type="application/x-oleobject">
  2. <param name="FileName" value="/misc/Without_Demo_1.mp3">
  3. <param name="animationatStart" value="true">
  4. <param name="transparentatStart" value="false">
  5. <param name="autoStart" value="false">
  6. <param name="showControls" value="true">
  7. <param name="Volume" value="-100">
  8. <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" Name="MediaPlayer" src="/misc/Without_Demo_1.mp3" AutoStart="true" ShowStatusBar="1" volume="-1" height="240" width="320"></embed>
  9. </object>

Post Information

  • Total Posts in this topic: 21 posts
  • Users browsing this forum: No registered users and 47 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.