Package org.bigbluebutton.deskshare.server.events

Examples of org.bigbluebutton.deskshare.server.events.CaptureUpdateBlockEvent


        System.out.println("Got CaptureStartBlockEvent");
        CaptureStartBlockEvent event = (CaptureStartBlockEvent) message;
        sessionManager.createSession(event.getRoom(), event.getScreenDimension(), event.getBlockDimension(), event.getSequenceNum(), event.isUseSVC2());
      } else if (message instanceof CaptureUpdateBlockEvent) {
//        System.out.println("Got CaptureUpdateBlockEvent");
        CaptureUpdateBlockEvent event = (CaptureUpdateBlockEvent) message;
        sessionManager.updateBlock(event.getRoom(), event.getPosition(), event.getVideoData(), event.isKeyFrame(), event.getSequenceNum());
        if (sessionManager.isSharingStopped(event.getRoom())) {
          // The flash client told us to stop sharing. Force stopping by closing connection from applet.
          // We're changing how to tell the applet to stop sharing as AS ExternalInterface to JS to Applet calls
          // generates a popup dialog that users may or may not see causing the browser to hang. (ralam aug 24, 2014)
          log.info("Sharing has stopped for meeting [" + event.getRoom() + "]. Closing connection.");
          session.close(true);
        }
      } else if (message instanceof CaptureEndBlockEvent) {
        CaptureEndBlockEvent event = (CaptureEndBlockEvent) message;
        sessionManager.removeSession(event.getRoom(), event.getSequenceNum());
      } else if (message instanceof MouseLocationEvent) {
        MouseLocationEvent event = (MouseLocationEvent) message;
        sessionManager.updateMouseLocation(event.getRoom(), event.getLoc(), event.getSequenceNum());
      }
    }
View Full Code Here


             
            boolean isKeyFrame = (in.get() == 1) ? true : false;
            int length = in.getInt();
            byte[] data = new byte[length];
            in.get(data, 0, length);     
            CaptureUpdateBlockEvent event = new CaptureUpdateBlockEvent(room, position, data, isKeyFrame, seqNum);
            out.write(event);       
        }
         
        /** Swallow end frame **/
        in.get(new byte[END_FRAME.length]);           
View Full Code Here

TOP

Related Classes of org.bigbluebutton.deskshare.server.events.CaptureUpdateBlockEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.