<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">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><b></b></div><div><b></b></div></div>