[Red5devs] [Red5] AMF3 support in trunk

Joachim Bauch jojo at struktur.de
Fri Jan 26 15:21:32 EST 2007


Hi Jalmari,

Jalmari Raippalinna schrieb:
> As I finally got into testing AMF3, there is thing to I've noticed that 
> is not supported,
> i have classes that implement IExternalizable, with writeExternal
> that looks like this:
> 
>         public function writeExternal(output:IDataOutput):void
>         {
>             trace("SERIALIZING SIMPLE OBJECT!");
>             output.writeUTF("DummyAction");
>             output.writeUTF("DummyType");
>             output.writeObject(new Object());
>             output.writeObject(new Object());
>         }
> 
> First, the remote class needs to be in bin directory of the server, 
> otherwise I get ClassNotFoundException, having resolved that I got 
> following error from this serialization:
[...]
> ps. How can I get the java classes to use custom deserialization / 
> serialization?

support for IExternalizable has been added in r1668. Your Java classes
need to implement the interface org.red5.server.io.amf3.IExternalizable
so they can serialize and deserialize themselves.

See the "echo" webapp and the file "swf/DEV_Source/echotest.mxml" for
an example.

Joachim



More information about the Red5devs mailing list