FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Inserting WMV onto page





Mark999111
Hey

Does anyone know the html code that will let me embed a wmv onmy my page? Instead of have something where you click on it, windows media pops up. I want it so that the player is on the page if you know what i mean?

Thanks!
Simulator
Code:
<embed src="file"></embed>

But if you want to go all out use

Code:
<object id="MediaPlayer1" height="300" width="320" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 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="URL" value="file"><param name="showcontrols" value="true">
<embed height="300" width="320" src="file" showcontrols=1 pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="MediaPlayer1" autostart=1 type="application/x-mplayer2">
</embed></object>
wrightbros
hey thanks for that code snippet;
i'm saving it in case i ever need to embedd some WMV. i've always known there must be a way to do it, but never took the time to look it up, so thanks.
otiscom
Try converting it to flash (.swf).

The files are smaller (with no apparent loss of quality).

Code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#4,0,0,0" width="900" height="500">
   <param name="SRC" value="myfile.swf">
    <embed src="myfile.swf" pluginspage="http://www.macromedia.com/shockwave/download/" type="application/x-shockwave-flash" width="500" height="500">
    </embed>
   </object>


This code will embed your file in the page (just change the 'myfile.swf' to your file name).

99% of browsers can view this without having to download 3rd party viewers.

There are conversion progs on the net for you to download (some free)
you can do the same with sound files (mp3 / wav).
Related topics
need help posting video blogs onto page
Player script
WEb page good design
How To : Improve Your PHP Programming
Which is the best content management software
Dreamweaver : The page cannot be found
secure your pictures on a web page !
php page flickering, maybe caused by flash item
i need a chat box for my web site made on front page
Log onto to Control Panel
Google Page Rank
Why won't my page find the stylesheet and images?
Database security
The AZZCardfile
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.