Thanks again for your great help
I changed from getNetStreamStats to getLiveStreamStats and works
When the livestreams is off line
the trace response is : NetConnection.Admin.CommandFailed - why ?
When the livestreams is online
the trace response is : NetConnection.Call.Success
how to get all those little details that I get when I make the call
via http ?
<?xml version="1.0" encoding="utf-8" ?>
<code>NetConnection.Call.Success</code>
<timestamp>12/11/2009 11.40.52</timestamp>
<name>_defaultRoot_:_defaultVHost_:::_1</name>
<time>12/11/2009 11.40.40</time>
<client>DCAggiZC</client>
<stream_id>DBAggiZC</stream_id>
<client_type>normal</client_type>
<publish_time>12/11/2009 11.40.40</publish_time>
</publisher>
</data>
</result>
I added textarea component and i'm edit the code in this mode:
......
function admin_callback_result(info:Object) {
// get the info object properties in this method.
// ex. trace(info.code); will trace if the call succeeded or no.
trace(info.code);
for (var prop in Object) {
destination.text=prop;
}
}
but I can not see anything
tank you
Hi,
With getLiveStreamStats command you are trying to query stats for a Livestream which is currently active. And hence when the livestream you are trying to derive stats for, is not active, the command will fail with NetConnection.Admin.CommandFailed.
To obtain all the details from the object received in admin_callback_result( ), you could use something like this :
for (prop in info.data) {
destination.text+=prop + ":" + info.data[prop]+"\n";
for (prop1 in info.data[prop]) {
destination.text+=prop1+":"+info.data[prop][prop1]+"\n";
}
}
Thanks
Mamata