title: MultiThreading, java Main() and Video Play
body: <p>I use Xuggler to display a video.</p>
  
  <p>I use two threads, one for the audio, and one for the video.</p>
  
  <p>The problem i have is when i reach a CPU use of about 30% the video starts to stutter, and is not smooth anymore.</p>
  
  <p>But if i run the video from the Main() function, the video is smooth. The thing is that i don't know how to play the video on the main Thread. When i start the PlayVideo function from a subclass, it blocks the system.</p>
  
  <p>Any help is welcome.</p>
  
  <p>Jeff</p>