Media
Object Hierarchy:
Description:
[ CCode ( type_id = "clutter_media_get_type ()" ) ]
[ Version ( since = "0.2" ) ]
public interface Media : Object
[ Version ( since = "0.2" ) ]
public interface Media : Object
Media is an opaque structure whose members cannot be directly accessed
Namespace: Clutter
Package: clutter-1.0
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:
- public virtual signal void eos ()
The eos signal is emitted each time the media stream ends.
- public virtual signal void error (Error error)
The error signal is emitted each time an error occurred.
Inherited Members:
All known members inherited from class GLib.Object