QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
libvlc_media_list_player.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * libvlc_media_list_player.h: libvlc_media_list API
3  *****************************************************************************
4  * Copyright (C) 1998-2008 VLC authors and VideoLAN
5  * $Id: c95ad972c7dcf380ef62e60d821af726848dae48 $
6  *
7  * Authors: Pierre d'Herbemont
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_MEDIA_LIST_PLAYER_H
25 #define LIBVLC_MEDIA_LIST_PLAYER_H 1
26 
32 # ifdef __cplusplus
33 extern "C" {
34 # endif
35 
36 /*****************************************************************************
37  * Media List Player
38  *****************************************************************************/
49 typedef struct libvlc_media_list_player_t libvlc_media_list_player_t;
50 
55 {
56  libvlc_playback_mode_default,
57  libvlc_playback_mode_loop,
58  libvlc_playback_mode_repeat
60 
67 LIBVLC_API libvlc_media_list_player_t *
69 
79 LIBVLC_API void
80  libvlc_media_list_player_release( libvlc_media_list_player_t * p_mlp );
81 
88 LIBVLC_API void
89  libvlc_media_list_player_retain( libvlc_media_list_player_t *p_mlp );
90 
97 LIBVLC_API libvlc_event_manager_t *
98  libvlc_media_list_player_event_manager(libvlc_media_list_player_t * p_mlp);
99 
106 LIBVLC_API void
108  libvlc_media_list_player_t * p_mlp,
109  libvlc_media_player_t * p_mi );
110 
117 LIBVLC_API void
119  libvlc_media_list_player_t * p_mlp,
120  libvlc_media_list_t * p_mlist );
121 
127 LIBVLC_API
128 void libvlc_media_list_player_play(libvlc_media_list_player_t * p_mlp);
129 
135 LIBVLC_API
136 void libvlc_media_list_player_pause(libvlc_media_list_player_t * p_mlp);
137 
146 LIBVLC_API int
147  libvlc_media_list_player_is_playing( libvlc_media_list_player_t * p_mlp );
148 
155 LIBVLC_API libvlc_state_t
156  libvlc_media_list_player_get_state( libvlc_media_list_player_t * p_mlp );
157 
165 LIBVLC_API
166 int libvlc_media_list_player_play_item_at_index(libvlc_media_list_player_t * p_mlp,
167  int i_index);
168 
176 LIBVLC_API
177 int libvlc_media_list_player_play_item(libvlc_media_list_player_t * p_mlp,
178  libvlc_media_t * p_md);
179 
185 LIBVLC_API void
186  libvlc_media_list_player_stop( libvlc_media_list_player_t * p_mlp);
187 
194 LIBVLC_API
195 int libvlc_media_list_player_next(libvlc_media_list_player_t * p_mlp);
196 
203 LIBVLC_API
204 int libvlc_media_list_player_previous(libvlc_media_list_player_t * p_mlp);
205 
206 
207 
214 LIBVLC_API
215 void libvlc_media_list_player_set_playback_mode(libvlc_media_list_player_t * p_mlp,
216  libvlc_playback_mode_t e_mode );
217 
220 # ifdef __cplusplus
221 }
222 # endif
223 
224 #endif /* LIBVLC_MEDIA_LIST_PLAYER_H */
LIBVLC_API int libvlc_media_list_player_play_item(libvlc_media_list_player_t *p_mlp, libvlc_media_t *p_md)
LIBVLC_API void libvlc_media_list_player_release(libvlc_media_list_player_t *p_mlp)
libvlc_state_t
Definition: libvlc_media.h:85
LIBVLC_API void libvlc_media_list_player_retain(libvlc_media_list_player_t *p_mlp)
struct libvlc_event_manager_t libvlc_event_manager_t
Definition: libvlc.h:282
LIBVLC_API int libvlc_media_list_player_next(libvlc_media_list_player_t *p_mlp)
LIBVLC_API int libvlc_media_list_player_is_playing(libvlc_media_list_player_t *p_mlp)
LIBVLC_API libvlc_event_manager_t * libvlc_media_list_player_event_manager(libvlc_media_list_player_t *p_mlp)
LIBVLC_API void libvlc_media_list_player_pause(libvlc_media_list_player_t *p_mlp)
LIBVLC_API void libvlc_media_list_player_set_playback_mode(libvlc_media_list_player_t *p_mlp, libvlc_playback_mode_t e_mode)
libvlc_playback_mode_t
Definition: libvlc_media_list_player.h:54
LIBVLC_API int libvlc_media_list_player_play_item_at_index(libvlc_media_list_player_t *p_mlp, int i_index)
LIBVLC_API int libvlc_media_list_player_previous(libvlc_media_list_player_t *p_mlp)
LIBVLC_API void libvlc_media_list_player_stop(libvlc_media_list_player_t *p_mlp)
LIBVLC_API void libvlc_media_list_player_play(libvlc_media_list_player_t *p_mlp)
LIBVLC_API libvlc_state_t libvlc_media_list_player_get_state(libvlc_media_list_player_t *p_mlp)
struct libvlc_instance_t libvlc_instance_t
Definition: libvlc_structures.h:44
LIBVLC_API libvlc_media_list_player_t * libvlc_media_list_player_new(libvlc_instance_t *p_instance)
LIBVLC_API void libvlc_media_list_player_set_media_list(libvlc_media_list_player_t *p_mlp, libvlc_media_list_t *p_mlist)
LIBVLC_API void libvlc_media_list_player_set_media_player(libvlc_media_list_player_t *p_mlp, libvlc_media_player_t *p_mi)