When embedding a windows media player wmv video into a Web page like
at
http://www.marcfest.com/temp/embedvideotest.html, I want the first
or so frame of the video to show on loading of the page, before one
starts playing the video, rather than the black square currently
shown. How can I accomplish this? I thought of using Javascript to
tell Media Player to play the video for a fraction of a second after
the page is loaded and then pause so that an image is displayed but I
didn't succeed fiddling around with that. Any solution that will work
will be fine.
I have never done this. One option is to screen capture the start of
the video as a jpg and place this on the page with absolute
positioning. Then the movie is positioned on top of this. Then when you
start the movie, you switch the visibility of the jpg to hidden using
script. You can use a div as a container for the movie and jpg.
There may be another way that is more direct, but you will have to
investigate this at Microsoft. At least for an ActiveX wmp object,
there is a parameter "defaultFrame" that can be used. I do not know if
this will do what you want, but it is the best lead I have. I do not
know if it can be forced to work on browsers that do not support
ActiveX wmp objects. I had the information about "defaultFrame" on my
computer, and it likely came from Microsoft's developer sites. However
I do not have time to search that maze just now to give you the URL. I
will just quote what I have below.
______________________________________________________________
Settings.defaultFrame
The defaultFrame property specifies or retrieves the name of the frame
used to display a URL that is received in a ScriptCommand event.
Syntax
player.settings.defaultFrame
Possible Values
This property is a read/write String corresponding to the value of the
name attribute of the target FRAME element.
Remarks
If a target frame is specified in the ScriptCommand event itself, this
property is ignored.
This property is ignored when using the Netscape Navigator Java applet.
In Navigator, each URL script command received displays the URL in a
new browser window, regardless of the value of Settings.defaultFrame.
Windows Media Player 10 Mobile: This property is read only, and always
returns an empty string.
Requirements
Version: Windows Media Player version 7.0 or later.
Header: Defined in wmp.idl; include wmp.h.