QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
libvlc_media_player.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * libvlc_media_player.h: libvlc_media_player external API
3  *****************************************************************************
4  * Copyright (C) 1998-2010 VLC authors and VideoLAN
5  * $Id: 82c7ac2cfd2ecf05449a3ee22bcb2a23420d413a $
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  * Jean-Paul Saman <jpsaman@videolan.org>
9  * Pierre d'Herbemont <pdherbemont@videolan.org>
10  *
11  * This program is free software; you can redistribute it and/or modify it
12  * under the terms of the GNU Lesser General Public License as published by
13  * the Free Software Foundation; either version 2.1 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * along with this program; if not, write to the Free Software Foundation,
23  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25 
31 #ifndef VLC_LIBVLC_MEDIA_PLAYER_H
32 #define VLC_LIBVLC_MEDIA_PLAYER_H 1
33 
34 # ifdef __cplusplus
35 extern "C" {
36 # else
37 # include <stdbool.h>
38 # endif
39 
40 /*****************************************************************************
41  * Media Player
42  *****************************************************************************/
49 typedef struct libvlc_media_player_t libvlc_media_player_t;
50 
56 {
57  int i_id;
58  char *psz_name;
59  struct libvlc_track_description_t *p_next;
60 
62 
67 typedef struct libvlc_audio_output_t
68 {
69  char *psz_name;
70  char *psz_description;
71  struct libvlc_audio_output_t *p_next;
72 
74 
79 {
81  char *psz_device;
83  /* More fields may be added here in later versions */
85 
89 typedef struct libvlc_rectangle_t
90 {
91  int top, left;
92  int bottom, right;
94 
99  libvlc_marquee_Enable = 0,
100  libvlc_marquee_Text,
102  libvlc_marquee_Opacity,
103  libvlc_marquee_Position,
104  libvlc_marquee_Refresh,
105  libvlc_marquee_Size,
106  libvlc_marquee_Timeout,
107  libvlc_marquee_X,
108  libvlc_marquee_Y
110 
115 {
116  libvlc_navigate_activate = 0,
117  libvlc_navigate_up,
118  libvlc_navigate_down,
119  libvlc_navigate_left,
120  libvlc_navigate_right
122 
126 typedef enum libvlc_position_t {
127  libvlc_position_disable=-1,
128  libvlc_position_center,
129  libvlc_position_left,
130  libvlc_position_right,
131  libvlc_position_top,
132  libvlc_position_top_left,
133  libvlc_position_top_right,
134  libvlc_position_bottom,
135  libvlc_position_bottom_left,
136  libvlc_position_bottom_right
138 
146 LIBVLC_API libvlc_media_player_t * libvlc_media_player_new( libvlc_instance_t *p_libvlc_instance );
147 
155 LIBVLC_API libvlc_media_player_t * libvlc_media_player_new_from_media( libvlc_media_t *p_md );
156 
166 LIBVLC_API void libvlc_media_player_release( libvlc_media_player_t *p_mi );
167 
174 LIBVLC_API void libvlc_media_player_retain( libvlc_media_player_t *p_mi );
175 
184 LIBVLC_API void libvlc_media_player_set_media( libvlc_media_player_t *p_mi,
185  libvlc_media_t *p_md );
186 
194 LIBVLC_API libvlc_media_t * libvlc_media_player_get_media( libvlc_media_player_t *p_mi );
195 
202 LIBVLC_API libvlc_event_manager_t * libvlc_media_player_event_manager ( libvlc_media_player_t *p_mi );
203 
212 LIBVLC_API int libvlc_media_player_is_playing ( libvlc_media_player_t *p_mi );
213 
220 LIBVLC_API int libvlc_media_player_play ( libvlc_media_player_t *p_mi );
221 
229 LIBVLC_API void libvlc_media_player_set_pause ( libvlc_media_player_t *mp,
230  int do_pause );
231 
237 LIBVLC_API void libvlc_media_player_pause ( libvlc_media_player_t *p_mi );
238 
244 LIBVLC_API void libvlc_media_player_stop ( libvlc_media_player_t *p_mi );
245 
260 typedef void *(*libvlc_video_lock_cb)(void *opaque, void **planes);
261 
278 typedef void (*libvlc_video_unlock_cb)(void *opaque, void *picture,
279  void *const *planes);
280 
291 typedef void (*libvlc_video_display_cb)(void *opaque, void *picture);
292 
319 typedef unsigned (*libvlc_video_format_cb)(void **opaque, char *chroma,
320  unsigned *width, unsigned *height,
321  unsigned *pitches,
322  unsigned *lines);
323 
330 typedef void (*libvlc_video_cleanup_cb)(void *opaque);
331 
332 
346 LIBVLC_API
347 void libvlc_video_set_callbacks( libvlc_media_player_t *mp,
349  libvlc_video_unlock_cb unlock,
350  libvlc_video_display_cb display,
351  void *opaque );
352 
369 LIBVLC_API
370 void libvlc_video_set_format( libvlc_media_player_t *mp, const char *chroma,
371  unsigned width, unsigned height,
372  unsigned pitch );
373 
383 LIBVLC_API
384 void libvlc_video_set_format_callbacks( libvlc_media_player_t *mp,
386  libvlc_video_cleanup_cb cleanup );
387 
422 LIBVLC_API void libvlc_media_player_set_nsobject ( libvlc_media_player_t *p_mi, void * drawable );
423 
430 LIBVLC_API void * libvlc_media_player_get_nsobject ( libvlc_media_player_t *p_mi );
431 
438 LIBVLC_API void libvlc_media_player_set_agl ( libvlc_media_player_t *p_mi, uint32_t drawable );
439 
446 LIBVLC_API uint32_t libvlc_media_player_get_agl ( libvlc_media_player_t *p_mi );
447 
462 LIBVLC_API void libvlc_media_player_set_xwindow ( libvlc_media_player_t *p_mi, uint32_t drawable );
463 
473 LIBVLC_API uint32_t libvlc_media_player_get_xwindow ( libvlc_media_player_t *p_mi );
474 
483 LIBVLC_API void libvlc_media_player_set_hwnd ( libvlc_media_player_t *p_mi, void *drawable );
484 
493 LIBVLC_API void *libvlc_media_player_get_hwnd ( libvlc_media_player_t *p_mi );
494 
502 typedef void (*libvlc_audio_play_cb)(void *data, const void *samples,
503  unsigned count, int64_t pts);
504 
511 typedef void (*libvlc_audio_pause_cb)(void *data, int64_t pts);
512 
519 typedef void (*libvlc_audio_resume_cb)(void *data, int64_t pts);
520 
526 typedef void (*libvlc_audio_flush_cb)(void *data, int64_t pts);
527 
533 typedef void (*libvlc_audio_drain_cb)(void *data);
534 
541 typedef void (*libvlc_audio_set_volume_cb)(void *data,
542  float volume, bool mute);
543 
558 LIBVLC_API
559 void libvlc_audio_set_callbacks( libvlc_media_player_t *mp,
561  libvlc_audio_pause_cb pause,
562  libvlc_audio_resume_cb resume,
563  libvlc_audio_flush_cb flush,
564  libvlc_audio_drain_cb drain,
565  void *opaque );
566 
577 LIBVLC_API
578 void libvlc_audio_set_volume_callback( libvlc_media_player_t *mp,
579  libvlc_audio_set_volume_cb set_volume );
580 
591 typedef int (*libvlc_audio_setup_cb)(void **data, char *format, unsigned *rate,
592  unsigned *channels);
593 
599 typedef void (*libvlc_audio_cleanup_cb)(void *data);
600 
610 LIBVLC_API
611 void libvlc_audio_set_format_callbacks( libvlc_media_player_t *mp,
612  libvlc_audio_setup_cb setup,
613  libvlc_audio_cleanup_cb cleanup );
614 
627 LIBVLC_API
628 void libvlc_audio_set_format( libvlc_media_player_t *mp, const char *format,
629  unsigned rate, unsigned channels );
630 
639 LIBVLC_API libvlc_time_t libvlc_media_player_get_length( libvlc_media_player_t *p_mi );
640 
647 LIBVLC_API libvlc_time_t libvlc_media_player_get_time( libvlc_media_player_t *p_mi );
648 
656 LIBVLC_API void libvlc_media_player_set_time( libvlc_media_player_t *p_mi, libvlc_time_t i_time );
657 
664 LIBVLC_API float libvlc_media_player_get_position( libvlc_media_player_t *p_mi );
665 
674 LIBVLC_API void libvlc_media_player_set_position( libvlc_media_player_t *p_mi, float f_pos );
675 
682 LIBVLC_API void libvlc_media_player_set_chapter( libvlc_media_player_t *p_mi, int i_chapter );
683 
690 LIBVLC_API int libvlc_media_player_get_chapter( libvlc_media_player_t *p_mi );
691 
698 LIBVLC_API int libvlc_media_player_get_chapter_count( libvlc_media_player_t *p_mi );
699 
708 LIBVLC_API int libvlc_media_player_will_play( libvlc_media_player_t *p_mi );
709 
718  libvlc_media_player_t *p_mi, int i_title );
719 
726 LIBVLC_API void libvlc_media_player_set_title( libvlc_media_player_t *p_mi, int i_title );
727 
734 LIBVLC_API int libvlc_media_player_get_title( libvlc_media_player_t *p_mi );
735 
742 LIBVLC_API int libvlc_media_player_get_title_count( libvlc_media_player_t *p_mi );
743 
749 LIBVLC_API void libvlc_media_player_previous_chapter( libvlc_media_player_t *p_mi );
750 
756 LIBVLC_API void libvlc_media_player_next_chapter( libvlc_media_player_t *p_mi );
757 
766 LIBVLC_API float libvlc_media_player_get_rate( libvlc_media_player_t *p_mi );
767 
776 LIBVLC_API int libvlc_media_player_set_rate( libvlc_media_player_t *p_mi, float rate );
777 
784 LIBVLC_API libvlc_state_t libvlc_media_player_get_state( libvlc_media_player_t *p_mi );
785 
792 LIBVLC_API float libvlc_media_player_get_fps( libvlc_media_player_t *p_mi );
793 
802 LIBVLC_API unsigned libvlc_media_player_has_vout( libvlc_media_player_t *p_mi );
803 
812 LIBVLC_API int libvlc_media_player_is_seekable( libvlc_media_player_t *p_mi );
813 
822 LIBVLC_API int libvlc_media_player_can_pause( libvlc_media_player_t *p_mi );
823 
824 
830 LIBVLC_API void libvlc_media_player_next_frame( libvlc_media_player_t *p_mi );
831 
839 LIBVLC_API void libvlc_media_player_navigate( libvlc_media_player_t* p_mi,
840  unsigned navigate );
841 
850 LIBVLC_API void libvlc_media_player_set_video_title_display( libvlc_media_player_t *p_mi, libvlc_position_t position, unsigned int timeout );
851 
857 LIBVLC_API void libvlc_track_description_list_release( libvlc_track_description_t *p_track_description );
858 
862 LIBVLC_DEPRECATED LIBVLC_API
864 
877 LIBVLC_API void libvlc_toggle_fullscreen( libvlc_media_player_t *p_mi );
878 
892 LIBVLC_API void libvlc_set_fullscreen( libvlc_media_player_t *p_mi, int b_fullscreen );
893 
902 LIBVLC_API int libvlc_get_fullscreen( libvlc_media_player_t *p_mi );
903 
919 LIBVLC_API
920 void libvlc_video_set_key_input( libvlc_media_player_t *p_mi, unsigned on );
921 
934 LIBVLC_API
935 void libvlc_video_set_mouse_input( libvlc_media_player_t *p_mi, unsigned on );
936 
946 LIBVLC_API
947 int libvlc_video_get_size( libvlc_media_player_t *p_mi, unsigned num,
948  unsigned *px, unsigned *py );
949 
957 LIBVLC_DEPRECATED LIBVLC_API
958 int libvlc_video_get_height( libvlc_media_player_t *p_mi );
959 
967 LIBVLC_DEPRECATED LIBVLC_API
968 int libvlc_video_get_width( libvlc_media_player_t *p_mi );
969 
992 LIBVLC_API
993 int libvlc_video_get_cursor( libvlc_media_player_t *p_mi, unsigned num,
994  int *px, int *py );
995 
1004 LIBVLC_API float libvlc_video_get_scale( libvlc_media_player_t *p_mi );
1005 
1017 LIBVLC_API void libvlc_video_set_scale( libvlc_media_player_t *p_mi, float f_factor );
1018 
1026 LIBVLC_API char *libvlc_video_get_aspect_ratio( libvlc_media_player_t *p_mi );
1027 
1035 LIBVLC_API void libvlc_video_set_aspect_ratio( libvlc_media_player_t *p_mi, const char *psz_aspect );
1036 
1043 LIBVLC_API int libvlc_video_get_spu( libvlc_media_player_t *p_mi );
1044 
1051 LIBVLC_API int libvlc_video_get_spu_count( libvlc_media_player_t *p_mi );
1052 
1059 LIBVLC_API libvlc_track_description_t *
1060  libvlc_video_get_spu_description( libvlc_media_player_t *p_mi );
1061 
1069 LIBVLC_API int libvlc_video_set_spu( libvlc_media_player_t *p_mi, int i_spu );
1070 
1078 LIBVLC_API int libvlc_video_set_subtitle_file( libvlc_media_player_t *p_mi, const char *psz_subtitle );
1079 
1088 LIBVLC_API int64_t libvlc_video_get_spu_delay( libvlc_media_player_t *p_mi );
1089 
1102 LIBVLC_API int libvlc_video_set_spu_delay( libvlc_media_player_t *p_mi, int64_t i_delay );
1103 
1110 LIBVLC_API libvlc_track_description_t *
1111  libvlc_video_get_title_description( libvlc_media_player_t *p_mi );
1112 
1120 LIBVLC_API libvlc_track_description_t *
1121  libvlc_video_get_chapter_description( libvlc_media_player_t *p_mi, int i_title );
1122 
1129 LIBVLC_API char *libvlc_video_get_crop_geometry( libvlc_media_player_t *p_mi );
1130 
1137 LIBVLC_API
1138 void libvlc_video_set_crop_geometry( libvlc_media_player_t *p_mi, const char *psz_geometry );
1139 
1146 LIBVLC_API int libvlc_video_get_teletext( libvlc_media_player_t *p_mi );
1147 
1154 LIBVLC_API void libvlc_video_set_teletext( libvlc_media_player_t *p_mi, int i_page );
1155 
1161 LIBVLC_API void libvlc_toggle_teletext( libvlc_media_player_t *p_mi );
1162 
1169 LIBVLC_API int libvlc_video_get_track_count( libvlc_media_player_t *p_mi );
1170 
1177 LIBVLC_API libvlc_track_description_t *
1178  libvlc_video_get_track_description( libvlc_media_player_t *p_mi );
1179 
1186 LIBVLC_API int libvlc_video_get_track( libvlc_media_player_t *p_mi );
1187 
1195 LIBVLC_API
1196 int libvlc_video_set_track( libvlc_media_player_t *p_mi, int i_track );
1197 
1211 LIBVLC_API
1212 int libvlc_video_take_snapshot( libvlc_media_player_t *p_mi, unsigned num,
1213  const char *psz_filepath, unsigned int i_width,
1214  unsigned int i_height );
1215 
1222 LIBVLC_API void libvlc_video_set_deinterlace( libvlc_media_player_t *p_mi,
1223  const char *psz_mode );
1224 
1231 LIBVLC_API int libvlc_video_get_marquee_int( libvlc_media_player_t *p_mi,
1232  unsigned option );
1233 
1240 LIBVLC_API char *libvlc_video_get_marquee_string( libvlc_media_player_t *p_mi,
1241  unsigned option );
1242 
1253 LIBVLC_API void libvlc_video_set_marquee_int( libvlc_media_player_t *p_mi,
1254  unsigned option, int i_val );
1255 
1263 LIBVLC_API void libvlc_video_set_marquee_string( libvlc_media_player_t *p_mi,
1264  unsigned option, const char *psz_text );
1265 
1268  libvlc_logo_enable,
1270  libvlc_logo_x,
1271  libvlc_logo_y,
1272  libvlc_logo_delay,
1273  libvlc_logo_repeat,
1274  libvlc_logo_opacity,
1275  libvlc_logo_position
1276 };
1277 
1284 LIBVLC_API int libvlc_video_get_logo_int( libvlc_media_player_t *p_mi,
1285  unsigned option );
1286 
1297 LIBVLC_API void libvlc_video_set_logo_int( libvlc_media_player_t *p_mi,
1298  unsigned option, int value );
1299 
1308 LIBVLC_API void libvlc_video_set_logo_string( libvlc_media_player_t *p_mi,
1309  unsigned option, const char *psz_value );
1310 
1311 
1314  libvlc_adjust_Enable = 0,
1315  libvlc_adjust_Contrast,
1316  libvlc_adjust_Brightness,
1317  libvlc_adjust_Hue,
1318  libvlc_adjust_Saturation,
1319  libvlc_adjust_Gamma
1320 };
1321 
1329 LIBVLC_API int libvlc_video_get_adjust_int( libvlc_media_player_t *p_mi,
1330  unsigned option );
1331 
1343 LIBVLC_API void libvlc_video_set_adjust_int( libvlc_media_player_t *p_mi,
1344  unsigned option, int value );
1345 
1353 LIBVLC_API float libvlc_video_get_adjust_float( libvlc_media_player_t *p_mi,
1354  unsigned option );
1355 
1365 LIBVLC_API void libvlc_video_set_adjust_float( libvlc_media_player_t *p_mi,
1366  unsigned option, float value );
1367 
1378  libvlc_AudioOutputDevice_Error = -1,
1379  libvlc_AudioOutputDevice_Mono = 1,
1380  libvlc_AudioOutputDevice_Stereo = 2,
1381  libvlc_AudioOutputDevice_2F2R = 4,
1382  libvlc_AudioOutputDevice_3F2R = 5,
1383  libvlc_AudioOutputDevice_5_1 = 6,
1384  libvlc_AudioOutputDevice_6_1 = 7,
1385  libvlc_AudioOutputDevice_7_1 = 8,
1386  libvlc_AudioOutputDevice_SPDIF = 10
1388 
1393  libvlc_AudioChannel_Error = -1,
1394  libvlc_AudioChannel_Stereo = 1,
1395  libvlc_AudioChannel_RStereo = 2,
1396  libvlc_AudioChannel_Left = 3,
1397  libvlc_AudioChannel_Right = 4,
1398  libvlc_AudioChannel_Dolbys = 5
1400 
1401 
1410 LIBVLC_API libvlc_audio_output_t *
1412 
1418 LIBVLC_API
1420 
1431 LIBVLC_API int libvlc_audio_output_set( libvlc_media_player_t *p_mi,
1432  const char *psz_name );
1433 
1439 LIBVLC_DEPRECATED LIBVLC_API
1441 
1447 LIBVLC_DEPRECATED LIBVLC_API
1449  int );
1450 
1456 LIBVLC_DEPRECATED LIBVLC_API
1457 char *libvlc_audio_output_device_id( libvlc_instance_t *, const char *, int );
1458 
1480 LIBVLC_API libvlc_audio_output_device_t *
1482  const char *aout );
1483 
1491  libvlc_audio_output_device_t *p_list );
1492 
1511 LIBVLC_API void libvlc_audio_output_device_set( libvlc_media_player_t *p_mi,
1512  const char *psz_audio_output,
1513  const char *psz_device_id );
1514 
1519 LIBVLC_DEPRECATED
1520 LIBVLC_API int libvlc_audio_output_get_device_type( libvlc_media_player_t *p_mi );
1521 
1525 LIBVLC_DEPRECATED
1526 LIBVLC_API void libvlc_audio_output_set_device_type( libvlc_media_player_t *,
1527  int );
1528 
1529 
1539 LIBVLC_API void libvlc_audio_toggle_mute( libvlc_media_player_t *p_mi );
1540 
1547 LIBVLC_API int libvlc_audio_get_mute( libvlc_media_player_t *p_mi );
1548 
1561 LIBVLC_API void libvlc_audio_set_mute( libvlc_media_player_t *p_mi, int status );
1562 
1570 LIBVLC_API int libvlc_audio_get_volume( libvlc_media_player_t *p_mi );
1571 
1579 LIBVLC_API int libvlc_audio_set_volume( libvlc_media_player_t *p_mi, int i_volume );
1580 
1587 LIBVLC_API int libvlc_audio_get_track_count( libvlc_media_player_t *p_mi );
1588 
1595 LIBVLC_API libvlc_track_description_t *
1596  libvlc_audio_get_track_description( libvlc_media_player_t *p_mi );
1597 
1604 LIBVLC_API int libvlc_audio_get_track( libvlc_media_player_t *p_mi );
1605 
1613 LIBVLC_API int libvlc_audio_set_track( libvlc_media_player_t *p_mi, int i_track );
1614 
1621 LIBVLC_API int libvlc_audio_get_channel( libvlc_media_player_t *p_mi );
1622 
1630 LIBVLC_API int libvlc_audio_set_channel( libvlc_media_player_t *p_mi, int channel );
1631 
1639 LIBVLC_API int64_t libvlc_audio_get_delay( libvlc_media_player_t *p_mi );
1640 
1649 LIBVLC_API int libvlc_audio_set_delay( libvlc_media_player_t *p_mi, int64_t i_delay );
1650 
1655 # ifdef __cplusplus
1656 }
1657 # endif
1658 
1659 #endif /* VLC_LIBVLC_MEDIA_PLAYER_H */
LIBVLC_API void libvlc_video_set_deinterlace(libvlc_media_player_t *p_mi, const char *psz_mode)
LIBVLC_API void libvlc_media_player_release(libvlc_media_player_t *p_mi)
LIBVLC_API int libvlc_video_get_track(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_media_player_set_pause(libvlc_media_player_t *mp, int do_pause)
Definition: libvlc_media_player.h:1269
LIBVLC_API float libvlc_media_player_get_position(libvlc_media_player_t *p_mi)
LIBVLC_API uint32_t libvlc_media_player_get_agl(libvlc_media_player_t *p_mi)
struct libvlc_track_description_t libvlc_track_description_t
LIBVLC_API int libvlc_media_player_get_chapter(libvlc_media_player_t *p_mi)
LIBVLC_API int libvlc_audio_set_track(libvlc_media_player_t *p_mi, int i_track)
LIBVLC_DEPRECATED LIBVLC_API char * libvlc_audio_output_device_longname(libvlc_instance_t *, const char *, int)
LIBVLC_API int libvlc_media_player_is_seekable(libvlc_media_player_t *p_mi)
libvlc_video_adjust_option_t
Definition: libvlc_media_player.h:1313
LIBVLC_API libvlc_media_player_t * libvlc_media_player_new_from_media(libvlc_media_t *p_md)
LIBVLC_API int libvlc_video_get_spu(libvlc_media_player_t *p_mi)
unsigned(* libvlc_video_format_cb)(void **opaque, char *chroma, unsigned *width, unsigned *height, unsigned *pitches, unsigned *lines)
Definition: libvlc_media_player.h:319
LIBVLC_API int libvlc_video_get_track_count(libvlc_media_player_t *p_mi)
libvlc_position_t
Definition: libvlc_media_player.h:126
LIBVLC_API libvlc_time_t libvlc_media_player_get_time(libvlc_media_player_t *p_mi)
libvlc_state_t
Definition: libvlc_media.h:85
LIBVLC_API int libvlc_media_player_can_pause(libvlc_media_player_t *p_mi)
LIBVLC_DEPRECATED LIBVLC_API void libvlc_audio_output_set_device_type(libvlc_media_player_t *, int)
LIBVLC_API void libvlc_video_set_scale(libvlc_media_player_t *p_mi, float f_factor)
libvlc_video_marquee_option_t
Definition: libvlc_media_player.h:98
struct libvlc_event_manager_t libvlc_event_manager_t
Definition: libvlc.h:282
LIBVLC_API void libvlc_audio_output_device_list_release(libvlc_audio_output_device_t *p_list)
LIBVLC_DEPRECATED LIBVLC_API int libvlc_audio_output_get_device_type(libvlc_media_player_t *p_mi)
Definition: libvlc_media_player.h:89
LIBVLC_API int libvlc_video_set_spu_delay(libvlc_media_player_t *p_mi, int64_t i_delay)
Definition: libvlc_media_player.h:55
LIBVLC_API void libvlc_video_set_aspect_ratio(libvlc_media_player_t *p_mi, const char *psz_aspect)
LIBVLC_API void libvlc_media_player_set_agl(libvlc_media_player_t *p_mi, uint32_t drawable)
void(* libvlc_audio_cleanup_cb)(void *data)
Definition: libvlc_media_player.h:599
void(* libvlc_video_cleanup_cb)(void *opaque)
Definition: libvlc_media_player.h:330
LIBVLC_API void libvlc_audio_set_mute(libvlc_media_player_t *p_mi, int status)
LIBVLC_API int libvlc_video_get_cursor(libvlc_media_player_t *p_mi, unsigned num, int *px, int *py)
LIBVLC_API char * libvlc_video_get_crop_geometry(libvlc_media_player_t *p_mi)
LIBVLC_DEPRECATED LIBVLC_API char * libvlc_audio_output_device_id(libvlc_instance_t *, const char *, int)
LIBVLC_API void libvlc_audio_output_device_set(libvlc_media_player_t *p_mi, const char *psz_audio_output, const char *psz_device_id)
LIBVLC_API void libvlc_media_player_set_time(libvlc_media_player_t *p_mi, libvlc_time_t i_time)
LIBVLC_DEPRECATED LIBVLC_API void libvlc_track_description_release(libvlc_track_description_t *p_track_description)
LIBVLC_API void libvlc_toggle_fullscreen(libvlc_media_player_t *p_mi)
LIBVLC_API int libvlc_audio_get_volume(libvlc_media_player_t *p_mi)
Definition: libvlc_media_player.h:101
LIBVLC_API int libvlc_video_take_snapshot(libvlc_media_player_t *p_mi, unsigned num, const char *psz_filepath, unsigned int i_width, unsigned int i_height)
LIBVLC_API int libvlc_media_player_is_playing(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_media_player_set_xwindow(libvlc_media_player_t *p_mi, uint32_t drawable)
LIBVLC_API void libvlc_video_set_logo_string(libvlc_media_player_t *p_mi, unsigned option, const char *psz_value)
LIBVLC_API void libvlc_media_player_set_hwnd(libvlc_media_player_t *p_mi, void *drawable)
LIBVLC_API int libvlc_audio_get_track_count(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_media_player_next_frame(libvlc_media_player_t *p_mi)
void *(* libvlc_video_lock_cb)(void *opaque, void **planes)
Definition: libvlc_media_player.h:260
LIBVLC_DEPRECATED LIBVLC_API int libvlc_video_get_width(libvlc_media_player_t *p_mi)
struct libvlc_rectangle_t libvlc_rectangle_t
Definition: libvlc_media_player.h:67
LIBVLC_API libvlc_audio_output_t * libvlc_audio_output_list_get(libvlc_instance_t *p_instance)
LIBVLC_DEPRECATED LIBVLC_API int libvlc_audio_output_device_count(libvlc_instance_t *, const char *)
LIBVLC_API libvlc_media_player_t * libvlc_media_player_new(libvlc_instance_t *p_libvlc_instance)
LIBVLC_API int libvlc_media_player_will_play(libvlc_media_player_t *p_mi)
LIBVLC_DEPRECATED LIBVLC_API int libvlc_video_get_height(libvlc_media_player_t *p_mi)
LIBVLC_API int libvlc_audio_get_mute(libvlc_media_player_t *p_mi)
LIBVLC_API int64_t libvlc_audio_get_delay(libvlc_media_player_t *p_mi)
LIBVLC_API float libvlc_media_player_get_rate(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_video_set_callbacks(libvlc_media_player_t *mp, libvlc_video_lock_cb lock, libvlc_video_unlock_cb unlock, libvlc_video_display_cb display, void *opaque)
LIBVLC_API void libvlc_media_player_next_chapter(libvlc_media_player_t *p_mi)
Definition: libvlc_media_player.h:78
void(* libvlc_audio_play_cb)(void *data, const void *samples, unsigned count, int64_t pts)
Definition: libvlc_media_player.h:502
LIBVLC_API void libvlc_media_player_previous_chapter(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_media_player_stop(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_video_set_adjust_float(libvlc_media_player_t *p_mi, unsigned option, float value)
LIBVLC_API float libvlc_media_player_get_fps(libvlc_media_player_t *p_mi)
LIBVLC_API int libvlc_video_set_subtitle_file(libvlc_media_player_t *p_mi, const char *psz_subtitle)
LIBVLC_API libvlc_track_description_t * libvlc_video_get_title_description(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_media_player_set_title(libvlc_media_player_t *p_mi, int i_title)
LIBVLC_API int libvlc_audio_set_channel(libvlc_media_player_t *p_mi, int channel)
LIBVLC_API void libvlc_audio_set_volume_callback(libvlc_media_player_t *mp, libvlc_audio_set_volume_cb set_volume)
LIBVLC_API int64_t libvlc_video_get_spu_delay(libvlc_media_player_t *p_mi)
void(* libvlc_video_unlock_cb)(void *opaque, void *picture, void *const *planes)
Definition: libvlc_media_player.h:278
LIBVLC_API int libvlc_media_player_get_chapter_count_for_title(libvlc_media_player_t *p_mi, int i_title)
LIBVLC_API void libvlc_video_set_teletext(libvlc_media_player_t *p_mi, int i_page)
void(* libvlc_video_display_cb)(void *opaque, void *picture)
Definition: libvlc_media_player.h:291
LIBVLC_API void libvlc_video_set_crop_geometry(libvlc_media_player_t *p_mi, const char *psz_geometry)
LIBVLC_API char * libvlc_video_get_marquee_string(libvlc_media_player_t *p_mi, unsigned option)
LIBVLC_API void libvlc_video_set_marquee_int(libvlc_media_player_t *p_mi, unsigned option, int i_val)
LIBVLC_API libvlc_event_manager_t * libvlc_media_player_event_manager(libvlc_media_player_t *p_mi)
LIBVLC_API float libvlc_video_get_scale(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_video_set_format_callbacks(libvlc_media_player_t *mp, libvlc_video_format_cb setup, libvlc_video_cleanup_cb cleanup)
LIBVLC_API int libvlc_video_get_adjust_int(libvlc_media_player_t *p_mi, unsigned option)
LIBVLC_API int libvlc_video_get_logo_int(libvlc_media_player_t *p_mi, unsigned option)
LIBVLC_API void libvlc_audio_set_format_callbacks(libvlc_media_player_t *mp, libvlc_audio_setup_cb setup, libvlc_audio_cleanup_cb cleanup)
struct libvlc_audio_output_device_t libvlc_audio_output_device_t
LIBVLC_API int libvlc_audio_get_track(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_media_player_pause(libvlc_media_player_t *p_mi)
LIBVLC_API int libvlc_video_get_teletext(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_media_player_set_nsobject(libvlc_media_player_t *p_mi, void *drawable)
LIBVLC_API char * libvlc_video_get_aspect_ratio(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_media_player_navigate(libvlc_media_player_t *p_mi, unsigned navigate)
LIBVLC_API void libvlc_media_player_set_video_title_display(libvlc_media_player_t *p_mi, libvlc_position_t position, unsigned int timeout)
struct libvlc_audio_output_device_t * p_next
Definition: libvlc_media_player.h:80
int(* libvlc_audio_setup_cb)(void **data, char *format, unsigned *rate, unsigned *channels)
Definition: libvlc_media_player.h:591
LIBVLC_API void libvlc_media_player_set_chapter(libvlc_media_player_t *p_mi, int i_chapter)
LIBVLC_API libvlc_track_description_t * libvlc_video_get_track_description(libvlc_media_player_t *p_mi)
void(* libvlc_audio_flush_cb)(void *data, int64_t pts)
Definition: libvlc_media_player.h:526
void(* libvlc_audio_drain_cb)(void *data)
Definition: libvlc_media_player.h:533
LIBVLC_API void libvlc_video_set_marquee_string(libvlc_media_player_t *p_mi, unsigned option, const char *psz_text)
char * psz_device
Definition: libvlc_media_player.h:81
LIBVLC_API void libvlc_toggle_teletext(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_set_fullscreen(libvlc_media_player_t *p_mi, int b_fullscreen)
LIBVLC_API int libvlc_audio_output_set(libvlc_media_player_t *p_mi, const char *psz_name)
LIBVLC_API void libvlc_video_set_format(libvlc_media_player_t *mp, const char *chroma, unsigned width, unsigned height, unsigned pitch)
void(* libvlc_audio_set_volume_cb)(void *data, float volume, bool mute)
Definition: libvlc_media_player.h:541
LIBVLC_API void libvlc_audio_toggle_mute(libvlc_media_player_t *p_mi)
LIBVLC_API libvlc_time_t libvlc_media_player_get_length(libvlc_media_player_t *p_mi)
libvlc_audio_output_device_types_t
Definition: libvlc_media_player.h:1377
char * psz_description
Definition: libvlc_media_player.h:82
libvlc_navigate_mode_t
Definition: libvlc_media_player.h:114
void(* libvlc_audio_resume_cb)(void *data, int64_t pts)
Definition: libvlc_media_player.h:519
LIBVLC_API int libvlc_video_set_spu(libvlc_media_player_t *p_mi, int i_spu)
LIBVLC_API void libvlc_video_set_key_input(libvlc_media_player_t *p_mi, unsigned on)
LIBVLC_API int libvlc_audio_set_delay(libvlc_media_player_t *p_mi, int64_t i_delay)
LIBVLC_API int libvlc_get_fullscreen(libvlc_media_player_t *p_mi)
LIBVLC_API int libvlc_media_player_get_chapter_count(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_video_set_mouse_input(libvlc_media_player_t *p_mi, unsigned on)
LIBVLC_API int libvlc_video_get_size(libvlc_media_player_t *p_mi, unsigned num, unsigned *px, unsigned *py)
LIBVLC_API int libvlc_media_player_get_title_count(libvlc_media_player_t *p_mi)
LIBVLC_API int libvlc_video_set_track(libvlc_media_player_t *p_mi, int i_track)
LIBVLC_API int libvlc_video_get_marquee_int(libvlc_media_player_t *p_mi, unsigned option)
LIBVLC_API void libvlc_audio_set_format(libvlc_media_player_t *mp, const char *format, unsigned rate, unsigned channels)
struct libvlc_instance_t libvlc_instance_t
Definition: libvlc_structures.h:44
LIBVLC_API void libvlc_video_set_adjust_int(libvlc_media_player_t *p_mi, unsigned option, int value)
struct libvlc_audio_output_t libvlc_audio_output_t
LIBVLC_API float libvlc_video_get_adjust_float(libvlc_media_player_t *p_mi, unsigned option)
LIBVLC_API libvlc_state_t libvlc_media_player_get_state(libvlc_media_player_t *p_mi)
LIBVLC_API int libvlc_media_player_play(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_media_player_retain(libvlc_media_player_t *p_mi)
LIBVLC_API int libvlc_audio_set_volume(libvlc_media_player_t *p_mi, int i_volume)
LIBVLC_API void * libvlc_media_player_get_hwnd(libvlc_media_player_t *p_mi)
LIBVLC_API libvlc_track_description_t * libvlc_video_get_spu_description(libvlc_media_player_t *p_mi)
LIBVLC_API int libvlc_media_player_set_rate(libvlc_media_player_t *p_mi, float rate)
LIBVLC_API void libvlc_audio_set_callbacks(libvlc_media_player_t *mp, libvlc_audio_play_cb play, libvlc_audio_pause_cb pause, libvlc_audio_resume_cb resume, libvlc_audio_flush_cb flush, libvlc_audio_drain_cb drain, void *opaque)
LIBVLC_API libvlc_track_description_t * libvlc_audio_get_track_description(libvlc_media_player_t *p_mi)
LIBVLC_API unsigned libvlc_media_player_has_vout(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_video_set_logo_int(libvlc_media_player_t *p_mi, unsigned option, int value)
LIBVLC_API libvlc_audio_output_device_t * libvlc_audio_output_device_list_get(libvlc_instance_t *p_instance, const char *aout)
LIBVLC_API void libvlc_audio_output_list_release(libvlc_audio_output_t *p_list)
LIBVLC_API void libvlc_track_description_list_release(libvlc_track_description_t *p_track_description)
LIBVLC_API uint32_t libvlc_media_player_get_xwindow(libvlc_media_player_t *p_mi)
LIBVLC_API void * libvlc_media_player_get_nsobject(libvlc_media_player_t *p_mi)
LIBVLC_API libvlc_track_description_t * libvlc_video_get_chapter_description(libvlc_media_player_t *p_mi, int i_title)
LIBVLC_API void libvlc_media_player_set_media(libvlc_media_player_t *p_mi, libvlc_media_t *p_md)
LIBVLC_API int libvlc_audio_get_channel(libvlc_media_player_t *p_mi)
void(* libvlc_audio_pause_cb)(void *data, int64_t pts)
Definition: libvlc_media_player.h:511
libvlc_video_logo_option_t
Definition: libvlc_media_player.h:1267
LIBVLC_API int libvlc_media_player_get_title(libvlc_media_player_t *p_mi)
LIBVLC_API libvlc_media_t * libvlc_media_player_get_media(libvlc_media_player_t *p_mi)
LIBVLC_API void libvlc_media_player_set_position(libvlc_media_player_t *p_mi, float f_pos)
LIBVLC_API int libvlc_video_get_spu_count(libvlc_media_player_t *p_mi)
libvlc_audio_output_channel_t
Definition: libvlc_media_player.h:1392