Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Graphics, Flash and Multimedia _ How To Embed .avi In HTML Webpage?

Posted by: MiguidedHeart Mar 18 2012, 02:43 PM

First off I'm using Internet Explorer and only need it to show in IE dont care for firefox etc.

I placed the code and have tried many different codes other then this one that I found over the net..
But this one works out the best but with this and every other code I have tried I only get sound and no video..

Is there some kind of plugin needed so both I and My users who come to the page can see it and not just hear it?

Here is the code I'm working with..


<OBJECT id="VIDEO"
style="position:absolute; left:19;top:19;width:480px; height:360px"
CLASSID="CLSID:6BF52A52-394A-11d3-B153…
type="application/x-oleobject">

<PARAM NAME="URL" VALUE="myvideourl.avi" ref>
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM name="uiMode" value="mini">
<PARAM name="PlayCount" value="1">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="80">
<param name="mute" value="0">
<param name="stretchToFit" value="1">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
</OBJECT>

Also working with this code which also gives sound but no video..

<object id="MediaPlayer1" 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" width="280" height="256">
<param name="fileName" value="myvideourl.avi">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="myvideourl.avi" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-300>
</object>


And this one too.. Which I can tell by the ending of the code might only work for flash vids..?

<object width="425px" height="360px" >
<param name="allowFullScreen" value="true"/>
<param name="wmode" value="transparent"/>
<param name="movie" value="myvideourl.avi">
<embed src="myvideourl.avi" width="425" height="360" allowFullScreen="true" type="application/x-shockwave-flash" wmode="transparent"/>
</object>




And also tried just the usual <embed src="myvideourl.avi" height="200" width="200"/>


So any help is much apreciated!!!
Thanks

P.S. How do you change display names on this board? I've searched everywhere I can think of on here..
My name is supposed to be MisguidedHeart not MiguidedHeart... Darn typos...

P.P.S. If there is NO way to fix this problem which I hope there is? Can I just get the video to open up in their media player?
I've tried the usual link code a href but just brings me to a cannot be displayed page..

Posted by: Christian J Mar 20 2012, 05:12 PM

QUOTE(MiguidedHeart @ Mar 18 2012, 08:43 PM) *

I've tried the usual link code a href but just brings me to a cannot be displayed page..

That's probably due to the browser settings, see http://htmlhelp.com/faq/html/links.html#force-download

If all else fails, suggest to your visitors that they save the file (e.g. by right-clicking) and then open it in a multimedia viewer program.

Another option might be to convert it to a more widely supported file format.

Posted by: jimlongo Mar 21 2012, 02:41 PM

It's more likely not the code but the codec that your file is using that is the issue with viewing it.


Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)