[MPlayer-cygwin] Using -wid to embed mplayer into a java SWT application.

Sascha Sommer saschasommer at freenet.de
Sun Sep 11 11:42:28 CEST 2005


On Sunday 11 September 2005 05:05, Reinier Zwitserloot wrote:
> I've noticed a previous thread on this earlier, but it doesn't look
> like the poster of that question got anywhere. Unfortunately, I'm
> stuck as well. The problem:
>
> I'm trying to embed mplayer into a java application. SWT fortunately
> makes it very easy to fetch the underlying windows handle so that I
> can pass it on using the -wid parameter. I do this, and while the
> sound starts playing no video shows. However, something sort of works,
> because:
>
> A) mplayer does start without complaint, so the hWnd I'm passing is
> more or less valid, and
> B) If I move the java window out of screen, mplayer starts giving me
> 'overlay errors'. Meaning mplayer does know something about my window
> handle. Unfortunately if I drag the SWT shell over to my second
> monitor the same errors happen, but that's a problem for another day.
>
> The question then remains: Why isn't my video appearing?
>
> Possibly my problem lies in the fact that I don't understand what
> 'colorkey' does, as it was mentioned as a neccessity for embedding
> mplayer before. I checked out mplgui's source (it does what I want to
> do, except it's delphi code), which uses the same colorkey I supplied
> in this source.
>

The colorkey is the background color (as RGB value) of the video window.

Sascha




More information about the MPlayer-cygwin mailing list