[MPlayer-dev-eng] [PATCH] Borderless window for vo_directx

Sascha Sommer saschasommer at freenet.de
Tue Dec 14 19:24:52 CET 2004


On Tuesday 14 December 2004 19:05, Joey Parrish wrote:
> On Tue, Dec 14, 2004 at 09:27:07AM +0100, Sascha Sommer wrote:
> > On Tuesday 14 December 2004 08:07, Timothy Lee wrote:
> > > This patch adds a "noborder" sub option to "vo_directx", which causes
> > > the output window to be borderless.  This is useful for applications
> > > where MPlayer is used to overlay video on top of the client area of
> > > another application.
> >
> > I will commit this when the subopt helper is in cvs and vo directx is
> > changed use it.
>
> I disagree.  If you want to play on the client area of another app, this
> is not good enough.  When the other app moves, the MPlayer window won't.

Well you can get a handle to the MPlayer window by using FindWindow or how it 
is called and then move the MPlayer window, too.

> What you need is support for the -wid option that X11 uses.  Say, for
> example, you need to play on a certain window in a certain position.
> You would find the window handle, then use:
>     mplayer -wid 0x5902 -geometry 320x240+100+200
> to play at offset 100,200 relative to the window at handle 0x5902.
> I've been coding this anyway for a company in Dallas.  It works well
> with either overlay or not.  So wait a couple days and I'll send a patch
> and a test utility to find a window handle based on title.

Hm is geometry needed and where will reside the callback function for the 
window, or will  there be some slavemode command to set window position and 
size?
As long as it works I'm fine with either solution.

Sascha




More information about the MPlayer-dev-eng mailing list