Author: jcrowley
Date: 2007-07-09 23:32:31 -0700 (Mon, 09 Jul 2007)
New Revision: 5638
Modified:
openlaszlo/branches/legals/lps/components/extensions/av/rtmpconnection.lzx
Log:
Change 20070706-jcrowley-r by [EMAIL PROTECTED] on 2007-07-06 05:57:55 EDT
in /Users/jcrowley/src/svn/openlaszlo/legals-alpha
for http://svn.openlaszlo.org/openlaszlo/branches/legals
Summary: Contributor bug fixes: change onResult to ondata in netremotecall,
add remotecontext attribute to netremotecall, map result of
netremotecall
to dataset
New Features:
Bugs Fixed: LPP-4216, LPP-4217, LPP-4222
Technical Reviewer: pbr
QA Reviewer: max
Doc Reviewer:
Documentation:
Release Notes:
Details: This is a set of fixes from Sebastian Wagner, to update
rtmpconnection.lzx.
Tests:
Modified:
openlaszlo/branches/legals/lps/components/extensions/av/rtmpconnection.lzx
===================================================================
--- openlaszlo/branches/legals/lps/components/extensions/av/rtmpconnection.lzx
2007-07-10 05:28:32 UTC (rev 5637)
+++ openlaszlo/branches/legals/lps/components/extensions/av/rtmpconnection.lzx
2007-07-10 06:32:31 UTC (rev 5638)
@@ -259,7 +259,12 @@
<!--- Error handling event. -->
<event name="onerror"/>
+ <attribute name="remotecontext" value="null" />
+ <attribute name="dataobject" value="null" />
+
+ <handler name="ondata" args="value" />
+
<!--- Call the remote method, passing the array of params. -->
<method name="call" args="params"><![CDATA[
if (this.funcname == null) {
@@ -294,6 +299,14 @@
Debug.write(this.name, "error: first argument (params) is not
an array");
return -1;
}
+ var rtmpObject = null;
+ if (this.parent instanceof rtmpconnection){
+ rtmpObject = this.parent;
+ } else if(this.remotecontext instanceof rtmpconnection){
+ rtmpObject = this.remotecontext;
+ } else {
+ Debug.write("ERROR: no remotecontext availible abort call");
+ }
//Debug.write("call", this, this.parent, this.parent.status);
@@ -310,7 +323,9 @@
// Can be overriden.
// Would be great if it can be used with dataobject,
// but I don't know how to convert Array/primitive to
LzDataset/LzDataPointer.
- //Debug.write("netremotecall", this, "onResult", value);
+ //Debug.write("onResult: ",this,value,dataobject);
+ if (this.dataobject!=null) this.dataobject.valueToElement(value);
+ this.ondata.sendEvent(value);
]]>
</method>
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins