Click to See Complete Forum and Search --> : Embedding video using Expression Web


cadlewv
07-05-2008, 01:31 PM
Hello again.

I need to know what I'm doing wrong when it comes to embedding video using Expression Web.

Below is the code I currently have. The problem is that it won't autostart in a web browser. Using Ctrl+click in the Expression Web application, I have verified that the url is correct.

Any help would be appreciated.

<div>
<object type="video/x-ms-wmv" data="tractor_video.wmv" width="297"
height="240">
<param name="src" value="tractor_video.wmv" />
<param name="autostart" value="true" />
<param name="controller" value="true" />
</object>
</div>

apeace
07-05-2008, 01:45 PM
Unfortunately, this may be a feature of certain browsers which is preventing the auto-play. Did you try it in multiple browsers to test this idea??

You may want to try a different type of embed. I don't particularly like it because it seems non-standard, but this tutorial looks like it offers different ideas: http://www.kathymarks.com/archives/2005/09/embedding_windows_media_and_quicktime_video_on_a_web_page.html

cadlewv
07-05-2008, 01:47 PM
I've tried it in IE and FF and it doesn't start in either. Is it that big of a deal to embed video into a web page?

Mr. E. Cryptic
07-05-2008, 02:30 PM
Not sure if there is a valid way of doing this or not, but what I will say is to be careful how you do it, for instance; the following would work;

<object data="tractor_video.wmv" type="video/x-ms-wmv" width="297" height="240">
<param name="src" value="tractor_video.wmv">
<param name="autoplay" value="true">
<param name="autoStart" value="1">
</object>

However, you would experience one SMALL undesired side-effect:

IT CRASHES MOST BROWSERS.

cadlewv
07-05-2008, 02:32 PM
Great, I've got it to work now, in both FF and IE. One last problem. When I hit the stop button, the media player disappears and leaves a blank spot on the page. Is there a way, that when stop is pushed, it will leave the WMP showing?

Thanks.