Media
Object Hierarchy:
Description:
[ CCode ( type_id = "clutter_media_get_type ()" ) ]
[ Version ( since = "0.2" ) ]
public interface Media : Object
Media is an opaque structure whose members cannot be directly accessed
Content:
Properties:
- public abstract double audio_volume { get; set; }
The volume of the audio, as a normalized value between 0.0 and 1.0.
- public abstract double buffer_fill { get; }
The fill level of the buffer for the current stream, as a value
between 0.0 and 1.0.
- public abstract bool can_seek { get; }
Whether the current stream is seekable.
- public abstract double duration { get; }
The duration of the current stream, in seconds
- public abstract bool playing { get; set; }
Whether the Media actor is playing.
- public abstract double progress { get; set; }
The current progress of the playback, as a normalized value between
0.0 and 1.0.
- public abstract string subtitle_font_name { owned get; set; }
The font used to display subtitles.
- public abstract string subtitle_uri { owned get; set; }
The location of a subtitle file, expressed as a valid URI.
- public abstract string uri { owned get; set; }
The location of a media file, expressed as a valid URI.
Methods:
- public double get_audio_volume ()
Retrieves the playback volume of this
.
- public double get_buffer_fill ()
Retrieves the amount of the stream that is buffered.
- public bool get_can_seek ()
Retrieves whether this is seekable
or not.
- public double get_duration ()
Retrieves the duration of the media stream that
this represents.
- public bool get_playing ()
Retrieves the playing status of this
.
- public double get_progress ()
Retrieves the playback progress of this
.
- public string get_subtitle_font_name ()
Retrieves the font name currently used.
- public string get_subtitle_uri ()
Retrieves the URI of the subtitle file in use.
- public string get_uri ()
Retrieves the URI from this.
- public void set_audio_volume (double volume)
Sets the playback volume of this to
volume
.
- public void set_filename (string filename)
Sets the source of this using a file
path.
- public void set_playing (bool playing)
Starts or stops playing of this.
- public void set_progress (double progress)
Sets the playback progress of this.
- public void set_subtitle_font_name (string font_name)
Sets the font used by the subtitle renderer.
- public void set_subtitle_uri (string uri)
Sets the location of a subtitle file to display while playing
this.
- public void set_uri (string uri)
Sets the URI of this to uri
.
Signals:
Inherited Members:
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