GstPlayerMediaInfo

GstPlayerAudioInfo

GObject
    ╰──GstPlayerStreamInfo
        ╰──GstPlayerAudioInfo

GstPlayerStreamInfo specific to audio streams.


Class structure

GstPlayerAudioInfoClass


Methods

gst_player_audio_info_get_bitrate

gint
gst_player_audio_info_get_bitrate (const GstPlayerAudioInfo * info)

Parameters:

info

a GstPlayerAudioInfo

Returns

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

a GstPlayerAudioInfo

Returns

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

a GstPlayerAudioInfo

Returns ( [nullable])

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

a GstPlayerAudioInfo

Returns

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

a GstPlayerAudioInfo

Returns

the audio sample rate in GstPlayerAudioInfo or 0 if unknown.


GstPlayerMediaInfo

GObject
    ╰──GstPlayerMediaInfo

Structure containing the media information of a URI.


Class structure

GstPlayerMediaInfoClass


Methods

gst_player_media_info_get_audio_streams

GList *
gst_player_media_info_get_audio_streams (const GstPlayerMediaInfo * info)

Parameters:

info

a GstPlayerMediaInfo

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

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

a GstPlayerMediaInfo

Returns ( [nullable])

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

a GstPlayerMediaInfo

Returns

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

a GstPlayerMediaInfo

Returns ( [transfer: none][nullable])

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

a GstPlayerMediaInfo

Returns

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

a GstPlayerMediaInfo

Returns

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

a GstPlayerMediaInfo

Returns

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

a GstPlayerMediaInfo

Returns

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 GstPlayerMediaInfo

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

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 GstPlayerMediaInfo

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

A GList of matching GstPlayerSubtitleInfo.


gst_player_media_info_get_tags

GstTagList *
gst_player_media_info_get_tags (const GstPlayerMediaInfo * info)

Parameters:

info

a GstPlayerMediaInfo

Returns ( [transfer: none][nullable])

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

a GstPlayerMediaInfo

Returns ( [nullable])

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

a GstPlayerMediaInfo

Returns

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 GstPlayerMediaInfo

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

A GList of matching GstPlayerVideoInfo.


gst_player_media_info_is_live

gboolean
gst_player_media_info_is_live (const GstPlayerMediaInfo * info)

Parameters:

info

a GstPlayerMediaInfo

Returns

TRUE if the media is live.


gst_player_media_info_is_seekable

gboolean
gst_player_media_info_is_seekable (const GstPlayerMediaInfo * info)

Parameters:

info

a GstPlayerMediaInfo

Returns

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

GstPlayerStreamInfoClass


Methods

gst_player_stream_info_get_caps

GstCaps *
gst_player_stream_info_get_caps (const GstPlayerStreamInfo * info)

Parameters:

info

a GstPlayerStreamInfo

Returns ( [transfer: none][nullable])

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

a GstPlayerStreamInfo

Returns ( [nullable])

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

a GstPlayerStreamInfo

Returns

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 GstPlayerStreamInfo

Returns

a human readable name


gst_player_stream_info_get_tags

GstTagList *
gst_player_stream_info_get_tags (const GstPlayerStreamInfo * info)

Parameters:

info

a GstPlayerStreamInfo

Returns ( [transfer: none][nullable])

the tags contained in this stream.


GstPlayerSubtitleInfo

GObject
    ╰──GstPlayerStreamInfo
        ╰──GstPlayerSubtitleInfo

GstPlayerStreamInfo specific to subtitle streams.


Class structure

GstPlayerSubtitleInfoClass


Methods

gst_player_subtitle_info_get_language

const gchar *
gst_player_subtitle_info_get_language (const GstPlayerSubtitleInfo * info)

Parameters:

Returns ( [nullable])

the language of the stream, or NULL if unknown.


GstPlayerVideoInfo

GObject
    ╰──GstPlayerStreamInfo
        ╰──GstPlayerVideoInfo

GstPlayerStreamInfo specific to video streams.


Class structure

GstPlayerVideoInfoClass


Methods

gst_player_video_info_get_bitrate

gint
gst_player_video_info_get_bitrate (const GstPlayerVideoInfo * info)

Parameters:

info

a GstPlayerVideoInfo

Returns

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

a GstPlayerVideoInfo

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

a GstPlayerVideoInfo

Returns

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

a GstPlayerVideoInfo

Returns

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

Parameters:

info

a GstPlayerVideoInfo

par_n ( [out])

numerator

par_d ( [out])

denominator


gst_player_video_info_get_width

gint
gst_player_video_info_get_width (const GstPlayerVideoInfo * info)

Parameters:

info

a GstPlayerVideoInfo

Returns

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


Constants

GST_TYPE_PLAYER_AUDIO_INFO

#define GST_TYPE_PLAYER_AUDIO_INFO \
  (gst_player_audio_info_get_type ())

GST_TYPE_PLAYER_MEDIA_INFO

#define GST_TYPE_PLAYER_MEDIA_INFO \
  (gst_player_media_info_get_type())

GST_TYPE_PLAYER_STREAM_INFO

#define GST_TYPE_PLAYER_STREAM_INFO \
  (gst_player_stream_info_get_type ())

GST_TYPE_PLAYER_SUBTITLE_INFO

#define GST_TYPE_PLAYER_SUBTITLE_INFO \
  (gst_player_subtitle_info_get_type ())

GST_TYPE_PLAYER_VIDEO_INFO

#define GST_TYPE_PLAYER_VIDEO_INFO \
  (gst_player_video_info_get_type ())

The results of the search are