Red5 AMF3 Flex : Data Type Mappings

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

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

Flash/FlexJava
Numberany of the Java numeric types
int/uint *any of the non-floating point Java numeric types
StringString
BooleanBoolean/boolean
ArrayList
Objectorg.red5.io.utils.ObjectMap
Datejava.util.Date
XMLorg.w3c.dom.Document
ByteArray *org.red5.io.amf3.ByteArray
IExternalizable *org.red5.io.amf3.IExternalizable
ArrayCollection *org.red5.compatibility.flex.messaging.io.ArrayCollection
ObjectProxy *org.red5.compatibility.flex.messaging.io.ObjectProxy
Nullnull
custom 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/Flex
any of the Java numeric typesNumber
any of the non-floating point Java numeric typesint/uint *
StringString
boolean/BooleanBoolean
List/SetArray
MapArray or Object, depends on the Map contents
any objectsObject
org.red5.io.utils.ObjectMapObject
java.util.DateDate
org.w3c.dom.DocumentXML
org.red5.io.amf3.ByteArrayByteArray *
org.red5.io.amf3.IExternalizableIExternalizable *
org.red5.compatibility.flex.messaging.io.ArrayCollectionArrayCollection *
org.red5.compatibility.flex.messaging.io.ObjectProxyObjectProxy *
nullNull
custom 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值