Clutter::Media.3pm

Langue: en

Autres versions - même langue

Version: 2010-08-25 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

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)

$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
'subtitle-font-name' (string : readable / writable / private)
The font used to display subtitles
'subtitle-uri' (string : readable / writable / private)
URI of a subtitle file
'uri' (string : readable / writable / private)
URI of a media file

SIGNALS

eos (Clutter::Media)
error (Clutter::Media, gpointer)

SEE ALSO

Clutter, Glib::Interface 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:

the GNU Lesser General Public Library version 2.1; or
the Artistic License, version 2.0.

See Clutter for the full copyright notice.