Examples of Recording


Examples of org.bigbluebutton.api.domain.Recording

    String[] format = getPlaybackFormats(path);
    for (int i = 0; i < format.length; i++) {
      File[] recordings = getDirectories(path + File.separatorChar + format[i]);
      for (int f = 0; f < recordings.length; f++) {
        if (recordings[f].getName().equalsIgnoreCase(recordingId)) {
          Recording r = getRecordingInfo(path, recordingId, format[i]);
          if (r != null) {
            File dest;
            if (publish) {
              dest = new File(publishedDir+ File.separatorChar + format[i]);
            } else {
              dest = new File(unpublishedDir+ File.separatorChar + format[i]);
            }
            if(!dest.exists()) dest.mkdir();
            boolean moved = recordings[f].renameTo(new File(dest, recordings[f].getName()));
            if (moved) {
              log.debug("Recording successfully moved!");
              r.setPublished(publish);
              recordingServiceHelper.writeRecordingInfo(dest.getAbsolutePath() + File.separatorChar + recordings[f].getName(), r);
            }
          }
        }       
      }
View Full Code Here

Examples of org.bigbluebutton.api.domain.Recording

                r.getEndTime(), r.getStartTime()),
            r.getPlaybackExtensions()));
        r.setPlaybacks(plays);
        map.put(r.getId(), r);
      } else {
        Recording rec = map.get(r.getId());
        rec.getPlaybacks().add(new Playback(r.getPlaybackFormat(), r.getPlaybackLink(),
            getDurationRecording(r.getPlaybackDuration(),
                r.getEndTime(), r.getStartTime()),
            r.getPlaybackExtensions()));
      }
    }
View Full Code Here

Examples of org.bigbluebutton.api.domain.Recording

    String[] format = getPlaybackFormats(path);
    for (int i = 0; i < format.length; i++) {
      File[] recordings = getDirectories(path + File.separatorChar + format[i]);
      for (int f = 0; f < recordings.length; f++) {
        if (recordings[f].getName().startsWith(meetingId)) {
          Recording r = getRecordingInfo(path, recordings[f].getName(), format[i]);
          if (r != null) recs.add(r);
        }       
      }
    }     
    return recs;
View Full Code Here

Examples of org.bigbluebutton.api.domain.Recording

  public Recording getRecordingInfo(String recordingId, String format) {
    return getRecordingInfo(publishedDir, recordingId, format);
  }

  private Recording getRecordingInfo(String path, String recordingId, String format) {
    Recording rec = recordingServiceHelper.getRecordingInfo(recordingId, path, format);
    return rec;
  }
View Full Code Here

Examples of org.bigbluebutton.api.domain.Recording

    String[] format = getPlaybackFormats(path);
    for (int i = 0; i < format.length; i++) {
      File[] recordings = getDirectories(path + File.separatorChar + format[i]);
      for (int f = 0; f < recordings.length; f++) {
        if (recordings[f].getName().equalsIgnoreCase(recordingId)) {
          Recording r = getRecordingInfo(path, recordingId, format[i]);
          if (r != null) {
            File dest;
            if (publish) {
              dest = new File(publishedDir+ File.separatorChar + format[i]);
            } else {
              dest = new File(unpublishedDir+ File.separatorChar + format[i]);
            }
            if(!dest.exists()) dest.mkdir();
            boolean moved = recordings[f].renameTo(new File(dest, recordings[f].getName()));
            if (moved) {
              log.debug("Recording successfully moved!");
              r.setPublished(publish);
              recordingServiceHelper.writeRecordingInfo(dest.getAbsolutePath() + File.separatorChar + recordings[f].getName(), r);
            }
          }
        }       
      }
View Full Code Here

Examples of org.imagearchive.lsm.toolbox.info.scaninfo.Recording

        addokbListener(okb, this);
        getContentPane().add(okb, BorderLayout.SOUTH);
        masterModel.addMasterModelListener(new MasterModelAdapter() {
            public void LSMFileInfoChanged(MasterModelEvent evt) {
              if (masterModel.getCz() == null | masterModel.getCz().scanInfo == null) return;
              Recording r = (Recording) masterModel.getCz().scanInfo.recordings
                        .get(0);
                if (r != null) {
                    String shortNotes = (String) r.records
                            .get("ENTRY_DESCRIPTION");
                    String detailedNotes = (String) r.records
View Full Code Here

Examples of org.imagearchive.lsm.toolbox.info.scaninfo.Recording

    try {
      stream.seek((int) position);
      while (tag.entry != 0x0FFFFFFFF) {
        tag = getScanInfoTag(stream);
        if (Recording.isRecording(tag.entry)) {
          Recording recording = new Recording();
          while (tag.entry != 0x0FFFFFFFF) {
            tag = getScanInfoTag(stream);
            if (Laser.isLasers(tag.entry)) {
              recording.lasers = getLaserBlock(stream);
              tag.entry = 0;
View Full Code Here

Examples of org.imagearchive.lsm.toolbox.info.scaninfo.Recording

      break;
    default:
      scantype = "UNKNOWN !";
      break;
    }
    Recording r = (Recording) getCz().scanInfo.recordings.get(0);
    String objective = (String) r.records.get("ENTRY_OBJECTIVE");
    String user = (String) r.records.get("USER");
    double zoomx = ((Double) r.records.get("ZOOM_X")).doubleValue();
    double zoomy = ((Double) r.records.get("ZOOM_Y")).doubleValue();
View Full Code Here

Examples of org.imagearchive.lsm.toolbox.info.scaninfo.Recording

                  .get(j)).intValue());
              LsmFileInfo openLSM = (LsmFileInfo) imp
                  .getOriginalFileInfo();
              CZ_LSMInfo cz = (CZ_LSMInfo) ((ImageDirectory) openLSM.imageDirectories
                  .get(0)).TIF_CZ_LSMINFO;
              Recording r = (Recording) cz.scanInfo.recordings.get(0);
              double planeSpacing = ((Double) r.records.get("PLANE SPACING")).doubleValue();
              if (choice.equals("Dump to textfile")) {
                String twstr = new String("");
                double ps = 0;
                for (int k = 1; i <= cz.DimensionZ; k++) {
View Full Code Here

Examples of org.imagearchive.lsm.toolbox.info.scaninfo.Recording

    }
    Color c = Toolbar.getForegroundColor();
    CZ_LSMInfo cz = (CZ_LSMInfo) ((ImageDirectory) lfi.imageDirectories
        .get(0)).TIF_CZ_LSMINFO;
    if (cz.DimensionZ != 1) {
      Recording r = (Recording) cz.scanInfo.recordings
          .get(0);
      double planeSpacing = ((Double) r.records.get("PLANE SPACING"))
          .doubleValue();

      if ((cz.DimensionTime == 1)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.