Package com.aelitis.azureus.core.devices

Examples of com.aelitis.azureus.core.devices.TranscodeFile


            state == TranscodeJobImpl.ST_REMOVED ||
            state == TranscodeJobImpl.ST_STOPPED ){
         
            // might have completed and then been removed
         
          TranscodeFile tf = job.getTranscodeFile();
         
          if ( tf != null && tf.isComplete()){
           
            return( false );
          }
         
          return( true );
View Full Code Here


    info.setProficiency(TableColumnInfo.PROFICIENCY_BEGINNER);
  }

  // @see org.gudy.azureus2.plugins.ui.tables.TableCellRefreshListener#refresh(org.gudy.azureus2.plugins.ui.tables.TableCell)
  public void refresh(TableCell cell) {
    TranscodeFile tf = (TranscodeFile) cell.getDataSource();
    if (tf == null) {
      return;
    }

    long  width   = tf.getVideoWidth();
    long  height  = tf.getVideoHeight();
   
    cell.setText((width==0||height==0)?"":(width+"x"+height));
  }
View Full Code Here

    info.setProficiency(TableColumnInfo.PROFICIENCY_BEGINNER);
  }


  public void refresh(TableCell cell) {
    TranscodeFile tf = (TranscodeFile) cell.getDataSource();
    if (tf == null) {
      return;
    }
   
    Device d = tf.getDevice();
   
    String value = null;
   
    if ( d instanceof DeviceMediaRenderer ){
     
      DeviceMediaRenderer  dmr = (DeviceMediaRenderer)d;
     
      if (!(dmr.canCopyToDevice()|| dmr.canCopyToFolder())){
       
        value = na_text;
      }
    }
   
    if ( value == null ){
      value = DisplayFormatters.getYesNo( tf.isCopiedToDevice());
    }
   
    if (cell.setSortValue(value) || !cell.isValid()) {
      cell.setText(value);
    }
View Full Code Here

  }


  // @see org.gudy.azureus2.plugins.ui.tables.TableCellRefreshListener#refresh(org.gudy.azureus2.plugins.ui.tables.TableCell)
  public void refresh(TableCell cell) {
    TranscodeFile tf = (TranscodeFile) cell.getDataSource();
    if (tf == null) {
      return;
    }
    TranscodeJob job = tf.getJob();
   
    String   tooltip = null;
    String  text  = null;
    boolean  error  = false;
   
    if ( job == null ){
     
      try{
        if ( tf.isComplete() && !tf.getTargetFile().getFile().exists()){
         
          tooltip = "File '" + tf.getTargetFile().getFile().getAbsolutePath() + "' not found";
         
          text = js_resources[5] + ": File not found";
         
          error = true;
        }
      }catch( Throwable e ){     
      }
     
      if ( text == null ){

        if ( tf.isCopyingToDevice() ) {

          text = js_resources[11];

        } else if ( tf.getCopyToDeviceFails() > 0 ){
     
          text = js_resources[7];
         
          error = true;
         
        }else if ( tf.isTemplate() && !tf.isComplete()){
         
          text = js_resources[8];
         
        }else{
         
View Full Code Here

    info.setProficiency(TableColumnInfo.PROFICIENCY_BEGINNER);
  }

  // @see org.gudy.azureus2.plugins.ui.tables.TableCellRefreshListener#refresh(org.gudy.azureus2.plugins.ui.tables.TableCell)
  public void refresh(TableCell cell) {
    TranscodeFile tf = (TranscodeFile) cell.getDataSource();
    if (tf == null) {
      return;
    }

    cell.setText(tf.getTranscodeRequired()?tf.getProfileName():"");
  }
View Full Code Here

        try {
          return PluginCoreUtils.unwrap(tj.getFile());
        } catch (DownloadException e) {
        }
      } else if (ds instanceof TranscodeFile) {
        TranscodeFile tf = (TranscodeFile) ds;
        try {
          DiskManagerFileInfo file = tf.getSourceFile();
          return PluginCoreUtils.unwrap(file);
        } catch (DownloadException e) {
        }
      }
View Full Code Here

            }
          }
        } catch (DownloadException e) {
        }
      } else if (ds instanceof TranscodeFile) {
        TranscodeFile tf = (TranscodeFile) ds;
        try {
          DiskManagerFileInfo file = tf.getSourceFile();
          if (file != null) {
            Download download = file.getDownload();
            if (download != null) {
              return PluginCoreUtils.unwrap(download);
            }
View Full Code Here

      }
      return torrent;
    }

    if (ds instanceof TranscodeFile) {
      TranscodeFile tf = (TranscodeFile) ds;
      try {
        DiskManagerFileInfo file = tf.getSourceFile();
        if (file != null) {
          Download download = file.getDownload();
          if (download != null) {
            Torrent torrent = download.getTorrent();
            if (torrent != null) {
View Full Code Here

            }
          }
        } catch (DownloadException e) {
        }
      } else if (ds instanceof TranscodeFile) {
        TranscodeFile tf = (TranscodeFile) ds;
        try {
          DiskManagerFileInfo file = tf.getSourceFile();
          if (file != null) {
            Download download = file.getDownload();
            if (download != null) {
              DownloadManager dm = PluginCoreUtils.unwrap(download);
              return getContentNetwork(dm);
View Full Code Here

    info.setProficiency(TableColumnInfo.PROFICIENCY_BEGINNER);
  }

  // @see org.gudy.azureus2.plugins.ui.tables.TableCellRefreshListener#refresh(org.gudy.azureus2.plugins.ui.tables.TableCell)
  public void refresh(TableCell cell) {
    TranscodeFile tf = (TranscodeFile) cell.getDataSource();
    if (tf == null) {
      return;
    }

    long duration = tf.getDurationMillis();
   
    cell.setText( duration==0?"":TimeFormatter.format( duration/1000 ));
  }
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.devices.TranscodeFile

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.