I have a movie, Media Player(mymovie.wmv), also have it in Quicktime (mymovie.mov), and flash(my movie.flv)

I want it to open in a unframed position in the web page, I have no idea how to write the html for this. I have saved all the versions of this movie into the clients media folder, but just dont know how to insert it into the html and have the movie start playing upon the web page loading.

Help please,

Recommended Answers

All 5 Replies

Are you using a WYSIWYG or are you hard coding?

1 file autostart on page load

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<style type='text/css'>
/* css positioning for the media player */
.logo { background:transparent; color:#000000; text-align:right; font-size:85%; top:auto; left:auto; position:fixed; bottom:1px; right:1px;  } //edit position by top bottom
</style>
<script type="text/javascript">
<!--//
function shrink(){
 document.getElementById("MediaPlayer1").style.width=384;
 document.getElementById("MediaPlayer1").style.height=300;
}
function enLarge(){
 document.getElementById("MediaPlayer1").style.width=480;
 document.getElementById("MediaPlayer1").style.height=402;
}
 //-->
</script>
<title>video</title>
</head>
<body>
<p class='logo'>
<button onclick="enLarge()">large</button>
<button onclick="shrink()">small</button>
<A href="http://www.microsoft.com/windows/windowsmedia/player/download/"><IMG ALT="Get Windows Media Player" SRC="http://www.microsoft.com/windows/windowsmedia/images/logos/getwm/mp11_88x31_static.gif" WIDTH="88" HEIGHT="31" BORDER="0"></A><br>
<OBJECT ID="MediaPlayer1" width=384 height=300 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<PARAM NAME="fileName" VALUE="fullpathto/mymovie.wmv">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="PlayCount" VALUE="0">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="fullpathto/mymovie.wmv" name="MediaPlayer1" width=360 height=260 AutoStart=true></EMBED></object></p>
</body></html>

This code will stream .asf or .wmv files

Sorry I dont understand what WYSIWYG is
I use front page to build and publish to the hoster

WYSiWYG what you see is what you get
as in "FrontPage is a wysiwyg editor"

the code sample at the top of the prior reply should be cut and pasted into 'html view' in frontpage if you use it
the stuff in the <head></head> copied into your <head> the stuff in the <body></body> copied into your <body>
stuff between <style></style> and <script></script> tags copied between the same tags in your page head

FrontPage is not particularly friendly to import code, but the addition is MS centric so it wont **expletive deleted** up

Thanks Almoast

You gave me something to work with. I had no problems what so ever and am now using it with options.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.