Video (tag) position in backend

Trever Fischer tdfischer at fedoraproject.org
Mon Feb 27 14:40:09 UTC 2012


On Monday, February 27, 2012 09:02:51 AM Rémi Denis-Courmont wrote:
>    Hello,
> 
> On Friday 24 February 2012, Alexandre B. wrote:
> > Is there a way to get this position inside the backend, using the widget
> > interfaces or any other class/interface?
> 
> In these days and this age of compositing, there is no such a thing as the
> absolute position of a the video widget. That notion is not always well-
> defined. Anything that depends on this is broken by design. I certainly
> hope that Phonon does not expose such a property through its external API,
> and for sure, the LibVLC backend cannot and will not provide that
> information. Ever.

The only way to get a VideoWidget's absolute screen location is to use 
QWidget::mapToGlobal()

http://developer.qt.nokia.com/doc/qt-4.8/qwidget.html#mapToGlobal


> 
> And even if you could get the absolute coordinates and visible size of the
> video widget, overlaying another window might not work properly and you
> wouldn't have accurate enough timing informations for synchronization
> anyway.
> 
> Forget it. This is a _*BAD*_ idea.


-- 
Trever Fischer (tdfischer)
Fedora Ambassador, KDE Hacker
http://wm161.net
GPG: C40F2998 hkp://wwwkeys.pgp.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/phonon-backends/attachments/20120227/e9141546/attachment.sig>


More information about the Phonon-backends mailing list