<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">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"
cite="mid:CACCWeRfyaq+dMRcON4=eE=tKjJ0v9QX5zaAz5E_TA=jnTmVQGQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">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 class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>