Media
Object Hierarchy:
Description:
public interface Media :
Object
Interface vtable for Media implementations
Namespace: Clutter
Package: clutter-1.0
Content:
Properties:
-
public abstract double audio_volume { set; get; }
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 { set; get; }
Whether the Media actor is playing.
-
public abstract double progress { set; get; }
The current progress of the playback, as a normalized value between 0.0 and 1.0.
-
public abstract string subtitle_font_name { set; owned get; }
The font used to display subtitles. The font description has to follow the same grammar as the one
recognized by from_string.
-
public abstract string subtitle_uri { set; owned get; }
The location of a subtitle file, expressed as a valid URI.
-
public abstract string uri { set; owned get; }
The location of a media file, expressed as a valid URI.
Methods:
-
public double get_audio_volume ()
Retrieves the playback volume of media.
-
public double get_buffer_fill ()
Retrieves the amount of the stream that is buffered.
-
public bool get_can_seek ()
Retrieves whether media is seekable or not.
-
public double get_duration ()
Retrieves the duration of the media stream that media represents.
-
public bool get_playing ()
Retrieves the playing status of media.
-
public double get_progress ()
Retrieves the playback progress of media.
-
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 media.
-
public void set_audio_volume (double volume)
Sets the playback volume of media to volume.
-
public void set_filename (string filename)
Sets the source of media using a file path.
-
public void set_playing (bool playing)
Starts or stops playing of media. The implementation might be asynchronous, so the way to
know whether the actual playing state of the media is to use the
notify signal on the
playing property and then retrieve the current state with
get_playing. ClutterGstVideoTexture in clutter-gst is an example of such
an asynchronous implementation.
-
public void set_progress (double progress)
Sets the playback progress of media. The progress is a normalized value
between 0.0 (begin) and 1.0 (end).
-
public void set_subtitle_font_name (string font_name)
Sets the font used by the subtitle renderer. The font_name string must be either null
, which means that the default font name of the underlying implementation will be used; or must follow the grammar recognized
by from_string like:
-
public void set_subtitle_uri (string uri)
Sets the location of a subtitle file to display while playing media.
-
public void set_uri (string uri)
Sets the URI of media to uri.
Signals:
-
public virtual void eos ()
The eos signal is emitted each time the media stream
ends.
-
public virtual void error ()
The error signal is emitted each time an error
occurred.