It derives from <GtkMediaStream>.
Implements the <GtkMediaStream> interface for
files.
This provides a simple way to play back video files with GTK.
GTK provides a GIO extension point for
<GtkMediaFile> implementations to allow for
external implementations using various media frameworks.
GTK itself includes an implementation using GStreamer.
parent-instanceThe file being played back or #f if not playing a file.
Its value is a <GFile>, or #f.
Set it with (set! (media-file:file self) value).
The stream being played back or #f if not playing a stream.
This is #f when playing a file.
Its value is a <GInputStream>, or
#f.
Set it with (set! (media-file:input-stream self) value).
Resets the media file to be empty.
Passed: a <GtkMediaFile>.
Returns the file that self is currently playing from.
When self is not playing or not playing from a file, #f is
returned.
Passed: a <GtkMediaFile>.
Returned: a <GFile>, or #f.
The currently playing file
Returns the stream that self is currently playing from.
When self is not playing or not playing from a stream, #f
is returned.
Passed: a <GtkMediaFile>.
Returned: a <GInputStream>, or #f.
The currently playing stream
Creates a new empty media file.
Returned: a <GtkMediaFile>.
a new <GtkMediaFile>
Creates a new media file to play file.
Passed: a <GFile>.
The file to play
Returned: a <GtkMediaFile>.
a new <GtkMediaFile> playing file
Creates a new media file for the given filename.
This is a utility function that converts the given filename to a
<GFile> and calls media-file:new-for-file.
Passed: a file name, as a string.
filename to open
Returned: a <GtkMediaFile>.
a new <GtkMediaFile> playing filename
Creates a new media file to play stream.
If you want the resulting media to be seekable, the stream should
implement the <GSeekable> interface.
Passed: a <GInputStream>.
The stream to play
Returned: a <GtkMediaFile>.
a new <GtkMediaFile>
Creates a new new media file for the given resource.
This is a utility function that converts the given resource to a
<GFile> and calls media-file:new-for-file.
Passed: a string.
resource path to open
Returned: a <GtkMediaFile>.
a new <GtkMediaFile> playing resource-path
Sets the <GtkMediaFile> to play the given file.
If any file is still playing, stop playing it.
Passed: a <GtkMediaFile>.
Passed, or left out: a <GFile>, or #f.
the file to play
Sets the <GtkMediaFile> to play the given file.
This is a utility function that converts the given filename to a
<GFile> and calls media-file:set-file.
Passed: a <GtkMediaFile>.
Passed, or left out: a file name, as a string, or #f.
name of file to play
Sets the <GtkMediaFile> to play the given
stream.
If anything is still playing, stop playing it.
Full control about the stream is assumed for the duration of playback. The stream will not be closed.
Passed: a <GtkMediaFile>.
Passed, or left out: a <GInputStream>, or
#f.
the stream to play from
Sets the <GtkMediaFile> to play the given
resource.
This is a utility function that converts the given resource-path
to a <GFile> and calls media-file:set-file.
Passed: a <GtkMediaFile>.
Passed, or left out: a string, or #f.
path to resource to play
To override it in a new class, give register-type #:vfuncs
`((close . ,procedure)). The procedure is called as (procedure
self).
Passed: the class whose implementation to call:
<GtkMediaFile>, or a class that derives from it,
or its GType number.
Passed: a <GtkMediaFile>.
To override it in a new class, give register-type #:vfuncs
`((open . ,procedure)). The procedure is called as (procedure
self).
Passed: the class whose implementation to call:
<GtkMediaFile>, or a class that derives from it,
or its GType number.
Passed: a <GtkMediaFile>.