Package org.red5.codec

Examples of org.red5.codec.IVideoStreamCodec


    ScreenShareRTMPT.instance.vScreenIconDown.addMouseListener(heightMouseListener);
    ScreenShareRTMPT.instance.vScreenIconDown.addMouseMotionListener(heightMouseListener);
    ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.vScreenIconDown);


    ScreenShareRTMPT.instance.virtualScreen = new BlankArea(new Color(255,255,255,100));
    ScreenShareRTMPT.instance.virtualScreen.setOpaque(true);
    ScreenShareRTMPT.instance.virtualScreen.setHorizontalAlignment(SwingConstants.LEFT);
    ScreenShareRTMPT.instance.virtualScreen.setVerticalAlignment(SwingConstants.TOP);
    ScreenShareRTMPT.instance.virtualScreen.setText(VirtualScreenBean.screenWidthMax+":"+VirtualScreenBean.screenHeightMax);
    ScreenShareRTMPT.instance.virtualScreen.setBounds(30, 170, VirtualScreenBean.vScreenWidth, VirtualScreenBean.vScreenHeight);
View Full Code Here


                        stopButton.setBounds(290, 34, 200, 32);
                        stopButton.setEnabled(false);
                        t.add(stopButton);

                        //add the small screen thumb to the JFrame
                        new VirtualScreen();
                       
                        //*****
                        //Text Recording
                        textAreaHeaderRecording = new JLabel();
                       
View Full Code Here

      stopButton.setBounds(290, 34, 200, 32);
      stopButton.setEnabled(false);
      t.add(stopButton);

      //add the small screen thumb to the JFrame
      new VirtualScreen();
     
      //*****
      //Text Recording
      textAreaHeaderRecording = new JLabel();
     
View Full Code Here

  }

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

  }
 
  public String recordMeetingStream(String roomRecordingName, String comment, Boolean isInterview){
    try {
     
      IConnection current = Red5.getConnectionLocal();
      RoomClient currentClient = this.clientListManager.getClientByStreamId(current.getClient().getId());
      Long room_id = currentClient.getRoom_id();

      Date now = new Date();
     
      //Receive flvRecordingId
      Long flvRecordingId = this.flvRecordingDaoImpl.addFlvRecording("", roomRecordingName, null, currentClient.getUser_id(),
                  room_id, now, null, currentClient.getUser_id(), comment, currentClient.getStreamid(),
                  currentClient.getVWidth(),currentClient.getVHeight(), isInterview);
     
      //Update Client and set Flag
      currentClient.setIsRecording(true);
      currentClient.setFlvRecordingId(flvRecordingId);
      this.clientListManager.updateClientByStreamId(current.getClient().getId(), currentClient);
     
      //get all stream and start recording them
      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

    return new Long(-1);
  }
 
  public RoomClient checkLzRecording() {
    try {
      IConnection current = Red5.getConnectionLocal();
      String streamid = current.getClient().getId();
     
      log.debug("getCurrentRoomClient -2- "+streamid);
     
      RoomClient currentClient = this.clientListManager.getClientByStreamId(streamid);
     
View Full Code Here

    return users;
  }

  public RoomClient getCurrentRoomClient(String SID) {
    try {
      IConnection current = Red5.getConnectionLocal();
      String streamid = current.getClient().getId();

      log.debug("getCurrentRoomClient -1- " + SID);
      log.debug("getCurrentRoomClient -2- " + streamid);

      RoomClient currentClient = this.clientListManager
View Full Code Here

  public Users loginByRemember(String SID, String remoteHashId) {
    try {

      RoomClient currentClient;
      IConnection current = Red5.getConnectionLocal();

      Users o = null;

      currentClient = this.clientListManager.getClientByStreamId(current
          .getClient().getId());

      o = Usermanagement.getInstance().loginUserByRemoteHash(SID,
          remoteHashId);

      if (o == null)
        return null;

      if (o.getOrganisation_users() == null) {
        throw new Exception("Users has no organization assigned");
      }

      o.setSessionData(Sessionmanagement.getInstance().getSessionByHash(
          remoteHashId));

      if (currentClient.getUser_id() != null
          && currentClient.getUser_id() > 0) {

        currentClient.setFirstname(o.getFirstname());
        currentClient.setLastname(o.getLastname());

        Collection<Set<IConnection>> conCollection = current.getScope()
            .getConnections();
        for (Set<IConnection> conset : conCollection) {
          for (IConnection cons : conset) {
            if (cons != null) {
              RoomClient rcl = this.clientListManager
View Full Code Here

    try {
      log.warn("loginUser: " + SID + " " + usernameOrEmail);

      RoomClient currentClient;
      IConnection current = Red5.getConnectionLocal();

      Object o;

      if (withLdap) {
        log.debug("Ldap Login");

        currentClient = this.clientListManager
            .getClientByStreamId(current.getClient().getId());

        // LDAP Loggedin Users cannot use the permanent Login Flag

        LdapConfig ldapConfig = LdapConfigDaoImpl.getInstance()
            .getLdapConfigById(ldapConfigId);

        String ldapLogin = usernameOrEmail;
        if (ldapConfig.getAddDomainToUserName() != null
            && ldapConfig.getAddDomainToUserName()) {
          ldapLogin = usernameOrEmail + "@" + ldapConfig.getDomain();
        }

        o = LdapLoginManagement.getInstance().doLdapLogin(ldapLogin,
            Userpass, currentClient, SID,
            ldapConfig.getConfigFileName());
      } else {

        currentClient = this.clientListManager
            .getClientByStreamId(current.getClient().getId());

        o = Usermanagement.getInstance().loginUser(SID,
            usernameOrEmail, Userpass, currentClient,
            storePermanent);
      }

      if (o == null)
        return null;

      if (!o.getClass().isAssignableFrom(Users.class))
        return o;

      if (currentClient.getUser_id() != null
          && currentClient.getUser_id() > 0) {

        Users u = (Users) o;
        currentClient.setFirstname(u.getFirstname());
        currentClient.setLastname(u.getLastname());

        Collection<Set<IConnection>> conCollection = current.getScope()
            .getConnections();
        for (Set<IConnection> conset : conCollection) {
          for (IConnection cons : conset) {
            if (cons != null) {
              RoomClient rcl = this.clientListManager
View Full Code Here

      }

      Long loginReturn = this.loginUserByRemote(soapLogin
          .getSessionHash());

      IConnection current = Red5.getConnectionLocal();
      String streamId = current.getClient().getId();
      RoomClient currentClient = this.clientListManager
          .getClientByStreamId(streamId);

      if (currentClient.getUser_id() != null) {
        Sessionmanagement.getInstance().updateUser(SID,
View Full Code Here

TOP

Related Classes of org.red5.codec.IVideoStreamCodec

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.