Module: Clutter::Media
- Defined in:
- (unknown)
Overview
Clutter::Media is an opaque structure whose members cannot be directly accessed
Instance Method Summary collapse
-
#audio_volume ⇒ Float
Retrieves the playback volume of media.
-
#audio_volume=(volume) ⇒ nil
Sets the playback volume of media to volume.
-
#buffer_fill ⇒ Float
Retrieves the amount of the stream that is buffered.
-
#can_seek ⇒ Boolean
Retrieves whether media is seekable or not.
-
#duration ⇒ Float
Retrieves the duration of the media stream that media represents.
- #eos(media) ⇒ nil
- #error(media, error) ⇒ nil
-
#filename=(filename) ⇒ nil
Sets the source of media using a file path.
-
#playing ⇒ Boolean
Retrieves the playing status of media.
-
#playing=(playing) ⇒ nil
Starts or stops playing of media.
-
#progress ⇒ Float
Retrieves the playback progress of media.
-
#progress=(progress) ⇒ nil
Sets the playback progress of media.
-
#subtitle_font_name ⇒ String
Retrieves the font name currently used.
-
#subtitle_font_name=(font_name) ⇒ nil
Sets the font used by the subtitle renderer.
-
#subtitle_uri ⇒ String
Retrieves the URI of the subtitle file in use.
-
#subtitle_uri=(uri) ⇒ nil
Sets the location of a subtitle file to display while playing media.
-
#uri ⇒ String
Retrieves the URI from media.
-
#uri=(uri) ⇒ nil
Sets the URI of media to uri.
Instance Method Details
#audio_volume ⇒ Float
Retrieves the playback volume of media.
#audio_volume=(volume) ⇒ nil
Sets the playback volume of media to volume.
#buffer_fill ⇒ Float
Retrieves the amount of the stream that is buffered.
#can_seek ⇒ Boolean
Retrieves whether media is seekable or not.
#duration ⇒ Float
Retrieves the duration of the media stream that media represents.
#eos(media) ⇒ nil
#error(media, error) ⇒ nil
#filename=(filename) ⇒ nil
Sets the source of media using a file path.
#playing ⇒ Boolean
Retrieves the playing status of media.
#playing=(playing) ⇒ nil
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 #GObject::notify signal on the Clutter::Media:playing property and then retrieve the current state with clutter_media_get_playing(). ClutterGstVideoTexture in clutter-gst is an example of such an asynchronous implementation.
#progress ⇒ Float
Retrieves the playback progress of media.
#progress=(progress) ⇒ nil
Sets the playback progress of media. The progress is a normalized value between 0.0 (begin) and 1.0 (end).
#subtitle_font_name ⇒ String
Retrieves the font name currently used.
#subtitle_font_name=(font_name) ⇒ nil
Sets the font used by the subtitle renderer. The font_name string must be either nil, which means that the default font name of the underlying implementation will be used; or must follow the grammar recognized by pango_font_description_from_string() like:
|[ clutter_media_set_subtitle_font_name (media, "Sans 24pt"); ]|
#subtitle_uri ⇒ String
Retrieves the URI of the subtitle file in use.
#subtitle_uri=(uri) ⇒ nil
Sets the location of a subtitle file to display while playing media.
#uri ⇒ String
Retrieves the URI from media.
#uri=(uri) ⇒ nil
Sets the URI of media to uri.