Php – I would like to download the Remote SharedObject from an FMS server through RTMP

amfflashPHPrtmpshared-objects

I'd like to contact an FMS server through a script and download the persistent Remote SharedObject.

The Flash program connects to the FMS server, opens a NetConnection, makes a SharedObject.getRemote call. I'd like to access this info through PHP, Ruby, Perl, etc to work with in a script.

I understand this info is sent to the Flash player as an AMF object, over the RTMP protocol. Since it's RTMP and not HTTP, I can't use a SabreAMF client for instance, as it uses cURL, which does not support RTMP.

Anyone have any ideas about how to do this?

Best Answer

A SharedObject is essentially just a key/value collection. All you have to do is make the call through Flash, listen for the update event, iterate through all properties of the SharedObject and write them into an object of your own - a Dictionary or just Object type. You can then send this to your Sabre AMF Gateway as whatever type PHP uses for this.

Related Topic