Next: ClutterModelIter, Previous: General, Up: Top
An interface for controlling playback of media data.
<clutter-media> is an interface for controlling playback of media data.
Derives from
<ginterface>.This class defines the following slots:
can-seek- TRUE if the current stream is seekable.
volume- The audio volume.
duration- The duration of the current stream in seconds.
buffer-percent- The percentage the current stream buffer is filled.
uri- The loaded URI.
playing- TRUE if playing.
position- The position in the current stream in seconds.
The ::eos signal is emitted each time the media stream ends.
Since 0.2
<gpointer>)The ::error signal is emitted each time an error occurred.
Since 0.2
<clutter-media>) (uri mchars)Sets the URI of media to uri.
- media
<clutter-media>object- uri
- URI
<clutter-media>) (ret mchars)Retrieves the URI from media.
- media
- A
<clutter-media>object- ret
- The URI as a string.
<clutter-media>) (playing bool)Starts or stops media playing.
- media
- A
<clutter-media>object- playing
- TRUE to start playing, FALSE to stop.
<clutter-media>) (ret bool)Retrieves the playing status of media.
- media
- A
<clutter-media>object- ret
- ‘
#t’ if playing, ‘#f’ if stopped.
<clutter-media>) (position int)Sets the playback position of media to position.
- media
- A
<clutter-media>object- position
- The desired position.
<clutter-media>) (ret int)Retrieves the position of media.
- media
- A
<clutter-media>object- ret
- The playback position.
<clutter-media>) (volume double)Sets the playback volume of media to volume.
- media
- A
<clutter-media>object- volume
- The volume as a double between 0.0 and 1.0
<clutter-media>) (ret double)Retrieves the playback volume of media.
- media
- A
<clutter-media>object- ret
- The playback volume between 0.0 and 1.0
<clutter-media>) (ret bool)Retrieves whether media is seekable or not.
- media
- A
<clutter-media>object- ret
- ‘
#t’ if media can seek, ‘#f’ otherwise.
<clutter-media>) (ret int)Retrieves the amount of the stream that is buffered.
- media
- A
<clutter-media>object- ret
- percentage value