|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Custom Actionscript classHi,
The echo test example contains an AS3 class called "org.red5.samples.echo.EchoClass". That test shows the org.red5.samples.echo.EchoClass as request types but displays top- level Object classes for the response, and the test succeeds. Does this mean that this is a bug in PyAMF and are we not returning the proper custom class type but a plain Object type instead? Thijs |
|
|
|
Re: Custom Actionscript class
Although the EchoTest.swf says they are 'org.red5.samples.echo.EchoClass' objects, it is encoding them as anonymous objects (0x03 for AMF0, 0x0a for AMF3). When decoding, PyAMF reads this into pyamf.Bag instances, and encodes it in the same way.
Typed objects/named classes are tested with the 'RemoteClass' objects. I think that PyAMF is doing the correct thing here. On Tue, 2007-11-27 at 21:22 +0100, Thijs Triemstra | Collab wrote: Hi, The echo test example contains an AS3 class called "org.red5.samples.echo.EchoClass". That test shows the org.red5.samples.echo.EchoClass as request types but displays top- level Object classes for the response, and the test succeeds. Does this mean that this is a bug in PyAMF and are we not returning the proper custom class type but a plain Object type instead? Thijs _______________________________________________ PyAMF dev mailing list - dev@... http://lists.pyamf.org/mailman/listinfo/dev |
|
|
|
Re: Custom Actionscript classHi Nick,
thanks for the details. Btw, isn't the RemoteClass an AMF3/AS3-only feature and shouldn't it be part of the AMF3 tests (only)? Thijs On Nov 27, 2007, at 9:54 PM, Nick Joyce wrote: Although the EchoTest.swf says they are 'org.red5.samples.echo.EchoClass' objects, it is encoding them as anonymous objects (0x03 for AMF0, 0x0a for AMF3). When decoding, PyAMF reads this into pyamf.Bag instances, and encodes it in the same way. |
|
|
|
Re: Custom Actionscript class
Typed objects/named classes are part of the AMF0 spec (if you can call it a spec) and should be part of that test suite.
On Tue, 2007-11-27 at 21:59 +0100, Thijs Triemstra | Collab wrote: Hi Nick, thanks for the details. Btw, isn't the RemoteClass an AMF3/AS3-only feature and shouldn't it be part of the AMF3 tests (only)? Thijs On Nov 27, 2007, at 9:54 PM, Nick Joyce wrote:
_______________________________________________ PyAMF dev mailing list - dev@... http://lists.pyamf.org/mailman/listinfo/dev _______________________________________________ PyAMF dev mailing list - dev@... http://lists.pyamf.org/mailman/listinfo/dev
|
| Free embeddable forum powered by Nabble | Forum Help |