GstPlayAudioInfo
GObject ╰──GstPlayStreamInfo ╰──GstPlayAudioInfo
GstPlayStreamInfo specific to audio streams.
Since : 1.20
Class structure
Methods
gst_play_audio_info_get_bitrate
gint gst_play_audio_info_get_bitrate (const GstPlayAudioInfo * info)
Parameters:
info
–
the audio bitrate in GstPlayAudioInfo or -1 if unknown.
Since : 1.20
gst_play_audio_info_get_channels
gint gst_play_audio_info_get_channels (const GstPlayAudioInfo * info)
Parameters:
info
–
the number of audio channels in GstPlayAudioInfo or 0 if unknown.
Since : 1.20
gst_play_audio_info_get_language
const gchar * gst_play_audio_info_get_language (const GstPlayAudioInfo * info)
Parameters:
info
–
the language of the stream, or NULL if unknown.
Since : 1.20
gst_play_audio_info_get_max_bitrate
gint gst_play_audio_info_get_max_bitrate (const GstPlayAudioInfo * info)
Parameters:
info
–
the audio maximum bitrate in GstPlayAudioInfo or -1 if unknown.
Since : 1.20
gst_play_audio_info_get_sample_rate
gint gst_play_audio_info_get_sample_rate (const GstPlayAudioInfo * info)
Parameters:
info
–
the audio sample rate in GstPlayAudioInfo or 0 if unknown.
Since : 1.20
GstPlayMediaInfo
GObject ╰──GstPlayMediaInfo
Structure containing the media information of a URI.
Since : 1.20
Class structure
Methods
gst_play_media_info_get_audio_streams
GList * gst_play_media_info_get_audio_streams (const GstPlayMediaInfo * info)
Parameters:
info
–
A GList of matching GstPlayAudioInfo.
Since : 1.20
gst_play_media_info_get_container_format
const gchar * gst_play_media_info_get_container_format (const GstPlayMediaInfo * info)
Parameters:
info
–
the container format or NULL if unknown.
Since : 1.20
gst_play_media_info_get_duration
GstClockTime gst_play_media_info_get_duration (const GstPlayMediaInfo * info)
Parameters:
info
–
duration of the media.
Since : 1.20
gst_play_media_info_get_image_sample
GstSample * gst_play_media_info_get_image_sample (const GstPlayMediaInfo * 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.
Since : 1.20
gst_play_media_info_get_number_of_audio_streams
guint gst_play_media_info_get_number_of_audio_streams (const GstPlayMediaInfo * info)
Parameters:
info
–
number of audio streams.
Since : 1.20
gst_play_media_info_get_number_of_streams
guint gst_play_media_info_get_number_of_streams (const GstPlayMediaInfo * info)
Parameters:
info
–
number of total streams.
Since : 1.20
gst_play_media_info_get_number_of_subtitle_streams
guint gst_play_media_info_get_number_of_subtitle_streams (const GstPlayMediaInfo * info)
Parameters:
info
–
number of subtitle streams.
Since : 1.20
gst_play_media_info_get_number_of_video_streams
guint gst_play_media_info_get_number_of_video_streams (const GstPlayMediaInfo * info)
Parameters:
info
–
number of video streams.
Since : 1.20
gst_play_media_info_get_stream_list
GList * gst_play_media_info_get_stream_list (const GstPlayMediaInfo * info)
Parameters:
info
–
A GList of matching GstPlayStreamInfo.
Since : 1.20
gst_play_media_info_get_subtitle_streams
GList * gst_play_media_info_get_subtitle_streams (const GstPlayMediaInfo * info)
Parameters:
info
–
A GList of matching GstPlaySubtitleInfo.
Since : 1.20
gst_play_media_info_get_tags
GstTagList * gst_play_media_info_get_tags (const GstPlayMediaInfo * info)
Parameters:
info
–
the tags contained in media info.
Since : 1.20
gst_play_media_info_get_title
const gchar * gst_play_media_info_get_title (const GstPlayMediaInfo * info)
Parameters:
info
–
the media title or NULL if unknown.
Since : 1.20
gst_play_media_info_get_uri
const gchar * gst_play_media_info_get_uri (const GstPlayMediaInfo * info)
Parameters:
info
–
the URI associated with GstPlayMediaInfo.
Since : 1.20
gst_play_media_info_get_video_streams
GList * gst_play_media_info_get_video_streams (const GstPlayMediaInfo * info)
Parameters:
info
–
A GList of matching GstPlayVideoInfo.
Since : 1.20
gst_play_media_info_is_live
gboolean gst_play_media_info_is_live (const GstPlayMediaInfo * info)
Parameters:
info
–
TRUE if the media is live.
Since : 1.20
gst_play_media_info_is_seekable
gboolean gst_play_media_info_is_seekable (const GstPlayMediaInfo * info)
Parameters:
info
–
TRUE if the media is seekable.
Since : 1.20
GstPlayStreamInfo
GObject ╰──GstPlayStreamInfo ╰──GstPlayAudioInfo ╰──GstPlaySubtitleInfo ╰──GstPlayVideoInfo
Base structure for information concerning a media stream. Depending on the stream type, one can find more media-specific information in GstPlayVideoInfo, GstPlayAudioInfo, GstPlaySubtitleInfo.
Since : 1.20
Class structure
Methods
gst_play_stream_info_get_caps
GstCaps * gst_play_stream_info_get_caps (const GstPlayStreamInfo * info)
Parameters:
info
–
Since : 1.20
gst_play_stream_info_get_codec
const gchar * gst_play_stream_info_get_codec (const GstPlayStreamInfo * info)
A string describing codec used in GstPlayStreamInfo.
Parameters:
info
–
codec string or NULL on unknown.
Since : 1.20
gst_play_stream_info_get_stream_id
const gchar * gst_play_stream_info_get_stream_id (const GstPlayStreamInfo * info)
A string stream id identifying this GstPlayStreamInfo.
Parameters:
info
–
stream id string.
Since : 1.26
gst_play_stream_info_get_stream_type
const gchar * gst_play_stream_info_get_stream_type (const GstPlayStreamInfo * 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
Since : 1.20
gst_play_stream_info_get_tags
GstTagList * gst_play_stream_info_get_tags (const GstPlayStreamInfo * info)
Parameters:
info
–
the tags contained in this stream.
Since : 1.20
GstPlaySubtitleInfo
GObject ╰──GstPlayStreamInfo ╰──GstPlaySubtitleInfo
GstPlayStreamInfo specific to subtitle streams.
Since : 1.20
Class structure
Methods
gst_play_subtitle_info_get_language
const gchar * gst_play_subtitle_info_get_language (const GstPlaySubtitleInfo * info)
Parameters:
info
–
the language of the stream, or NULL if unknown.
Since : 1.20
GstPlayVideoInfo
GObject ╰──GstPlayStreamInfo ╰──GstPlayVideoInfo
GstPlayStreamInfo specific to video streams.
Since : 1.20
Class structure
Methods
gst_play_video_info_get_bitrate
gint gst_play_video_info_get_bitrate (const GstPlayVideoInfo * info)
Parameters:
info
–
the current bitrate of video in GstPlayVideoInfo or -1 if unknown.
Since : 1.20
gst_play_video_info_get_framerate
gst_play_video_info_get_framerate (const GstPlayVideoInfo * info, gint * fps_n, gint * fps_d)
Parameters:
info
–
fps_n
(
[out])
–
Numerator of frame rate
fps_d
(
[out])
–
Denominator of frame rate
Since : 1.20
gst_play_video_info_get_height
gint gst_play_video_info_get_height (const GstPlayVideoInfo * info)
Parameters:
info
–
the height of video in GstPlayVideoInfo or -1 if unknown.
Since : 1.20
gst_play_video_info_get_max_bitrate
gint gst_play_video_info_get_max_bitrate (const GstPlayVideoInfo * info)
Parameters:
info
–
the maximum bitrate of video in GstPlayVideoInfo or -1 if unknown.
Since : 1.20
gst_play_video_info_get_pixel_aspect_ratio
gst_play_video_info_get_pixel_aspect_ratio (const GstPlayVideoInfo * info, guint * par_n, guint * par_d)
Returns the pixel aspect ratio in par_n and par_d
Since : 1.20
gst_play_video_info_get_width
gint gst_play_video_info_get_width (const GstPlayVideoInfo * info)
Parameters:
info
–
the width of video in GstPlayVideoInfo or -1 if unknown.
Since : 1.20
Constants
The results of the search are