VLC 4.0.0-dev
|
libvlc_media_track_t is an abstract representation of a media track. More...
Files | |
file | libvlc_media_track.h |
LibVLC media track. | |
Data Structures | |
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 |
Typedefs | |
typedef enum libvlc_track_type_t | libvlc_track_type_t |
typedef struct libvlc_audio_track_t | libvlc_audio_track_t |
typedef struct libvlc_video_viewpoint_t | libvlc_video_viewpoint_t |
Viewpoint. | |
typedef struct libvlc_video_track_t | libvlc_video_track_t |
typedef struct libvlc_subtitle_track_t | libvlc_subtitle_track_t |
typedef struct libvlc_media_track_t | libvlc_media_track_t |
typedef struct libvlc_media_tracklist_t | libvlc_media_tracklist_t |
Opaque struct containing a list of tracks. | |
Enumerations | |
enum | libvlc_track_type_t { libvlc_track_unknown = -1 , libvlc_track_audio = 0 , libvlc_track_video = 1 , libvlc_track_text = 2 } |
Functions | |
LIBVLC_API size_t | libvlc_media_tracklist_count (const libvlc_media_tracklist_t *list) |
Get the number of tracks in a tracklist. | |
LIBVLC_API libvlc_media_track_t * | libvlc_media_tracklist_at (libvlc_media_tracklist_t *list, size_t index) |
Get a track at a specific index. | |
LIBVLC_API void | libvlc_media_tracklist_delete (libvlc_media_tracklist_t *list) |
Release a tracklist. | |
LIBVLC_API libvlc_media_track_t * | libvlc_media_track_hold (libvlc_media_track_t *track) |
Hold a single track reference. | |
LIBVLC_API void | libvlc_media_track_release (libvlc_media_track_t *track) |
Release a single track. | |
libvlc_media_track_t is an abstract representation of a media track.
typedef struct libvlc_audio_track_t libvlc_audio_track_t |
typedef struct libvlc_media_track_t libvlc_media_track_t |
typedef struct libvlc_media_tracklist_t libvlc_media_tracklist_t |
Opaque struct containing a list of tracks.
typedef struct libvlc_subtitle_track_t libvlc_subtitle_track_t |
typedef enum libvlc_track_type_t libvlc_track_type_t |
typedef struct libvlc_video_track_t libvlc_video_track_t |
typedef struct libvlc_video_viewpoint_t libvlc_video_viewpoint_t |
Viewpoint.
enum libvlc_track_type_t |
LIBVLC_API libvlc_media_track_t * libvlc_media_track_hold | ( | libvlc_media_track_t * | track | ) |
Hold a single track reference.
This function can be used to hold a track from a tracklist. In that case, the track can outlive its tracklist.
track | valid track |
LIBVLC_API void libvlc_media_track_release | ( | libvlc_media_track_t * | track | ) |
Release a single track.
track | valid track |
LIBVLC_API libvlc_media_track_t * libvlc_media_tracklist_at | ( | libvlc_media_tracklist_t * | list, |
size_t | index | ||
) |
Get a track at a specific index.
list | valid tracklist |
index | valid index in the range [0; count[ |
LIBVLC_API size_t libvlc_media_tracklist_count | ( | const libvlc_media_tracklist_t * | list | ) |
Get the number of tracks in a tracklist.
list | valid tracklist |
LIBVLC_API void libvlc_media_tracklist_delete | ( | libvlc_media_tracklist_t * | list | ) |
Release a tracklist.
list | valid tracklist |