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

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


  public Long addFlvRecordingMetaData(Long flvRecordingId, String freeTextUserName,
          Date recordStart, Boolean isAudioOnly, Boolean isVideoOnly,
          Boolean isScreenData, String streamName, Integer interiewPodId) {
    try {
     
      FlvRecordingMetaData flvRecordingMetaData = new FlvRecordingMetaData();
     
      flvRecordingMetaData.setDeleted("false");
     
      flvRecordingMetaData.setFlvRecording(flvRecordingDao.getFlvRecordingById(flvRecordingId));
      flvRecordingMetaData.setFreeTextUserName(freeTextUserName);
      flvRecordingMetaData.setInserted(new Date());
     
      flvRecordingMetaData.setRecordStart(recordStart);
     
      flvRecordingMetaData.setIsAudioOnly(isAudioOnly);
      flvRecordingMetaData.setIsVideoOnly(isVideoOnly);
      flvRecordingMetaData.setIsScreenData(isScreenData);
     
      flvRecordingMetaData.setStreamName(streamName);
     
      flvRecordingMetaData.setInteriewPodId(interiewPodId);
     
      flvRecordingMetaData = em.merge(flvRecordingMetaData);
      Long flvRecordingMetaDataId = flvRecordingMetaData.getFlvRecordingMetaDataId();
     
      return flvRecordingMetaDataId;
     
    } catch (Exception ex2) {
      log.error("[addFlvRecordingMetaData]: ",ex2);
View Full Code Here


  public Long updateFlvRecordingMetaDataEndDate(Long flvRecordingMetaDataId,
                    Date recordEnd) {
    try {
     
      FlvRecordingMetaData flvRecordingMetaData = this.getFlvRecordingMetaDataById(flvRecordingMetaDataId);
     
      flvRecordingMetaData.setRecordEnd(recordEnd);
     
      log.debug("updateFlvRecordingMetaDataEndDate :: Start Date :"+flvRecordingMetaData.getRecordStart());
      log.debug("updateFlvRecordingMetaDataEndDate :: End Date :"+flvRecordingMetaData.getRecordEnd());
     
      this.updateFlvRecordingMetaData(flvRecordingMetaData);
     
      return flvRecordingMetaDataId;
     
View Full Code Here

  public Long updateFlvRecordingMetaDataInitialGap(Long flvRecordingMetaDataId,
                    long initalGap) {
    try {
     
      FlvRecordingMetaData flvRecordingMetaData = this.getFlvRecordingMetaDataById(flvRecordingMetaDataId);
     
      flvRecordingMetaData.setInitialGapSeconds(Long.valueOf(initalGap).intValue());
     
      this.updateFlvRecordingMetaData(flvRecordingMetaData);
     
      return flvRecordingMetaDataId;
     
View Full Code Here

   
    super(streamName, scope, flvRecordingMetaDataId, isScreenData);
   
    this.flvRecordingMetaDataDao = flvRecordingMetaDataDao;
   
    FlvRecordingMetaData flvRecordingMetaData = flvRecordingMetaDataDao.
        getFlvRecordingMetaDataById(flvRecordingMetaDataId);
    flvRecordingMetaData.setStreamReaderThreadComplete(false);
    flvRecordingMetaDataDao.updateFlvRecordingMetaData(flvRecordingMetaData);
  }
View Full Code Here

      writer.close();

      // Add Delta in the beginning, this Delta is the Gap between the
      // device chosen and when the User hits the button in the Flash
      // Security Warning
      FlvRecordingMetaData flvRecordingMetaData = flvRecordingMetaDataDao
          .getFlvRecordingMetaDataById(this.flvRecordingMetaDataId);

      flvRecordingMetaData.setRecordStart(new Date(
          flvRecordingMetaData.getRecordStart().getTime()
              + this.initialDelta));
     
      flvRecordingMetaData.setStreamReaderThreadComplete(true);
     
      flvRecordingMetaDataDao
          .updateFlvRecordingMetaData(flvRecordingMetaData);
     
     
View Full Code Here

   
    this.flvRecordingMetaDeltaDao = flvRecordingMetaDeltaDao;
    this.flvRecordingMetaDataDao = flvRecordingMetaDataDao;
    this.isInterview  = isInterview;
   
    FlvRecordingMetaData flvRecordingMetaData = flvRecordingMetaDataDao.
                getFlvRecordingMetaDataById(flvRecordingMetaDataId);
    flvRecordingMetaData.setStreamReaderThreadComplete(false);
    flvRecordingMetaDataDao.updateFlvRecordingMetaData(flvRecordingMetaData);
   
  }
View Full Code Here

      flvRecordingMetaDeltaDao
          .addFlvRecordingMetaDelta(flvRecordingMetaDelta);
     
      //Write the complete Bit to the meta data, the converter task will wait for this bit!
      FlvRecordingMetaData flvRecordingMetaData = flvRecordingMetaDataDao.getFlvRecordingMetaDataById(flvRecordingMetaDataId);
      flvRecordingMetaData.setStreamReaderThreadComplete(true);
      flvRecordingMetaDataDao.updateFlvRecordingMetaData(flvRecordingMetaData);

    } catch (Exception err) {
      log.error("[closeStream]", err);
    }
View Full Code Here

                      .element("recordStart").getText()));
              Date updated = CalendarPatterns
                  .parseImportDate(unformatString(flvrecordingmetadataObj
                      .element("updated").getText()));

              FlvRecordingMetaData flvrecordingmetadata = new FlvRecordingMetaData();
              flvrecordingmetadata
                  .setFreeTextUserName(freeTextUserName);
              flvrecordingmetadata
                  .setFullWavAudioData(fullWavAudioData);
              flvrecordingmetadata.setStreamName(streamName);
              flvrecordingmetadata.setWavAudioData(wavAudioData);
              flvrecordingmetadata
                  .setInitialGapSeconds(initialGapSeconds);
              flvrecordingmetadata.setInsertedBy(insertedBy1);
              flvrecordingmetadata
                  .setInteriewPodId(interiewPodId);
              flvrecordingmetadata.setAudioIsValid(audioIsValid);
              flvrecordingmetadata.setInserted(inserted1);
              flvrecordingmetadata.setIsAudioOnly(isAudioOnly);
              flvrecordingmetadata.setIsScreenData(isScreenData);
              flvrecordingmetadata.setIsVideoOnly(isVideoOnly);
              flvrecordingmetadata.setRecordEnd(recordEnd1);
              flvrecordingmetadata.setRecordStart(recordStart1);
              flvrecordingmetadata.setUpdated(updated);
              flvrecordingmetadata.setDeleted("false");

              flvRecording.getFlvRecordingMetaData().add(
                  flvrecordingmetadata);

            }
View Full Code Here

        }
       
        //Manually call finish on the stream so that there is no endless loop waiting 
        //in the FlvRecorderConverter waiting for the stream to finish
        //this would normally happen in the Listener
        FlvRecordingMetaData flvRecordingMetaData = flvRecordingMetaDataDaoImpl.
              getFlvRecordingMetaDataById(flvRecordingMetaDataId);
        flvRecordingMetaData.setStreamReaderThreadComplete(true);
        flvRecordingMetaDataDaoImpl.updateFlvRecordingMetaData(flvRecordingMetaData);
       
        throw new IllegalStateException("Could not find Listener to stop! flvRecordingMetaDataId "+flvRecordingMetaDataId);
      }
     
View Full Code Here

      Element flvrecordingmetadatas = flvrecording
          .addElement("flvrecordingmetadatas");

      for (Iterator<FlvRecordingMetaData> itMeta = flvRec
          .getFlvRecordingMetaData().iterator(); itMeta.hasNext();) {
        FlvRecordingMetaData flvMeta = itMeta.next();

        Element flvrecordingmetadata = flvrecordingmetadatas
            .addElement("flvrecordingmetadata");

        flvrecordingmetadata.addElement("flvRecordingMetaDataId")
            .addCDATA(
                formatString(""
                    + flvMeta.getFlvRecordingMetaDataId()));
        flvrecordingmetadata.addElement("freeTextUserName").addCDATA(
            formatString("" + flvMeta.getFreeTextUserName()));
        flvrecordingmetadata.addElement("fullWavAudioData").addCDATA(
            formatString("" + flvMeta.getFullWavAudioData()));
        flvrecordingmetadata.addElement("streamName").addCDATA(
            formatString("" + flvMeta.getStreamName()));
        flvrecordingmetadata.addElement("wavAudioData").addCDATA(
            formatString("" + flvMeta.getWavAudioData()));
        flvrecordingmetadata.addElement("initialGapSeconds").addCDATA(
            formatString("" + flvMeta.getInitialGapSeconds()));
        flvrecordingmetadata.addElement("insertedBy").addCDATA(
            formatString("" + flvMeta.getInsertedBy()));
        flvrecordingmetadata.addElement("interiewPodId").addCDATA(
            formatString("" + flvMeta.getInteriewPodId()));
        flvrecordingmetadata.addElement("audioIsValid").addCDATA(
            formatString("" + flvMeta.getAudioIsValid()));
        flvrecordingmetadata.addElement("inserted").addCDATA(
            formatString(""
                + CalendarPatterns.getExportDate(flvMeta
                    .getInserted())));
        flvrecordingmetadata.addElement("isAudioOnly").addCDATA(
            formatString("" + flvMeta.getIsAudioOnly()));
        flvrecordingmetadata.addElement("isScreenData").addCDATA(
            formatString("" + flvMeta.getIsScreenData()));
        flvrecordingmetadata.addElement("isVideoOnly").addCDATA(
            formatString("" + flvMeta.getIsVideoOnly()));
        flvrecordingmetadata.addElement("recordEnd").addCDATA(
            formatString(""
                + CalendarPatterns.getExportDate(flvMeta
                    .getRecordEnd())));
        flvrecordingmetadata.addElement("recordStart").addCDATA(
            formatString(""
                + CalendarPatterns.getExportDate(flvMeta
                    .getRecordStart())));
        flvrecordingmetadata.addElement("updated").addCDATA(
            formatString(""
                + CalendarPatterns.getExportDate(flvMeta
                    .getUpdated())));

      }

    }
View Full Code Here

TOP

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

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.