Package org.red5.io.flv.impl

Examples of org.red5.io.flv.impl.Tag


  }
 
  public WhiteboardSyncLockObject startNewSyncprocess(){
    try {
     
      IConnection current = Red5.getConnectionLocal();
      String streamid = current.getClient().getId();
      RoomClient currentClient = this.clientListManager.getClientByStreamId(streamid);
      Long room_id = currentClient.getRoom_id();
     
      WhiteboardSyncLockObject wSyncLockObject = new WhiteboardSyncLockObject();
      wSyncLockObject.setAddtime(new Date());
      wSyncLockObject.setPublicSID(currentClient.getPublicSID());
      wSyncLockObject.setInitialLoaded(true);
     
      Map<String,WhiteboardSyncLockObject> syncListRoom = this.whiteBoardObjectListManager.getWhiteBoardSyncListByRoomid(room_id);
     

      wSyncLockObject.setCurrentLoadingItem(true);
      wSyncLockObject.setStarttime(new Date());
   
      syncListRoom.put(currentClient.getPublicSID(), wSyncLockObject);
      this.whiteBoardObjectListManager.setWhiteBoardSyncListByRoomid(room_id, syncListRoom);
     
      Collection<Set<IConnection>> conCollection = current.getScope().getConnections();
      for (Set<IConnection> conset : conCollection) {
        for (IConnection conn : conset) {
          if (conn != null) {
            if (conn instanceof IServiceCapableConnection) {
              RoomClient rcl = this.clientListManager.getClientByStreamId(conn.getClient().getId());
View Full Code Here


  }
 
  public void sendCompletedSyncEvent() {
    try {
     
      IConnection current = Red5.getConnectionLocal();
      String streamid = current.getClient().getId();
      RoomClient currentClient = this.clientListManager.getClientByStreamId(streamid);
      Long room_id = currentClient.getRoom_id();
     
      Map<String,WhiteboardSyncLockObject> syncListRoom = this.whiteBoardObjectListManager.getWhiteBoardSyncListByRoomid(room_id);

      WhiteboardSyncLockObject wSyncLockObject = syncListRoom.get(currentClient.getPublicSID());
     
      if (wSyncLockObject == null) {
        log.error("WhiteboardSyncLockObject not found for this Client "+syncListRoom);
        return;
      } else if (!wSyncLockObject.isCurrentLoadingItem()) {
        log.warn("WhiteboardSyncLockObject was not started yet "+syncListRoom);
        return;
      } else {
        syncListRoom.remove(currentClient.getPublicSID());
        this.whiteBoardObjectListManager.setWhiteBoardSyncListByRoomid(room_id, syncListRoom);
       
        int numberOfInitial = this.getNumberOfInitialLoaders(syncListRoom);
       
        if (numberOfInitial==0){
          int returnVal = 0;
          Collection<Set<IConnection>> conCollection = current.getScope().getConnections();
          for (Set<IConnection> conset : conCollection) {
            for (IConnection conn : conset) {
              if (conn != null) {
                if (conn instanceof IServiceCapableConnection) {
                  RoomClient rcl = this.clientListManager.getClientByStreamId(conn.getClient().getId());
View Full Code Here

  public void startNewObjectSyncProcess(String object_id, boolean isStarting){
    try {
     
      log.debug("startNewObjectSyncprocess: "+object_id);
     
      IConnection current = Red5.getConnectionLocal();
      String streamid = current.getClient().getId();
      RoomClient currentClient = this.clientListManager.getClientByStreamId(streamid);
      Long room_id = currentClient.getRoom_id();
     
      WhiteboardSyncLockObject wSyncLockObject = new WhiteboardSyncLockObject();
      wSyncLockObject.setAddtime(new Date());
      wSyncLockObject.setPublicSID(currentClient.getPublicSID());
      wSyncLockObject.setStarttime(new Date());
     
      Map<String,WhiteboardSyncLockObject> syncListImage = this.whiteBoardObjectListManager.getWhiteBoardObjectSyncListByRoomAndObjectId(room_id,object_id);
      syncListImage.put(currentClient.getPublicSID(), wSyncLockObject);
      this.whiteBoardObjectListManager.setWhiteBoardImagesSyncListByRoomAndObjectId(room_id, object_id, syncListImage);
     
      //Do only send the Token to show the Loading Splash for the initial-Request that starts the loading
      if (isStarting) {
        Collection<Set<IConnection>> conCollection = current.getScope().getConnections();
        for (Set<IConnection> conset : conCollection) {
          for (IConnection conn : conset) {
            if (conn != null) {
              if (conn instanceof IServiceCapableConnection) {
                RoomClient rcl = this.clientListManager.getClientByStreamId(conn.getClient().getId());
View Full Code Here

  public int sendCompletedObjectSyncEvent(String object_id) {
    try {
     
      log.debug("sendCompletedObjectSyncEvent: "+object_id);
     
      IConnection current = Red5.getConnectionLocal();
      String streamid = current.getClient().getId();
      RoomClient currentClient = this.clientListManager.getClientByStreamId(streamid);
      Long room_id = currentClient.getRoom_id();
     
      Map<String,WhiteboardSyncLockObject> syncListImage = this.whiteBoardObjectListManager.getWhiteBoardObjectSyncListByRoomAndObjectId(room_id,object_id);

      log.debug("sendCompletedObjectSyncEvent syncListImage: "+syncListImage);
     
      WhiteboardSyncLockObject wSyncLockObject = syncListImage.get(currentClient.getPublicSID());
     
      if (wSyncLockObject == null) {
        log.error("WhiteboardSyncLockObject not found for this Client "+currentClient.getPublicSID());
        log.error("WhiteboardSyncLockObject not found for this syncListImage "+syncListImage);
        return -2;
       
      } else {
       
        log.debug("sendCompletedImagesSyncEvent remove: "+currentClient.getPublicSID());
       
        syncListImage.remove(currentClient.getPublicSID());
        this.whiteBoardObjectListManager.setWhiteBoardImagesSyncListByRoomAndObjectId(room_id, object_id, syncListImage);
       
        int numberOfInitial = this.whiteBoardObjectListManager.getWhiteBoardObjectSyncListByRoomid(room_id).size();
       
        log.debug("sendCompletedImagesSyncEvent numberOfInitial: "+numberOfInitial);
       
        if (numberOfInitial==0){
          int returnVal = 0;
          Collection<Set<IConnection>> conCollection = current.getScope().getConnections();
          for (Set<IConnection> conset : conCollection) {
            for (IConnection conn : conset) {
              if (conn != null) {
                if (conn instanceof IServiceCapableConnection) {
                  RoomClient rcl = this.clientListManager.getClientByStreamId(conn.getClient().getId());
View Full Code Here

  public String createPoll(String pollQuestion,int pollTypeId){
    String returnValue="";
    try {
      log.debug("createPoll: "+pollQuestion);
     
      IConnection currentcon = Red5.getConnectionLocal();

     
      HashMap<String,RoomClient> ClientList = this.clientListManager.getClientList();
      RoomClient rc = ClientList.get(currentcon.getClient().getId());
     
      Long uniqueRoomPollName = rc.getRoom_id();
     
      log.debug("rc: "+rc.getStreamid()+" "+rc.getUsername()+" "+rc.getIsMod());
     
View Full Code Here

  }
 
  public int vote(int pollvalue,int pollTypeId){
    int returnVal=0;
    try {
      IConnection current = Red5.getConnectionLocal();
      RoomClient rc = this.clientListManager.getClientByStreamId(current.getClient().getId());
     
      if (rc==null){
        log.error("RoomClient IS NULL for ClientID: "+current.getClient().getId());
        return -1;
      }
      //get Poll
      RoomPoll roomP = pollList.get(rc.getRoom_id());
     
View Full Code Here

    return false;
  }
 
  public RoomPoll getVotes(){
    try {
      IConnection current = Red5.getConnectionLocal();
      RoomClient rc =this.clientListManager.getClientByStreamId(current.getClient().getId());
     
      //get Poll
      return pollList.get(rc.getRoom_id())
    } catch (Exception err) {
      log.error("[getVotes]",err);
View Full Code Here

    return null;
  }
 
  public RoomPoll getPoll(){
    try {
      IConnection current = Red5.getConnectionLocal();
      RoomClient rc = this.clientListManager.getClientByStreamId(current.getClient().getId());
     
      //get Poll
      return pollList.get(rc.getRoom_id());
    } catch (Exception err) {
      log.error("[getPoll]",err);
View Full Code Here

    return null;
  }
 
  public int checkHasVoted(){
    try {
      IConnection current = Red5.getConnectionLocal();
      RoomClient rc = this.clientListManager.getClientByStreamId(current.getClient().getId());
     
      //get Poll
      RoomPoll roomP = pollList.get(rc.getRoom_id());
     
      if (roomP!=null){
View Full Code Here

 
 
  public Map getAppointMentAndTimeZones(Long room_id){
    log.debug("getAppointMentDataForRoom");
   
    IConnection current = Red5.getConnectionLocal();
    String streamid = current.getClient().getId();
   
    log.debug("getCurrentRoomClient -2- "+streamid);
   
    RoomClient currentClient = this.clientListManager.getClientByStreamId(streamid);
   
View Full Code Here

TOP

Related Classes of org.red5.io.flv.impl.Tag

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.