Package org.openmeetings.app.persistence.beans.flvrecord

Examples of org.openmeetings.app.persistence.beans.flvrecord.FlvRecording


  }
 
  public void startConversion(Long flvRecordingId) {
    try {

      FlvRecording flvRecording = this.flvRecordingDaoImpl
          .getFlvRecordingById(flvRecordingId);
      log.debug("flvRecording " + flvRecording.getFlvRecordingId());

      // Strip Audio out of all Audio-FLVs
      this.stripAudioFromFLVs(flvRecording);

      // Add empty pieces at the beginning and end of the wav
View Full Code Here


       
        this.clientListManager.updateClientByStreamId(currentClient.getStreamid(), currentClient);
       
        log.debug("this.flvRecorderConverterTask ",this.flvRecorderConverterTask);
       
        FlvRecording flvRecording = this.flvRecordingDaoImpl.getFlvRecordingById(flvRecordingId);
     
        if (flvRecording.getIsInterview() == null || !flvRecording.getIsInterview()) {
         
          this.flvRecorderConverterTask.startConversionThread(flvRecordingId);
         
        } else {
         
View Full Code Here

 
  public void addRecordingByStreamId(IConnection conn, String streamId,
      RoomClient rcl, Long flvRecordingId) {
    try {
     
      FlvRecording flvRecording = this.flvRecordingDaoImpl.getFlvRecordingById(flvRecordingId);
     
      Date now = new Date();
     
      //If its the recording client we need another type of Meta Data
      if (rcl.getIsScreenClient()) {
     
        if (rcl.getFlvRecordingId() != null && rcl.getScreenPublishStarted() != null && rcl.getScreenPublishStarted()) {
         
          String streamName_Screen = generateFileName(flvRecordingId, rcl.getStreamPublishName().toString());
         
          log.debug("##############  ADD SCREEN OF SHARER :: "+rcl.getStreamPublishName());
         
          Long flvRecordingMetaDataId = this.flvRecordingMetaDataDaoImpl.addFlvRecordingMetaData(flvRecordingId,
                              rcl.getFirstname()+" "+rcl.getLastname(), now,
                                    false, false, true, streamName_Screen, rcl.getInterviewPodId());
         
          //Start FLV Recording
          recordShow(conn, rcl.getStreamPublishName(), streamName_Screen, flvRecordingMetaDataId, true, flvRecording.getIsInterview());
         
          //Add Meta Data
          rcl.setFlvRecordingMetaDataId(flvRecordingMetaDataId);
         
          this.clientListManager.updateClientByStreamId(rcl.getStreamid(), rcl);
       
        }
       
      } else if
      //if the user does publish av, a, v
      //But we only record av or a, video only is not interesting
      (rcl.getAvsettings().equals("av") ||
          rcl.getAvsettings().equals("a") ||
          rcl.getAvsettings().equals("v")){ 
       
        String streamName = generateFileName(flvRecordingId, String.valueOf(rcl.getBroadCastID()).toString());
       
        //Add Meta Data
        boolean isAudioOnly = false;
        if (rcl.getAvsettings().equals("a")){
          isAudioOnly = true;
        }
        boolean isVideoOnly = false;
        if (rcl.getAvsettings().equals("v")){
          isVideoOnly = true;
        }
       
        Long flvRecordingMetaDataId = this.flvRecordingMetaDataDaoImpl.addFlvRecordingMetaData(flvRecordingId,
                          rcl.getFirstname()+" "+rcl.getLastname(), now,
                                isAudioOnly, isVideoOnly, false, streamName, rcl.getInterviewPodId());
       
        //Start FLV recording
        recordShow(conn, String.valueOf(rcl.getBroadCastID()).toString(), streamName, flvRecordingMetaDataId, false, flvRecording.getIsInterview());
       
        rcl.setFlvRecordingMetaDataId(flvRecordingMetaDataId);
       
        this.clientListManager.updateClientByStreamId(rcl.getStreamid(), rcl);
       
View Full Code Here

    try {
      Long users_id = Sessionmanagement.getInstance().checkSession(SID);
          Long user_level = Usermanagement.getInstance().getUserLevelByID(users_id)
          if (AuthLevelmanagement.getInstance().checkUserLevel(user_level)){ 
           
            FlvRecording flvRecording = this.flvRecordingDaoImpl.getFlvRecordingById(flvRecordingId);
           
            flvRecording.setFlvRecordingMetaData(this.flvRecordingMetaDataDaoImpl.getFlvRecordingMetaDataByRecording(flvRecordingId));
           
            if (flvRecording.getInsertedBy() != null) {
              flvRecording.setCreator(this.usersDaoImpl.getUser(flvRecording.getInsertedBy()));
            }
           
            if (flvRecording.getRoom_id() != null) {
              flvRecording.setRoom(this.roommanagement.getRoomById(flvRecording.getRoom_id()));
            }
           
            flvRecording.setFlvRecordingLog(this.flvRecordingLogDaoImpl.getFLVRecordingLogByRecordingId(flvRecordingId));
           
            return flvRecording;
           
          }
    } catch (Exception err){
View Full Code Here

  public Long addFlvRecording(String fileHash, String fileName, Long fileSize, Long user_id,
      Long room_id, Date recordStart, Date recordEnd, Long ownerId, String comment,
      String recorderStreamId, Integer width, Integer height, Boolean isInterview) {
    try {
     
      FlvRecording flvRecording = new FlvRecording();
     
      flvRecording.setDeleted("false");
      flvRecording.setFileHash(fileHash);
      flvRecording.setFileName(fileName);
      flvRecording.setFileSize(fileSize);
      flvRecording.setInserted(new Date());
      flvRecording.setInsertedBy(user_id);
      flvRecording.setIsFolder(false);
      flvRecording.setIsImage(false);
      flvRecording.setIsPresentation(false);
      flvRecording.setIsRecording(true);
      flvRecording.setComment(comment);
      flvRecording.setIsInterview(isInterview);
     
      flvRecording.setRoom_id(room_id);
      flvRecording.setRecordStart(recordStart);
      flvRecording.setRecordEnd(recordEnd);
     
      flvRecording.setWidth(width);
      flvRecording.setHeight(height);
     
      flvRecording.setOwnerId(ownerId);
     
      flvRecording = em.merge(flvRecording);
      Long flvRecordingId = flvRecording.getFlvRecordingId();
     
      return flvRecordingId;
    } catch (Exception ex2) {
      log.error("[addFlvRecording]: ",ex2);
    }
View Full Code Here

  }
 
  public void updateFlvRecordingOrganization(Long flvRecordingId, Long organization_id) {
    try {
     
      FlvRecording fId = this.getFlvRecordingById(flvRecordingId);
     
      fId.setOrganization_id(organization_id);
     
      if (fId.getFlvRecordingId() == 0) {
        em.persist(fId);
        } else {
          if (!em.contains(fId)) {
            em.merge(fId);
          }
View Full Code Here

  }
 
  public void updateFlvRecordingEndTime(Long flvRecordingId, Date recordEnd, Long organization_id) {
    try {
     
      FlvRecording fId = this.getFlvRecordingById(flvRecordingId);
     
      fId.setProgressPostProcessing(0);
      fId.setRecordEnd(recordEnd);
      fId.setOrganization_id(organization_id);
     
      if (fId.getFlvRecordingId() == 0) {
        em.persist(fId);
        } else {
          if (!em.contains(fId)) {
            em.merge(fId);
          }
View Full Code Here

  }
 
  public void updateFlvRecordingProgress(Long flvRecordingId, Integer progress) {
    try {
     
      FlvRecording fId = this.getFlvRecordingById(flvRecordingId);
     
      fId.setProgressPostProcessing(progress);
     
      if (fId.getFlvRecordingId() == 0) {
        em.persist(fId);
        } else {
          if (!em.contains(fId)) {
            em.merge(fId);
          }
View Full Code Here

   * @param fileExplorerItemId
   */
  public boolean deleteFlvRecording(Long flvRecordingId) {
    try {
     
      FlvRecording fId = this.getFlvRecordingById(flvRecordingId);
     
      if (fId == null) {
        return false;
      }
     
      fId.setDeleted("true");
      fId.setUpdated(new Date());
     
      if (fId.getFlvRecordingId() == 0) {
        em.persist(fId);
        } else {
          if (!em.contains(fId)) {
            em.merge(fId);
          }
View Full Code Here

   * @param fileName
   */
  public void updateFileOrFolderName(Long flvRecordingId, String fileName) {
    try {
     
      FlvRecording fId = this.getFlvRecordingById(flvRecordingId);
     
      fId.setFileName(fileName);
      fId.setUpdated(new Date());
     
      if (fId.getFlvRecordingId() == 0) {
        em.persist(fId);
        } else {
          if (!em.contains(fId)) {
            em.merge(fId);
          }
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.flvrecord.FlvRecording

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.