VLC 4.0.0-dev
deprecated.h
Go to the documentation of this file.
1/*****************************************************************************
2 * deprecated.h: libvlc deprecated API
3 *****************************************************************************
4 * Copyright (C) 1998-2008 VLC authors and VideoLAN
5 *
6 * Authors: Clément Stenac <zorglub@videolan.org>
7 * Jean-Paul Saman <jpsaman@videolan.org>
8 *
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2.1 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
23
24#ifndef LIBVLC_DEPRECATED_H
25#define LIBVLC_DEPRECATED_H 1
26
27# ifdef __cplusplus
28extern "C" {
29# endif
30
31/**
32 * \ingroup libvlc_media_player
33 * @{
34 */
35
36/**
37 * Description for video, audio tracks and subtitles. It contains
38 * id, name (description string) and pointer to next record.
39 */
41{
42 int i_id;
43 char *psz_name;
45
47
48/**
49 * Release (free) libvlc_track_description_t
50 *
51 * \param p_track_description the structure to release
52 */
54
55
56/** @}*/
57
58/**
59 * \ingroup libvlc_video
60 * @{
61 */
62
63/**
64 * Get number of available video tracks.
65 *
66 * \param p_mi media player
67 * \return the number of available video tracks (int)
68 */
70
71/**
72 * Get the description of available video tracks.
73 *
74 * \param p_mi media player
75 * \return list with description of available video tracks, or NULL on error.
76 * It must be freed with libvlc_track_description_list_release()
77 */
80
81/**
82 * Get current video track.
83 *
84 * \param p_mi media player
85 * \return the video track ID (int) or -1 if no active input
86 */
88
89/**
90 * Set video track.
91 *
92 * \param p_mi media player
93 * \param i_track the track ID (i_id field from track description)
94 * \return 0 on success, -1 if out of range
95 */
98
99/**
100 * Get current video subtitle.
101 *
102 * \param p_mi the media player
103 * \return the video subtitle selected, or -1 if none
104 */
106
107/**
108 * Get the number of available video subtitles.
109 *
110 * \param p_mi the media player
111 * \return the number of available video subtitles
112 */
114
115/**
116 * Get the description of available video subtitles.
117 *
118 * \param p_mi the media player
119 * \return list containing description of available video subtitles.
120 * It must be freed with libvlc_track_description_list_release()
121 */
124
125/**
126 * Set new video subtitle.
127 *
128 * \param p_mi the media player
129 * \param i_spu video subtitle track to select (i_id from track description)
130 * \return 0 on success, -1 if out of range
131 */
133
134/** @}*/
135
136/**
137 * \ingroup libvlc_audio
138 * @{
139 */
140
141/**
142 * Get number of available audio tracks.
143 *
144 * \param p_mi media player
145 * \return the number of available audio tracks (int), or -1 if unavailable
146 */
148
149/**
150 * Get the description of available audio tracks.
151 *
152 * \param p_mi media player
153 * \return list with description of available audio tracks, or NULL.
154 * It must be freed with libvlc_track_description_list_release()
155 */
158
159/**
160 * Get current audio track.
161 *
162 * \param p_mi media player
163 * \return the audio track ID or -1 if no active input.
164 */
166
167/**
168 * Set current audio track.
169 *
170 * \param p_mi media player
171 * \param i_track the track ID (i_id field from track description)
172 * \return 0 on success, -1 on error
173 */
175
176/** @}*/
177
178/**
179 * \ingroup libvlc
180 * \defgroup libvlc_playlist LibVLC playlist (legacy)
181 * @deprecated Use @ref libvlc_media_list instead.
182 * @{
183 * \file
184 * LibVLC deprecated playlist API
185 */
186
187/**
188 * Start playing (if there is any item in the playlist).
189 *
190 * Additional playlist item options can be specified for addition to the
191 * item before it is played.
192 *
193 * \param p_instance the playlist instance
194 */
197
198/** @}*/
199
200# ifdef __cplusplus
201}
202# endif
203
204#endif /* _LIBVLC_DEPRECATED_H */
LIBVLC_DEPRECATED LIBVLC_API int libvlc_audio_get_track_count(libvlc_media_player_t *p_mi)
Get number of available audio tracks.
LIBVLC_DEPRECATED LIBVLC_API libvlc_track_description_t * libvlc_audio_get_track_description(libvlc_media_player_t *p_mi)
Get the description of available audio tracks.
LIBVLC_DEPRECATED LIBVLC_API int libvlc_audio_set_track(libvlc_media_player_t *p_mi, int i_track)
Set current audio track.
LIBVLC_DEPRECATED LIBVLC_API int libvlc_audio_get_track(libvlc_media_player_t *p_mi)
Get current audio track.
struct libvlc_instance_t libvlc_instance_t
This structure is opaque.
Definition: libvlc.h:76
@ LIBVLC_DEPRECATED
Definition: libvlc_events.h:186
LIBVLC_DEPRECATED LIBVLC_API void libvlc_track_description_list_release(libvlc_track_description_t *p_track_description)
Release (free) libvlc_track_description_t.
struct libvlc_track_description_t libvlc_track_description_t
Description for video, audio tracks and subtitles.
struct libvlc_media_player_t libvlc_media_player_t
Definition: libvlc_media_player.h:42
LIBVLC_DEPRECATED LIBVLC_API void libvlc_playlist_play(libvlc_instance_t *p_instance)
Start playing (if there is any item in the playlist).
LIBVLC_DEPRECATED LIBVLC_API int libvlc_video_set_track(libvlc_media_player_t *p_mi, int i_track)
Set video track.
LIBVLC_DEPRECATED LIBVLC_API int libvlc_video_set_spu(libvlc_media_player_t *p_mi, int i_spu)
Set new video subtitle.
LIBVLC_DEPRECATED LIBVLC_API libvlc_track_description_t * libvlc_video_get_spu_description(libvlc_media_player_t *p_mi)
Get the description of available video subtitles.
LIBVLC_DEPRECATED LIBVLC_API int libvlc_video_get_track(libvlc_media_player_t *p_mi)
Get current video track.
LIBVLC_DEPRECATED LIBVLC_API int libvlc_video_get_track_count(libvlc_media_player_t *p_mi)
Get number of available video tracks.
LIBVLC_DEPRECATED LIBVLC_API int libvlc_video_get_spu_count(libvlc_media_player_t *p_mi)
Get the number of available video subtitles.
LIBVLC_DEPRECATED LIBVLC_API int libvlc_video_get_spu(libvlc_media_player_t *p_mi)
Get current video subtitle.
LIBVLC_DEPRECATED LIBVLC_API libvlc_track_description_t * libvlc_video_get_track_description(libvlc_media_player_t *p_mi)
Get the description of available video tracks.
#define LIBVLC_API
Definition: libvlc.h:42
Description for video, audio tracks and subtitles.
Definition: deprecated.h:41
int i_id
Definition: deprecated.h:42
char * psz_name
Definition: deprecated.h:43
struct libvlc_track_description_t * p_next
Definition: deprecated.h:44