On Thursday 06 July 2006 23:24, Martin Allchin wrote:
> How are you loading the video from the dataset? I had trouble playing it
> initially, you need to define it as a resource instead of a source.
I posted in more detail in another message, but pretty much any way I tried 
didn't work. Even the play="true" or play="false" setting didn't help. The 
only way that did was to put the reference to the swf directly in the 
declaration for the video player. 

I did find an _ugly_ workaround that will do for now however: I load a small 
swf movie in the declaration, and then on the canvas.oninit event, I call 
player.setAttribute("filetoplay", datasources.getFirstChild()....(until it 
points to the real movie URL));
in the player, the handler for onfiletoplay does:
this.setSource(this.filetoplay);
this.play();
and it works. It seems that something has to be loaded immediately, after that 
you can change it around as much as you'd like. I expect you can do the 
setSource directly, I just use filetoplay because that was how I wrote the 
player in the first place.

If you need more info, let me know. If I remember and have time next week I'll 
write up a testcase and submit a bug report for it. It's was quite a pain 
until I figured the workaround.

-- 
Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D

Attachment: pgpILESOFQKEh.pgp
Description: PGP signature

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

Reply via email to