Red5 AMF3 Flex : Data Type Mappings

来源:互联网 发布:防空升级数据 编辑:程序博客网 时间:2024/05/21 09:27

site : http://xinsync.xju.edu.cn/index.php/archives/1321

Flash Codecs - AMF, AMF3, RTMP, FLV
Data Type Mappings

Flash/FlexJavaNumberany of the Java numeric typesint/uint *any of the non-floating point Java numeric typesStringStringBooleanBoolean/booleanArrayListObjectorg.red5.io.utils.ObjectMapDatejava.util.DateXMLorg.w3c.dom.DocumentByteArray *org.red5.io.amf3.ByteArrayIExternalizable *org.red5.io.amf3.IExternalizableArrayCollection *org.red5.compatibility.flex.messaging.io.ArrayCollectionObjectProxy *org.red5.compatibility.flex.messaging.io.ObjectProxyNullnullcustom class **custom class

Please note that Red5 performs automatic parameter conversion, e.g. if you pass a number to a method that takes a String as parameter, it is automatically converted.

JavaFlash/Flexany of the Java numeric typesNumberany of the non-floating point Java numeric typesint/uint *StringStringboolean/BooleanBooleanList/SetArrayMapArray or Object, depends on the Map contentsany objectsObjectorg.red5.io.utils.ObjectMapObjectjava.util.DateDateorg.w3c.dom.DocumentXMLorg.red5.io.amf3.ByteArrayByteArray *org.red5.io.amf3.IExternalizableIExternalizable *org.red5.compatibility.flex.messaging.io.ArrayCollectionArrayCollection *org.red5.compatibility.flex.messaging.io.ObjectProxyObjectProxy *nullNullcustom classcustom class **

* = Only available in Flash Player 9 or newer (AMF3)
** = You can map the class to serialize to in Red5 by adding “[RemoteClass(alias="package.to.RemoteClass")]” above your Flex class definition.