GstPlayMediaInfo

GstPlayAudioInfo

GObject
    ╰──GstPlayStreamInfo
        ╰──GstPlayAudioInfo

GstPlayStreamInfo specific to audio streams.

Since : 1.20


Class structure

GstPlayAudioInfoClass


Methods

gst_play_audio_info_get_bitrate

gint
gst_play_audio_info_get_bitrate (const GstPlayAudioInfo * info)

Parameters:

info

a GstPlayAudioInfo

Returns

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

a GstPlayAudioInfo

Returns

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

a GstPlayAudioInfo

Returns ( [nullable])

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

a GstPlayAudioInfo

Returns

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

a GstPlayAudioInfo

Returns

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

GstPlayMediaInfoClass


Methods

gst_play_media_info_get_audio_streams

GList *
gst_play_media_info_get_audio_streams (const GstPlayMediaInfo * info)

Parameters:

info

a GstPlayMediaInfo

Returns ( [transfer: none][element-typeGstPlayAudioInfo])

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

a GstPlayMediaInfo

Returns ( [nullable])

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

a GstPlayMediaInfo

Returns

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

a GstPlayMediaInfo

Returns ( [nullable][transfer: none])

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

a GstPlayMediaInfo

Returns

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

a GstPlayMediaInfo

Returns

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

a GstPlayMediaInfo

Returns

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

a GstPlayMediaInfo

Returns

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 GstPlayMediaInfo

Returns ( [transfer: none][element-typeGstPlayStreamInfo])

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 GstPlayMediaInfo

Returns ( [transfer: none][element-typeGstPlaySubtitleInfo])

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

a GstPlayMediaInfo

Returns ( [transfer: none][nullable])

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

a GstPlayMediaInfo

Returns ( [nullable])

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

a GstPlayMediaInfo

Returns

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 GstPlayMediaInfo

Returns ( [transfer: none][element-typeGstPlayVideoInfo])

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

a GstPlayMediaInfo

Returns

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

a GstPlayMediaInfo

Returns

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

GstPlayStreamInfoClass


Methods

gst_play_stream_info_get_caps

GstCaps *
gst_play_stream_info_get_caps (const GstPlayStreamInfo * info)

Parameters:

info

a GstPlayStreamInfo

Returns ( [nullable][transfer: none])

the GstCaps of the stream or NULL if unknown.

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

a GstPlayStreamInfo

Returns ( [nullable])

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

a GstPlayStreamInfo

Returns

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 GstPlayStreamInfo

Returns

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

a GstPlayStreamInfo

Returns ( [transfer: none][nullable])

the tags contained in this stream.

Since : 1.20


GstPlaySubtitleInfo

GObject
    ╰──GstPlayStreamInfo
        ╰──GstPlaySubtitleInfo

GstPlayStreamInfo specific to subtitle streams.

Since : 1.20


Class structure

GstPlaySubtitleInfoClass


Methods

gst_play_subtitle_info_get_language

const gchar *
gst_play_subtitle_info_get_language (const GstPlaySubtitleInfo * info)

Parameters:

info

a GstPlaySubtitleInfo

Returns ( [nullable])

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

GstPlayVideoInfoClass


Methods

gst_play_video_info_get_bitrate

gint
gst_play_video_info_get_bitrate (const GstPlayVideoInfo * info)

Parameters:

info

a GstPlayVideoInfo

Returns

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

a GstPlayVideoInfo

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

a GstPlayVideoInfo

Returns

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

a GstPlayVideoInfo

Returns

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

Parameters:

info

a GstPlayVideoInfo

par_n ( [out])

numerator

par_d ( [out])

denominator

Since : 1.20


gst_play_video_info_get_width

gint
gst_play_video_info_get_width (const GstPlayVideoInfo * info)

Parameters:

info

a GstPlayVideoInfo

Returns

the width of video in GstPlayVideoInfo or -1 if unknown.

Since : 1.20


Constants

GST_TYPE_PLAY_AUDIO_INFO

#define GST_TYPE_PLAY_AUDIO_INFO \
  (gst_play_audio_info_get_type ())

Since : 1.20


GST_TYPE_PLAY_MEDIA_INFO

#define GST_TYPE_PLAY_MEDIA_INFO \
  (gst_play_media_info_get_type())

Since : 1.20


GST_TYPE_PLAY_STREAM_INFO

#define GST_TYPE_PLAY_STREAM_INFO \
  (gst_play_stream_info_get_type ())

Since : 1.20


GST_TYPE_PLAY_SUBTITLE_INFO

#define GST_TYPE_PLAY_SUBTITLE_INFO \
  (gst_play_subtitle_info_get_type ())

Since : 1.20


GST_TYPE_PLAY_VIDEO_INFO

#define GST_TYPE_PLAY_VIDEO_INFO \
  (gst_play_video_info_get_type ())

Since : 1.20


The results of the search are