homepage Welcome to WebmasterWorld Guest from 54.161.192.130
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Web Video Creation and Optimization
Forum Library, Charter, Moderators: travelin cat

Web Video Creation and Optimization Forum

    
Static preview for WMV on load
How to avoid black screen before video plays.
Ryan8720

10+ Year Member



 
Msg#: 4111677 posted 8:22 pm on Apr 7, 2010 (gmt 0)

Hi,

A client wants me to post a video on her site. It is in WMV format. I have it embedded, but it is just a block box with controls until you press play. Is there a way to show the first frame instead of the black box?

The code I'm using:

<object id='mediaPlayer' width="190" height="200"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="files/themovie.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='false'>
<param name='controller' value="true">
<param name='autoStart' value="false">
<param name='showControls' value="true">
<param name='loop' value="false">
<embed type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" width="190" height="200"
src="files/themovie.wmv" autostart="false" designtimesp='5311' loop="false">
</embed>
</object>

 

thecoalman

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4111677 posted 3:11 am on Apr 16, 2010 (gmt 0)

I believe there is a parameter to use a background image, you'll need screenshot first. The trouble with your code is cross browser and cross platform compatibility. That's why flash players are so popular for video. It eliminates those problems.

If you have to use WMV do a search for some of the Silverlight players.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Web Video Creation and Optimization
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved