DESCRIPTION
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.
HIERARCHY
Glib::Interface +----Clutter::Media
METHODS
double = $media->get_audio_volume
$media->set_audio_volume ($volume)
- $volume (double)
double = $media->get_buffer_fill
boolean = $media->get_can_seek
double = $media->get_duration
$media->set_filename ($filename)
- $filename (string)
boolean = $media->get_playing
$media->set_playing ($playing)
- $playing (boolean)
double = $media->get_progress
$media->set_progress ($progress)
- $progress (double)
string = $media->get_uri
$media->set_uri ($uri)
- $uri (string)
CREATING A CUSTOM MEDIA OBJECT
package MyMedia; use Clutter; use Glib::Object::Subclass 'Glib::Object', interfaces => [ qw( Clutter::Media ) ], ;
PROPERTIES
- 'audio-volume' (double : readable / writable / private)
- The volume of the audio
- 'buffer-fill' (double : readable / private)
- The fill level of the buffer
- 'can-seek' (boolean : readable / private)
- Whether the current stream is seekable
- 'duration' (double : readable / private)
- The duration of the stream, in seconds
- 'playing' (boolean : readable / writable / private)
- Wheter the actor is playing
- 'progress' (double : readable / writable / private)
- Current progress of the playback
- 'uri' (string : readable / writable / private)
- URI of a media file
SIGNALS
- eos (Clutter::Media)
- error (Clutter::Media, gpointer)
COPYRIGHT
Copyright (C) 2006, 2007, 2008 OpenedHand LtdCopyright (C) 2009 Intel Corporation
This module is free software; you can redistribute it and/or modify it under the terms of either:
- the GNU Lesser General Public Library version 2.1; or
- the Artistic License, version 2.0.
See Clutter for the full copyright notice.