Video/Audio streaming for Gio SocketClient in GTK 4

I'm working on browser, where just want to play video and audio online, without download entire data into the some tmp buffer like MemoryInputStream or file, or load the chunks and cleanup the pool manually.

Found some useful widgets like Video and MediaControls for audio, but I can't find the solution to simply stream the data directly, for SocketConnection.

Should I really write this implementation for myself or maybe some library extension do that for subjects above? I heard about GStreamer, but not sure what is it. Looks like it's wanted for GTK 3, but I'm beginner in this ecosystem, want just simple API to implement native widgets from the kit.

The GStreamer Rust plugins set (gst-plugins-rs) has a gtk4paintablesink if that helps.

There's a sample application here

1 Like

Thanks, so there is really no way to play MediaStream from InputStream directly?

I don't know the answer to that, sorry.

You might have more luck getting a response to that over at the GNOME discourse forum where GTK developers/users hang out.

1 Like