W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 2013

Re: error code when insering a video using video tag

From: Cristiano Guglielmetti <cguglielmetti@alice.it>
Date: Fri, 4 Jan 2013 20:44:37 +0100
Message-ID: <CALtrw88OtEu0RzrLkhzSoNYob1AttYKdKj-3x-7m97ypS_PLoQ@mail.gmail.com>
To: HiddenId <courriel_achevrier@yahoo.fr>
Cc: "www-amaya@w3.org" <www-amaya@w3.org>
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 <courriel_achevrier@yahoo.fr>

> 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
>
>
>
Received on Friday, 4 January 2013 19:45:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:31:01 UTC