Package org.gudy.azureus2.plugins.ipc

Examples of org.gudy.azureus2.plugins.ipc.IPCInterface.invoke()


        if ( output.getProtocol().equals( "tcp" )){
         
          adapter = _adapter;
         
          context =
            ipc.invoke(
              "transcodeToTCP",
              new Object[]{
                ((TranscodeProviderAnalysisImpl)analysis).getResult(),
                source_url,
                profile.getName(),
View Full Code Here


                _adapter.complete();
              }
            };
           
          context =
            ipc.invoke(
              "transcodeToFile",
              new Object[]{
                ((TranscodeProviderAnalysisImpl)analysis).getResult(),
                source_url,
                profile.getName(),
View Full Code Here

                   
                    adapter.streamStats( f_pipe.getConnectionRate(), f_pipe.getWriteSpeed());                   
                  }
                 
                  try{
                    Map status = (Map)ipc.invoke( "getTranscodeStatus", new Object[]{ context });
                   
                    long  state = (Long)status.get( "state" );
                   
                    if ( state == 0 ){
                     
View Full Code Here

 
            public void
            cancel()
            {
              try{
                ipc.invoke( "cancelTranscode", new Object[]{ context });
               
              }catch( Throwable e ){
               
                Debug.printStackTrace( e );
              }
View Full Code Here

            throw( new TranscodeException( "Media Server plugin not found" ));
          }
         
          IPCInterface av_ipc = av_pi.getIPC();
         
          String url_str = (String)av_ipc.invoke( "getContentURL", new Object[]{ source });
         
         
          if ( url_str == null || url_str.length() == 0 ){
           
              // see if we can use the file directly
View Full Code Here

              throw( new TranscodeException( "Media Server plugin not found" ));
            }
           
            IPCInterface av_ipc = av_pi.getIPC();
           
            String url_str = (String)av_ipc.invoke( "getContentURL", new Object[]{ source });
           
            InputStream  is;
           
            long    length;
           
View Full Code Here

      IPCInterface ipc = upnpav_ipc;
     
      if ( ipc != null ){
       
        try{
          ipc.invoke( "invalidateDirectory", new Object[]{});

        }catch( Throwable e ){
        }
      }
    }
View Full Code Here

        }
       
        dynamic_xcode_map.put( tf_key, acf );
      }
     
      ipc.invoke( "addContent", new Object[]{ acf });
     
    }catch( Throwable e ){
     
      Debug.out( e );
    }
View Full Code Here

       
        transcode_file.delete( true );
       
        if ( acf != null ){
       
          ipc.invoke( "removeContent", new Object[]{ acf });
        }
       
        synchronized( acf_map ){
         
          acf_map.remove( transcode_file.getKey());
View Full Code Here

      synchronized( acf_map ){
 
        acf_map.put( tf_key, acf );
      }
   
      ipc.invoke( "addContent", new Object[]{ acf });

      log( "Set up stream-xcode for " + transcode_file.getName());
     
      return( true );
     
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.