![]() |
![]() |
![]() |
GStreamer Bad Plugins 1.0 Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
GstPlayerMediaInfo; GstPlayerStreamInfo; GstPlayerAudioInfo; GstPlayerVideoInfo; GstPlayerSubtitleInfo; 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
); 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
); 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
); const gchar * gst_player_stream_info_get_stream_type (const GstPlayerStreamInfo *info
); 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
); const gchar * gst_player_subtitle_info_get_language (const GstPlayerSubtitleInfo *info
);
GObject +----GstPlayerMediaInfo
GObject +----GstPlayerStreamInfo +----GstPlayerAudioInfo +----GstPlayerSubtitleInfo +----GstPlayerVideoInfo
GObject +----GstPlayerStreamInfo +----GstPlayerAudioInfo
GObject +----GstPlayerStreamInfo +----GstPlayerVideoInfo
GObject +----GstPlayerStreamInfo +----GstPlayerSubtitleInfo
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.
const gchar * gst_player_media_info_get_uri (const GstPlayerMediaInfo *info
);
|
a GstPlayerMediaInfo |
Returns : |
the URI associated with GstPlayerMediaInfo. |
GstClockTime gst_player_media_info_get_duration (const GstPlayerMediaInfo *info
);
|
a GstPlayerMediaInfo |
Returns : |
duration of the media. |
const gchar * gst_player_media_info_get_title (const GstPlayerMediaInfo *info
);
|
a GstPlayerMediaInfo |
Returns : |
the media title. |
const gchar * gst_player_media_info_get_container_format
(const GstPlayerMediaInfo *info
);
|
a GstPlayerMediaInfo |
Returns : |
the container format. |
gboolean gst_player_media_info_is_seekable (const GstPlayerMediaInfo *info
);
|
a GstPlayerMediaInfo |
Returns : |
TRUE if the media is seekable. |
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.
|
a GstPlayerMediaInfo |
Returns : |
GstSample or NULL. [transfer none] |
GstTagList * gst_player_media_info_get_tags (const GstPlayerMediaInfo *info
);
|
a GstPlayerMediaInfo |
Returns : |
the tags contained in media info. [transfer none] |
GList * gst_player_media_info_get_stream_list
(const GstPlayerMediaInfo *info
);
|
a GstPlayerMediaInfo |
Returns : |
A GList of matching GstPlayerStreamInfo. [transfer none][element-type GstPlayerStreamInfo] |
gint gst_player_stream_info_get_index (const GstPlayerStreamInfo *info
);
Function to get stream index from GstPlayerStreamInfo instance.
|
a GstPlayerStreamInfo |
Returns : |
the stream index of this stream. |
GstCaps * gst_player_stream_info_get_caps (const GstPlayerStreamInfo *info
);
|
a GstPlayerStreamInfo |
Returns : |
the GstCaps of the stream. [transfer none] |
GstTagList * gst_player_stream_info_get_tags (const GstPlayerStreamInfo *info
);
|
a GstPlayerStreamInfo |
Returns : |
the tags contained in this stream. [transfer none] |
const gchar * gst_player_stream_info_get_codec (const GstPlayerStreamInfo *info
);
A string describing codec used in GstPlayerStreamInfo.
|
a GstPlayerStreamInfo |
Returns : |
codec string or NULL on unknown. |
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")
|
a GstPlayerStreamInfo |
Returns : |
a human readable name |
gint gst_player_audio_info_get_bitrate (const GstPlayerAudioInfo *info
);
|
a GstPlayerAudioInfo |
Returns : |
the audio bitrate in GstPlayerAudioInfo. |
gint gst_player_audio_info_get_channels (const GstPlayerAudioInfo *info
);
|
a GstPlayerAudioInfo |
Returns : |
the number of audio channels in GstPlayerAudioInfo. |
const gchar * gst_player_audio_info_get_language (const GstPlayerAudioInfo *info
);
|
a GstPlayerAudioInfo |
Returns : |
the language of the stream, or NULL if unknown. |
gint gst_player_audio_info_get_max_bitrate
(const GstPlayerAudioInfo *info
);
|
a GstPlayerAudioInfo |
Returns : |
the audio maximum bitrate in GstPlayerAudioInfo. |
gint gst_player_audio_info_get_sample_rate
(const GstPlayerAudioInfo *info
);
|
a GstPlayerAudioInfo |
Returns : |
the audio sample rate in GstPlayerAudioInfo. |
gint gst_player_video_info_get_bitrate (const GstPlayerVideoInfo *info
);
|
a GstPlayerVideoInfo |
Returns : |
the current bitrate of video in GstPlayerVideoInfo. |
gint gst_player_video_info_get_height (const GstPlayerVideoInfo *info
);
|
a GstPlayerVideoInfo |
Returns : |
the height of video in GstPlayerVideoInfo. |
gint gst_player_video_info_get_width (const GstPlayerVideoInfo *info
);
|
a GstPlayerVideoInfo |
Returns : |
the width of video in GstPlayerVideoInfo. |
void gst_player_video_info_get_framerate (const GstPlayerVideoInfo *info
,gint *fps_n
,gint *fps_d
);
|
a GstPlayerVideoInfo |
|
Numerator of frame rate. [out] |
|
Denominator of frame rate. [out] |
gint gst_player_video_info_get_max_bitrate
(const GstPlayerVideoInfo *info
);
|
a GstPlayerVideoInfo |
Returns : |
the maximum bitrate of video in GstPlayerVideoInfo. |
void gst_player_video_info_get_pixel_aspect_ratio (const GstPlayerVideoInfo *info
,guint *par_n
,guint *par_d
);
|
a GstPlayerVideoInfo |
|
numerator. [out] |
|
denominator. [out] |
Returns : |
the pixel aspect ratio in par_n and par_d
|
const gchar * gst_player_subtitle_info_get_language
(const GstPlayerSubtitleInfo *info
);
|
a GstPlayerSubtitleInfo |
Returns : |
the language of the stream, or NULL if unknown. |