Gnome::Gtk4::MediaControls
Description
Gnome::Gtk4::MediaControls is a widget to show controls for a video.
Usually, Gnome::Gtk4::MediaControls is used as part of Gnome::Gtk4::Video.
Class initialization
new
:native-object
Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object :$native-object! )
new-mediacontrols
Creates a new Gnome::Gtk4::MediaControls managing the $stream
passed to it.
method new-mediacontrols ( N-Object() $stream --> Gnome::Gtk4::MediaControls \)
$stream; a Gnome::Gtk4::MediaStream to manage.
Methods
get-media-stream
Gets the media stream managed by $controls
or undefined if none.
method get-media-stream (--> N-Object )
Return value; The media stream managed by $controls
.
set-media-stream
Sets the stream that is controlled by $controls
.
method set-media-stream ( N-Object() $stream )
$stream; a Gnome::Gtk4::MediaStream.