Gnome::Gtk4::MediaControls
#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------
Description
Gnome::Gtk4::MediaControls is a widget to show controls for a video.
=for image :src<asset_files/images/media-controls.png> :width<30%> :class<inline>
Usually, Gnome::Gtk4::MediaControls is used as part of Gnome::Gtk4::Video.
Uml Diagram =for image :src<asset_files/images/plantuml/MediaControls.png> :width<70%> :class<inline>
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
Class initialization
new
:native-object
Create an object using a native object from an object of the same type found 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]-------------------------------------------------------------------- #-------------------------------------------------------------------------------
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.