Clutter::Media(3pm)
NAME
Clutter::Media - An interface for controlling playback of media actors
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)
- o $volume (double)
- double = $media->get_buffer_fill boolean = $media->get_can_seek double = $media->get_duration $media->set_filename ($filename)
- o $filename (string)
- boolean = $media->get_playing $media->set_playing ($playing)
- o $playing (boolean)
- double = $media->get_progress $media->set_progress ($progress)
- o $progress (double)
- string = $media->get_uri
$media->set_uri ($uri) - o $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)
SEE ALSO
Clutter, Glib::Interface
COPYRIGHT
Copyright (C) 2006, 2007, 2008 OpenedHand Ltd
Copyright (C) 2009 Intel Corporation
This module is free software; you can redistribute it and/or modify it
under the terms of either:
o the GNU Lesser General Public Library version 2.1; or
o the Artistic License, version 2.0.
- See Clutter for the full copyright notice.