Creates a new empty media file.
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.
Sets the gtk.media_file.MediaFile to play the given file.
Sets the `GtkMediaFile to play the given file.
Sets the gtk.media_file.MediaFile to play the given stream.
Sets the `GtkMediaFile to play the given resource.
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.
Creates a new new media file for the given resource.
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 glib.error.ErrorG 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 users to attach the media stream to a gdk.surface.Surface 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.
Pauses the media stream and marks it as ended.
Called by gtk.media_stream.MediaStream implementations to advertise the stream being ready to play and providing details about the stream.
Resets a given media stream implementation.
Undoes a previous call to gtk.media_stream.MediaStream.realize.
Media stream implementations should regularly call this function to update the timestamp reported by the stream.
gtk.media_file.MediaFile implements gtk.media_stream.MediaStream for files.
This provides a simple way to play back video files with GTK.
GTK provides a GIO extension point for gtk.media_file.MediaFile implementations to allow for external implementations using various media frameworks.
GTK itself includes an implementation using GStreamer.