MediaFile
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_media_file_get_type ()" ) ]
public abstract class MediaFile :
MediaStream,
Paintable
`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.
Content:
Properties:
Static methods:
- public static MediaFile empty ()
Creates a new empty media file.
- public static MediaFile for_file (File file)
Creates a new media file to play file
.
- public static MediaFile for_filename (string filename)
Creates a new media file for the given filename.
- public static MediaFile for_input_stream (InputStream stream)
Creates a new media file to play stream
.
- public static MediaFile for_resource (string resource_path)
Creates a new new media file for the given resource.
Creation methods:
Methods:
- public void clear ()
Resets the media file to be empty.
- public virtual void close ()
- public unowned File? get_file ()
Returns the file that this is currently
playing from.
- public unowned InputStream? get_input_stream ()
Returns the stream that this is currently
playing from.
- public virtual void open ()
- public void set_file (File? file)
Sets the `GtkMediaFile` to play the given file.
- public void set_filename (string? filename)
Sets the `GtkMediaFile to play the given file.
- public void set_input_stream (InputStream? stream)
Sets the `GtkMediaFile` to play the given stream.
- public void set_resource (string? resource_path)
Sets the `GtkMediaFile to play the given resource.
Inherited Members:
All known members inherited from class Gtk.MediaStream
All known members inherited from class GLib.Object
All known members inherited from interface Gdk.Paintable