Package org.bigbluebutton.api.domain

Examples of org.bigbluebutton.api.domain.Recording


        plays.add(new Playback(r.getPlaybackFormat(), r.getPlaybackLink(), getDurationRecording(r.getEndTime(), r.getStartTime())));
        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.getEndTime(), r.getStartTime())));
      }
    }
   
    return map;
  }
View Full Code Here


        plays.add(new Playback(r.getPlaybackFormat(), r.getPlaybackLink(), getDurationRecording(r.getPlaybackDuration(), r.getEndTime(), r.getStartTime())));
        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())));
      }
    }
   
    return map;
  }
View Full Code Here

    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

  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

    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

                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

    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

  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

    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

TOP

Related Classes of org.bigbluebutton.api.domain.Recording

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.