[MeeGo-touch-dev] MApplicationWindow and GStreamer video
Gerry LaChac
glachac at tethermedia.com
Tue Aug 3 10:29:52 PDT 2010
On 08/03/2010 01:13 PM, Jackson, Thomas (Tom) wrote:
>
> Just to confirm, is there a way to actually obtain the window id for the
> sub window using either mvideowidget, mvideowidgetmodel or
> mvideowidgetview. Maybe I missed it, but I didn't see any reference in
> the core lib video classes or unit test cases. We would like to grab
> the window id where the video sink element is going to render...
>
>
>
Through mvideowidgetview.cpp I found that you can grab the entire window
id (which mvideowidgetview does for fullscreen) using:
WId id =
MApplication::activeApplicationWindow()->viewport()->winId();
I was able to do some simple tests writing to a portion of the
MApplication screen this way by using gst_x_overlay_set_render_rectangle().
There really isn't a sub-window with mvideowidget, at least not at the
X-window level.
I haven't studied it in detail, but I believe to do a subwindow portion,
MVideoWidget is actually do a software frame-by-frame paint to the "sub
window". Someone correct me if I'm stating that wrong.
-Gerry
More information about the MeeGo-touch-dev
mailing list