MediaFile
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 an implementation using GStreamer.
Constructors
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.
Properties
Functions
Gets the duration of the stream.
Returns the stream that @self is currently playing from.
Return whether the stream is currently playing.
Returns the current presentation timestamp in microseconds.
Returns whether the stream has finished initializing.
Checks if a stream may be seekable.
Ends a seek operation started via GtkMediaStream.seek() as a failure.
Ends a seek operation started via GtkMediaStream.seek() successfully.
Sets the `GtkMediaFile to play the given file.
Sets the GtkMediaFile
to play the given stream.
Starts or pauses playback of the stream.
Sets the `GtkMediaFile to play the given resource.
Pauses the media stream and marks it as ended.
Called by GtkMediaStream
implementations to advertise the stream being ready to play and providing details about the stream.
Resets a given media stream implementation.