GTK+ 4.0 Getting Audio/Video Playback Integration

Written by Michael Larabel in GNOME on 18 March 2018 at 05:56 PM EDT. 10 Comments
The GTK+ 4.0 tool-kit has just landed its GtkMediaStream / GtkMediaFile / GtkVideo / GtkMediaControls widgets for now having native multimedia stream playback support in the tool-kit that in turn is backed by GStreamer / FFmpeg.

Benjamin Otte has just committed his big batch of multimedia widgets for GTK4. Here's some of what has been added:

GtkMediaStream: The base class for playback of audio/video streams and uses GdkPaintable for rendering.

GtkMediaFile: The new interface implementing GtkMediaStream for the playback of media files.

GtkMediaControls: The implementation of controls for a GtkMediaStream and modeled around GNOME's Totem multimedia player user-interface.

GtkVideo: A simple video player widget.

As of Git today there are FFmpeg and GStreamer implementations of GtkMediaFile. GStreamer is the default back-end for this GTK4 media playback support. Basic examples of this new functionality can be found via the gtk-demo code for a basic GTK video player. Clone from Git if you want this new functionality ahead of the initial GTK+ 4.0 release expected later this year.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week