can u pls tell me in detail.
im using AVpresence component in my application and
for amin.fla im using server side script in admin script as below,
//admin.fla
nc = new NetConnection();
nc.connect('rtmp://localhost:1111/abrar', 'abrar', 'abrar');
function doGetLiveStreamStats()
{
function onGetLiveStreamStats()
{
this.onResult = function(info)
{
if (info.code != 'NetConnection.Call.Success')
{
outputBox.text = 'Call failed: ' + info.description;
} else
{
outputBox.text = 'Info for ' + demo.text + ' returned:' + newline;
printObj(info,outputBox);
// PPMService(myname);
}
};
}
nc.call('getLiveStreamStats', new onGetLiveStreamStats(), demo.text, demo1.text);
}
function printObj(obj, destination, tabLevel)
{
tabLevel =0;
trace("destination = "+destination+"tab level = "+tabLevel+"obj ="+obj);
if (arguments.length < 2)
{
trace('ERROR! you need to supply a text object to output to');
return;
}
if (arguments.length < 3)
{
tabLevel = 0;
}
for (var prop in obj)
{
for (var i = 0; i < tabLevel; i++)
{
// insert requested # of tab characters
destination.text += '\t';
}
destination.text += prop + ' = ' + obj[prop] + newline;
if (typeof (obj[prop]) == 'object')
{
// recursively call printObj
printObj(obj[prop], destination, tabLevel + 1);
}
}
}
so in the above code im getting the output as
// parameters( application name : demo stream name = FCAVPresence.sam.av )
//output
Info for demo returned:
data = [object Object]
subscribers =
publisher = [object Object]
subscribers =
publisher = [object Object]
publish_time = Fri Jul 1 18:53:07 GMT+0530 2005
client = 56009760
timestamp = Fri Jul 1 18:53:39 GMT+0530 2005
code = NetConnection.Call.Success
level = status
how i will get the list of subsribers and publishers.
Thanks,
Regards,
Abrar.