An interface for controlling playback of media data
<clutter-media>
is an interface for controlling playback of media
sources.
Clutter core does not provide an implementation of this interface, but other integration libraries like Clutter-GStreamer implement it to offer a uniform API for applications.
<clutter-media>
is available since Clutter 0.2
<clutter-media>
) (uri mchars
)Sets the URI of media to uri.
- media
- a
<clutter-media>
- uri
- the URI of the media stream
Since 0.2
<clutter-media>
) ⇒ (ret mchars
)Retrieves the URI from media.
- media
- a
<clutter-media>
- ret
- the URI of the media stream. Use
g-free
to free the returned stringSince 0.2
<clutter-media>
) (playing bool
)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 withclutter-media-get-playing
. ClutterGstVideoTexture in clutter-gst is an example of such an asynchronous implementation.
- media
- a
<clutter-media>
- playing
- ‘
#t
’ to start playingSince 0.2
<clutter-media>
) ⇒ (ret bool
)Retrieves the playing status of media.
- media
- A
<clutter-media>
object- ret
- ‘
#t
’ if playing, ‘#f
’ if stopped.Since 0.2
<clutter-media>
) (progress double
)Sets the playback progress of media. The progress is a normalized value between 0.0 (begin) and 1.0 (end).
- media
- a
<clutter-media>
- progress
- the progress of the playback, between 0.0 and 1.0
Since 1.0
<clutter-media>
) ⇒ (ret double
)Retrieves the playback progress of media.
- media
- a
<clutter-media>
- ret
- the playback progress, between 0.0 and 1.0
Since 1.0
<clutter-media>
) (uri mchars
)Sets the location of a subtitle file to display while playing media.
- media
- a
<clutter-media>
- uri
- the URI of a subtitle file
Since 1.2
<clutter-media>
) ⇒ (ret mchars
)Retrieves the URI of the subtitle file in use.
- media
- a
<clutter-media>
- ret
- the URI of the subtitle file. Use
g-free
to free the returned stringSince 1.2
<clutter-media>
) (volume double
)Sets the playback volume of media to volume.
- media
- a
<clutter-media>
- volume
- the volume as a double between 0.0 and 1.0
Since 1.0
<clutter-media>
) ⇒ (ret double
)Retrieves the playback volume of media.
- media
- a
<clutter-media>
- ret
- The playback volume between 0.0 and 1.0
Since 1.0
<clutter-media>
) ⇒ (ret bool
)Retrieves whether media is seekable or not.
- media
- a
<clutter-media>
- ret
- ‘
#t
’ if media can seek, ‘#f
’ otherwise.Since 0.2
<clutter-media>
) ⇒ (ret double
)Retrieves the amount of the stream that is buffered.
- media
- a
<clutter-media>
- ret
- the fill level, between 0.0 and 1.0
Since 1.0