Date d = new Date();
log.debug("SEND Buffer Full Message -2- Start ScreenSharing or Recording for all Clients "+(d.getTime() - serverSharingSessionBean.getSessionStarted().getTime()));
ScopeApplicationAdapter scopeApplicationAdapter = ScopeApplicationAdapter.getInstance();
if (scopeApplicationAdapter != null) {
scopeApplicationAdapter.sendScreenSharingMessage(serverSharingSessionBean);
}
if (serverSharingSessionBean.isSharing()) {
}
if (serverSharingSessionBean.isRecording()) {
//TODO: Add Scheduler to produce Frame capture
//For Testing Write all Images to a standard dir
//writeImagesToStandardDirectory(serverSharingSessionBean);
}
serverSharingSessionBean.setSendCompleteFlag(true);
} else {
/* #################################
* Send Screen to ODSP-Connections
*
*/
ServerSocketMinaProcess.sendMessageToSession(serverFrameBean);
/* #################################
* Send Screen to trigger HTTP-Connections
*
*/
ScopeApplicationAdapter scopeApplicationAdapter = ScopeApplicationAdapter.getInstance();
if (scopeApplicationAdapter != null) {
ScopeApplicationAdapter.getInstance().sendScreenSharingFrame(serverFrameBean);
}
}