* @overlay: a #GstVideoOverlay to set the window on.
* @wl_surface_id: a global resource id of wl_surface referencing the wayland window.
-* This will call the video overlay's set_wayland_window_handle method. You
+* This will call the video overlay's set_wl_window_wl_surface_id method. You
* should use this medtod to tell to an overlay to display video output to a
* specific window(e.g. an Wayland Window on Wayland).
-* But you can also set handle to waylandsink with gst_video_overlay_set_window_handle().
+* But you can also set handle to wayland videosink with gst_video_overlay_set_wl_window_wl_surface_id().
*/
void
gst_video_overlay_set_wl_window_wl_surface_id (GstVideoOverlay * overlay,
}
}
+/**
+* gst_video_overlay_set_wl_window_exported_shell_handle:
+* @overlay: a #GstVideoOverlay to set the window on.
+* @exported_shell_handle: a shell handle exported by wayland window for synchronization between UI and video
+
+* This will call the video overlay's set_wl_window_exported_shell_handle method. You
+* should use this medtod to tell to an overlay to display video output to a
+* specific window(e.g. an Wayland Window on Wayland).
+* But you can also set handle to wayland videosink with gst_video_overlay_set_wl_window_exported_shell_handle().
+*/
+void
+gst_video_overlay_set_wl_window_exported_shell_handle (GstVideoOverlay * overlay,
+ const char *exported_shell_handle)
+{
+ GstVideoOverlayInterface *iface;
+
+ g_return_if_fail (overlay != NULL);
+ g_return_if_fail (GST_IS_VIDEO_OVERLAY (overlay));
+
+ iface = GST_VIDEO_OVERLAY_GET_INTERFACE (overlay);
+
+ if (iface->set_wl_window_exported_shell_handle) {
+ iface->set_wl_window_exported_shell_handle (overlay, exported_shell_handle);
+ }
+}
+
+
/**
* gst_video_overlay_set_display_roi_area:
void (*set_window_handle) (GstVideoOverlay *overlay, guintptr handle);
#ifdef TIZEN_FEATURE_WAYLAND_ENHANCEMENT
void (*set_wl_window_wl_surface_id) (GstVideoOverlay * overlay, gint wl_surface_id);
-
+ void (*set_wl_window_exported_shell_handle) (GstVideoOverlay * overlay, const char *exported_shell_handle);
void (*set_display_roi_area) (GstVideoOverlay *overlay,
gint x, gint y,
gint width, gint height);
void gst_video_overlay_set_wl_window_wl_surface_id (GstVideoOverlay * overlay,
gint wl_surface_id);
+GST_VIDEO_API
+void gst_video_overlay_set_wl_window_exported_shell_handle (GstVideoOverlay * overlay,
+ const char *exported_shell_handle);
+
GST_VIDEO_API
gboolean gst_video_overlay_set_display_roi_area (GstVideoOverlay * overlay,
gint x, gint y,