VideoWidget API
Richard
richardmg at trolltech.com
Tue Jul 10 12:51:19 CEST 2007
>
> Hmm, I'd rather see the developer do it by replacing the
> videowidget with a
> widget showing something else (e.g. using QStackedWidget: a logo on
> stop).
I tought about that as well, a solution that comes for free with much
more flexibility. But it also adds slightly more code complexity on
the user if he only wants the movie not to show when stopped.
If we go with that solution, I think it would be the best that both
the first frame and the last frame stays since the user can cover the
movie himself with a different widget if he whiches otherwise.
-Richard
>
> I have a patch from a Kaffeine developer that adds a function to get a
> screenshot of the video. That could perhaps be extended to be able
> to show
> one of the first frames before the video playback is started.
>
> e.g.
>
> videoWidget->requestScreenShot();
>
> void MyPlayer::screenShotReady(const QImage &image)
> {
> staticImageWidget->setPixmap(QPixmap::fromImage(image));
> videoStackWidget->setCurrentWidget(staticImageWidget);
> }
>
> --
> ________________________________________________________
> Matthias Kretz (Germany) <><
> http://Vir.homelinux.org/
> MatthiasKretz at gmx.net, kretz at kde.org,
> Matthias.Kretz at urz.uni-heidelberg.de
> _______________________________________________
> Phonon-backends mailing list
> Phonon-backends at kde.org
> https://mail.kde.org/mailman/listinfo/phonon-backends
--
Richard Moe Gustavsen
Software Engineer II, Trolltech ASA
Sandakerveien 116, NO-0484 Oslo, Norway
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/phonon-backends/attachments/20070710/e3e2f0c1/attachment.html
More information about the Phonon-backends
mailing list