Hi firstly, im trying to send a sharedobject to the server to notify that the broadcaster app im building is in preview mode publishing, this will allow some standalone clients to preview a live stream before it goes live. Im having some trouble sending it to the server which then in streamPublishStart i can first check if a sharedobject previewing setting has been set before notifying the clients to switch to the live stream. Here is what i have on the client

SharedObject.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;
    remoteSO = SharedObject.getRemote("broadcaster",nc.uri,false);
    remoteSO.addEventListener(NetStatusEvent.NET_STATUS, netStatus);
    //remoteSO.addEventListener(SecurityErrorEvent.SECURITY_ERROR, netSecurityError);
    //remoteSO.addEventListener(IOErrorEvent.IO_ERROR, netIOError);
    remoteSO.addEventListener(AsyncErrorEvent.ASYNC_ERROR, netAyncError);   
    remoteSO.connect(nc);


then i call

remoteSO.data.previewing = true;
remoteSO.send();

on the server end im implementing ISharedObjectListener with a method

public void onSharedObjectUpdate(ISharedObject so, String key, Object value)
    {
        log.info("updated");
    }


unfortunately i dont get any communication in the logs on the server end, and nothing in the netstatus, and maybe its in the distributed package but the sharedobject demo source is missing so i dont know.

Talking of logs, this may be a spring/log4j question, however it seems i have not setup my logs for the application properly,

the properties for one is like so

log4j.rootLogger=DEBUG, CAMS
log4j.appender.CAMS=org.apache.log4j.DailyRollingFileAppender
log4j.appender.CAMS.File=cam.log
log4j.appender.CAMS.DatePattern='.'yyyy-MM-dd-HH
log4j.appender.CAMS.Threshold=INFO
log4j.appender.CAMS.layout=org.apache.log4j.PatternLayout
log4j.appender.CAMS.layout.ConversionPattern=[%p] %r %t:( %c{1}.%M ) %m %n

log4j.logger.org.red5.server.net.rtmp=INFO
log4j.logger.org.red5.server.net.rtmp.RTMPConnection=INFO

and the other

log4j.rootLogger=DEBUG, VOD
log4j.appender.VOD=org.apache.log4j.DailyRollingFileAppender
log4j.appender.VOD.File=paysiteVOD.log
log4j.appender.VOD.DatePattern='.'yyyy-MM-dd-HH
log4j.appender.VOD.Threshold=INFO
log4j.appender.VOD.layout=org.apache.log4j.PatternLayout
log4j.appender.VOD.layout.ConversionPattern=[%p] %r %t:( %c{1}.%M ) %m %n

log4j.logger.org.red5.server.net.rtmp=INFO
log4j.logger.org.red5.server.net.rtmp.RTMPConnection=INFO

However it seems all logging shows up on the last log4j properties file loaded which is paysiteVOD.log, so all activity on the other application which is supposed to goto cam.log is showing up in paysiteVOD.log etc, is there something ive done wrong here ?

sorry for the long email again.

dan
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to