public class VideoOverlay extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
expose()
Tell an overlay that it has been exposed.
|
Element |
getGObject()
Get the GObject implementing this interface.
|
void |
handleEvent(boolean handle_events)
Tell an overlay that it should handle events from the window system.
|
static boolean |
isPrepareWindowHandleMessage(Message message)
Convenience function to check if the given message is a "prepare-window-handle".
|
boolean |
setRenderRectangle(int x,
int y,
int width,
int height)
Configure a subregion as a video target within the window set by
setWindowHandle(long). |
void |
setWindowHandle(long handle)
Sets the native window for the
Element to use to display video. |
static VideoOverlay |
wrap(Element element)
Wraps the
Element in a XOverlay interface |
protected final Element element
public static VideoOverlay wrap(Element element)
Element in a XOverlay interfaceelement - the element to use as a XOverlaypublic static boolean isPrepareWindowHandleMessage(Message message)
BusSyncReply.message - public void setWindowHandle(long handle)
Element to use to display video.handle - A native handle to use to display video.public void expose()
public void handleEvent(boolean handle_events)
public boolean setRenderRectangle(int x,
int y,
int width,
int height)
setWindowHandle(long). If this is not used or not supported
the video will fill the area of the window set as the overlay to 100%.
By specifying the rectangle, the video can be overlaid to a specific
region of that window only. After setting the new rectangle one should
call expose() to force a redraw. To unset the region pass -1
for the width and height parameters.
This method is needed for non fullscreen video overlay in UI toolkits
that do not support subwindows.x - y - width - height - public Element getGObject()
GObject.GInterfacegetGObject in interface GObject.GInterfaceCopyright © 2021 gstreamer-java. All rights reserved.