thanks! i saw that, but still haven’t buckled down and made complete sense of it yet. I’ve never learned c (only what i know of it’s derivatives/successors), so i can half way understand some stuff, but the repo seems to be more complicated than i need. Also, i wasn’t sure if the code in the repo was up to date with the official gtk4 release as it was written a year ago and not updated since. It is called a playground by the author and not necessarily a current and clear cut example of the best way to do stuff.
I was hoping for a simpler example or just a high level explanation of how to use the mediastream stuff for my use case (ex. “just chain gst.this to gtk.that to gtk.that”). I’m trying to confirm what the latest, best way to do this is. Maybe mediastream is not intended to be as high level and convenient as i had hoped?
i’ve used a gtksink with gtk3 and gtk-rs a couple years ago, and it was working, but it was copying to cpu before rendering (using significantly more cpu compared to gst-launch, IIRC), and i waited for gtk4 hoping the mediastream stuff would make it avoid that cpu copy (go straight to gpu render, however that all works) and maybe even make it easier to attach a rtsp stream to a gtk container.