[Laszlo-user] Problem with rtmpconnection (to red5) and 4.0.12

Anthony Bargnesi abargnesi at gmail.com
Fri May 2 05:26:55 PDT 2008


Hello,

I recently ran a lzx test app in 4.0.12 that makes a call to Red5.  What
worked fine in an previous laszlo versions
has since stopped working.  This time, however, I am seeing the following
compiler warnings:

*extensions/av/rtmpconnection.lzx:14:49:* Method rtmpconnection.call is
overriding a superclass method of the same name which has been declared
non-overridable
*extensions/av/rtmpconnection.lzx:250:48:* Method netremotecall.call is
overriding a superclass method of the same name which has been declared
non-overridable

Here is the example LZX:

<canvas debug="true">
    <button name="callButton" onclick="onCardEventCall();">
        Call sendEvent
        <method name="onCardEventCall">
            canvas.rtmp.onCardEvent.event = "button was clicked!";
            canvas.rtmp.onCardEvent.call();
        </method>
    </button>
    <rtmpconnection name="rtmp" debug="true" autoconnect="true"
src="rtmpt://localhost:8888/srvr/myhome">
        <handler name="onconnect">
            Debug.write("connected");
        </handler>
        <handler name="onerror">
            Debug.write("error ",this.status);
        </handler>

       <netremotecall name="onCardEvent" funcname="onCardEvent">
            <attribute name="event" value="" type="string" />
            <netparam name="vars1"><method name="getValue">return
parent.event;</method></netparam>
        </netremotecall>

       <netremotecall name="newEvent" funcname="newEvent">
            <method name="onResult" args="value">
                Debug.write('event received: ' + value);
            </method>
        </netremotecall>
    </rtmpconnection>
</canvas>

I see the rtmpconnection being made on the Red5 server, but when I try to
send an event by clicking the "callButton"
it never comes through in Red5.  I'm thinking this has something to do with
the compiler warnings.

Any thoughts?

Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080502/47f0930c/attachment.html


More information about the Laszlo-user mailing list