[MPlayer-dev-eng] Re:Is MPlayer Java embeddable ?

rexian maillist at roomity.com
Tue Sep 27 21:18:11 CEST 2005


Thanks for the reply Lu. I think I wasn't clear on what I meant by 'embedding'.

We would like to have a front-end written in Java that would 'lend' a Java awt Canvas to the MPlayer to render the video. So the video window of MPlayer would be indide the Java application and there wouldn't be any terminal (may be it'll be internal to Java program).

We can write an C library in which we can get an X11 handle to the awt Canvas and pass it to MPlayer. Now this is the part we have the question about. Will MPlayer be able to draw on this handle ?

The following link points to a source code in C in which the program draws a few rectangles on the x11  display, in case you'd like to have a look. We want to invoke another program (a function from MPlayer library) and pass the display handle to it to render the video. Do you think it'd be possible ?

Java-Native Canvas sharing -> http://java.sun.com/j2se/1.5.0/docs/guide/awt/1.3/AWT_Native_Interface.html

Thanks,
Rex



-----------------------------------------------------------------------------
<a href="http://MPlayer_Developer_List_(English).roomity.com">roomity.com</a>
roomity.com is broadband internet. ~~1127848691739~~
-----------------------------------------------------------------------------



More information about the MPlayer-dev-eng mailing list