[Red5] Custom classes and AMF3
Christopher Walzl
cwalzl at gmail.com
Wed Oct 8 19:45:08 PDT 2008
Okay, more progress...
I'm past the error that caused the flash player VM and browser to
crash. When I instantiated a new org.red5.io.amf3.Output, I was
neglecting to add in the SO name and key...
output = new org.red5.io.amf3.Output(out);
output.putString(so.getName());
output.putString(event.getKey());
serializer.serialize(output, event.getValue());
I'm now able to see that an attribute is being set on my SO in the
flex client, but the value is 'undefined'. I need to see if I can
figure out how to log the incoming data somehow(I think the code that
decodes the incoming data is compiled adobe code). Progress!
Chris Walzl
cwalzl at gmail.com
(972) 974-6728
Sent from my MacBook Pro
On Oct 8, 2008, at 5:47 PM, Prabhu Tamilarasan (omNovia) wrote:
> Your best bet is to add logs to the serialize() method and test
> using a small known bytearray such as 10 1s, [1111111111]. I would
> log the incoming data, and length of the output. It appears to be
> trying to serialize the bytearray but does so incorrectly which is
> why when flex tries to read out the bytearray it gets an EOF error
> as it is expecting more bytes.
>
>
>
> next generation web conferencing
> Prabhu Tamilarasan
> Senior Software Engineer
> 675 Bering Drive, Suite 290
> Houston, TX 77057 USA
> www.omnovia.com
> ptamilarasan at omnovia.com
> T +1.281.500.4065 x 731
>
> From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On
> Behalf Of Christopher Walzl
> Sent: Wednesday, October 08, 2008 5:25 PM
> To: red5 at osflash.org
> Subject: Re: [Red5] Custom classes and AMF3
>
> Ah, you're absolutely right! Good catch! Fortunately, or
> unfortunately depending on how you look at it, I wasn't using the
> batch update method anyway.
>
> Chris Walzl
> cwalzl at gmail.com
> (972) 974-6728
>
> Sent from my MacBook Pro
>
> On Oct 8, 2008, at 4:37 PM, Prabhu Tamilarasan (omNovia) wrote:
>
>
> Sorry if I missed something obvious but at first glance you are
> trying to see if event.getValue() is of type ByteArray, however at
> the top of the case (Map initialData = (Map) event.getValue();)
> which would imply that you should always be returned a class of
> Map. Shouldn’t it be if
> (initialData
> .get(key).getClass().equals(org.red5.io.amf3.ByteArray.class)) ?
>
>
>
>
> next generation web conferencing
> Prabhu Tamilarasan
> Senior Software Engineer
> 675 Bering Drive, Suite 290
> Houston, TX 77057 USA
> www.omnovia.com
> ptamilarasan at omnovia.com
> T +1.281.500.4065 x 731
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20081008/d8ac4461/attachment.html
More information about the Red5
mailing list