Go to the documentation of this file.
26 #ifndef VLC_LIBVLC_MEDIA_PLAYER_H
27 #define VLC_LIBVLC_MEDIA_PLAYER_H 1
307 typedef void *(*libvlc_video_lock_cb)(
void *opaque,
void **planes);
326 void *
const *planes);
367 unsigned *width,
unsigned *height,
442 unsigned width,
unsigned height,
589 void *p_awindow_handler );
601 void *p_evas_object );
628 unsigned count, int64_t pts);
682 float volume,
bool mute);
778 unsigned rate,
unsigned channels );
1021 const char *psz_uri,
bool b_select );
1113 unsigned *px,
unsigned *py );
1311 int i_chapters_of_title,
1417 const char *psz_filepath,
unsigned int i_width,
1418 unsigned int i_height );
1427 const char *psz_mode );
1458 unsigned option,
int i_val );
1468 unsigned option,
const char *psz_text );
1502 unsigned option,
int value );
1513 unsigned option,
const char *
psz_value );
1548 unsigned option,
int value );
1570 unsigned option,
float value );
1732 const char *device_id );
2062 #define libvlc_role_Last libvlc_role_Test
char * psz_name
title name
Definition: libvlc_media_player.h:68
size_t count
Definition: core.c:461
Definition: libvlc_media_player.h:1519
LIBVLC_API void libvlc_chapter_descriptions_release(libvlc_chapter_description_t **p_chapters, unsigned i_count)
Release a chapter description.
LIBVLC_API libvlc_audio_output_device_t * libvlc_audio_output_device_list_get(libvlc_instance_t *p_instance, const char *aout)
Gets a list of audio output devices for a given audio output module,.
Video playback.
Definition: libvlc_media_player.h:2053
LIBVLC_API int libvlc_video_get_track_count(libvlc_media_player_t *p_mi)
Get number of available video tracks.
libvlc_video_adjust_option_t
option values for libvlc_video_{get,set}_adjust_{int,float,bool}
Definition: libvlc_media_player.h:1516
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_API int libvlc_audio_equalizer_set_amp_at_index(libvlc_equalizer_t *p_equalizer, float f_amp, unsigned u_band)
Set a new amplification value for a particular equalizer frequency band.
LIBVLC_API char * libvlc_video_get_crop_geometry(libvlc_media_player_t *p_mi)
Get current crop filter geometry.
Music (or radio) playback.
Definition: libvlc_media_player.h:2052
LIBVLC_API int libvlc_audio_get_channel(libvlc_media_player_t *p_mi)
Get current audio channel.
LIBVLC_API int libvlc_audio_get_volume(libvlc_media_player_t *p_mi)
Get current software audio volume.
LIBVLC_API float libvlc_audio_equalizer_get_preamp(libvlc_equalizer_t *p_equalizer)
Get the current pre-amplification value from an equalizer.
char * psz_description
User-friendly device description.
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)
Take a snapshot of the current video window.
struct libvlc_track_description_t * p_next
Definition: libvlc_media_player.h:52
LIBVLC_API void libvlc_video_set_aspect_ratio(libvlc_media_player_t *p_mi, const char *psz_aspect)
Set new video aspect ratio.
Definition: libvlc_media_player.h:1597
LIBVLC_API int libvlc_video_get_cursor(libvlc_media_player_t *p_mi, unsigned num, int *px, int *py)
Get the mouse pointer coordinates over a video.
Definition: libvlc_media_player.h:1471
libvlc_media_player_role
Media player roles.
Definition: libvlc_media_player.h:2050
char * psz_device
Device identifier string.
Definition: libvlc_media_player.h:100
int i_id
Definition: libvlc_media_player.h:50
Description for audio output device.
Definition: libvlc_media_player.h:97
LIBVLC_API unsigned libvlc_audio_equalizer_get_band_count(void)
Get the number of distinct frequency bands for an equalizer.
string argument, "file,d,t;file,d,t;..."
Definition: libvlc_media_player.h:1472
LIBVLC_API void libvlc_audio_equalizer_release(libvlc_equalizer_t *p_equalizer)
Release a previously created equalizer instance.
Video game.
Definition: libvlc_media_player.h:2055
LIBVLC_API int libvlc_audio_get_track_count(libvlc_media_player_t *p_mi)
Get number of available audio tracks.
User interaction feedback.
Definition: libvlc_media_player.h:2056
Viewpoint.
Definition: libvlc_media.h:205
LIBVLC_API void libvlc_toggle_fullscreen(libvlc_media_player_t *p_mi)
Toggle fullscreen status on non-embedded video outputs.
Definition: libvlc_media_player.h:1585
LIBVLC_API int libvlc_audio_set_track(libvlc_media_player_t *p_mi, int i_track)
Set current audio track.
struct libvlc_audio_output_t * p_next
Definition: libvlc_media_player.h:90
LIBVLC_API void libvlc_audio_set_mute(libvlc_media_player_t *p_mi, int status)
Set mute status.
LIBVLC_API int64_t libvlc_audio_get_delay(libvlc_media_player_t *p_mi)
Get current audio delay.
struct libvlc_event_manager_t libvlc_event_manager_t
Event manager that belongs to a libvlc object, and from whom events can be received.
Definition: libvlc.h:310
LIBVLC_API libvlc_equalizer_t * libvlc_audio_equalizer_new(void)
Create a new default equalizer, with all frequency values zeroed.
LIBVLC_API int libvlc_audio_equalizer_set_preamp(libvlc_equalizer_t *p_equalizer, float f_preamp)
Set a new pre-amplification value for an equalizer.
Definition: libvlc_media_player.h:1477
LIBVLC_API void libvlc_video_set_logo_string(libvlc_media_player_t *p_mi, unsigned option, const char *psz_value)
Set logo option as string.
LIBVLC_API float libvlc_video_get_scale(libvlc_media_player_t *p_mi)
Get the current video scaling factor.
LIBVLC_API void libvlc_audio_output_device_list_release(libvlc_audio_output_device_t *p_list)
Frees a list of available audio output devices.
Definition: libvlc_media_player.h:1581
Definition: libvlc_media_player.h:1517
LIBVLC_API libvlc_track_description_t * libvlc_video_get_track_description(libvlc_media_player_t *p_mi)
Get the description of available video tracks.
LIBVLC_API void libvlc_video_set_marquee_string(libvlc_media_player_t *p_mi, unsigned option, const char *psz_text)
Set a marquee string option.
Definition: libvlc_media_player.h:1588
Definition: libvlc_media_player.h:1583
LIBVLC_API void libvlc_set_fullscreen(libvlc_media_player_t *p_mi, int b_fullscreen)
Enable or disable fullscreen.
LIBVLC_API int libvlc_media_player_set_role(libvlc_media_player_t *p_mi, unsigned role)
Sets the media role.
char * psz_name
chapter name
Definition: libvlc_media_player.h:79
static vlc_mutex_t lock
Definition: interface.c:62
char * psz_description
Definition: libvlc_media_player.h:89
LIBVLC_API void libvlc_video_set_marquee_int(libvlc_media_player_t *p_mi, unsigned option, int i_val)
Enable, disable or set an integer marquee option.
LIBVLC_API int libvlc_audio_get_mute(libvlc_media_player_t *p_mi)
Get current mute status.
Definition: libvlc_media_player.h:1584
LIBVLC_API int libvlc_video_set_spu_delay(libvlc_media_player_t *p_mi, int64_t i_delay)
Set the subtitle delay.
Definition: libvlc_media_player.h:1521
int i_type
Definition: httpd.c:1252
LIBVLC_API float libvlc_audio_equalizer_get_amp_at_index(libvlc_equalizer_t *p_equalizer, unsigned u_band)
Get the amplification value for a particular equalizer frequency band.
LIBVLC_API int libvlc_audio_get_track(libvlc_media_player_t *p_mi)
Get current audio track.
Definition: libvlc_media_player.h:1476
LIBVLC_API int libvlc_media_player_get_role(libvlc_media_player_t *p_mi)
Gets the media role.
LIBVLC_API void libvlc_video_set_teletext(libvlc_media_player_t *p_mi, int i_page)
Set new teletext page to retrieve.
LIBVLC_API int libvlc_media_player_set_equalizer(libvlc_media_player_t *p_mi, libvlc_equalizer_t *p_equalizer)
Apply new equalizer settings to a media player.
LIBVLC_API char * libvlc_video_get_marquee_string(libvlc_media_player_t *p_mi, unsigned option)
Get a string marquee option value.
LIBVLC_API libvlc_audio_output_t * libvlc_audio_output_list_get(libvlc_instance_t *p_instance)
Gets the list of available audio output modules.
Definition: libvlc_media_player.h:1586
LIBVLC_API unsigned libvlc_audio_equalizer_get_preset_count(void)
Get the number of equalizer presets.
LIBVLC_API int64_t libvlc_video_get_spu_delay(libvlc_media_player_t *p_mi)
Get the current subtitle delay.
LIBVLC_API int libvlc_video_get_teletext(libvlc_media_player_t *p_mi)
Get current teletext page requested or 0 if it's disabled.
LIBVLC_API void libvlc_audio_toggle_mute(libvlc_media_player_t *p_mi)
Toggle mute status.
LIBVLC_API void libvlc_video_set_crop_geometry(libvlc_media_player_t *p_mi, const char *psz_geometry)
Set new crop filter geometry.
LIBVLC_API int libvlc_video_get_adjust_int(libvlc_media_player_t *p_mi, unsigned option)
Get integer adjust option.
LIBVLC_API int libvlc_video_update_viewpoint(libvlc_media_player_t *p_mi, const libvlc_video_viewpoint_t *p_viewpoint, bool b_absolute)
Update the video viewpoint information.
Definition: libvlc_media_player.h:65
const char * psz_name
Definition: vlc_codecs.h:315
LIBVLC_API int libvlc_get_fullscreen(libvlc_media_player_t *p_mi)
Get current fullscreen status.
LIBVLC_API void libvlc_video_set_adjust_float(libvlc_media_player_t *p_mi, unsigned option, float value)
Set adjust option as float.
unsigned i_flags
info if item was recognized as a menu, interactive or plain content by the demuxer
Definition: libvlc_media_player.h:69
LIBVLC_API void libvlc_video_set_logo_int(libvlc_media_player_t *p_mi, unsigned option, int value)
Set logo option as integer.
LIBVLC_API float libvlc_audio_equalizer_get_band_frequency(unsigned u_index)
Get a particular equalizer band frequency.
int64_t i_duration
duration in milliseconds
Definition: libvlc_media_player.h:67
LIBVLC_API int libvlc_audio_output_set(libvlc_media_player_t *p_mi, const char *psz_name)
Selects an audio output module.
LIBVLC_API void libvlc_video_set_adjust_int(libvlc_media_player_t *p_mi, unsigned option, int value)
Set adjust option as integer.
LIBVLC_API float libvlc_video_get_adjust_float(libvlc_media_player_t *p_mi, unsigned option)
Get float adjust option.
Embedded animation (e.g.
Definition: libvlc_media_player.h:2057
LIBVLC_API int libvlc_audio_set_channel(libvlc_media_player_t *p_mi, int channel)
Set current audio channel.
LIBVLC_API int libvlc_media_player_get_full_title_descriptions(libvlc_media_player_t *p_mi, libvlc_title_description_t ***titles)
Get the full description of available titles.
Description for chapters.
Definition: libvlc_media_player.h:75
Definition: libvlc_media_player.h:1589
#define LIBVLC_API
Definition: libvlc.h:42
LIBVLC_API void libvlc_video_set_key_input(libvlc_media_player_t *p_mi, unsigned on)
Enable or disable key press events handling, according to the LibVLC hotkeys configuration.
int64_t i_time_offset
time-offset of the chapter in milliseconds
Definition: libvlc_media_player.h:77
LIBVLC_API int libvlc_video_set_spu(libvlc_media_player_t *p_mi, int i_spu)
Set new video subtitle.
Definition: libvlc_media_player.h:1518
Definition: libvlc_media_player.h:1600
Definition: libvlc_media_player.h:1582
Definition: libvlc_media_player.h:1598
Description for audio output.
Definition: libvlc_media_player.h:86
Definition: libvlc_media_player.h:1587
LIBVLC_API libvlc_audio_output_device_t * libvlc_audio_output_device_enum(libvlc_media_player_t *mp)
Gets a list of potential audio output devices,.
struct libvlc_audio_output_device_t * p_next
Next entry in list.
Definition: libvlc_media_player.h:99
struct libvlc_renderer_item_t libvlc_renderer_item_t
Definition: libvlc_events.h:36
char * psz_name
Definition: libvlc_media_player.h:88
char psz_value[8]
Definition: vout_intf.c:91
LIBVLC_API int libvlc_video_set_track(libvlc_media_player_t *p_mi, int i_track)
Set video track.
LIBVLC_API int libvlc_audio_set_volume(libvlc_media_player_t *p_mi, int i_volume)
Set current software audio volume.
const LIBVLC_API char * libvlc_audio_equalizer_get_preset_name(unsigned u_index)
Get the name of a particular equalizer preset.
LIBVLC_API char * libvlc_video_get_aspect_ratio(libvlc_media_player_t *p_mi)
Get current video aspect ratio.
Definition: libvlc_media_player.h:1473
Definition: libvlc_media_player.h:1601
int64_t libvlc_time_t
Definition: libvlc.h:78
LIBVLC_API void libvlc_video_set_deinterlace(libvlc_media_player_t *p_mi, const char *psz_mode)
Enable or disable deinterlace filter.
LIBVLC_API libvlc_equalizer_t * libvlc_audio_equalizer_new_from_preset(unsigned u_index)
Create a new equalizer, with initial frequency values copied from an existing preset.
LIBVLC_API void libvlc_video_set_mouse_input(libvlc_media_player_t *p_mi, unsigned on)
Enable or disable mouse click events handling.
Definition: libvlc_media_player.h:1478
LIBVLC_API int libvlc_video_get_logo_int(libvlc_media_player_t *p_mi, unsigned option)
Get integer logo option.
LIBVLC_API libvlc_track_description_t * libvlc_audio_get_track_description(libvlc_media_player_t *p_mi)
Get the description of available audio tracks.
Don't use a media player role.
Definition: libvlc_media_player.h:2051
LIBVLC_API int libvlc_audio_set_delay(libvlc_media_player_t *p_mi, int64_t i_delay)
Set current audio delay.
enum libvlc_media_player_role libvlc_media_player_role_t
Media player roles.
int64_t i_duration
duration of the chapter in milliseconds
Definition: libvlc_media_player.h:78
Audio editting/production.
Definition: libvlc_media_player.h:2058
LIBVLC_API void libvlc_title_descriptions_release(libvlc_title_description_t **p_titles, unsigned i_count)
Release a title description.
LIBVLC_API char * libvlc_audio_output_device_get(libvlc_media_player_t *mp)
Get the current audio output device identifier.
struct libvlc_instance_t libvlc_instance_t
This structure is opaque.
Definition: libvlc.h:76
Definition: libvlc_media_player.h:1520
LIBVLC_API int libvlc_video_get_marquee_int(libvlc_media_player_t *p_mi, unsigned option)
Get an integer marquee option value.
libvlc_audio_output_channel_t
Audio channels.
Definition: libvlc_media_player.h:1595
LIBVLC_API void libvlc_audio_output_device_set(libvlc_media_player_t *mp, const char *module, const char *device_id)
Configures an explicit audio output device.
Definition: libvlc_media_player.h:1599
Description for video, audio tracks and subtitles.
Definition: libvlc_media_player.h:48
libvlc_audio_output_device_types_t
Audio device types.
Definition: libvlc_media_player.h:1580
LIBVLC_API libvlc_video_viewpoint_t * libvlc_video_new_viewpoint(void)
Create a video viewpoint structure.
Definition: libvlc_media_player.h:1475
LIBVLC_API int libvlc_video_get_size(libvlc_media_player_t *p_mi, unsigned num, unsigned *px, unsigned *py)
Get the pixel dimensions of a video.
char * psz_name
Definition: libvlc_media_player.h:51
Accessibility.
Definition: libvlc_media_player.h:2059
Definition: libvlc_media_player.h:1522
Speech, real-time communication.
Definition: libvlc_media_player.h:2054
LIBVLC_API int libvlc_video_get_spu(libvlc_media_player_t *p_mi)
Get current video subtitle.
Definition: libvlc_media_player.h:1596
LIBVLC_API void libvlc_audio_output_list_release(libvlc_audio_output_t *p_list)
Frees the list of available audio output modules.
LIBVLC_API int libvlc_video_get_track(libvlc_media_player_t *p_mi)
Get current video track.
LIBVLC_API int libvlc_video_get_spu_count(libvlc_media_player_t *p_mi)
Get the number of available video subtitles.
LIBVLC_API int libvlc_media_player_get_full_chapter_descriptions(libvlc_media_player_t *p_mi, int i_chapters_of_title, libvlc_chapter_description_t ***pp_chapters)
Get the full description of available chapters.
libvlc_video_logo_option_t
option values for libvlc_video_{get,set}_logo_{int,string}
Definition: libvlc_media_player.h:1470
LIBVLC_API void libvlc_video_set_scale(libvlc_media_player_t *p_mi, float f_factor)
Set the video scaling factor.
Definition: libvlc_media_player.h:1474