Sets our main struct and passes it to the parent class.
Creates a new empty media file.
Creates a new media file to play @file.
Creates a new media file for the given filename.
Creates a new media file to play @stream.
Resets the media file to be empty.
Returns the file that @self is currently playing from.
Returns the stream that @self is currently playing from.
Get the main Gtk struct
the main Gtk struct as a void*
Sets the GtkMediaFile to play the given file.
Sets the `GtkMediaFile to play the given file.
Sets the GtkMediaFile to play the given stream.
Sets the `GtkMediaFile to play the given resource.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Pauses the media stream and marks it as ended.
Sets @self into an error state using a printf()-style format string.
Sets @self into an error state.
Gets the duration of the stream.
Returns whether the streams playback is finished.
If the stream is in an error state, returns the GError explaining that state.
Returns whether the stream is set to loop.
Returns whether the audio for the stream is muted.
Return whether the stream is currently playing.
Returns the current presentation timestamp in microseconds.
Returns the volume of the audio for the stream.
Returns whether the stream has audio.
Returns whether the stream has video.
Returns whether the stream has finished initializing.
Checks if a stream may be seekable.
Checks if there is currently a seek operation going on.
Pauses playback of the stream.
Starts playing the stream.
Called by GtkMediaStream implementations to advertise the stream being ready to play and providing details about the stream.
Called by users to attach the media stream to a GdkSurface they manage.
Start a seek operation on @self to @timestamp.
Ends a seek operation started via GtkMediaStream.seek() as a failure.
Ends a seek operation started via GtkMediaStream.seek() successfully.
Sets whether the stream should loop.
Sets whether the audio stream should be muted.
Starts or pauses playback of the stream.
Sets the volume of the audio stream.
Resets a given media stream implementation.
Undoes a previous call to gtk_media_stream_realize().
Media stream implementations should regularly call this function to update the timestamp reported by the stream.
GtkMediaFile implements GtkMediaStream 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 implementations using GStreamer and ffmpeg.