Top | ![]() |
![]() |
![]() |
![]() |
GObject ├── GstPlayerMediaInfo ╰── GstPlayerStreamInfo ├── GstPlayerAudioInfo ├── GstPlayerSubtitleInfo ╰── GstPlayerVideoInfo
const gchar *
gst_player_media_info_get_uri (const GstPlayerMediaInfo *info
);
GstClockTime
gst_player_media_info_get_duration (const GstPlayerMediaInfo *info
);
const gchar *
gst_player_media_info_get_title (const GstPlayerMediaInfo *info
);
const gchar *
gst_player_media_info_get_container_format
(const GstPlayerMediaInfo *info
);
gboolean
gst_player_media_info_is_seekable (const GstPlayerMediaInfo *info
);
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.
GstTagList *
gst_player_media_info_get_tags (const GstPlayerMediaInfo *info
);
GList *
gst_player_media_info_get_stream_list (const GstPlayerMediaInfo *info
);
gint
gst_player_stream_info_get_index (const GstPlayerStreamInfo *info
);
Function to get stream index from GstPlayerStreamInfo instance.
GstCaps *
gst_player_stream_info_get_caps (const GstPlayerStreamInfo *info
);
GstTagList *
gst_player_stream_info_get_tags (const GstPlayerStreamInfo *info
);
const gchar *
gst_player_stream_info_get_codec (const GstPlayerStreamInfo *info
);
A string describing codec used in GstPlayerStreamInfo.
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")
gint
gst_player_audio_info_get_bitrate (const GstPlayerAudioInfo *info
);
gint
gst_player_audio_info_get_channels (const GstPlayerAudioInfo *info
);
const gchar *
gst_player_audio_info_get_language (const GstPlayerAudioInfo *info
);
gint
gst_player_audio_info_get_max_bitrate (const GstPlayerAudioInfo *info
);
gint
gst_player_audio_info_get_sample_rate (const GstPlayerAudioInfo *info
);
gint
gst_player_video_info_get_bitrate (const GstPlayerVideoInfo *info
);
gint
gst_player_video_info_get_height (const GstPlayerVideoInfo *info
);
gint
gst_player_video_info_get_width (const GstPlayerVideoInfo *info
);
void gst_player_video_info_get_framerate (const GstPlayerVideoInfo *info
,gint *fps_n
,gint *fps_d
);
gint
gst_player_video_info_get_max_bitrate (const GstPlayerVideoInfo *info
);
void 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
const gchar *
gst_player_subtitle_info_get_language (const GstPlayerSubtitleInfo *info
);
typedef struct _GstPlayerMediaInfo GstPlayerMediaInfo;
Structure containing the media information of a URI.
typedef struct _GstPlayerStreamInfo GstPlayerStreamInfo;
Base structure for information concering a media stream. Depending on the stream type, one can find more media-specific information in GstPlayerVideoInfo, GstPlayerAudioInfo, GstPlayerSubtitleInfo.
typedef struct _GstPlayerAudioInfo GstPlayerAudioInfo;
GstPlayerStreamInfo specific to audio streams.
typedef struct _GstPlayerVideoInfo GstPlayerVideoInfo;
GstPlayerStreamInfo specific to video streams.
typedef struct _GstPlayerSubtitleInfo GstPlayerSubtitleInfo;
GstPlayerStreamInfo specific to subtitle streams.