Package com.aelitis.azureus.core.devices

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


                "generic",
                "Media Analyser" );
 
            dmr.setHidden(true);
 
            TranscodeQueue queue = tm.getQueue();
           
            TranscodeJob[] jobs = queue.getJobs();
           
            for ( TranscodeJob job: jobs ){
             
              if ( job.getTarget() == dmr ){
               
                job.removeForce();
              }
            }
           
            TranscodeProfile[] profiles = dmr.getTranscodeProfiles();
           
            TranscodeProfile profile = null;
           
            for (TranscodeProfile p : profiles) {
             
              if ( p.getName().equals( "Generic MP4" )){
               
                profile = p;
 
                break;
              }
            }
           
            if ( profile == null ){
             
              throw( new Exception( "Analyser transcode profile not found" ));
            }
           
            listener.updateActivity( "Analysing media" );
           
            final Map<String,Object> b_map = new HashMap<String,Object>();
           
            b_map.put( "state", new Integer( 1 ));
            b_map.put( "msg", MessageText.getString( "stream.analysing.media" ));
           
            buffering_method.invoke(player, new Object[] { b_map });

            final TranscodeJob tj = queue.add( dmr, profile, file, true );
                     
            try{
              final AESemaphore sem = new AESemaphore( "analyserWait" );

              synchronized( StreamManager.this ){
View Full Code Here

TOP

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

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.