Gtk.MediaControls

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.MediaControls Gtk.MediaControls Gtk.Widget->Gtk.MediaControls

Example

../_images/MediaControls.png
Subclasses:

None

Methods

Inherited:

Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new (stream)

get_media_stream ()

set_media_stream (stream)

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Gtk.Widget (34), Gtk.Accessible (1)

Name

Type

Flags

Short Description

media-stream

Gtk.MediaStream

r/w/en

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Class Details

class Gtk.MediaControls(**kwargs)
Bases:

Gtk.Widget

Abstract:

No

Structure:

Gtk.MediaControlsClass

GtkMediaControls is a widget to show controls for a video.

An example Gtk.MediaControls

Usually, GtkMediaControls is used as part of [class`Gtk`.Video].

classmethod new(stream)[source]
Parameters:

stream (Gtk.MediaStream or None) – a GtkMediaStream to manage

Returns:

a new GtkMediaControls

Return type:

Gtk.Widget

Creates a new GtkMediaControls managing the stream passed to it.

get_media_stream()[source]
Returns:

The media stream managed by self

Return type:

Gtk.MediaStream or None

Gets the media stream managed by self or None if none.

set_media_stream(stream)[source]
Parameters:

stream (Gtk.MediaStream or None) – a GtkMediaStream

Sets the stream that is controlled by self.

Property Details

Gtk.MediaControls.props.media_stream
Name:

media-stream

Type:

Gtk.MediaStream

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The media-stream managed by this object or None if none.