[MPlayer-dev-eng] [GUI][PATCH] Import Playtree into Gui-PL; Make On-The-Fly Playlists work; Enqueue Option; WinID>0 fixes

Fabian Franz FabianFranz at gmx.de
Mon Feb 3 17:38:54 CET 2003


Hi,

I'm adressing especially Pontscho! (ldd .so)

But A'rpi, please have a quick look on mplayer.c-part of patch ...

Also note that this patch DEPENDS on earlier sent high-level-playtree-api ...

What does this patch do?

- It adds an option enqueue/noenqueue, so users can choose if they want to 
have playlist overwritten by files on commandline or just enqueue them at the 
end ...
- Playtree is finally cleared, as such gui has total control!
- Autoplay if files are available on commandline and -enqueue is not set!
- Fallback on Playlists finally does work with Gui and even with streaming 
Playlists! [ Before gui was broken as mplayer.c:playtree tried to have 
control]

Pontscho please comment!

For achieving that it adds:

gtkDelCurrPlItem, gtkInsertPlItem - Methods to GUI-PL-Functions and 
import_playtree_into_gui to interface.c.

I also "fixed" (?) gtkGetNextPlItem ...

Before it would play last item every second time once again, when I click on 
next ... 

Now it'll just ignore it, as there are no more items left ...

Please also see my previous mail for explanation ...

Last part are things that are in my tree, but I can't afford to take them out, 
each time I'm working on mplayer and take them in when I'm working on 
mplayerplug-in, which will use some mini-gui ...

And for that I anyway NEED this functionality...

And it'll not break anything, as no-one ever tried running gui in another 
window, or did someone ?

As such it just adds functionality as -wid is no longer ignored by gui, but 
used with nice defaults ...

First part is for setting Win-Ids, second is to position GUI exactly under 
movie, next will be that movement of window, by mouse is not possible ... (If 
you can think of a WinID > 0-case where this needs to be done, I can add 
another option for that)

Next thing I'll need for plugin is that I can load someother config then 
gui.conf as I think users want to have other defaults for plugin as for 
normal gui ...

I thought about both:

- a plugin switch, which would force gui to load plugin-gui.cfg, 
plugin-gui.pl, ...

or 

- a gui-prefix "plugin-" switch to make it possible to use some prefix, that 
is added to filename, which would be a more general solution... If you have 
other ideas (not only, .so, but also others ;)) just keep on flaming me ;)

What I also need would be the possibility to have self-growing skins ... (I 
know that it is not easy to have it, but there could be one really big skin, 
and it is horizantilly cut and size of hpotmeter is growing shrinking 
accordingly ... )

As it would be nice to have the gui under the plugin fit the whole movie-width 
...

Ok, please comment on that ...

cu

Fabian

PS: It's really a nice feeling on posting to mplayer-dev-eng ...
PPS: It would be nice, if mplayerplug-in, could be announced with next 
rc/release, as its already pretty stable, I had no problems so far.
Of course, it's no official mplayer-project, but it does use the 
mplayer-engine, and many ppl do not know about it, yet ... :-/



More information about the MPlayer-dev-eng mailing list