Webpage:  Default static image on unplayed windows media video?

Posted on 2008-11-19
Medium Priority
Last Modified: 2013-12-25

please visit this page using Internet Explorer.  How do I get a default picture to show up on the blank screen?

my code:
    document.write('<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" border="0" standby="Loading Windows Media Player components..." type="application/x-oleobject" width="509" height="375"><param name="fileName" value="http://www.theravive.com/temp/theravive-second.wmv"><param name="ShowStatusBar" value="1" /><param name="animationatStart" value="1" /><param name="transparentatStart" value="0" /><param name="ShowAudioControls" value="1" /><param name="AllowScan" value="1" /><param name="ShowPositionControls" value="1" /><param name="showControls" value="1" /><param name="autoStart" value="0" /><param name="Volume" value="-0"> </object>')
Question by:arthurh88
  • 2
  • 2
LVL 14

Expert Comment

ID: 23001963
there is no fix really, since outlook is a PITA, see my findings here:
LVL 14

Expert Comment

ID: 23001968
sorry, misplaced my text in a hurry, which was designed for a topic one row below, but not yours - - -

Author Comment

ID: 23002231
no biggie, i figured it out anyway :)

Accepted Solution

arthurh88 earned 0 total points
ID: 23002235
The answer I used:

<SCRIPT type="text/javascript">
      if(-1 != navigator.userAgent.indexOf("MSIE"))
        document.write('<div id="video_29">')
             document.write ('<a style="position: relative; left: 0px; top: 0px; display: block; width: 509px; height: 374px; background: url(http://www.theravive.com/forcounsellors/images/new-clients-video.jpg) no-repeat center center;" href="PATH" onclick="document.getElementById(\'video_29\').innerHTML=\'<object id=&quot;MediaPlayer1&quot; CLASSID=&quot;CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95&quot; codebase=&quot;http:\/\/activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"; border=&quot;0&quot; standby=&quot;Loading Windows Media Player components...&quot; type=&quot;application/x-oleobject&quot; width=&quot;509&quot; height=&quot;374&quot;><param name=&quot;fileName&quot; value=&quot;http:\/\/www.theravive.com/temp/theravive-second.wmv";><param name=&quot;ShowStatusBar&quot; value=&quot;1&quot; /><param name=&quot;animationatStart&quot; value=&quot;1&quot; /><param name=&quot;transparentatStart&quot; value=&quot;0&quot; /><param name=&quot;ShowAudioControls&quot; value=&quot;1&quot; /><param name=&quot;AllowScan&quot; value=&quot;1&quot; /><param name=&quot;ShowPositionControls&quot; value=&quot;1&quot; /><param name=&quot;showControls&quot; value=&quot;1&quot; /><param name=&quot;autoStart&quot; value=&quot;1&quot; /><param name=&quot;Volume&quot; value=&quot;-0&quot;> </object>\';return false;"></a>')
      else if(-1 != navigator.userAgent.indexOf("Firefox"))
         document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="480" height="360"> <param name="flashvars" value="file=http://www.theravive.com/temp/theravive-second.flv" /> <param name="movie" value="http://www.theravive.com/temp/mediaplayer.swf" /> <embed src="http://www.theravive.com/temp/mediaplayer.swf" width="480" height="360" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://www.theravive.com/temp/theravive-second.flv" /></object>')


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question