Robin Sheat wrote:
> There is a new problem I've encountered, where the video won't show up
> when the source location is in the XML, but I'll poke at that some more
> for a while.
OK, I've looked at this one and it's gotten me a bit stumped. For
testing, I've specified the XML inside the lzx file as:
<dataset name="datasources">
        <sources>
                <videosource>file:/../NRCapSmall00.swf</videosource>
        </sources>
</dataset>

This file location is valid, and it loads fine so far as I can tell.

When I specify the video with:

<videoplayer id="mainvideo"
filetoplay="$path{'datasources:/sources/videosource/text()'}"/>

the video doesn't display. If I put the actual location of the file in
filetoplay, it works fine. Now, I think (based on other evidence) that
it is actually playing, but the video isn't displaying.

Just a note: In the oninit for videoplayer, I have this:
this.setSource(this.filetoplay);

and I also have this handler:
<handler name="onfiletoplay"><![CDATA[
        Debug.write("New file to play: "+this.filetoplay);
        this.setSource(this.filetoplay);
]]></handler>

which is being called with the appropriate content.

A Debug.inspect of the player contains these:
loader: «LzMediaLoader#43| «MediaLoadObj#42| file:/../NRCapSmall00.swf
(loaded)»»
playing: true
resource: file:/../NRCapSmall00.swf
resourceheight: 149
resourcewidth: 320

So it definitely knows about the file, it just doesn't show up.

Any ideas?

Cheers, Robin.
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to