Hello all! It's possible to redirect the out of the MPLAYER to a Java Component ? Quicktime for java implements this. How to do? Example: redirecting the out of MPLAYER to java.awt.frame (And to redir to a Component? JPanel ? Canvas?) ############################# package mplayer; import java.awt.Toolkit; import javax.swing.SwingUtilities; import javax.swing.UIManager; import java.awt.Dimension; /** *

Title:

* *

Description:

* *

Copyright: Copyright (c) 2005

* *

Company:

* * @author not attributable * @version 1.0 */ public class Application1 { boolean packFrame = false; /** * Construct and show the application. */ public Application1() { Frame1 frame = new Frame1(); // Validate frames that have preset sizes // Pack frames that have useful preferred size info, e.g. from their layout if (packFrame) { frame.pack(); } else { frame.validate(); } // Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = frame.getSize(); if (frameSize.height > screenSize.height) { frameSize.height = screenSize.height; } if (frameSize.width > screenSize.width) { frameSize.width = screenSize.width; } frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); frame.setVisible(true); } /** * Application entry point. * * @param args String[] */ public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { try { UIManager.setLookAndFeel(UIManager. getSystemLookAndFeelClassName()); } catch (Exception exception) { exception.printStackTrace(); } new Application1(); } }); } } ######################### package mplayer; import java.awt.Dimension; import java.awt.Frame; import java.awt.event.WindowEvent; import java.awt.event.WindowAdapter; //import com.sun.tools.jdi.JDWP; /** *

Title:

* *

Description:

* *

Copyright: Copyright (c) 2005

* *

Company:

* * @author not attributable * @version 1.0 */ public class Frame1 extends Frame { public Frame1() { try { jbInit(); } catch (Exception exception) { exception.printStackTrace(); } } /** * Component initialization. * * @throws java.lang.Exception */ private void jbInit() throws Exception { super.removeAll(); setSize(new Dimension(400, 300)); setTitle("Frame Title"); this.addWindowListener(new Frame1_this_windowAdapter(this)); } public void this_windowClosing(WindowEvent e) { System.exit(0); } } class Frame1_this_windowAdapter extends WindowAdapter { private Frame1 adaptee; Frame1_this_windowAdapter(Frame1 adaptee) { this.adaptee = adaptee; } public void windowClosing(WindowEvent e) { adaptee.this_windowClosing(e); } } ##################################################### and enter with command (video.mp4 is in /tmp): wmctrl -xl | grep "mplayer.Frame1.mplayer.Application1" | awk '/0x.* / {print $1}';echo $i ; mplayer -slave -quiet -wid 0x02c00041 -geometry 400 300 /tem/video.mp4