GstPlayer
Starting from GStreamer 1.20, application developers are strongly advised to migrate to GstPlay.
GstPlayer will be deprecated in 1.20 and most likely removed by 1.24.
gst_player_new
GstPlayer *
gst_player_new (GstPlayerVideoRenderer * video_renderer,
GstPlayerSignalDispatcher * signal_dispatcher)
Creates a new GstPlayer instance that uses signal_dispatcher to dispatch
signals to some event loop system, or emits signals directly if NULL is
passed. See gst_player_g_main_context_signal_dispatcher_new.
Video is going to be rendered by video_renderer, or if NULL is provided
no special video set up will be done and some default handling will be
performed.
This also initializes GStreamer via gst_init()
on the first call if this
didn't happen before.
Parameters:
video_renderer
(
[transfer: full][allow-none])
–
GstPlayerVideoRenderer to use
signal_dispatcher
(
[transfer: full][allow-none])
–
GstPlayerSignalDispatcher to use
Returns
(
[transfer: full])
–
a new GstPlayer instance
GstPlayer.Player.prototype.new
function GstPlayer.Player.prototype.new(video_renderer: GstPlayer.PlayerVideoRenderer, signal_dispatcher: GstPlayer.PlayerSignalDispatcher): {
}
Creates a new GstPlayer.Player instance that uses signal_dispatcher to dispatch
signals to some event loop system, or emits signals directly if NULL is
passed. See GstPlayer.PlayerGMainContextSignalDispatcher.prototype.new.
Video is going to be rendered by video_renderer, or if null is provided
no special video set up will be done and some default handling will be
performed.
This also initializes GStreamer via gst_init()
on the first call if this
didn't happen before.
Parameters:
GstPlayerVideoRenderer to use
GstPlayerSignalDispatcher to use
GstPlayer.Player.new
def GstPlayer.Player.new (video_renderer, signal_dispatcher):
Creates a new GstPlayer.Player instance that uses signal_dispatcher to dispatch
signals to some event loop system, or emits signals directly if NULL is
passed. See GstPlayer.PlayerGMainContextSignalDispatcher.new.
Video is going to be rendered by video_renderer, or if None is provided
no special video set up will be done and some default handling will be
performed.
This also initializes GStreamer via gst_init()
on the first call if this
didn't happen before.
Parameters:
GstPlayerVideoRenderer to use
GstPlayerSignalDispatcher to use
gst_player_get_audio_video_offset
gint64
gst_player_get_audio_video_offset (GstPlayer * player)
Retrieve the current value of audio-video-offset property
Returns
–
The current value of audio-video-offset in nanoseconds
Since : 1.10
GstPlayer.Player.prototype.get_audio_video_offset
function GstPlayer.Player.prototype.get_audio_video_offset(): {
}
Retrieve the current value of audio-video-offset property
The current value of audio-video-offset in nanoseconds
Since : 1.10
GstPlayer.Player.get_audio_video_offset
def GstPlayer.Player.get_audio_video_offset (self):
Retrieve the current value of audio-video-offset property
The current value of audio-video-offset in nanoseconds
Since : 1.10
gst_player_get_color_balance
gdouble
gst_player_get_color_balance (GstPlayer * player,
GstPlayerColorBalanceType type)
Retrieve the current value of the indicated type.
Returns
–
The current value of type, between [0,1]. In case of
error -1 is returned.
GstPlayer.Player.prototype.get_color_balance
function GstPlayer.Player.prototype.get_color_balance(type: GstPlayer.PlayerColorBalanceType): {
}
Retrieve the current value of the indicated type.
The current value of type, between [0,1]. In case of
error -1 is returned.
GstPlayer.Player.get_color_balance
def GstPlayer.Player.get_color_balance (self, type):
Retrieve the current value of the indicated type.
The current value of type, between [0,1]. In case of
error -1 is returned.
gst_player_get_config
GstStructure *
gst_player_get_config (GstPlayer * player)
Get a copy of the current configuration of the player. This configuration
can either be modified and used for the gst_player_set_config call
or it must be freed after usage.
Since : 1.10
GstPlayer.Player.prototype.get_config
function GstPlayer.Player.prototype.get_config(): {
}
Get a copy of the current configuration of the player. This configuration
can either be modified and used for the GstPlayer.Player.prototype.set_config call
or it must be freed after usage.
Since : 1.10
GstPlayer.Player.get_config
def GstPlayer.Player.get_config (self):
Get a copy of the current configuration of the player. This configuration
can either be modified and used for the GstPlayer.Player.set_config call
or it must be freed after usage.
Since : 1.10
gst_player_get_duration
GstClockTime
gst_player_get_duration (GstPlayer * player)
Retrieves the duration of the media stream that self represents.
Returns
–
the duration of the currently-playing media stream, in
nanoseconds.
GstPlayer.Player.prototype.get_duration
function GstPlayer.Player.prototype.get_duration(): {
}
Retrieves the duration of the media stream that self represents.
the duration of the currently-playing media stream, in
nanoseconds.
GstPlayer.Player.get_duration
def GstPlayer.Player.get_duration (self):
Retrieves the duration of the media stream that self represents.
the duration of the currently-playing media stream, in
nanoseconds.
gst_player_get_multiview_flags
GstVideoMultiviewFlags
gst_player_get_multiview_flags (GstPlayer * player)
Retrieve the current value of the indicated type.
Returns
–
The current value of type, Default: 0x00000000 "none
Since : 1.10
GstPlayer.Player.prototype.get_multiview_flags
function GstPlayer.Player.prototype.get_multiview_flags(): {
}
Retrieve the current value of the indicated type.
The current value of type, Default: 0x00000000 "none
Since : 1.10
GstPlayer.Player.get_multiview_flags
def GstPlayer.Player.get_multiview_flags (self):
Retrieve the current value of the indicated type.
The current value of type, Default: 0x00000000 "none
Since : 1.10
gst_player_get_multiview_mode
GstVideoMultiviewFramePacking
gst_player_get_multiview_mode (GstPlayer * player)
Retrieve the current value of the indicated type.
Returns
–
The current value of type, Default: -1 "none"
Since : 1.10
GstPlayer.Player.prototype.get_multiview_mode
function GstPlayer.Player.prototype.get_multiview_mode(): {
}
Retrieve the current value of the indicated type.
The current value of type, Default: -1 "none"
Since : 1.10
GstPlayer.Player.get_multiview_mode
def GstPlayer.Player.get_multiview_mode (self):
Retrieve the current value of the indicated type.
The current value of type, Default: -1 "none"
Since : 1.10
gst_player_get_subtitle_video_offset
gint64
gst_player_get_subtitle_video_offset (GstPlayer * player)
Retrieve the current value of subtitle-video-offset property
Returns
–
The current value of subtitle-video-offset in nanoseconds
Since : 1.16
GstPlayer.Player.prototype.get_subtitle_video_offset
function GstPlayer.Player.prototype.get_subtitle_video_offset(): {
}
Retrieve the current value of subtitle-video-offset property
The current value of subtitle-video-offset in nanoseconds
Since : 1.16
GstPlayer.Player.get_subtitle_video_offset
def GstPlayer.Player.get_subtitle_video_offset (self):
Retrieve the current value of subtitle-video-offset property
The current value of subtitle-video-offset in nanoseconds
Since : 1.16
gst_player_get_uri
gchar *
gst_player_get_uri (GstPlayer * player)
Gets the URI of the currently-playing stream.
Returns
(
[transfer: full][nullable])
–
a string containing the URI of the
currently-playing stream. g_free after usage.
GstPlayer.Player.prototype.get_uri
function GstPlayer.Player.prototype.get_uri(): {
}
Gets the URI of the currently-playing stream.
GstPlayer.Player.get_uri
def GstPlayer.Player.get_uri (self):
Gets the URI of the currently-playing stream.
a string containing the URI of the
currently-playing stream. GLib.free after usage.
gst_player_get_video_snapshot
GstSample *
gst_player_get_video_snapshot (GstPlayer * player,
GstPlayerSnapshotFormat format,
const GstStructure * config)
Get a snapshot of the currently selected video stream, if any. The format can be
selected with format and optional configuration is possible with config
Currently supported settings are:
- width, height of type G_TYPE_INT
- pixel-aspect-ratio of type GST_TYPE_FRACTION
Except for GST_PLAYER_THUMBNAIL_RAW_NATIVE format, if no config is set, pixel-aspect-ratio would be 1/1
Parameters:
format
–
output format of the video snapshot
Returns
(
[transfer: full][nullable])
–
Current video snapshot sample or NULL on failure
Since : 1.12
GstPlayer.Player.prototype.get_video_snapshot
function GstPlayer.Player.prototype.get_video_snapshot(format: GstPlayer.PlayerSnapshotFormat, config: Gst.Structure): {
}
Get a snapshot of the currently selected video stream, if any. The format can be
selected with format and optional configuration is possible with config
Currently supported settings are:
- width, height of type G_TYPE_INT
- pixel-aspect-ratio of type GST_TYPE_FRACTION
Except for GST_PLAYER_THUMBNAIL_RAW_NATIVE format, if no config is set, pixel-aspect-ratio would be 1/1
Parameters:
output format of the video snapshot
Current video snapshot sample or null on failure
Since : 1.12
GstPlayer.Player.get_video_snapshot
def GstPlayer.Player.get_video_snapshot (self, format, config):
Get a snapshot of the currently selected video stream, if any. The format can be
selected with format and optional configuration is possible with config
Currently supported settings are:
- width, height of type G_TYPE_INT
- pixel-aspect-ratio of type GST_TYPE_FRACTION
Except for GST_PLAYER_THUMBNAIL_RAW_NATIVE format, if no config is set, pixel-aspect-ratio would be 1/1
Parameters:
output format of the video snapshot
Current video snapshot sample or None on failure
Since : 1.12
gst_player_get_volume
gdouble
gst_player_get_volume (GstPlayer * player)
Returns the current volume level, as a percentage between 0 and 1.
Returns
–
the volume as percentage between 0 and 1.
GstPlayer.Player.prototype.get_volume
function GstPlayer.Player.prototype.get_volume(): {
}
Returns the current volume level, as a percentage between 0 and 1.
the volume as percentage between 0 and 1.
GstPlayer.Player.get_volume
def GstPlayer.Player.get_volume (self):
Returns the current volume level, as a percentage between 0 and 1.
the volume as percentage between 0 and 1.
gst_player_has_color_balance
gboolean
gst_player_has_color_balance (GstPlayer * player)
Checks whether the player has color balance support available.
Returns
–
TRUE if player has color balance support. Otherwise,
FALSE.
GstPlayer.Player.prototype.has_color_balance
function GstPlayer.Player.prototype.has_color_balance(): {
}
Checks whether the player has color balance support available.
true if player has color balance support. Otherwise,
false.
GstPlayer.Player.has_color_balance
def GstPlayer.Player.has_color_balance (self):
Checks whether the player has color balance support available.
True if player has color balance support. Otherwise,
False.
gst_player_seek
gst_player_seek (GstPlayer * player,
GstClockTime position)
Seeks the currently-playing stream to the absolute position time
in nanoseconds.
Parameters:
position
–
position to seek in nanoseconds
GstPlayer.Player.prototype.seek
function GstPlayer.Player.prototype.seek(position: Number): {
}
Seeks the currently-playing stream to the absolute position time
in nanoseconds.
Parameters:
position to seek in nanoseconds
GstPlayer.Player.seek
def GstPlayer.Player.seek (self, position):
Seeks the currently-playing stream to the absolute position time
in nanoseconds.
Parameters:
position to seek in nanoseconds
gst_player_set_audio_track_enabled
gst_player_set_audio_track_enabled (GstPlayer * player,
gboolean enabled)
Enable or disable the current audio track.
GstPlayer.Player.prototype.set_audio_track_enabled
function GstPlayer.Player.prototype.set_audio_track_enabled(enabled: Number): {
}
Enable or disable the current audio track.
GstPlayer.Player.set_audio_track_enabled
def GstPlayer.Player.set_audio_track_enabled (self, enabled):
Enable or disable the current audio track.
gst_player_set_audio_video_offset
gst_player_set_audio_video_offset (GstPlayer * player,
gint64 offset)
Sets audio-video-offset property by value of offset
Parameters:
offset
–
gint64 in nanoseconds
Since : 1.10
GstPlayer.Player.prototype.set_audio_video_offset
function GstPlayer.Player.prototype.set_audio_video_offset(offset: Number): {
}
Sets audio-video-offset property by value of offset
Since : 1.10
GstPlayer.Player.set_audio_video_offset
def GstPlayer.Player.set_audio_video_offset (self, offset):
Sets audio-video-offset property by value of offset
Since : 1.10
gst_player_set_color_balance
gst_player_set_color_balance (GstPlayer * player,
GstPlayerColorBalanceType type,
gdouble value)
Sets the current value of the indicated channel type to the passed
value.
Parameters:
value
–
The new value for the type, ranged [0,1]
GstPlayer.Player.prototype.set_color_balance
function GstPlayer.Player.prototype.set_color_balance(type: GstPlayer.PlayerColorBalanceType, value: Number): {
}
Sets the current value of the indicated channel type to the passed
value.
Parameters:
The new value for the type, ranged [0,1]
GstPlayer.Player.set_color_balance
def GstPlayer.Player.set_color_balance (self, type, value):
Sets the current value of the indicated channel type to the passed
value.
Parameters:
The new value for the type, ranged [0,1]
gst_player_set_config
gboolean
gst_player_set_config (GstPlayer * player,
GstStructure * config)
Set the configuration of the player. If the player is already configured, and
the configuration haven't change, this function will return TRUE. If the
player is not in the GST_PLAYER_STATE_STOPPED, this method will return FALSE
and active configuration will remain.
config is a GstStructure that contains the configuration parameters for
the player.
This function takes ownership of config.
Returns
–
TRUE when the configuration could be set.
Since : 1.10
GstPlayer.Player.prototype.set_config
function GstPlayer.Player.prototype.set_config(config: Gst.Structure): {
}
Set the configuration of the player. If the player is already configured, and
the configuration haven't change, this function will return true. If the
player is not in the GST_PLAYER_STATE_STOPPED, this method will return false
and active configuration will remain.
config is a Gst.Structure that contains the configuration parameters for
the player.
This function takes ownership of config.
true when the configuration could be set.
Since : 1.10
GstPlayer.Player.set_config
def GstPlayer.Player.set_config (self, config):
Set the configuration of the player. If the player is already configured, and
the configuration haven't change, this function will return True. If the
player is not in the GST_PLAYER_STATE_STOPPED, this method will return False
and active configuration will remain.
config is a Gst.Structure that contains the configuration parameters for
the player.
This function takes ownership of config.
True when the configuration could be set.
Since : 1.10
gst_player_set_multiview_flags
gst_player_set_multiview_flags (GstPlayer * player,
GstVideoMultiviewFlags flags)
Sets the current value of the indicated mode type to the passed
value.
Parameters:
flags
–
The new value for the type
Since : 1.10
GstPlayer.Player.prototype.set_multiview_flags
function GstPlayer.Player.prototype.set_multiview_flags(flags: GstVideo.VideoMultiviewFlags): {
}
Sets the current value of the indicated mode type to the passed
value.
Parameters:
The new value for the type
Since : 1.10
GstPlayer.Player.set_multiview_flags
def GstPlayer.Player.set_multiview_flags (self, flags):
Sets the current value of the indicated mode type to the passed
value.
Parameters:
The new value for the type
Since : 1.10
gst_player_set_multiview_mode
gst_player_set_multiview_mode (GstPlayer * player,
GstVideoMultiviewFramePacking mode)
Sets the current value of the indicated mode type to the passed
value.
Parameters:
mode
–
The new value for the type
Since : 1.10
GstPlayer.Player.prototype.set_multiview_mode
function GstPlayer.Player.prototype.set_multiview_mode(mode: GstVideo.VideoMultiviewFramePacking): {
}
Sets the current value of the indicated mode type to the passed
value.
Parameters:
The new value for the type
Since : 1.10
GstPlayer.Player.set_multiview_mode
def GstPlayer.Player.set_multiview_mode (self, mode):
Sets the current value of the indicated mode type to the passed
value.
Parameters:
The new value for the type
Since : 1.10
gst_player_set_mute
gst_player_set_mute (GstPlayer * player,
gboolean val)
TRUE if the currently-playing stream should be muted.
Parameters:
val
–
Mute state the should be set
GstPlayer.Player.prototype.set_mute
function GstPlayer.Player.prototype.set_mute(val: Number): {
}
true if the currently-playing stream should be muted.
Parameters:
Mute state the should be set
GstPlayer.Player.set_mute
def GstPlayer.Player.set_mute (self, val):
True if the currently-playing stream should be muted.
Parameters:
Mute state the should be set
gst_player_set_rate
gst_player_set_rate (GstPlayer * player,
gdouble rate)
Playback at specified rate
GstPlayer.Player.prototype.set_rate
function GstPlayer.Player.prototype.set_rate(rate: Number): {
}
Playback at specified rate
GstPlayer.Player.set_rate
def GstPlayer.Player.set_rate (self, rate):
Playback at specified rate
gst_player_set_subtitle_track_enabled
gst_player_set_subtitle_track_enabled (GstPlayer * player,
gboolean enabled)
Enable or disable the current subtitle track.
GstPlayer.Player.prototype.set_subtitle_track_enabled
function GstPlayer.Player.prototype.set_subtitle_track_enabled(enabled: Number): {
}
Enable or disable the current subtitle track.
GstPlayer.Player.set_subtitle_track_enabled
def GstPlayer.Player.set_subtitle_track_enabled (self, enabled):
Enable or disable the current subtitle track.
gst_player_set_subtitle_uri
gst_player_set_subtitle_uri (GstPlayer * player,
const gchar * uri)
Sets the external subtitle URI. This should be combined with a call to
gst_player_set_subtitle_track_enabled(@player, TRUE) so the subtitles are actually
rendered.
GstPlayer.Player.prototype.set_subtitle_uri
function GstPlayer.Player.prototype.set_subtitle_uri(uri: String): {
}
Sets the external subtitle URI. This should be combined with a call to
gst_player_set_subtitle_track_enabled(@player, TRUE) so the subtitles are actually
rendered.
GstPlayer.Player.set_subtitle_uri
def GstPlayer.Player.set_subtitle_uri (self, uri):
Sets the external subtitle URI. This should be combined with a call to
gst_player_set_subtitle_track_enabled(@player, TRUE) so the subtitles are actually
rendered.
gst_player_set_subtitle_video_offset
gst_player_set_subtitle_video_offset (GstPlayer * player,
gint64 offset)
Sets subtitle-video-offset property by value of offset
Parameters:
offset
–
gint64 in nanoseconds
Since : 1.16
GstPlayer.Player.prototype.set_subtitle_video_offset
function GstPlayer.Player.prototype.set_subtitle_video_offset(offset: Number): {
}
Sets subtitle-video-offset property by value of offset
Since : 1.16
GstPlayer.Player.set_subtitle_video_offset
def GstPlayer.Player.set_subtitle_video_offset (self, offset):
Sets subtitle-video-offset property by value of offset
Since : 1.16
gst_player_set_uri
gst_player_set_uri (GstPlayer * player,
const gchar * uri)
Sets the next URI to play.
GstPlayer.Player.prototype.set_uri
function GstPlayer.Player.prototype.set_uri(uri: String): {
}
Sets the next URI to play.
GstPlayer.Player.set_uri
def GstPlayer.Player.set_uri (self, uri):
Sets the next URI to play.
gst_player_set_video_track_enabled
gst_player_set_video_track_enabled (GstPlayer * player,
gboolean enabled)
Enable or disable the current video track.
GstPlayer.Player.prototype.set_video_track_enabled
function GstPlayer.Player.prototype.set_video_track_enabled(enabled: Number): {
}
Enable or disable the current video track.
GstPlayer.Player.set_video_track_enabled
def GstPlayer.Player.set_video_track_enabled (self, enabled):
Enable or disable the current video track.
gst_player_set_visualization_enabled
gst_player_set_visualization_enabled (GstPlayer * player,
gboolean enabled)
Enable or disable the visualization.
GstPlayer.Player.prototype.set_visualization_enabled
function GstPlayer.Player.prototype.set_visualization_enabled(enabled: Number): {
}
Enable or disable the visualization.
GstPlayer.Player.set_visualization_enabled
def GstPlayer.Player.set_visualization_enabled (self, enabled):
Enable or disable the visualization.
gst_player_set_volume
gst_player_set_volume (GstPlayer * player,
gdouble val)
Sets the volume level of the stream as a percentage between 0 and 1.
This volume is a linear factor. For showing the volume in a GUI it
might make sense to first convert from a different format. Volume sliders
should usually use a cubic volume. See gst_stream_volume_convert_volume.
Parameters:
val
–
the new volume level, as a percentage between 0 and 1
GstPlayer.Player.prototype.set_volume
function GstPlayer.Player.prototype.set_volume(val: Number): {
}
Sets the volume level of the stream as a percentage between 0 and 1.
This volume is a linear factor. For showing the volume in a GUI it
might make sense to first convert from a different format. Volume sliders
should usually use a cubic volume. See GstAudio.prototype.stream_volume_convert_volume.
Parameters:
the new volume level, as a percentage between 0 and 1
GstPlayer.Player.set_volume
def GstPlayer.Player.set_volume (self, val):
Sets the volume level of the stream as a percentage between 0 and 1.
This volume is a linear factor. For showing the volume in a GUI it
might make sense to first convert from a different format. Volume sliders
should usually use a cubic volume. See GstAudio.stream_volume_convert_volume.
Parameters:
the new volume level, as a percentage between 0 and 1
gst_player_stop
gst_player_stop (GstPlayer * player)
Stops playing the current stream and resets to the first position
in the stream.
GstPlayer.Player.prototype.stop
function GstPlayer.Player.prototype.stop(): {
}
Stops playing the current stream and resets to the first position
in the stream.
GstPlayer.Player.stop
def GstPlayer.Player.stop (self):
Stops playing the current stream and resets to the first position
in the stream.
gst_player_config_get_user_agent
gchar *
gst_player_config_get_user_agent (const GstStructure * config)
Return the user agent which has been configured using
gst_player_config_set_user_agent if any.
Returns
(
[transfer: full][nullable])
–
the configured agent, or NULL
Since : 1.10
GstPlayer.Player.prototype.config_get_user_agent
function GstPlayer.Player.prototype.config_get_user_agent(config: Gst.Structure): {
}
Return the user agent which has been configured using
GstPlayer.Player.prototype.config_set_user_agent if any.
the configured agent, or null
Since : 1.10
GstPlayer.Player.config_get_user_agent
def GstPlayer.Player.config_get_user_agent (config):
Return the user agent which has been configured using
GstPlayer.Player.config_set_user_agent if any.
the configured agent, or None
Since : 1.10
gst_player_config_set_position_update_interval
gst_player_config_set_position_update_interval (GstStructure * config,
guint interval)
set interval in milliseconds between two position-updated signals.
pass 0 to stop updating the position.
Parameters:
interval
–
interval in ms
Since : 1.10
GstPlayer.Player.prototype.config_set_position_update_interval
function GstPlayer.Player.prototype.config_set_position_update_interval(config: Gst.Structure, interval: Number): {
}
set interval in milliseconds between two position-updated signals.
pass 0 to stop updating the position.
Since : 1.10
GstPlayer.Player.config_set_position_update_interval
def GstPlayer.Player.config_set_position_update_interval (config, interval):
set interval in milliseconds between two position-updated signals.
pass 0 to stop updating the position.
Since : 1.10
gst_player_config_set_seek_accurate
gst_player_config_set_seek_accurate (GstStructure * config,
gboolean accurate)
Enable or disable accurate seeking. When enabled, elements will try harder
to seek as accurately as possible to the requested seek position. Generally
it will be slower especially for formats that don't have any indexes or
timestamp markers in the stream.
If accurate seeking is disabled, elements will seek as close as the request
position without slowing down seeking too much.
Accurate seeking is disabled by default.
Parameters:
accurate
–
accurate seek or not
Since : 1.12
GstPlayer.Player.prototype.config_set_seek_accurate
function GstPlayer.Player.prototype.config_set_seek_accurate(config: Gst.Structure, accurate: Number): {
}
Enable or disable accurate seeking. When enabled, elements will try harder
to seek as accurately as possible to the requested seek position. Generally
it will be slower especially for formats that don't have any indexes or
timestamp markers in the stream.
If accurate seeking is disabled, elements will seek as close as the request
position without slowing down seeking too much.
Accurate seeking is disabled by default.
Since : 1.12
GstPlayer.Player.config_set_seek_accurate
def GstPlayer.Player.config_set_seek_accurate (config, accurate):
Enable or disable accurate seeking. When enabled, elements will try harder
to seek as accurately as possible to the requested seek position. Generally
it will be slower especially for formats that don't have any indexes or
timestamp markers in the stream.
If accurate seeking is disabled, elements will seek as close as the request
position without slowing down seeking too much.
Accurate seeking is disabled by default.
Since : 1.12
gst_player_config_set_user_agent
gst_player_config_set_user_agent (GstStructure * config,
const gchar * agent)
Set the user agent to pass to the server if player needs to connect
to a server during playback. This is typically used when playing HTTP
or RTSP streams.
Parameters:
the string to use as user agent
Since : 1.10
GstPlayer.Player.prototype.config_set_user_agent
function GstPlayer.Player.prototype.config_set_user_agent(config: Gst.Structure, agent: String): {
}
Set the user agent to pass to the server if player needs to connect
to a server during playback. This is typically used when playing HTTP
or RTSP streams.
Parameters:
the string to use as user agent
Since : 1.10
GstPlayer.Player.config_set_user_agent
def GstPlayer.Player.config_set_user_agent (config, agent):
Set the user agent to pass to the server if player needs to connect
to a server during playback. This is typically used when playing HTTP
or RTSP streams.
Parameters:
the string to use as user agent
Since : 1.10
buffering
buffering_callback (GstPlayer * self,
gint object,
gpointer user_data)
Parameters:
self
–
No description available
object
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
buffering
function buffering_callback(self: GstPlayer.Player, object: Number, user_data: Object): {
}
Flags:
Run Last
/
No Hooks
buffering
def buffering_callback (self, object, *user_data):
Flags:
Run Last
/
No Hooks
duration-changed
duration_changed_callback (GstPlayer * self,
guint64 object,
gpointer user_data)
Parameters:
self
–
No description available
object
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
duration-changed
function duration_changed_callback(self: GstPlayer.Player, object: Number, user_data: Object): {
}
Flags:
Run Last
/
No Hooks
duration-changed
def duration_changed_callback (self, object, *user_data):
Flags:
Run Last
/
No Hooks
end-of-stream
end_of_stream_callback (GstPlayer * self,
gpointer user_data)
Parameters:
self
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
end-of-stream
function end_of_stream_callback(self: GstPlayer.Player, user_data: Object): {
}
Flags:
Run Last
/
No Hooks
end-of-stream
def end_of_stream_callback (self, *user_data):
Flags:
Run Last
/
No Hooks
error
error_callback (GstPlayer * self,
GError * object,
gpointer user_data)
Parameters:
self
–
No description available
object
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
error
function error_callback(self: GstPlayer.Player, object: GError (not introspectable), user_data: Object): {
}
Flags:
Run Last
/
No Hooks
media-info-updated
function media_info_updated_callback(self: GstPlayer.Player, object: GstPlayer.PlayerMediaInfo, user_data: Object): {
}
Flags:
Run Last
/
No Hooks
media-info-updated
def media_info_updated_callback (self, object, *user_data):
Flags:
Run Last
/
No Hooks
mute-changed
mute_changed_callback (GstPlayer * self,
gpointer user_data)
Parameters:
self
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
mute-changed
function mute_changed_callback(self: GstPlayer.Player, user_data: Object): {
}
Flags:
Run Last
/
No Hooks
mute-changed
def mute_changed_callback (self, *user_data):
Flags:
Run Last
/
No Hooks
position-updated
position_updated_callback (GstPlayer * self,
guint64 object,
gpointer user_data)
Parameters:
self
–
No description available
object
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
position-updated
function position_updated_callback(self: GstPlayer.Player, object: Number, user_data: Object): {
}
Flags:
Run Last
/
No Hooks
position-updated
def position_updated_callback (self, object, *user_data):
Flags:
Run Last
/
No Hooks
seek-done
seek_done_callback (GstPlayer * self,
guint64 object,
gpointer user_data)
Parameters:
self
–
No description available
object
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
seek-done
function seek_done_callback(self: GstPlayer.Player, object: Number, user_data: Object): {
}
Flags:
Run Last
/
No Hooks
seek-done
def seek_done_callback (self, object, *user_data):
Flags:
Run Last
/
No Hooks
state-changed
state_changed_callback (GstPlayer * self,
GstPlayerState * object,
gpointer user_data)
Parameters:
self
–
No description available
object
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
state-changed
function state_changed_callback(self: GstPlayer.Player, object: GstPlayer.PlayerState, user_data: Object): {
}
Flags:
Run Last
/
No Hooks
state-changed
def state_changed_callback (self, object, *user_data):
Flags:
Run Last
/
No Hooks
uri-loaded
uri_loaded_callback (GstPlayer * self,
gchar * object,
gpointer user_data)
Parameters:
self
–
No description available
object
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
uri-loaded
function uri_loaded_callback(self: GstPlayer.Player, object: String, user_data: Object): {
}
Flags:
Run Last
/
No Hooks
uri-loaded
def uri_loaded_callback (self, object, *user_data):
Flags:
Run Last
/
No Hooks
video-dimensions-changed
video_dimensions_changed_callback (GstPlayer * self,
gint object,
gint p0,
gpointer user_data)
Parameters:
self
–
No description available
object
–
No description available
p0
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
video-dimensions-changed
function video_dimensions_changed_callback(self: GstPlayer.Player, object: Number, p0: Number, user_data: Object): {
}
Flags:
Run Last
/
No Hooks
video-dimensions-changed
def video_dimensions_changed_callback (self, object, p0, *user_data):
Flags:
Run Last
/
No Hooks
volume-changed
volume_changed_callback (GstPlayer * self,
gpointer user_data)
Parameters:
self
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
volume-changed
function volume_changed_callback(self: GstPlayer.Player, user_data: Object): {
}
Flags:
Run Last
/
No Hooks
volume-changed
def volume_changed_callback (self, *user_data):
Flags:
Run Last
/
No Hooks
warning
warning_callback (GstPlayer * self,
GError * object,
gpointer user_data)
Parameters:
self
–
No description available
object
–
No description available
user_data
–
No description available
Flags:
Run Last
/
No Hooks
warning
function warning_callback(self: GstPlayer.Player, object: GError (not introspectable), user_data: Object): {
}
Flags:
Run Last
/
No Hooks
warning
def warning_callback (self, object, *user_data):
Flags:
Run Last
/
No Hooks
gst_player_color_balance_type_get_name
const gchar *
gst_player_color_balance_type_get_name (GstPlayerColorBalanceType type)
Gets a string representing the given color balance type.
Returns
(
[transfer: none])
–
a string with the name of the color
balance type.
GstPlayer.PlayerColorBalanceType.prototype.get_name
function GstPlayer.PlayerColorBalanceType.prototype.get_name(type: GstPlayer.PlayerColorBalanceType): {
}
Gets a string representing the given color balance type.
a string with the name of the color
balance type.
GstPlayer.PlayerColorBalanceType.get_name
def GstPlayer.PlayerColorBalanceType.get_name (type):
Gets a string representing the given color balance type.
a string with the name of the color
balance type.
gst_player_error_get_name
const gchar *
gst_player_error_get_name (GstPlayerError error)
Gets a string representing the given error.
Returns
(
[transfer: none])
–
a string with the given error.
GstPlayer.PlayerError.prototype.get_name
function GstPlayer.PlayerError.prototype.get_name(error: GstPlayer.PlayerError): {
}
Gets a string representing the given error.
a string with the given error.
GstPlayer.PlayerError.get_name
def GstPlayer.PlayerError.get_name (error):
Gets a string representing the given error.
a string with the given error.
gst_player_state_get_name
const gchar *
gst_player_state_get_name (GstPlayerState state)
Gets a string representing the given state.
Returns
(
[transfer: none])
–
a string with the name of the state.
GstPlayer.PlayerState.prototype.get_name
function GstPlayer.PlayerState.prototype.get_name(state: GstPlayer.PlayerState): {
}
Gets a string representing the given state.
a string with the name of the state.
GstPlayer.PlayerState.get_name
def GstPlayer.PlayerState.get_name (state):
Gets a string representing the given state.
a string with the name of the state.