Video
Object Hierarchy:
Description:
public sealed class Video : Widget, Accessible, Buildable, ConstraintTarget
Shows a `GtkMediaStream` with media controls.
<picture> <source srcset="video-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkVideo" src="video.png" > </picture>
The controls are available separately as [class@Gtk.MediaControls]. If you just want to display a video without controls, you can treat it like any other paintable and for example put it into a [class@Gtk.Picture].
`GtkVideo` aims to cover use cases such as previews, embedded animations, etc. It supports autoplay, looping, and simple media controls. It does not have support for video overlays, multichannel audio, device selection, or input. If you are writing a full-fledged video player, you may want to use the [iface@Gdk.Paintable] API and a media framework such as Gstreamer directly.