Phonon::VideoWidget embedded inside a QGraphicsProxyWidget
Aaron J. Seigo
aseigo at kde.org
Fri Mar 26 19:37:26 CET 2010
On March 26, 2010, Marco Martin wrote:
> the mediacenter as is now is a -completely- different problem.
> here we want to display a fullscreen video, with occasionally some chrome
> over it when we need.
yep.
> as a "temporary" solution (that will indeed last for years) putting the
> video on a window behind the mediacenter chrome (and hiding completely
> the plasma window when not needed) is the less hacky (believe or not :p)
> more performant and simpler to implement solution
i wonder if hiding the plasma window will be the best solution (showing/hiding
windows can be slower than desired, and then you have to time it with
animations...)
if the plasma window is always there, but the background is painted 100%
transparent and the QGraphicsWidgets shown are also transparent (or even
hidden), not only will there be no hide/unhide of the window itself and no
animation timing coordination needed but you can do all the event handling in
the Plasma::Containment and/or the widgets on it.
the only possible problems i can think of here are:
* kwin automatically disabling compositing because there is a full screen app
running
* it won't work without compositing ... to which i say: tough. if the media
center requires compositing for video but delivers a really good experience,
then so be it.
another solution might be to do the video player chrome completely outside of
plasma and in a dedicated video player window. i think this will be really
limiting, however, as it might be nice to be able to show things like a band
of informational widgets over the video. being able to see if you have email
or what the news headlines are while watching t.v.? cool. :) being able to
glance at the playlist? useful.
> it will be possible to use it only in the mediacenter shell but that's
> fine, it's something that is needed only there
> and if some day somebody really wants to make it work on plasma-desktop or
> plasma-netbook it's quite simple just use a window like the dashboard to
> display controls, dot a desktop window.
yep.
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Development Frameworks
More information about the Plasma-devel
mailing list