VLC
4.0.0-dev
|
LibVLC media item/descriptor external API. More...
Go to the source code of this file.
Data Structures | |
struct | libvlc_media_stats_t |
struct | libvlc_audio_track_t |
struct | libvlc_video_viewpoint_t |
Viewpoint. More... | |
struct | libvlc_video_track_t |
struct | libvlc_subtitle_track_t |
struct | libvlc_media_track_t |
struct | libvlc_media_slave_t |
A slave of a libvlc_media_t. More... | |
Macros | |
#define | VLC_FORWARD_DECLARE_OBJECT(a) struct a |
Functions | |
LIBVLC_API libvlc_media_t * | libvlc_media_new_location (libvlc_instance_t *p_instance, const char *psz_mrl) |
Create a media with a certain given media resource location, for instance a valid URL. More... | |
LIBVLC_API libvlc_media_t * | libvlc_media_new_path (libvlc_instance_t *p_instance, const char *path) |
Create a media for a certain file path. More... | |
LIBVLC_API libvlc_media_t * | libvlc_media_new_fd (libvlc_instance_t *p_instance, int fd) |
Create a media for an already open file descriptor. More... | |
LIBVLC_API libvlc_media_t * | libvlc_media_new_callbacks (libvlc_instance_t *instance, libvlc_media_open_cb open_cb, libvlc_media_read_cb read_cb, libvlc_media_seek_cb seek_cb, libvlc_media_close_cb close_cb, void *opaque) |
Create a media with custom callbacks to read the data from. More... | |
LIBVLC_API libvlc_media_t * | libvlc_media_new_as_node (libvlc_instance_t *p_instance, const char *psz_name) |
Create a media as an empty node with a given name. More... | |
LIBVLC_API void | libvlc_media_add_option (libvlc_media_t *p_md, const char *psz_options) |
Add an option to the media. More... | |
LIBVLC_API void | libvlc_media_add_option_flag (libvlc_media_t *p_md, const char *psz_options, unsigned i_flags) |
Add an option to the media with configurable flags. More... | |
LIBVLC_API void | libvlc_media_retain (libvlc_media_t *p_md) |
Retain a reference to a media descriptor object (libvlc_media_t). More... | |
LIBVLC_API void | libvlc_media_release (libvlc_media_t *p_md) |
Decrement the reference count of a media descriptor object. More... | |
LIBVLC_API char * | libvlc_media_get_mrl (libvlc_media_t *p_md) |
Get the media resource locator (mrl) from a media descriptor object. More... | |
LIBVLC_API libvlc_media_t * | libvlc_media_duplicate (libvlc_media_t *p_md) |
Duplicate a media descriptor object. More... | |
LIBVLC_API char * | libvlc_media_get_meta (libvlc_media_t *p_md, libvlc_meta_t e_meta) |
Read the meta of the media. More... | |
LIBVLC_API void | libvlc_media_set_meta (libvlc_media_t *p_md, libvlc_meta_t e_meta, const char *psz_value) |
Set the meta of the media (this function will not save the meta, call libvlc_media_save_meta in order to save the meta) More... | |
LIBVLC_API int | libvlc_media_save_meta (libvlc_media_t *p_md) |
Save the meta previously set. More... | |
LIBVLC_API libvlc_state_t | libvlc_media_get_state (libvlc_media_t *p_md) |
Get current state of media descriptor object. More... | |
LIBVLC_API bool | libvlc_media_get_stats (libvlc_media_t *p_md, libvlc_media_stats_t *p_stats) |
Get the current statistics about the media. More... | |
LIBVLC_API struct libvlc_media_list_t * | libvlc_media_subitems (libvlc_media_t *p_md) |
Get subitems of media descriptor object. More... | |
LIBVLC_API libvlc_event_manager_t * | libvlc_media_event_manager (libvlc_media_t *p_md) |
Get event manager from media descriptor object. More... | |
LIBVLC_API libvlc_time_t | libvlc_media_get_duration (libvlc_media_t *p_md) |
Get duration (in ms) of media descriptor object item. More... | |
LIBVLC_API int | libvlc_media_parse_with_options (libvlc_media_t *p_md, libvlc_media_parse_flag_t parse_flag, int timeout) |
Parse the media asynchronously with options. More... | |
LIBVLC_API void | libvlc_media_parse_stop (libvlc_media_t *p_md) |
Stop the parsing of the media. More... | |
LIBVLC_API libvlc_media_parsed_status_t | libvlc_media_get_parsed_status (libvlc_media_t *p_md) |
Get Parsed status for media descriptor object. More... | |
LIBVLC_API void | libvlc_media_set_user_data (libvlc_media_t *p_md, void *p_new_user_data) |
Sets media descriptor's user_data. More... | |
LIBVLC_API void * | libvlc_media_get_user_data (libvlc_media_t *p_md) |
Get media descriptor's user_data. More... | |
LIBVLC_API unsigned | libvlc_media_tracks_get (libvlc_media_t *p_md, libvlc_media_track_t ***tracks) |
Get media descriptor's elementary streams description. More... | |
LIBVLC_API const char * | libvlc_media_get_codec_description (libvlc_track_type_t i_type, uint32_t i_codec) |
Get codec description from media elementary stream. More... | |
LIBVLC_API void | libvlc_media_tracks_release (libvlc_media_track_t **p_tracks, unsigned i_count) |
Release media descriptor's elementary streams description array. More... | |
LIBVLC_API libvlc_media_type_t | libvlc_media_get_type (libvlc_media_t *p_md) |
Get the media type of the media descriptor object. More... | |
LIBVLC_API libvlc_media_thumbnail_request_t * | libvlc_media_thumbnail_request_by_time (libvlc_media_t *md, libvlc_time_t time, libvlc_thumbnailer_seek_speed_t speed, unsigned int width, unsigned int height, bool crop, libvlc_picture_type_t picture_type, libvlc_time_t timeout) |
libvlc_media_get_thumbnail_by_time Start an asynchronous thumbnail generation More... | |
LIBVLC_API libvlc_media_thumbnail_request_t * | libvlc_media_thumbnail_request_by_pos (libvlc_media_t *md, float pos, libvlc_thumbnailer_seek_speed_t speed, unsigned int width, unsigned int height, bool crop, libvlc_picture_type_t picture_type, libvlc_time_t timeout) |
libvlc_media_get_thumbnail_by_pos Start an asynchronous thumbnail generation More... | |
LIBVLC_API void | libvlc_media_thumbnail_request_cancel (libvlc_media_thumbnail_request_t *p_req) |
libvlc_media_thumbnail_cancel cancels a thumbnailing request More... | |
LIBVLC_API void | libvlc_media_thumbnail_request_destroy (libvlc_media_thumbnail_request_t *p_req) |
libvlc_media_thumbnail_destroy destroys a thumbnail request More... | |
LIBVLC_API int | libvlc_media_slaves_add (libvlc_media_t *p_md, libvlc_media_slave_type_t i_type, unsigned int i_priority, const char *psz_uri) |
Add a slave to the current media. More... | |
LIBVLC_API void | libvlc_media_slaves_clear (libvlc_media_t *p_md) |
Clear all slaves previously added by libvlc_media_slaves_add() or internally. More... | |
LIBVLC_API unsigned int | libvlc_media_slaves_get (libvlc_media_t *p_md, libvlc_media_slave_t ***ppp_slaves) |
Get a media descriptor's slave list. More... | |
LIBVLC_API void | libvlc_media_slaves_release (libvlc_media_slave_t **pp_slaves, unsigned int i_count) |
Release a media descriptor's slave list. More... | |
LibVLC media item/descriptor external API.