PDA

View Full Version : Embedding .avi files


3fishes
11-28-2001, 12:04 AM
When embedding .avi files on HTML page, how can I get the file to play on the media player image on the page rather than downloading and playing on the external Windows Media Player. The code I am using is <embed type="video/msvideo" SRC="videos/Wayne.avi" WIDTH="320" HEIGHT="240" autostart="true"></embed>

Also, is the </embed> necessary. In others source code it is not there, but if </embed> is not used in Dreamweaver 4 it considers it an error.

Thanks for the help. 3fishes

Oscar Petti
11-28-2001, 02:35 PM
The second part of the code <embed></embed> is for NS
(simply said.)

Are you going to stream avi?

Oscar
------------------
<OBJECT
ID="MediaPlayer"
STYLE="POSITION:ABSOLUTE; LEFT:10px; top:100px;"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE=
"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
width=320 height=240
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="path.avi">
<PARAM NAME="TransparentAtStart" Value="false">
<PARAM NAME="AutoStart" Value="true">
<PARAM NAME="AnimationatStart" Value="true">
<PARAM NAME="ShowControls" Value="true">
<PARAM NAME="ShowPositionControls" Value="false">
<PARAM NAME="ShowStatusBar" Value="true">
<PARAM NAME="autoSize" Value="false">
<PARAM NAME="displaySize" Value="0">
<Embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
src="path.avi"
Name=MediaPlayer
AutoStart=1
Width=320 Height=240 transparentAtStart=0
animationAtStart=1
ShowControls=1
ShowPositionControls=0
ShowStatusBar=1
autoSize=0
displaySize=0></embed>
</OBJECT>

3fishes
12-01-2001, 09:01 PM
No, I won't be streamin...

Thanks, Oscar

gypsyheritage
08-01-2009, 06:25 PM
is there a way I can get the bar that says Playing [file name] and playlist

tdjprj
08-06-2009, 06:49 AM
If you play AVI directly, you need to notice not all browser can support viewing of AVI as it requires a plug-in. And visitors can't see anything before the video file is fully downloaded.

I would suggest you check out some flash video player (http://video.a4desk.com), which comes with nice skins, playlist, progress bar, etc, and can convert your file into streaming FLV format (same as Youtube), and then generate the code for embed to your website.