Max, Henry,

I tested playback of an OGG video file in a DHTML application, and it works. Here's the example code (and thanks for the input, Max!):

<canvas width="100%" height="500">

    <attribute name="htmlsnippet" type="string" value="" />

    <handler name="oninit" args="e">
    <![CDATA[
canvas.htmlsnippet = '<video id="myVideo" src="video_svg_demo.ogg" autoplay/>';
    ]]>
    </handler>

    <simplelayout axis="y" spacing="30" />

    <text id="video" width="530" height="350" bgcolor="#cccccc" />

<button text="modify text" onclick="video.sprite.setText(canvas.htmlsnippet)" />

</canvas>

File has been attached to the JIRA entry, with an OGG file for testing.
http://jira.openlaszlo.org/jira/browse/LPP-8290

- Raju


Reply via email to