<div dir="ltr"><div>Hi Matthew, <br></div><div><br></div><div>This works great. Thanks.</div><div><br></div><div>The only problem left is just this <a href="https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/578">issue</a> to be fixed. I hope it's resolved in the next stable release.</div><div><br></div><div>Thanks.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 3, 2020 at 1:01 PM Matthew Waters <<a href="mailto:ystreet00@gmail.com">ystreet00@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>Use a different video sink, or respond
the the 'prepare-window-handle' message from the actual video sink
created by autovideosink (no guarantees that all possible video
sinks chosen by autovideosink support the GstVideoOverlay
interface, but most do). See the documentation or any of the
overlay examples in gst-plugins-base.<br>
<br>
On 3/7/20 9:40 pm, Busayo Famutimi wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi Matthew,</div>
<div><br>
</div>
<div>Thanks for your response.</div>
<div><br>
</div>
<div>However, I am still getting the same error message when I
called the overlay function on my sink element.</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><b>(webrtc-sendrecv.exe:14920): GLib-GObject-WARNING **:
12:35:52.095: invalid cast from 'GstAutoVideoSink' to
'GstVideoOverlay'<br>
<br>
** (webrtc-sendrecv.exe:14920): CRITICAL **: 12:35:52.095:
gst_video_overlay_set_window_handle: assertion
'GST_IS_VIDEO_OVERLAY (overlay)' failed</b></div>
</blockquote>
<div><br>
</div>
<div>I then looked up the <a href="https://gstreamer.freedesktop.org/documentation/autodetect/autovideosink.html?gi-language=c#autovideosink-page" target="_blank">documentation</a> and I noticed that
autovideosink does not implement the GstVideoOverlay
interface. <br>
</div>
<div><br>
</div>
<div>How can I fix this problem?</div>
<div><br>
</div>
<div>Thanks.<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jul 3, 2020 at 3:01 AM
Matthew Waters <<a href="mailto:ystreet00@gmail.com" target="_blank">ystreet00@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>GstVideoOverlay is an interface that is implemented by
most video sinks. You need to call
gst_video_overlay_set_window_handle() on your video sink,
not webrtcbin.<br>
<br>
On 3/7/20 6:40 am, Busayo Famutimi wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi Devs, <br>
</div>
<div><br>
</div>
<div>I am trying to display a video stream from
WebRTCBin to a GTK Window using VideoOverlay rather
than have gstreamer create it's own window.</div>
<div><br>
</div>
<div>The code works fine (<a href="https://github.com/centricular/gstwebrtc-demos/blob/master/sendrecv/gst/webrtc-sendrecv.c" target="_blank">gstwebrtc-demos
- sendrecv.c</a>). I managed to tweak it to suit my
intended purpose but I keep getting the following
error:</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><b>GLib-GObject-WARNING **: 21:14:46.552: invalid
cast from 'GstWebRTCBin' to 'GstVideoOverlay'<br>
<br>
** (webrtc-sendrecv.exe:6304): CRITICAL **:
21:14:46.552: gst_video_overlay_set_window_handle:
assertion 'GST_IS_VIDEO_OVERLAY (overlay)' failed</b></div>
</blockquote>
<div><b><br>
</b></div>
<div>The error is coming from this line of the code:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><b>/* Pass it to playbin, which implements
VideoOverlay and will forward it to the video sink
*/<br>
gst_video_overlay_set_window_handle(GST_VIDEO_OVERLAY(webrtc1),
window_handle);</b></div>
</blockquote>
<div><b><br>
</b></div>
<div>Please how can I handle this situation?</div>
<div><br>
</div>
<div>Thanks.<br>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</div>
</blockquote></div>