Hi, I just recently dropped Red5 server inorder to develop on much more production level platform… Wowza. I am in the middle of converting some of server side code. So far I have found everything I needed, and more (that I plan on playing with later).
Mostly I am working with server side remote calls, and client custom methods. IE. IClient.call() methods.
I am stuck on serializing my custom objects from java to actionscript. It would appear that this functionality doesn’t exist. Simply put I was hoping to be able to take a custom java object like:
class MyCustom implements Serializable
public String field1;
And then pass an instance to IClient.call() method. Then on the actionscript side have an AS class:
public class MyCustomClass
public var field1:String;
Right now its choking because when i pass an instance of MyCustom to IClient.call(), it proceeds to create AMFData objects out of it by using:
static AMFData convertParams(Object params)
which takes MyCustom Object and makes it a String using the toString() method. So on the actionscript side the object comes out as a String instead of the ActionScript object MyCustomClass.
Without wowza source it is very difficult to see if there is a way to do this. I have a feeling this functionality is not implemented in wowza yet. This does work in Red5 btw. I was hoping there was even a method somewhere to take a custom object class and make a AMFDataObj out of it with the keys being field names, and values being the params. (Basically serializer) I will probably end up writing one on my own unless there is more standard way that wowza has to handle this.
Much appriciated for any ideas, help.