#include <media.h>
Public Member Functions | |
virtual | ~Media () |
ClutterMedia * | gobj () |
Provides access to the underlying C GObject. | |
const ClutterMedia * | gobj () const |
Provides access to the underlying C GObject. | |
void | set_uri (const Glib::ustring &uri) |
Sets the uri of media to uri. | |
Glib::ustring | get_uri () const |
Retrieves the URI from media. | |
void | set_playing (bool playing=true) |
Starts or stops media playing. | |
bool | get_playing () const |
Retrieves the state of media. | |
void | set_position (int position) |
Sets the playback position of media to position. | |
int | get_position () const |
Retrieves the position of media. | |
void | set_volume (double volume) |
Sets the playback volume of media to volume. | |
double | get_volume () const |
Retrieves the playback volume of media. | |
int | get_buffer_percent () const |
Retrieves the amount of the stream that is buffered. | |
void | set_filename (const Glib::ustring &filename) |
Sets the filename of the media source. | |
bool | get_can_seek () const |
Retrieves whether media is seekable or not. | |
int | get_duration () const |
Retrieves the duration of the media stream that media represents. | |
Static Public Member Functions | |
static void | add_interface (GType gtype_implementer) |
Protected Member Functions | |
virtual void | set_uri_vfunc (const Glib::ustring &uri) |
virtual void | set_playing_vfunc (bool playing) |
virtual bool | get_playing_vfunc () const |
virtual void | set_position_vfunc (int position) |
virtual int | get_position_vfunc () const |
virtual void | set_volume_vfunc (double volume) |
virtual double | get_volume_vfunc () const |
virtual bool | can_seek_vfunc () const |
virtual int | get_buffer_percent_vfunc () const |
virtual int | get_duration_vfunc () const |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Clutter::Media > | wrap (ClutterMedia *object, bool take_copy=false) |
A Glib::wrap() method for this object. |
virtual Clutter::Media::~Media | ( | ) | [virtual] |
static void Clutter::Media::add_interface | ( | GType | gtype_implementer | ) | [static] |
virtual bool Clutter::Media::can_seek_vfunc | ( | ) | const [protected, virtual] |
int Clutter::Media::get_buffer_percent | ( | ) | const |
Retrieves the amount of the stream that is buffered.
virtual int Clutter::Media::get_buffer_percent_vfunc | ( | ) | const [protected, virtual] |
bool Clutter::Media::get_can_seek | ( | ) | const |
Retrieves whether media is seekable or not.
true
if media can seek, false
otherwise. int Clutter::Media::get_duration | ( | ) | const |
Retrieves the duration of the media stream that media represents.
virtual int Clutter::Media::get_duration_vfunc | ( | ) | const [protected, virtual] |
bool Clutter::Media::get_playing | ( | ) | const |
Retrieves the state of media.
true
if playing, false
if stopped. virtual bool Clutter::Media::get_playing_vfunc | ( | ) | const [protected, virtual] |
int Clutter::Media::get_position | ( | ) | const |
Retrieves the position of media.
virtual int Clutter::Media::get_position_vfunc | ( | ) | const [protected, virtual] |
Glib::ustring Clutter::Media::get_uri | ( | ) | const |
Retrieves the URI from media.
double Clutter::Media::get_volume | ( | ) | const |
Retrieves the playback volume of media.
virtual double Clutter::Media::get_volume_vfunc | ( | ) | const [protected, virtual] |
const ClutterMedia* Clutter::Media::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
ClutterMedia* Clutter::Media::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
void Clutter::Media::set_filename | ( | const Glib::ustring & | filename | ) |
Sets the filename of the media source.
filename | A filename to media file. |
void Clutter::Media::set_playing | ( | bool | playing = true |
) |
Starts or stops media playing.
playing | true to start playing, false to stop. |
virtual void Clutter::Media::set_playing_vfunc | ( | bool | playing | ) | [protected, virtual] |
void Clutter::Media::set_position | ( | int | position | ) |
Sets the playback position of media to position.
position | The desired position. |
virtual void Clutter::Media::set_position_vfunc | ( | int | position | ) | [protected, virtual] |
void Clutter::Media::set_uri | ( | const Glib::ustring & | uri | ) |
Sets the uri of media to uri.
uri | Uri. |
virtual void Clutter::Media::set_uri_vfunc | ( | const Glib::ustring & | uri | ) | [protected, virtual] |
void Clutter::Media::set_volume | ( | double | volume | ) |
Sets the playback volume of media to volume.
volume | The volume as a double between 0.0 and 1.0. |
virtual void Clutter::Media::set_volume_vfunc | ( | double | volume | ) | [protected, virtual] |
Glib::RefPtr< Clutter::Media > wrap | ( | ClutterMedia * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |