It derives from <GtkWidget>.
Shows a <GtkMediaStream> with media controls.
The controls are available separately as
<GtkMediaControls>. 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
<GtkPicture>.
<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
<GdkPaintable> API and a media framework
such as Gstreamer directly.
If the video should automatically begin playing.
Its value is a boolean.
Set it with (set! (video:autoplay self) value).
The file played by this video if the video is playing a file.
Its value is a <GFile>, or #f.
Set it with (set! (video:file self) value).
Whether to enable graphics offload.
Its value is a
<GtkGraphicsOffloadEnabled> (or, to
set it, one of its symbols).
Set it with (set! (video:graphics-offload self) value).
If new media files should be set to loop.
Its value is a boolean.
Set it with (set! (video:loop self) value).
The media-stream played
Its value is a <GtkMediaStream>, or #f.
Set it with (set! (video:media-stream self) value).
Returns #t if videos have been set to loop.
Passed: a <GtkVideo>.
Returned: a boolean.
#t if streams should autoplay
Gets the file played by self or #f if not playing back a
file.
Passed: a <GtkVideo>.
Returned: a <GFile>, or #f.
The file played by self
Returns whether graphics offload is enabled.
See <GtkGraphicsOffload> for more
information on graphics offload.
Passed: a <GtkVideo>.
Returned: a
<GtkGraphicsOffloadEnabled>.
the graphics offload status
Returns #t if videos have been set to loop.
Passed: a <GtkVideo>.
Returned: a boolean.
#t if streams should loop
Gets the media stream managed by self or #f if none.
Passed: a <GtkVideo>.
Returned: a <GtkMediaStream>, or #f.
The media stream managed by self
Creates a new empty <GtkVideo>.
Returned: a <GtkWidget>.
a new <GtkVideo>
Creates a <GtkVideo> to play back the given
file.
Passed, or left out: a <GFile>, or #f.
a <GFile>
Returned: a <GtkWidget>.
a new <GtkVideo>
Creates a <GtkVideo> to play back the given
filename.
This is a utility function that calls video:new-for-file, See that function for details.
Passed, or left out: a file name, as a string, or #f.
filename to play back
Returned: a <GtkWidget>.
a new <GtkVideo>
Creates a <GtkVideo> to play back the given
stream.
Passed, or left out: a <GtkMediaStream>, or
#f.
Returned: a <GtkWidget>.
a new <GtkVideo>
Creates a <GtkVideo> to play back the resource at
the given resource-path.
This is a utility function that calls video:new-for-file.
Passed, or left out: a string, or #f.
resource path to play back
Returned: a <GtkWidget>.
a new <GtkVideo>
Sets whether self automatically starts playback when it becomes visible or when a new file gets loaded.
Passed: a <GtkVideo>.
Passed: a boolean.
whether media streams should autoplay
Makes self play the given file.
Passed: a <GtkVideo>.
Passed, or left out: a <GFile>, or #f.
the file to play
Makes self play the given filename.
This is a utility function that calls video:set-file,
Passed: a <GtkVideo>.
Passed, or left out: a file name, as a string, or #f.
the filename to play
Sets whether to enable graphics offload.
See <GtkGraphicsOffload> for more
information on graphics offload.
Passed: a <GtkVideo>.
Passed: a
<GtkGraphicsOffloadEnabled>, or one
of its symbols.
the new graphics offload status
Sets whether new files loaded by self should be set to loop.
Passed: a <GtkVideo>.
Passed: a boolean.
whether media streams should loop
Sets the media stream to be played back.
self will take full control of managing the media stream. If you
want to manage a media stream yourself, consider using a
<GtkPicture> for display.
If you want to display a file, consider using video:set-file instead.
Passed: a <GtkVideo>.
Passed, or left out: a <GtkMediaStream>, or
#f.
The media stream to play or #f to unset
Makes self play the resource at the given resource-path.
This is a utility function that calls video:set-file.
Passed: a <GtkVideo>.
Passed, or left out: a string, or #f.
the resource to set