libvlc_media_track_t is an abstract representation of a media track.
More...
libvlc_media_track_t is an abstract representation of a media track.
◆ libvlc_audio_track_t
| typedef struct libvlc_audio_track_t libvlc_audio_track_t |
◆ libvlc_media_track_t
| typedef struct libvlc_media_track_t libvlc_media_track_t |
◆ libvlc_media_tracklist_t
Opaque struct containing a list of tracks.
◆ libvlc_subtitle_track_t
| typedef struct libvlc_subtitle_track_t libvlc_subtitle_track_t |
◆ libvlc_track_type_t
◆ libvlc_video_track_t
| typedef struct libvlc_video_track_t libvlc_video_track_t |
◆ libvlc_video_viewpoint_t
| typedef struct libvlc_video_viewpoint_t libvlc_video_viewpoint_t |
◆ libvlc_track_type_t
| Enumerator |
|---|
| libvlc_track_unknown | |
| libvlc_track_audio | |
| libvlc_track_video | |
| libvlc_track_text | |
◆ libvlc_media_track_hold()
Hold a single track reference.
- Version
- LibVLC 4.0.0 and later.
This function can be used to hold a track from a tracklist. In that case, the track can outlive its tracklist.
- Parameters
-
- Returns
- the same track, need to be released with libvlc_media_track_release()
References LIBVLC_API.
◆ libvlc_media_track_release()
◆ libvlc_media_tracklist_at()
Get a track at a specific index.
- Warning
- The behaviour is undefined if the index is not valid.
- Version
- LibVLC 4.0.0 and later.
- Parameters
-
| list | valid tracklist |
| index | valid index in the range [0; count[ |
- Returns
- a valid track (can't be NULL if libvlc_media_tracklist_count() returned a valid count)
References LIBVLC_API, and list.
◆ libvlc_media_tracklist_count()
Get the number of tracks in a tracklist.
- Version
- LibVLC 4.0.0 and later.
- Parameters
-
- Returns
- number of tracks, or 0 if the list is empty
References LIBVLC_API, and list.
◆ libvlc_media_tracklist_delete()