Package org.openmeetings.app.persistence.beans.recording

Examples of org.openmeetings.app.persistence.beans.recording.RecordingConversionJob


        }
        //log.debug("initJobs: "+recordingsNonConversionStarted.size());
       
        for (Recording recording : recordingsNonConversionStarted) {
         
          RecordingConversionJob recordingConversionJob = new RecordingConversionJob();
          recordingConversionJob.setRecording(recording);
          recordingConversionJob.setStarted(new Date());
          recordingConversionJob.setEndTimeInMilliSeconds(0L);
          recordingConversionJob.setImageNumber(0L);
          recordingConversionJob.setCurrentWhiteBoardAsXml("");
         
          RecordingConversionJobDaoImpl.getInstance().addRecordingConversionJob(recordingConversionJob);
         
        }
       
View Full Code Here


              outputFileNames.get("input"),
              outputFileNames.get("output"),
              660, 580, depth);
         
          //Add Count For next Round
          RecordingConversionJob recordingConversionJobUpdate = RecordingConversionJobDaoImpl.getInstance().
            getRecordingConversionJobsByRecordingConversionJobsId(recordingConversionJob.getRecordingConversionJobId());
       
          recordingConversionJobUpdate.setBatchProcessCounter(recordingConversionJob.getBatchProcessCounter()+1);
          RecordingConversionJobDaoImpl.getInstance().updateRecordingConversionJobs(recordingConversionJobUpdate);
         
        } else {
         
          log.debug("Batch Processing Done");
          RecordingConversionJob recordingConversionJobUpdate = RecordingConversionJobDaoImpl.getInstance().
            getRecordingConversionJobsByRecordingConversionJobsId(recordingConversionJob.getRecordingConversionJobId());
         
          recordingConversionJobUpdate.setEndPngConverted(new Date());
          recordingConversionJobUpdate.setStartedSWFConverted(new Date());
          RecordingConversionJobDaoImpl.getInstance().updateRecordingConversionJobs(recordingConversionJobUpdate);
         
        }
       
      }
View Full Code Here

      EntityManager session = PersistenceSessionUtil.getSession();
      EntityTransaction tx = session.getTransaction();
      tx.begin();
      Query query = session.createQuery(hql);
      query.setParameter("recordingConversionJobId", recordingConversionJobId);
      RecordingConversionJob recordingConversionJob = null;
      try {
        recordingConversionJob = (RecordingConversionJob) query.getSingleResult();
        } catch (NoResultException ex) {
        }
      tx.commit();
View Full Code Here

      EntityManager session = PersistenceSessionUtil.getSession();
      EntityTransaction tx = session.getTransaction();
      tx.begin();
      Query query = session.createQuery(hql);
      query.setParameter("recording_id", recording_id);
      RecordingConversionJob recordingConversionJob = null;
      try {
        recordingConversionJob = (RecordingConversionJob) query.getSingleResult();
        } catch (NoResultException ex) {
        }
      tx.commit();
View Full Code Here

          //Directly write to SWF
          GenerateSWF.getInstance().generateSwfByImages(images, output, 30);
         
         
        }
        RecordingConversionJob recordingConversionJobUpdate = RecordingConversionJobDaoImpl.getInstance().
          getRecordingConversionJobsByRecordingConversionJobsId(recordingConversionJob.getRecordingConversionJobId());
   
        recordingConversionJobUpdate.setEndSWFConverted(new Date());
        RecordingConversionJobDaoImpl.getInstance().updateRecordingConversionJobs(recordingConversionJobUpdate);
       
      }
     
    } catch (Exception err) {
View Full Code Here

        log.debug("Write File To: " + firstImageName);

    FileWriter fileWriter = new FileWriter(firstImageName);
    svgGenerator.stream(fileWriter, useCSS);
   
    RecordingConversionJob recordingConversionJobToStore = RecordingConversionJobDaoImpl.getInstance().getRecordingConversionJobsByRecordingConversionJobsId(
        recordingConversionJob.getRecordingConversionJobId());

    recordingConversionJobToStore.setEndTimeInMilliSeconds(recordingConversionJob.getEndTimeInMilliSeconds() + numberOfMilliseconds);
    recordingConversionJobToStore.setCurrentWhiteBoardAsXml(roomRecordingInXML);
    recordingConversionJobToStore.setImageNumber(recordingConversionJob.getImageNumber()+1);
   
    log.debug("updateRecordingConversionJobs: generateFileAsSVG");
    RecordingConversionJobDaoImpl.getInstance().updateRecordingConversionJobs(recordingConversionJobToStore);
      
  }
View Full Code Here

        }
        //log.debug("initJobs: "+recordingsNonConversionStarted.size());
       
        for (Recording recording : recordingsNonConversionStarted) {
         
          RecordingConversionJob recordingConversionJob = new RecordingConversionJob();
          recordingConversionJob.setRecording(recording);
          recordingConversionJob.setStarted(new Date());
          recordingConversionJob.setEndTimeInMilliSeconds(0L);
          recordingConversionJob.setImageNumber(0L);
          recordingConversionJob.setCurrentWhiteBoardAsXml("");
         
          RecordingConversionJobDaoImpl.getInstance().addRecordingConversionJob(recordingConversionJob);
         
        }
       
View Full Code Here

              outputFileNames.get("input"),
              outputFileNames.get("output"),
              defaultWidth, 580, depth);
         
          //Add Count For next Round
          RecordingConversionJob recordingConversionJobUpdate = RecordingConversionJobDaoImpl.getInstance().
            getRecordingConversionJobsByRecordingConversionJobsId(recordingConversionJob.getRecordingConversionJobId());
       
          recordingConversionJobUpdate.setBatchProcessCounter(recordingConversionJob.getBatchProcessCounter()+1);
          RecordingConversionJobDaoImpl.getInstance().updateRecordingConversionJobs(recordingConversionJobUpdate);
         
        } else {
         
          log.debug("Batch Processing Done");
          RecordingConversionJob recordingConversionJobUpdate = RecordingConversionJobDaoImpl.getInstance().
            getRecordingConversionJobsByRecordingConversionJobsId(recordingConversionJob.getRecordingConversionJobId());
         
          recordingConversionJobUpdate.setEndPngConverted(new Date());
          recordingConversionJobUpdate.setStartedSWFConverted(new Date());
          RecordingConversionJobDaoImpl.getInstance().updateRecordingConversionJobs(recordingConversionJobUpdate);
         
        }
       
      }
View Full Code Here

       
        String pngOutputFolderWildCard = pngOutputFolder + File.separatorChar + "%d.png";
       
        GenerateSWF.getInstance().generateSWFByFFMpeg(pngOutputFolderWildCard, output, 30,defaultWidth,defaultHeight);
       
        RecordingConversionJob recordingConversionJobUpdate = RecordingConversionJobDaoImpl.getInstance().
          getRecordingConversionJobsByRecordingConversionJobsId(recordingConversionJob.getRecordingConversionJobId());
   
        recordingConversionJobUpdate.setEndSWFConverted(new Date());
        RecordingConversionJobDaoImpl.getInstance().updateRecordingConversionJobs(recordingConversionJobUpdate);
       
      }
     
    } catch (Exception err) {
View Full Code Here

        log.debug("Write File To: " + firstImageName);

    FileWriter fileWriter = new FileWriter(firstImageName);
    svgGenerator.stream(fileWriter, useCSS);
   
    RecordingConversionJob recordingConversionJobToStore = RecordingConversionJobDaoImpl.getInstance().getRecordingConversionJobsByRecordingConversionJobsId(
        recordingConversionJob.getRecordingConversionJobId());

    recordingConversionJobToStore.setEndTimeInMilliSeconds(recordingConversionJob.getEndTimeInMilliSeconds() + numberOfMilliseconds);
    recordingConversionJobToStore.setCurrentWhiteBoardAsXml(roomRecordingInXML);
    recordingConversionJobToStore.setImageNumber(recordingConversionJob.getImageNumber()+1);
   
    log.debug("updateRecordingConversionJobs: generateFileAsSVG: "+recordingConversionJobToStore.getEnded());
    RecordingConversionJobDaoImpl.getInstance().updateRecordingConversionJobs(recordingConversionJobToStore);
      
  }
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.recording.RecordingConversionJob

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.