Functions

play_color_balance_type_get_name (type)

play_error_get_name (error)

play_error_quark ()

play_message_get_name (message_type)

play_message_parse_buffering_percent (msg)

play_message_parse_duration_updated (msg)

play_message_parse_error (msg)

play_message_parse_media_info_updated (msg)

play_message_parse_muted_changed (msg)

play_message_parse_position_updated (msg)

play_message_parse_state_changed (msg)

play_message_parse_type (msg)

play_message_parse_video_dimensions_changed (msg)

play_message_parse_volume_changed (msg)

play_message_parse_warning (msg)

play_state_get_name (state)

Details

GstPlay.play_color_balance_type_get_name(type)
Parameters:

type (GstPlay.PlayColorBalanceType) – a GstPlay.PlayColorBalanceType

Returns:

a string with the name of the color balance type.

Return type:

str

Gets a string representing the given color balance type.

New in version 1.20.

GstPlay.play_error_get_name(error)
Parameters:

error (GstPlay.PlayError) – a GstPlay.PlayError

Returns:

a string with the given error.

Return type:

str

Gets a string representing the given error.

New in version 1.20.

GstPlay.play_error_quark()
Return type:

int

New in version 1.20.

GstPlay.play_message_get_name(message_type)
Parameters:

message_type (GstPlay.PlayMessage) – a GstPlay.PlayMessage

Returns:

a string with the name of the message.

Return type:

str

New in version 1.20.

GstPlay.play_message_parse_buffering_percent(msg)
Parameters:

msg (Gst.Message) – A Gst.Message

Returns:

the resulting buffering percent

Return type:

percent: int

Parse the given buffering-percent msg and extract the corresponding value

New in version 1.20.

GstPlay.play_message_parse_duration_updated(msg)
Parameters:

msg (Gst.Message) – A Gst.Message

Returns:

the resulting duration

Return type:

duration: int

Parse the given duration msg and extract the corresponding #GstClockTime

New in version 1.20.

GstPlay.play_message_parse_error(msg)
Parameters:

msg (Gst.Message) – A Gst.Message

Returns:

error:

the resulting error

details:

A Gst.Structure containing additional details about the error

Return type:

(error: GLib.Error, details: Gst.Structure or None)

Parse the given error msg and extract the corresponding GLib.Error

New in version 1.20.

GstPlay.play_message_parse_media_info_updated(msg)
Parameters:

msg (Gst.Message) – A Gst.Message

Returns:

the resulting media info

Return type:

info: GstPlay.PlayMediaInfo

Parse the given msg and extract the corresponding media information

New in version 1.20.

GstPlay.play_message_parse_muted_changed(msg)
Parameters:

msg (Gst.Message) – A Gst.Message

Returns:

the resulting audio muted state

Return type:

muted: bool

Parse the given msg and extract the corresponding audio muted state

New in version 1.20.

GstPlay.play_message_parse_position_updated(msg)
Parameters:

msg (Gst.Message) – A Gst.Message

Returns:

the resulting position

Return type:

position: int

Parse the given position msg and extract the corresponding #GstClockTime

New in version 1.20.

GstPlay.play_message_parse_state_changed(msg)
Parameters:

msg (Gst.Message) – A Gst.Message

Returns:

the resulting play state

Return type:

state: GstPlay.PlayState

Parse the given state msg and extract the corresponding GstPlay.PlayState

New in version 1.20.

GstPlay.play_message_parse_type(msg)
Parameters:

msg (Gst.Message) – A Gst.Message

Returns:

the resulting message type

Return type:

type: GstPlay.PlayMessage

Parse the given msg and extract its GstPlay.PlayMessage type.

New in version 1.20.

GstPlay.play_message_parse_video_dimensions_changed(msg)
Parameters:

msg (Gst.Message) – A Gst.Message

Returns:

width:

the resulting video width

height:

the resulting video height

Return type:

(width: int, height: int)

Parse the given msg and extract the corresponding video dimensions

New in version 1.20.

GstPlay.play_message_parse_volume_changed(msg)
Parameters:

msg (Gst.Message) – A Gst.Message

Returns:

the resulting audio volume

Return type:

volume: float

Parse the given msg and extract the corresponding audio volume

New in version 1.20.

GstPlay.play_message_parse_warning(msg)
Parameters:

msg (Gst.Message) – A Gst.Message

Returns:

error:

the resulting warning

details:

A Gst.Structure containing additional details about the warning

Return type:

(error: GLib.Error, details: Gst.Structure or None)

Parse the given error msg and extract the corresponding GLib.Error warning

New in version 1.20.

GstPlay.play_state_get_name(state)
Parameters:

state (GstPlay.PlayState) – a GstPlay.PlayState

Returns:

a string with the name of the state.

Return type:

str

Gets a string representing the given state.

New in version 1.20.