screenSharingNewFrame.setH(serverFrameBean.getHeight());
screenSharingNewFrame.setW(serverFrameBean.getWidth());
String publicSID = serverFrameBean.getPublicSID();
IScope globalScope = getContext().getGlobalScope();
IScope webAppKeyScope = globalScope.getScope(ScopeApplicationAdapter.webAppRootKey);
//log.debug("webAppKeyScope "+webAppKeyScope);
//Get Room Id to send it to the correct Scope
RoomClient currentClient = this.clientListManager.getClientByPublicSID(publicSID);
if (currentClient == null) {
return;
//throw new Exception("Could not Find RoomClient on List "+publicSID);
}
//default Scope Name
String scopeName = "hibernate";
if (currentClient.getRoom_id() != null) {
scopeName = currentClient.getRoom_id().toString();
}
IScope scopeHibernate = webAppKeyScope.getScope(scopeName);
//log.debug("scopeHibernate "+scopeHibernate);
if (scopeHibernate!=null){
//Notify the clients of the same scope (room) with user_id