Changeset 246

Show
Ignore:
Timestamp:
05/27/08 12:04:27 (3 months ago)
Author:
Stuart Thiel
Message:

-Fixed #188
--Additionally added something for the standalone application to make it autoplay since the fix for #188 removes that (refactors the decision to start playing away from the loadmovie method)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • MediAnnotate/trunk/src/org/mediannotate/app/LoadMovieThread.java

    r220 r246  
    4242                        myPlayerPanel.setTime(in); 
    4343                        myPlayerPanel.getCurrentMovie().setTime(in); 
     44                         
     45                        if(myPlayerPanel.getCurrentMovie().getIn() != myPlayerPanel.getCurrentMovie().getOut()) { 
     46                                myPlayerPanel.getCurrentMovie().start(); 
     47                        } 
     48                         
    4449                        } 
    4550                } catch (Exception e) { 
  • MediAnnotate/trunk/src/org/mediannotate/app/MAController.java

    r206 r246  
    7373                try { 
    7474                        loadMovie(jfc.getSelectedFile().toURL().toString()); 
     75                        myPlayerPanel.getCurrentMovie().start(); 
    7576                        } catch (MalformedURLException e) { 
    7677                                // TODO Auto-generated catch block 
     
    9596                                previousMovie.dispose(); 
    9697                        } 
    97                          
    98                         myPlayerPanel.getCurrentMovie().start(); 
    9998         
    10099                        Running = true;