I would think you would want to do something like what we do for, say,
text. You create an abstract LZX interface as an LFC class that uses
different kernel implementations and you have to "trampoline" the
interface calls through to the underlying runtime object that
implements the actual video. For the rest of LZX, the abstract
interface has turned out to be "whatever we supported in the swf
runtime". But you perhaps have some more flexibility here, since
video is a very recent feature.
On 2009-07-04, at 10:51EDT, Raju Bitter wrote:
If we build a class with a video tag as the default content for
innerHTML, how can that object be accessed through DOM, to control
the video?
On Jul 4, 2009, at 4:41 PM, Raju Bitter wrote:
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