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

Joey Parrish joey at nicewarrior.org
Tue Dec 14 19:05:40 CET 2004


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.
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.

--Joey

-- 
"I can read it better than you can read it with your eyes closed." --Gu




More information about the MPlayer-dev-eng mailing list