[Red5] stats logging for vod content

Dan Rossi spam at electroteque.org
Fri Sep 29 09:42:11 EDT 2006


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("flashVer"), 
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20060929/7708e701/attachment.htm


More information about the Red5 mailing list