Re: error code when insering a video using video tag
Cristiano Guglielmetti <[email protected]> Fri, 4 Jan 2013 20:44:37 +0100
| Newsgroups | gmane.comp.web.amaya.general |
|---|---|
| Message-ID | <CALtrw88OtEu0RzrLkhzSoNYob1AttYKdKj-3x-7m97ypS_PLoQ@mail.gmail.com> |
--bcaec54d4028b0c4c304d27bb578
Content-Type: text/plain; charset=ISO-8859-1
Probably you left the doctype default declaration of Amaya, which is XHTML.
When you create the new document you should declare it as HTML Transitional
into New Document tab view. Indeed, if you have set it as HTML Transitional
you will not have errors by Amaya:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>New1</title>
<meta name="generator" content="Amaya, see http://www.w3.org/Amaya/">
</head>
<body>
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
<source src="movie.webm" type="video/webm">
<object data="movie.mp4" width="320" height="240">
<embed src="movie.swf" width="320" height="240">
</object>
</video>
</body>
</html>
Regards,
Cristiano
2013/1/4 HiddenId <[email protected]>
> Hi all,
> I'm trying to insert a video in an HTML page.
> I've tried a w3school code example :
>
> <video width="320" height="240" controls>
> <source src="movie.mp4" type="video/mp4">
> <source src="movie.ogg" type="video/ogg">
> <source src="movie.webm" type="video/webm">
> <object data="movie.mp4" width="320" height="240">
> <embed src="movie.swf" width="320" height="240">
> </object>
> </video>
>
> See: http://www.w3schools.com/html/html_videos.asp
>
> Unfortunatly, Amaya returns "an error code": invalid token
> It seems it is the "s" of controls which generate the error.
>
> Do you know what I should do to avoid this error ?
>
> Antoine
>
>
>
--bcaec54d4028b0c4c304d27bb578
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Probably you left the doctype default declaration of =
Amaya, which is XHTML.</div><div>When you create the new document you shoul=
d declare it as HTML Transitional into New Document tab view. Indeed, if yo=
u have set it as HTML Transitional you will not have errors by Amaya:<br>
</div><div><br></div><div><div><!DOCTYPE html PUBLIC "-//W3C//DTD H=
TML 4.01 Transitional//EN"</div><div>=A0 =A0 =A0 "<a href=3D"http=
://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>&=
quot;></div>
<div><html xmlns=3D"<a href=3D"http://www.w3.org/1999/xhtml">http:/=
/www.w3.org/1999/xhtml</a>"></div><div><head></div><div>=A0 &=
lt;meta http-equiv=3D"content-type" content=3D"text/html; ch=
arset=3Diso-8859-1"></div>
<div>=A0 <title>New1</title></div><div>=A0 <meta name=3D&quo=
t;generator" content=3D"Amaya, see <a href=3D"http://www.w3.org/A=
maya/">http://www.w3.org/Amaya/</a>"></div><div></head></div>=
<div><br>
</div><div><body></div><div><br></div><div><video width=3D"32=
0" height=3D"240" controls></div><div>=A0 <source src=
=3D"movie.mp4" type=3D"video/mp4"></div><div>=A0 <=
;source src=3D"movie.ogg" type=3D"video/ogg"></div>
<div>=A0 <source src=3D"movie.webm" type=3D"video/webm&qu=
ot;></div><div>=A0 <object data=3D"movie.mp4" width=3D"=
;320" height=3D"240"></div><div>=A0 =A0 <embed src=3D&=
quot;movie.swf" width=3D"320" height=3D"240"></=
div>
<div>=A0 </object>=A0</div><div></video>=A0</div><div><br></div=
><div></body></div><div></html></div></div><div><br></div><div =
style>Regards,</div><div style>Cristiano</div></div><div class=3D"gmail_ext=
ra">
<br><br><div class=3D"gmail_quote">2013/1/4 HiddenId <span dir=3D"ltr"><=
<a href=3D"mailto:[email protected]" target=3D"_blank">courriel_a=
[email protected]</a>></span><br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style=3D"font-size:12pt;font-family:times new roman,new york,time=
s,serif"><div>Hi all,</div><div>I'm trying to insert a video in an HTML=
page.</div><div>I've tried a w3school code example :<br></div><div><br=
>
</div><div><video width=3D"320" height=3D"240" contr=
ols><br>
=A0 <source src=3D"movie.mp4" type=3D"video/mp4">=
<br>
=A0 <source src=3D"movie.ogg" type=3D"video/ogg">=
<br>
=A0 <source src=3D"movie.webm" type=3D"video/webm"&g=
t;<br>
=A0
<object data=3D"movie.mp4"=20
width=3D"320" height=3D"240"><br>
=A0=A0=A0 <embed src=3D"movie.swf" width=3D"320"=20
height=3D"240"><br>
=A0
</object> <br>
</video> <br></div><div style=3D"font-style:normal;font-size:16px;ba=
ckground-color:transparent;font-family:times new roman,new york,times,serif=
"><br></div><div style=3D"font-style:normal;font-size:16px;background-color=
:transparent;font-family:times new roman,new york,times,serif">
See: <a href=3D"http://www.w3schools.com/html/html_videos.asp" target=3D"_b=
lank">http://www.w3schools.com/html/html_videos.asp</a></div><div style=3D"=
font-style:normal;font-size:16px;background-color:transparent;font-family:t=
imes new roman,new york,times,serif">
<br></div><div style=3D"font-style:normal;font-size:16px;background-color:t=
ransparent;font-family:times new roman,new york,times,serif">Unfortunatly, =
Amaya returns "an error code": invalid token</div><div style=3D"f=
ont-style:normal;font-size:16px;background-color:transparent;font-family:ti=
mes new roman,new york,times,serif">
It seems it is the "s" of controls
which generate the error.</div><div style=3D"font-style:normal;font-size:1=
6px;background-color:transparent;font-family:times new roman,new york,times=
,serif"><br></div><div style=3D"font-style:normal;font-size:16px;background=
-color:transparent;font-family:times new roman,new york,times,serif">
Do you know what I should do to avoid this error ?</div><div style=3D"font-=
style:normal;font-size:16px;background-color:transparent;font-family:times =
new roman,new york,times,serif"><br></div><div style=3D"font-style:normal;f=
ont-size:16px;background-color:transparent;font-family:times new roman,new =
york,times,serif">
Antoine<br></div><div><br></div><div style=3D"font-style:normal;font-size:1=
6px;background-color:transparent;font-family:times new roman,new york,times=
,serif"><br></div><div style=3D"font-style:normal;font-size:16px;background=
-color:transparent;font-family:times new roman,new york,times,serif">
</div></div></div></blockquote></div><br></div>
--bcaec54d4028b0c4c304d27bb578--