ClutterGst.Player¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The volume of the audio |
||
r |
Idle state of the player’s pipeline |
||
r/w |
Whether the player is playing |
Signals¶
Name |
Short Description |
---|---|
The |
|
The |
|
The |
|
The |
|
The |
Fields¶
None
Class Details¶
- class ClutterGst.Player¶
- Bases:
- Structure:
ClutterGst.Player
is an opaque structure whose members cannot be directly accessedNew in version 1.4.
- get_audio_volume()¶
- Returns:
The playback volume between 0.0 and 1.0
- Return type:
Retrieves the playback volume of self.
New in version 3.0.
- get_frame()¶
- Returns:
the
ClutterGst.Frame
of the last frame.- Return type:
Retrieves the
ClutterGst.Frame
of the last frame produced by self.New in version 3.0.
- get_idle()¶
-
Get the idle state of the pipeline.
New in version 3.0.
- get_pipeline()¶
- Returns:
the
Gst.Pipeline
element used by the player- Return type:
Retrieves the
Gst.Pipeline
used by the self, for direct use with GStreamer API.New in version 3.0.
- get_playing()¶
-
Retrieves the playing status of self.
New in version 3.0.
- get_video_sink()¶
- Returns:
the
ClutterGst.VideoSink
element used by the player- Return type:
Retrieves the
ClutterGst.VideoSink
used by the self.New in version 3.0.
- set_audio_volume(volume)¶
- Parameters:
volume (
float
) – the volume as a double between 0.0 and 1.0
Sets the playback volume of self to volume.
New in version 3.0.
- set_playing(playing)¶
-
Starts or stops playing of self.
The implementation might be asynchronous, so the way to know whether the actual playing state of the self is to use the
GObject.Object
::notify
signal on theClutterGst.Player
:playing
property and then retrieve the current state withClutterGst.Player.get_playing
(). ClutterGstVideoActor in clutter-gst is an example of such an asynchronous implementation.New in version 3.0.
- do_eos() virtual¶
- do_error(error) virtual¶
- Parameters:
error (
GLib.Error
) –
- do_get_audio_volume() virtual¶
- Returns:
The playback volume between 0.0 and 1.0
- Return type:
Retrieves the playback volume of self.
New in version 3.0.
- do_get_frame() virtual¶
- Returns:
the
ClutterGst.Frame
of the last frame.- Return type:
Retrieves the
ClutterGst.Frame
of the last frame produced by self.New in version 3.0.
- do_get_idle() virtual¶
-
Get the idle state of the pipeline.
New in version 3.0.
- do_get_pipeline() virtual¶
- Returns:
the
Gst.Pipeline
element used by the player- Return type:
Retrieves the
Gst.Pipeline
used by the self, for direct use with GStreamer API.New in version 3.0.
- do_get_playing() virtual¶
-
Retrieves the playing status of self.
New in version 3.0.
- do_get_video_sink() virtual¶
- Returns:
the
ClutterGst.VideoSink
element used by the player- Return type:
Retrieves the
ClutterGst.VideoSink
used by the self.New in version 3.0.
- do_new_frame(frame) virtual¶
- Parameters:
frame (
ClutterGst.Frame
) –
- do_ready() virtual¶
- do_set_audio_volume(volume) virtual¶
- Parameters:
volume (
float
) – the volume as a double between 0.0 and 1.0
Sets the playback volume of self to volume.
New in version 3.0.
- do_set_playing(playing) virtual¶
-
Starts or stops playing of self.
The implementation might be asynchronous, so the way to know whether the actual playing state of the self is to use the
GObject.Object
::notify
signal on theClutterGst.Player
:playing
property and then retrieve the current state withClutterGst.Player.get_playing
(). ClutterGstVideoActor in clutter-gst is an example of such an asynchronous implementation.New in version 3.0.
Signal Details¶
- ClutterGst.Player.signals.eos(player)¶
- Signal Name:
eos
- Flags:
- Parameters:
player (
ClutterGst.Player
) – The object which received the signal
The
::eos
signal is emitted each time the media stream ends.
- ClutterGst.Player.signals.error(player, error)¶
- Signal Name:
error
- Flags:
- Parameters:
player (
ClutterGst.Player
) – The object which received the signalerror (
GLib.Error
) – theGLib.Error
The
::error
signal is emitted each time an error occurred.
- ClutterGst.Player.signals.new_frame(player, frame)¶
- Signal Name:
new-frame
- Flags:
- Parameters:
player (
ClutterGst.Player
) – The object which received the signalframe (
ClutterGst.Frame
) – theClutterGst.Frame
newly received from the video sink
The
::new-frame
signal is emitted each time a frame is received from the video sink.
- ClutterGst.Player.signals.ready(player)¶
- Signal Name:
ready
- Flags:
- Parameters:
player (
ClutterGst.Player
) – The object which received the signal
The
::ready
signal is emitted each time the gstreamer pipeline becomes ready.
- ClutterGst.Player.signals.size_change(player, width, height)¶
- Signal Name:
size-change
- Flags:
- Parameters:
player (
ClutterGst.Player
) – The object which received the signalwidth (
int
) – new width of the framesheight (
int
) – new height of the frames
The
::size-change
signal is emitted each time the new frame has different dimensions to the previous frame.
Property Details¶
- ClutterGst.Player.props.audio_volume¶
-
The volume of the audio, as a normalized value between 0.0 and 1.0.
- ClutterGst.Player.props.idle¶
-
Whether the
ClutterGst.Player
is in idle mode.New in version 1.4.