Page 1 of 1

play *.avi in html

Posted: Sun Mar 13, 2011 12:34 pm
by Walter Metzger
Good day,

I want the Video.file "minilrk2.avi" test on our homepage play can be.

With following commands succeeded me in 2 ways:
1. Way:
<embed type="application/x-mplayer2" pluginspage=""
name="mediaplayer1" ShowStatusBar="true" EnableContextMenu="false" autostart="false"
height="330" width="360" loop="false" src="images/minilrk2.avi" />

2. Way
<embed type="application/x-mplayer2" pluginspage=""
name="mediaplayer1" autostart="false" height="330" width="360" transparentstart="1" loop="0"
controller="true" src="images/minilrk2.avi">

But CSE Validator Pro 10.01 is not so very so agree, there are several error messages or comments.

I did find the 1. and the 2. way as example in the www.
I found no good explanations about the parameters underlined.

Can anyone recommend another (better) complete solution?
I am with my question in the right forum? I hope so.

Testing today for Windows Media Player, I found a solution, which is well for Firefox, IE and Opera
and has no comments when validating in CSE Validator Pro 10.01:
3. Way (Windows Media Player)

<object id="MediaPlayer1"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" hspace="0" vspace="0" standby="Loading Microsoft Windows Media Player components...">
<param name="Filename" value="images/minilrk2.avi">

<embed type="application/x-mplayer2"
pluginspage="" name="mediaplayer1" autoplay="false" autostart="false"
height="330" width="360" loop="false" controls="false" allowFullscreen="True" src="images/minilrk2.avi">

I tested also for RealPlayer, well for Firefox and IE, but not for Opera,
no comments when validating in CSE Validator Pro 10.01:

4. Way (for RealPlayer)

<object ID="ImageWindow" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" TYPE="audio/x-pn-realaudio-plugin"
DATA="images/minilrk2.avi" WIDTH="360" HEIGHT="330">

<param name="CONSOLE" value="main"> <param name="SRC" value="images/minilrk2.avi"> <param name="CONTROLS" value="ImageWindow,ControlPanel,StatusBar">
<param name="AUTOSTART" value="false"> <param name="LOOP" value="false"> <param name="NOLABELS" value="true">
<param name="CENTER" value="true"> <param name="BACKGROUNDCOLOR" value="#000000">

<embed type="audio/x-pn-realaudio-plugin" src="images/minilrk2.avi" quality="autohigh" scale="default" play="false" loop="false"
menu="true" bgcolor="#000000" width="360" height="330">
My Questions are now:
a) What is for the user better: the 3. Way or the 4. Way
b) If the 4 Way would be the better, anyone can please tell me, to make the code
suitable for Opera.

Greetings from Germany and thank you for a response
Walter Metzger

Re: play *.avi in html

Posted: Thu Mar 17, 2011 10:20 am
by Albert Wiersch
Hi Walter,

Sorry, I'm not sure I can be of much help as I don't embed videos, but if you find an embed attribute that CSE HTML Validator doesn't recognized but that is often used, then please let me know. In order to have CSE HTML Validator accept it, I would need a reliable source/URL of its validity.

I tried to find one for the "ShowStatusBar" attribute but couldn't find anything I thought was trustworthy enough... just some example HTML that uses it, but I'd like to see a reputable/authoritative reference describing the attribute.

Re: play *.avi in html

Posted: Mon Mar 21, 2011 7:27 am
by Walter Metzger
Good day,

I decided for another away, after which I had found 2 options for swf-files.
(My video file is a swf file originally)
I hat got a wrong (or not good) information: avi-files would be better.

Here the 2 options in my tests for the swf-Video:

1. Option
pure html in
there is a error when validating CSE HTML Validator Professional

Error … : The end tag for "embed" was found but "embed" cannot have an end tag and cannot contain any content.

But there is no difference with or without command </embed>,
it is correct displayed in Mozilla Firefox 3.6.15, IE 8 and Opera 11.01.

2. Option
a) make a file *.ods or *.odt with OpenOffice,
b) print this file with Fineprint to PDF,
c) with Adobe Acrobat X pro (Now I write the german expressions),
Werkzeuge (tools)
Interaktives Objekt hinzufügen oder bearbeiten
choose SWF and embed path and swf-file

I decided for the 2. option, because creating about OOo etc. is very easy.

Greetings from Germany
Walter Metzger
(Spring is wonderfully started today)