Package org.bigbluebutton.presentation

Examples of org.bigbluebutton.presentation.ImageToSwfSlide


    long endTime = System.currentTimeMillis() + MAX_CONVERSION_TIME;
    int slideGenerated = 0;
   
    for (int t = 0; t < slides.length; t++) {
      Future<ImageToSwfSlide> future = null;
      ImageToSwfSlide slide = null;
      try {
        long timeLeft = endTime - System.currentTimeMillis();
        future = completionService.take();
        slide = future.get(timeLeft, TimeUnit.MILLISECONDS);
        System.out.println("handleSlideGenerationResult " + slide.getPageNumber());
      } catch (InterruptedException e) {
        log.error("InterruptedException while creating slide " + pres.getName());
      } catch (ExecutionException e) {
        log.error("ExecutionException while creating slide " + pres.getName());
      } catch (TimeoutException e) {
        log.error("TimeoutException while converting " + pres.getName());       
      } finally {
        if ((slide != null) && (! slide.isDone())){
          log.warn("Creating blank slide for " + slide.getPageNumber());
          future.cancel(true);
          slide.generateBlankSlide();
        }
      }
      slideGenerated++; 
      notifier.sendConversionUpdateMessage(slideGenerated, pres);
    }
View Full Code Here


 
  private ImageToSwfSlide[] setupSlides(UploadedPresentation pres, int numPages, PageConverter pageConverter) {
    ImageToSwfSlide[] slides = new ImageToSwfSlide[numPages];
   
    for (int page = 1; page <= numPages; page++) {   
      ImageToSwfSlide slide = new ImageToSwfSlide(pres, page);
      slide.setBlankSlide(BLANK_SLIDE);
      slide.setPageConverter(pageConverter);
     
      // Array index is zero-based
      slides[page-1] = slide;
    }
   
View Full Code Here

  }
 
  private void generateSlides(ImageToSwfSlide[] slides) {
    for (int i = 0; i < slides.length; i++) {
      System.out.println("generateSlides " + i);
      final ImageToSwfSlide slide = slides[i];
      completionService.submit(new Callable<ImageToSwfSlide>() {
        public ImageToSwfSlide call() {
          return slide.createSlide();
        }
      });
    }
  }
View Full Code Here

    long endTime = System.currentTimeMillis() + MAX_CONVERSION_TIME;
    int slideGenerated = 0;
   
    for (int t = 0; t < slides.length; t++) {
      Future<ImageToSwfSlide> future = null;
      ImageToSwfSlide slide = null;
      try {
        long timeLeft = endTime - System.currentTimeMillis();
        future = completionService.take();
        slide = future.get(timeLeft, TimeUnit.MILLISECONDS);
        System.out.println("handleSlideGenerationResult " + slide.getPageNumber());
      } catch (InterruptedException e) {
        log.error("InterruptedException while creating slide " + pres.getName());
      } catch (ExecutionException e) {
        log.error("ExecutionException while creating slide " + pres.getName());
      } catch (TimeoutException e) {
        log.error("TimeoutException while converting " + pres.getName());       
      } finally {
        if ((slide != null) && (! slide.isDone())){
          log.warn("Creating blank slide for " + slide.getPageNumber());
          future.cancel(true);
          slide.generateBlankSlide();
        }
      }
      slideGenerated++; 
      notifier.sendConversionUpdateMessage(slideGenerated, pres);
    }
View Full Code Here

 
  private ImageToSwfSlide[] setupSlides(UploadedPresentation pres, int numPages, PageConverter pageConverter) {
    ImageToSwfSlide[] slides = new ImageToSwfSlide[numPages];
   
    for (int page = 1; page <= numPages; page++) {   
      ImageToSwfSlide slide = new ImageToSwfSlide(pres, page);
      slide.setBlankSlide(BLANK_SLIDE);
      slide.setPageConverter(pageConverter);
     
      // Array index is zero-based
      slides[page-1] = slide;
    }
   
View Full Code Here

  }
 
  private void generateSlides(ImageToSwfSlide[] slides) {
    for (int i = 0; i < slides.length; i++) {
      System.out.println("generateSlides " + i);
      final ImageToSwfSlide slide = slides[i];
      completionService.submit(new Callable<ImageToSwfSlide>() {
        public ImageToSwfSlide call() {
          return slide.createSlide();
        }
      });
    }
  }
View Full Code Here

TOP

Related Classes of org.bigbluebutton.presentation.ImageToSwfSlide

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.