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 implementations using GStreamer and ffmpeg.
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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Gdk.Paintable