MediaControls#
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
GtkMediaControls
is a widget to show controls for a video.

Usually, GtkMediaControls
is used as part of Video
.
Constructors#
- class MediaControls
- classmethod new(stream: MediaStream | None = None) Widget #
Creates a new
GtkMediaControls
managing thestream
passed to it.- Parameters:
stream – a
GtkMediaStream
to manage
Methods#
- class MediaControls
- get_media_stream() MediaStream | None #
Gets the media stream managed by
controls
orNone
if none.
- set_media_stream(stream: MediaStream | None = None) None #
Sets the stream that is controlled by
controls
.- Parameters:
stream – a
GtkMediaStream
Properties#
- class MediaControls
- props.media_stream: MediaStream#
The type of the None singleton.