Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedding WMV files

Status
Not open for further replies.

spyderco

Programmer
Jan 23, 2005
107
US
I am trying to embed video files into my web page. I found lots of source code that works just fine but I want to learn more about the attributes, what they mean, possible values, etc.

A code I found works is
Code:
      <!-- begin embedded WindowsMedia file... -->

      <OBJECT id='mediaPlayer' width="320" height="285" 
      classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' 
      CODEBASE="[URL unfurl="true"]http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">[/URL]
      standby='Loading Microsoft Windows Media Player components...' 
      type='application/x-oleobject'>

      <param name='fileName' value="[URL unfurl="true"]http://www.spyderscripts.com/test/sample.wmv">[/URL]
      <param name='animationatStart' value='true'>
      <param name='transparentatStart' value='true'>
      <param name='autoStart' value="true">
      <param name='showControls' value="true">
      <param name='loop' value="true">

      <EMBED type='application/x-mplayer2'
        pluginspage='[URL unfurl="true"]http://microsoft.com/windows/mediaplayer/en/download/'[/URL]
        id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' 
        bgcolor='darkblue' showcontrols="true" showtracker='-1' 
        showdisplay='0' showstatusbar='3' videoborder3d='-1' width="320" height="285"
        src="[URL unfurl="true"]http://www.spyderscripts.com/test/sample.wmv"[/URL] autostart="true" loop="true">
      </EMBED>
      </OBJECT>

      <!-- ...end embedded WindowsMedia file -->
    <!-- begin link to launch external media player... -->

        <a href="[URL unfurl="true"]http://www.spyderscripts.com/test/sample.wmv"[/URL] style='font-size: 85%;' target='_blank'>Launch in external 

player</a>
        <!-- ...end link to launch external media player... -->

I want to learn things like:
What does showdisplay='0' do?
What does showstatusbar='3' do?
What does videoborder3d='-1'do?

I know these are meant to be obvious but not lal the code is. Can someone link me to a tutorial that goes over all these options so I can learn what they do?
 
A code I found works...
I think you'll find it only works on Microsoft browsers and Microsoft operating systems. Try it with Firefox, or on a Mac, and you might have an unpleasant surprise.

That said, it's not an area that I've ever dabbled in myself, so I can't offer much in the way of practical alternatives. Maybe somebody else here can.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top