GstPlayerAudioInfo
GObject ╰──GstPlayerStreamInfo ╰──GstPlayerAudioInfo
GstPlayerStreamInfo specific to audio streams.
Class structure
Methods
gst_player_audio_info_get_bitrate
gint gst_player_audio_info_get_bitrate (const GstPlayerAudioInfo * info)
Parameters:
info
–
the audio bitrate in GstPlayerAudioInfo or -1 if unknown.
gst_player_audio_info_get_channels
gint gst_player_audio_info_get_channels (const GstPlayerAudioInfo * info)
Parameters:
info
–
the number of audio channels in GstPlayerAudioInfo or 0 if unknown.
gst_player_audio_info_get_language
const gchar * gst_player_audio_info_get_language (const GstPlayerAudioInfo * info)
Parameters:
info
–
the language of the stream, or NULL if unknown.
gst_player_audio_info_get_max_bitrate
gint gst_player_audio_info_get_max_bitrate (const GstPlayerAudioInfo * info)
Parameters:
info
–
the audio maximum bitrate in GstPlayerAudioInfo or -1 if unknown.
gst_player_audio_info_get_sample_rate
gint gst_player_audio_info_get_sample_rate (const GstPlayerAudioInfo * info)
Parameters:
info
–
the audio sample rate in GstPlayerAudioInfo or 0 if unknown.
GstPlayerMediaInfo
GObject ╰──GstPlayerMediaInfo
Structure containing the media information of a URI.
Class structure
Methods
gst_player_media_info_get_audio_streams
GList * gst_player_media_info_get_audio_streams (const GstPlayerMediaInfo * info)
Parameters:
info
–
A GList of matching GstPlayerAudioInfo.
gst_player_media_info_get_container_format
const gchar * gst_player_media_info_get_container_format (const GstPlayerMediaInfo * info)
Parameters:
info
–
the container format or NULL if unknown.
gst_player_media_info_get_duration
GstClockTime gst_player_media_info_get_duration (const GstPlayerMediaInfo * info)
Parameters:
info
–
duration of the media or GST_CLOCK_TIME_NONE if unknown.
gst_player_media_info_get_image_sample
GstSample * gst_player_media_info_get_image_sample (const GstPlayerMediaInfo * info)
Function to get the image (or preview-image) stored in taglist.
Application can use gst_sample_*_()
API's to get caps, buffer etc.
Parameters:
info
–
GstSample or NULL.
gst_player_media_info_get_number_of_audio_streams
guint gst_player_media_info_get_number_of_audio_streams (const GstPlayerMediaInfo * info)
Parameters:
info
–
number of audio streams or 0 if unknown.
Since : 1.12
gst_player_media_info_get_number_of_streams
guint gst_player_media_info_get_number_of_streams (const GstPlayerMediaInfo * info)
Parameters:
info
–
number of total streams or 0 if unknown.
Since : 1.12
gst_player_media_info_get_number_of_subtitle_streams
guint gst_player_media_info_get_number_of_subtitle_streams (const GstPlayerMediaInfo * info)
Parameters:
info
–
number of subtitle streams or 0 if unknown.
Since : 1.12
gst_player_media_info_get_number_of_video_streams
guint gst_player_media_info_get_number_of_video_streams (const GstPlayerMediaInfo * info)
Parameters:
info
–
number of video streams or 0 if unknown.
Since : 1.12
gst_player_media_info_get_stream_list
GList * gst_player_media_info_get_stream_list (const GstPlayerMediaInfo * info)
Parameters:
info
–
A GList of matching GstPlayerStreamInfo.
gst_player_media_info_get_subtitle_streams
GList * gst_player_media_info_get_subtitle_streams (const GstPlayerMediaInfo * info)
Parameters:
info
–
A GList of matching GstPlayerSubtitleInfo.
gst_player_media_info_get_tags
GstTagList * gst_player_media_info_get_tags (const GstPlayerMediaInfo * info)
Parameters:
info
–
the tags contained in media info.
gst_player_media_info_get_title
const gchar * gst_player_media_info_get_title (const GstPlayerMediaInfo * info)
Parameters:
info
–
the media title or NULL if unknown.
gst_player_media_info_get_uri
const gchar * gst_player_media_info_get_uri (const GstPlayerMediaInfo * info)
Parameters:
info
–
the URI associated with GstPlayerMediaInfo.
gst_player_media_info_get_video_streams
GList * gst_player_media_info_get_video_streams (const GstPlayerMediaInfo * info)
Parameters:
info
–
A GList of matching GstPlayerVideoInfo.
gst_player_media_info_is_live
gboolean gst_player_media_info_is_live (const GstPlayerMediaInfo * info)
Parameters:
info
–
TRUE if the media is live.
gst_player_media_info_is_seekable
gboolean gst_player_media_info_is_seekable (const GstPlayerMediaInfo * info)
Parameters:
info
–
TRUE if the media is seekable.
GstPlayerStreamInfo
GObject ╰──GstPlayerStreamInfo ╰──GstPlayerAudioInfo ╰──GstPlayerSubtitleInfo ╰──GstPlayerVideoInfo
Base structure for information concerning a media stream. Depending on the stream type, one can find more media-specific information in GstPlayerVideoInfo, GstPlayerAudioInfo, GstPlayerSubtitleInfo.
Class structure
Methods
gst_player_stream_info_get_caps
GstCaps * gst_player_stream_info_get_caps (const GstPlayerStreamInfo * info)
Parameters:
info
–
the GstCaps of the stream.
gst_player_stream_info_get_codec
const gchar * gst_player_stream_info_get_codec (const GstPlayerStreamInfo * info)
A string describing codec used in GstPlayerStreamInfo.
Parameters:
info
–
codec string or NULL on unknown.
gst_player_stream_info_get_index
gint gst_player_stream_info_get_index (const GstPlayerStreamInfo * info)
Function to get stream index from GstPlayerStreamInfo instance or -1 if unknown.
Parameters:
info
–
the stream index of this stream.
gst_player_stream_info_get_stream_type
const gchar * gst_player_stream_info_get_stream_type (const GstPlayerStreamInfo * info)
Function to return human readable name for the stream type of the given info (ex: "audio", "video", "subtitle")
Parameters:
info
–
a human readable name
gst_player_stream_info_get_tags
GstTagList * gst_player_stream_info_get_tags (const GstPlayerStreamInfo * info)
Parameters:
info
–
the tags contained in this stream.
GstPlayerSubtitleInfo
GObject ╰──GstPlayerStreamInfo ╰──GstPlayerSubtitleInfo
GstPlayerStreamInfo specific to subtitle streams.
Class structure
Methods
gst_player_subtitle_info_get_language
const gchar * gst_player_subtitle_info_get_language (const GstPlayerSubtitleInfo * info)
Parameters:
info
–
the language of the stream, or NULL if unknown.
GstPlayerVideoInfo
GObject ╰──GstPlayerStreamInfo ╰──GstPlayerVideoInfo
GstPlayerStreamInfo specific to video streams.
Class structure
Methods
gst_player_video_info_get_bitrate
gint gst_player_video_info_get_bitrate (const GstPlayerVideoInfo * info)
Parameters:
info
–
the current bitrate of video in GstPlayerVideoInfo or -1 if unknown.
gst_player_video_info_get_framerate
gst_player_video_info_get_framerate (const GstPlayerVideoInfo * info, gint * fps_n, gint * fps_d)
Parameters:
info
–
fps_n
(
[out])
–
Numerator of frame rate
fps_d
(
[out])
–
Denominator of frame rate
gst_player_video_info_get_height
gint gst_player_video_info_get_height (const GstPlayerVideoInfo * info)
Parameters:
info
–
the height of video in GstPlayerVideoInfo or -1 if unknown.
gst_player_video_info_get_max_bitrate
gint gst_player_video_info_get_max_bitrate (const GstPlayerVideoInfo * info)
Parameters:
info
–
the maximum bitrate of video in GstPlayerVideoInfo or -1 if unknown.
gst_player_video_info_get_pixel_aspect_ratio
gst_player_video_info_get_pixel_aspect_ratio (const GstPlayerVideoInfo * info, guint * par_n, guint * par_d)
Returns the pixel aspect ratio in par_n and par_d
gst_player_video_info_get_width
gint gst_player_video_info_get_width (const GstPlayerVideoInfo * info)
Parameters:
info
–
the width of video in GstPlayerVideoInfo or -1 if unknown.
Constants
The results of the search are