[theora] Theora promotion material

Chris Double chris.double at double.co.nz
Wed Nov 12 14:25:54 PST 2008


On Thu, Nov 13, 2008 at 7:54 AM, Bram Neijt <bneijt at gmail.com> wrote:
> Should result in a small movie and a directory filled with images. The
> movie looks horrible (again, I'm no artist) but the idea should be
> clear. So if anybody can help me with artwork and a working theora in
> SVG example, I'd be very pleased to trade for my page of code ;)

You can embed it in HTML with a compatible browser using:

<video src='foo.ogg'></video>

In SVG you can also embed it using SVG video in a compatible browser:

<svg xmlns='http://www.w3.org/2000/svg'
xmlns:xlink='http://www.w3.org/1999/xlink'>
  <video xlink:href="foo.ogg"/>
</svg>

If the browser doesn not support video in SVG, but does support it it
in HTML, you can use foreignObject:


<svg xmlns='http://www.w3.org/2000/svg'
xmlns:xlink='http://www.w3.org/1999/xlink'>
<foreignObject>
  <div xmlns="http://www.w3.org/1999/xhtml">
    <video src="foo.ogg"/>
  </div>
</foreignObject>
</svg>

Unfortunately the 'compatible browser' is the issue. Opera supports
video in SVG. Firefox does not. Firefox and Opera have experimental
HTML video support for Theora. Safari has HTML video support but not
built in for Theora, it needs XiphQT plugins.

Chris.
-- 
http://www.bluishcoder.co.nz


More information about the theora mailing list