|
hi, finally got the compiling working again, we are
nearly complete on our vod project however we'd like some simple
logging. Is there a way at all to have data logged for each individual
application instance and the streams within them or at least on the
entire application which we can log what instance or "room" it came
from. Here is the data i have tried to get at the moment, but alot
return null and null excpetions. We just need simple stuff like remote
ip, video path, length, filesize, bits streamed etc. I had to code
stuff in flex to send client information as it doesnt seem to be able
to do this ? as u can see the ones within comments cause the exceptions. public void streamSubscriberClose(ISubscriberStream stream) { IConnection conn = Red5.getConnectionLocal(); // StreamDataFormatter formatter = new StreamDataFormatter(); DateFormat date = new SimpleDateFormat("yyyy-MM-dd"); DateFormat time = new SimpleDateFormat("HH:MM:SS"); //conn.getConnectParams().get(key) Object[] data = "" conn.getConnectParams().get("swfUrl"), conn.getConnectParams().get("pageUrl"), stream.getStreamFlow().getClientTimeBuffer(), stream.getStreamFlow().getTotalStreamTime(), conn.getPath(), // conn.getScope().getName(), stream.getBandwidthConfigure().getOverallBandwidth(), //stream.getBandwidthConfigure().getOverallBandwidth(), conn.getType(), conn.getConnectParams().get("tcUrl"), date.format(new Date()), time.format(new Date()), conn.getSessionId(),conn.getRemoteAddress(), conn.getRemotePort(), conn.getHost(), conn.getClient().getCreationTime(), conn.getLastPingTime(), conn.getWrittenBytes(), stream.getStreamFlow().getTotalBytesTransfered(), conn.getClient().getAttribute("os"), conn.getClient().getAttribute("manufacturer"), conn.getClient().getAttribute("type"), conn.getClient().getAttribute("lang"), conn.getClient().getAttribute("res")}; logStats.info(dumpLogData(data)); } let me know cheers. |
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
