public interface LibVlc
extends com.sun.jna.Library
This is not a complete interface to libvlc, although most functions are present.
This interface specifies the exposed methods only, the types and structures are all factored out separately in the "internal" sub-package.
This code and that in the internal sub-package is structured out of necessity to interoperate with the libvlc native library. This code was originally derived (but has now been completely re-written) from the original JVLC source code, the copyright of which belongs to the VideoLAN team, which was distributed under GPL version 2 or later.
This binding is for version 1.1 and later of vlc. Earlier versions of vlc are radically different and will not work with these bindings.
Some functions are only available after version 1.1.0 of libvlc.
Some functions are only available after version 2.0.0 of libvlc.
Some functions are only available after version 2.1.0 of libvlc.
This system property may be useful for debugging:
-Djna.dump_memory=trueIn the native header file, generally "char*" types must be freed, but "const char*" need (must) not.
This interface is essentially a translation of the LibVLC header files to Java, with changes for JNA/Java types. The documentation in that VLC header file is reproduced here for convenience, with the appropriate Javadoc documentation convention changes, the copyright of which (mostly) belongs to the VLC authors.
Modifier and Type | Field and Description |
---|---|
static Info |
INFO
Application information.
|
static LibVlc |
INSTANCE
Native library instance.
|
static LibVlc |
SYNC_INSTANCE
Synchronised native library instance.
|
Modifier and Type | Method and Description |
---|---|
int |
libvlc_add_intf(libvlc_instance_t p_instance,
String name)
Try to start a user interface for the libvlc instance.
|
float |
libvlc_audio_equalizer_get_amp_at_index(libvlc_equalizer_t p_equalizer,
int u_band)
Get the amplification value for a particular equalizer frequency band.
|
int |
libvlc_audio_equalizer_get_band_count()
Get the number of distinct frequency bands for an equalizer.
|
float |
libvlc_audio_equalizer_get_band_frequency(int u_index)
Get a particular equalizer band frequency.
|
float |
libvlc_audio_equalizer_get_preamp(libvlc_equalizer_t p_equalizer)
Get the current pre-amplification value from an equalizer.
|
int |
libvlc_audio_equalizer_get_preset_count()
Get the number of equalizer presets.
|
String |
libvlc_audio_equalizer_get_preset_name(int u_index)
Get the name of a particular equalizer preset.
|
libvlc_equalizer_t |
libvlc_audio_equalizer_new_from_preset(int u_index)
Create a new equalizer, with initial frequency values copied from an existing
preset.
|
libvlc_equalizer_t |
libvlc_audio_equalizer_new()
Create a new default equalizer, with all frequency values zeroed.
|
void |
libvlc_audio_equalizer_release(libvlc_equalizer_t p_equalizer)
Release a previously created equalizer instance.
|
int |
libvlc_audio_equalizer_set_amp_at_index(libvlc_equalizer_t p_equalizer,
float f_amp,
int u_band)
Set a new amplification value for a particular equalizer frequency band.
|
int |
libvlc_audio_equalizer_set_preamp(libvlc_equalizer_t p_equalizer,
float f_preamp)
Set a new pre-amplification value for an equalizer.
|
libvlc_module_description_t |
libvlc_audio_filter_list_get(libvlc_instance_t p_instance)
Returns a list of audio filters that are available.
|
int |
libvlc_audio_get_channel(libvlc_media_player_t p_mi)
Get current audio channel.
|
long |
libvlc_audio_get_delay(libvlc_media_player_t p_mi)
Get current audio delay.
|
int |
libvlc_audio_get_mute(libvlc_media_player_t p_mi)
Get current mute status.
|
int |
libvlc_audio_get_track_count(libvlc_media_player_t p_mi)
Get number of available audio tracks.
|
libvlc_track_description_t |
libvlc_audio_get_track_description(libvlc_media_player_t p_mi)
Get the description of available audio tracks.
|
int |
libvlc_audio_get_track(libvlc_media_player_t p_mi)
Get current audio track.
|
int |
libvlc_audio_get_volume(libvlc_media_player_t p_mi)
Get current software audio volume.
|
libvlc_audio_output_device_t |
libvlc_audio_output_device_enum(libvlc_media_player_t mp)
Gets a list of potential audio output devices, see
libvlc_audio_output_device_set(libvlc_media_player_t, String, String) . |
libvlc_audio_output_device_t |
libvlc_audio_output_device_list_get(libvlc_instance_t p_instance,
String psz_aout)
Gets a list of audio output devices for a given audio output.
|
void |
libvlc_audio_output_device_list_release(libvlc_audio_output_device_t p_list)
Frees a list of available audio output devices.
|
void |
libvlc_audio_output_device_set(libvlc_media_player_t p_mi,
String psz_audio_output,
String psz_device_id)
Configures an explicit audio output device.
|
libvlc_audio_output_t |
libvlc_audio_output_list_get(libvlc_instance_t p_instance)
Gets the list of available audio outputs
|
void |
libvlc_audio_output_list_release(libvlc_audio_output_t p_list)
Frees the list of available audio outputs
|
int |
libvlc_audio_output_set(libvlc_media_player_t p_mi,
String psz_name)
Sets the audio output.
|
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,
com.sun.jna.Pointer opaque)
Set callbacks and private data for decoded audio.
|
int |
libvlc_audio_set_channel(libvlc_media_player_t p_mi,
int channel)
Set current audio channel.
|
int |
libvlc_audio_set_delay(libvlc_media_player_t p_mi,
long i_delay)
Set current audio delay.
|
void |
libvlc_audio_set_format_callbacks(libvlc_media_player_t mp,
libvlc_audio_setup_cb setup,
libvlc_audio_cleanup_cb cleanup)
Set decoded audio format.
|
void |
libvlc_audio_set_format(libvlc_media_player_t mp,
String format,
int rate,
int channels)
Set decoded audio format.
|
void |
libvlc_audio_set_mute(libvlc_media_player_t p_mi,
int status)
Set mute status.
|
int |
libvlc_audio_set_track(libvlc_media_player_t p_mi,
int i_track)
Set current audio track.
|
void |
libvlc_audio_set_volume_callback(libvlc_media_player_t mp,
libvlc_audio_set_volume_cb set_volume)
Set callbacks and private data for decoded audio.
|
int |
libvlc_audio_set_volume(libvlc_media_player_t p_mi,
int i_volume)
Set current software audio volume.
|
void |
libvlc_audio_toggle_mute(libvlc_media_player_t p_mi)
Toggle mute status.
|
void |
libvlc_clearerr()
Clears the LibVLC error status for the current thread.
|
long |
libvlc_clock()
Return the current time as defined by LibVLC.
|
String |
libvlc_errmsg()
A human-readable error message for the last LibVLC error in the calling thread.
|
int |
libvlc_event_attach(libvlc_event_manager_t p_event_manager,
int i_event_type,
libvlc_callback_t f_callback,
com.sun.jna.Pointer user_data)
Register for an event notification.
|
void |
libvlc_event_detach(libvlc_event_manager_t p_event_manager,
int i_event_type,
libvlc_callback_t f_callback,
com.sun.jna.Pointer p_user_data)
Unregister an event notification.
|
String |
libvlc_event_type_name(int event_type)
Get an event's type name.
|
void |
libvlc_free(com.sun.jna.Pointer ptr)
Frees an heap allocation returned by a LibVLC function.
|
String |
libvlc_get_changeset()
Retrieve libvlc changeset.
|
String |
libvlc_get_compiler()
Retrieve libvlc compiler version.
|
int |
libvlc_get_fullscreen(libvlc_media_player_t p_mi)
Get current fullscreen status.
|
String |
libvlc_get_version()
Retrieve libvlc version.
|
void |
libvlc_log_get_context(libvlc_log_t ctx,
com.sun.jna.ptr.PointerByReference module,
com.sun.jna.ptr.PointerByReference file,
com.sun.jna.ptr.IntByReference line)
Gets debugging informations about a log message: the name of the VLC module
emitting the message and the message location within the source code.
|
void |
libvlc_log_get_object(libvlc_log_t ctx,
com.sun.jna.ptr.PointerByReference name,
com.sun.jna.ptr.PointerByReference header,
com.sun.jna.ptr.IntByReference id)
Gets VLC object informations about a log message: the type name of the VLC
object emitting the message, the object header if any and a temporaly-unique
object identifier.
|
void |
libvlc_log_set(libvlc_instance_t p_instance,
libvlc_log_cb cb,
com.sun.jna.Pointer data)
Sets the logging callback for a LibVLC instance.
|
void |
libvlc_log_unset(libvlc_instance_t p_instance)
Unsets the logging callback for a LibVLC instance.
|
void |
libvlc_media_add_option_flag(libvlc_media_t p_md,
String ppsz_options,
int i_flags)
Add an option to the media with configurable flags.
|
void |
libvlc_media_add_option(libvlc_media_t p_md,
String ppsz_options)
Add an option to the media.
|
libvlc_event_manager_t |
libvlc_media_discoverer_event_manager(libvlc_media_discoverer_t p_mdis)
Get event manager from media service discover object.
|
int |
libvlc_media_discoverer_is_running(libvlc_media_discoverer_t p_mdis)
Query if media service discover object is running.
|
com.sun.jna.Pointer |
libvlc_media_discoverer_localized_name(libvlc_media_discoverer_t p_mdis)
Get media service discover object its localized name.
|
libvlc_media_list_t |
libvlc_media_discoverer_media_list(libvlc_media_discoverer_t p_mdis)
Get media service discover media list.
|
libvlc_media_discoverer_t |
libvlc_media_discoverer_new_from_name(libvlc_instance_t p_inst,
String psz_name)
Discover media service by name.
|
void |
libvlc_media_discoverer_release(libvlc_media_discoverer_t p_mdis)
Release media discover object.
|
libvlc_media_t |
libvlc_media_duplicate(libvlc_media_t p_md)
Duplicate a media descriptor object.
|
libvlc_event_manager_t |
libvlc_media_event_manager(libvlc_media_t p_md)
Get event manager from media descriptor object.
|
long |
libvlc_media_get_duration(libvlc_media_t p_md)
Get duration (in ms) of media descriptor object item.
|
com.sun.jna.Pointer |
libvlc_media_get_meta(libvlc_media_t p_md,
int e_meta)
Read the meta of the media.
|
com.sun.jna.Pointer |
libvlc_media_get_mrl(libvlc_media_t p_md)
Get the media resource locator (mrl) from a media descriptor object
|
int |
libvlc_media_get_state(libvlc_media_t p_meta_desc)
Get current state of media descriptor object.
|
int |
libvlc_media_get_stats(libvlc_media_t p_md,
libvlc_media_stats_t p_stats)
get the current statistics about the media
|
com.sun.jna.Pointer |
libvlc_media_get_user_data(libvlc_media_t p_md)
Get media descriptor's user_data.
|
int |
libvlc_media_is_parsed(libvlc_media_t p_md)
Get Parsed status for media descriptor object.
|
int |
libvlc_media_list_add_media(libvlc_media_list_t p_ml,
libvlc_media_t p_md)
Add media instance to media list The libvlc_media_list_lock should be held upon entering this
function.
|
int |
libvlc_media_list_count(libvlc_media_list_t p_ml)
Get count on media list items The libvlc_media_list_lock should be held upon entering this
function.
|
libvlc_event_manager_t |
libvlc_media_list_event_manager(libvlc_media_list_t p_ml)
Get libvlc_event_manager from this media list instance.
|
int |
libvlc_media_list_index_of_item(libvlc_media_list_t p_ml,
libvlc_media_t p_md)
Find index position of List media instance in media list.
|
int |
libvlc_media_list_insert_media(libvlc_media_list_t p_ml,
libvlc_media_t p_md,
int i_pos)
Insert media instance in media list on a position The libvlc_media_list_lock should be held
upon entering this function.
|
int |
libvlc_media_list_is_readonly(libvlc_media_list_t p_ml)
This indicates if this media list is read-only from a user point of view
|
libvlc_media_t |
libvlc_media_list_item_at_index(libvlc_media_list_t p_ml,
int i_pos)
List media instance in media list at a position The libvlc_media_list_lock should be held
upon entering this function.
|
void |
libvlc_media_list_lock(libvlc_media_list_t p_ml)
Get lock on media list items
|
libvlc_media_t |
libvlc_media_list_media(libvlc_media_list_t p_ml)
Get media instance from this media list instance.
|
libvlc_media_list_t |
libvlc_media_list_new(libvlc_instance_t p_instance)
Create an empty media list.
|
libvlc_event_manager_t |
libvlc_media_list_player_event_manager(libvlc_media_list_player_t p_mlp)
Return the event manager of this media_list_player.
|
int |
libvlc_media_list_player_get_state(libvlc_media_list_player_t p_mlp)
Get current libvlc_state of media list player
|
int |
libvlc_media_list_player_is_playing(libvlc_media_list_player_t p_mlp)
Is media list playing?
|
libvlc_media_list_player_t |
libvlc_media_list_player_new(libvlc_instance_t p_instance)
Create new media_list_player.
|
int |
libvlc_media_list_player_next(libvlc_media_list_player_t p_mlp)
Play next item from media list
|
void |
libvlc_media_list_player_pause(libvlc_media_list_player_t p_mlp)
Pause media list
|
int |
libvlc_media_list_player_play_item_at_index(libvlc_media_list_player_t p_mlp,
int i_index)
Play media list item at position index
|
int |
libvlc_media_list_player_play_item(libvlc_media_list_player_t p_mlp,
libvlc_media_t p_md)
Play the given media item
|
void |
libvlc_media_list_player_play(libvlc_media_list_player_t p_mlp)
Play media list
|
int |
libvlc_media_list_player_previous(libvlc_media_list_player_t p_mlp)
Play previous item from media list
|
void |
libvlc_media_list_player_release(libvlc_media_list_player_t p_mlp)
Release a media_list_player after use.
|
void |
libvlc_media_list_player_retain(libvlc_media_list_player_t p_mlp)
Retain a reference to a media player list object.
|
void |
libvlc_media_list_player_set_media_list(libvlc_media_list_player_t p_mlp,
libvlc_media_list_t p_mlist)
Set the media list associated with the player
|
void |
libvlc_media_list_player_set_media_player(libvlc_media_list_player_t p_mlp,
libvlc_media_player_t p_mi)
Replace media player in media_list_player with this instance.
|
void |
libvlc_media_list_player_set_playback_mode(libvlc_media_list_player_t p_mlp,
int e_mode)
Sets the playback mode for the playlist
|
void |
libvlc_media_list_player_stop(libvlc_media_list_player_t p_mlp)
Stop playing media list
|
void |
libvlc_media_list_release(libvlc_media_list_t p_ml)
Release media list created with libvlc_media_list_new().
|
int |
libvlc_media_list_remove_index(libvlc_media_list_t p_ml,
int i_pos)
Remove media instance from media list on a position The libvlc_media_list_lock should be held
upon entering this function.
|
void |
libvlc_media_list_retain(libvlc_media_list_t p_ml)
Retain reference to a media list
|
void |
libvlc_media_list_set_media(libvlc_media_list_t p_ml,
libvlc_media_t p_md)
Associate media instance with this media list instance.
|
void |
libvlc_media_list_unlock(libvlc_media_list_t p_ml)
Release lock on media list items The libvlc_media_list_lock should be held upon entering this
function.
|
libvlc_media_t |
libvlc_media_new_as_node(libvlc_instance_t p_instance,
String psz_name)
Create a media as an empty node with a given name.
|
libvlc_media_t |
libvlc_media_new_location(libvlc_instance_t p_instance,
String psz_mrl)
Create a media with a certain given media resource location.
|
libvlc_media_t |
libvlc_media_new_path(libvlc_instance_t p_instance,
String path)
Create a media with a certain file path.
|
void |
libvlc_media_parse_async(libvlc_media_t media)
Parse a media.
|
void |
libvlc_media_parse(libvlc_media_t media)
Parse a media.
|
int |
libvlc_media_player_can_pause(libvlc_media_player_t p_mi)
Can this media player be paused?
|
libvlc_event_manager_t |
libvlc_media_player_event_manager(libvlc_media_player_t p_mi)
Get the Event Manager from which the media player send event.
|
int |
libvlc_media_player_get_agl(libvlc_media_player_t p_mi)
Get the agl handler previously set with libvlc_media_player_set_agl().
|
int |
libvlc_media_player_get_chapter_count_for_title(libvlc_media_player_t p_mi,
int i_title)
Get title chapter count
|
int |
libvlc_media_player_get_chapter_count(libvlc_media_player_t p_mi)
Get movie chapter count
|
int |
libvlc_media_player_get_chapter(libvlc_media_player_t p_mi)
Get movie chapter.
|
float |
libvlc_media_player_get_fps(libvlc_media_player_t p_mi)
Get movie fps rate
|
com.sun.jna.Pointer |
libvlc_media_player_get_hwnd(libvlc_media_player_t p_mi)
Get the Windows API window handle (HWND) previously set with libvlc_media_player_set_hwnd().
|
long |
libvlc_media_player_get_length(libvlc_media_player_t p_mi)
Get the current movie length (in ms).
|
libvlc_media_t |
libvlc_media_player_get_media(libvlc_media_player_t p_mi)
Get the media used by the media_player.
|
com.sun.jna.Pointer |
libvlc_media_player_get_nsobject(libvlc_media_player_t p_mi)
Get the NSView handler previously set with libvlc_media_player_set_nsobject().
|
float |
libvlc_media_player_get_position(libvlc_media_player_t p_mi)
Get movie position.
|
float |
libvlc_media_player_get_rate(libvlc_media_player_t p_mi)
Get the requested movie play rate.
|
int |
libvlc_media_player_get_state(libvlc_media_player_t p_mi)
Get current movie state
|
long |
libvlc_media_player_get_time(libvlc_media_player_t p_mi)
Get the current movie time (in ms).
|
int |
libvlc_media_player_get_title_count(libvlc_media_player_t p_mi)
Get movie title count
|
int |
libvlc_media_player_get_title(libvlc_media_player_t p_mi)
Get movie title
|
int |
libvlc_media_player_get_xwindow(libvlc_media_player_t p_mi)
Get the X Window System window identifier previously set with
libvlc_media_player_set_xwindow().
|
int |
libvlc_media_player_has_vout(libvlc_media_player_t p_mi)
How many video outputs does this media player have?
|
int |
libvlc_media_player_is_playing(libvlc_media_player_t p_mi)
is_playing
|
int |
libvlc_media_player_is_seekable(libvlc_media_player_t p_mi)
Is this media player seekable?
|
void |
libvlc_media_player_navigate(libvlc_media_player_t p_mi,
int navigate)
Navigate through DVD Menu
|
libvlc_media_player_t |
libvlc_media_player_new_from_media(libvlc_media_t p_md)
Create a Media Player object from a Media
|
libvlc_media_player_t |
libvlc_media_player_new(libvlc_instance_t p_libvlc_instance)
Create an empty Media Player object
|
void |
libvlc_media_player_next_chapter(libvlc_media_player_t p_mi)
Set next chapter (if applicable)
|
void |
libvlc_media_player_next_frame(libvlc_media_player_t p_mi)
Display the next frame (if supported)
|
void |
libvlc_media_player_pause(libvlc_media_player_t p_mi)
Toggle pause (no effect if there is no media)
|
int |
libvlc_media_player_play(libvlc_media_player_t p_mi)
Play
|
void |
libvlc_media_player_previous_chapter(libvlc_media_player_t p_mi)
Set previous chapter (if applicable)
|
int |
libvlc_media_player_program_scrambled(libvlc_media_player_t p_mi)
Is the current program scrambled?
|
void |
libvlc_media_player_release(libvlc_media_player_t p_mi)
Release a media_player after use Decrement the reference count of a media player object.
|
void |
libvlc_media_player_retain(libvlc_media_player_t p_mi)
Retain a reference to a media player object.
|
void |
libvlc_media_player_set_agl(libvlc_media_player_t p_mi,
int drawable)
Set the agl handler where the media player should render its video output.
|
void |
libvlc_media_player_set_chapter(libvlc_media_player_t p_mi,
int i_chapter)
Set movie chapter (if applicable).
|
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.
|
void |
libvlc_media_player_set_hwnd(libvlc_media_player_t p_mi,
com.sun.jna.Pointer drawable)
Set a Win32/Win64 API window handle (HWND) where the media player should render its video
output.
|
void |
libvlc_media_player_set_media(libvlc_media_player_t p_mi,
libvlc_media_t p_md)
Set the media that will be used by the media_player.
|
void |
libvlc_media_player_set_nsobject(libvlc_media_player_t p_mi,
long drawable)
Set the NSView handler where the media player should render its video output.
|
void |
libvlc_media_player_set_pause(libvlc_media_player_t mp,
int do_pause)
Pause or resume (no effect if there is no media)
|
void |
libvlc_media_player_set_position(libvlc_media_player_t p_mi,
float f_pos)
Set movie position.
|
int |
libvlc_media_player_set_rate(libvlc_media_player_t p_mi,
float rate)
Set movie play rate
|
void |
libvlc_media_player_set_time(libvlc_media_player_t p_mi,
long i_time)
Set the movie time (in ms).
|
void |
libvlc_media_player_set_title(libvlc_media_player_t p_mi,
int i_title)
Set movie title
|
void |
libvlc_media_player_set_video_title_display(libvlc_media_player_t p_mi,
int position,
int timeout)
Set if, and how, the video title will be shown when media is played.
|
void |
libvlc_media_player_set_xwindow(libvlc_media_player_t p_mi,
int drawable)
Set an X Window System drawable where the media player should render its video output.
|
void |
libvlc_media_player_stop(libvlc_media_player_t p_mi)
Stop (no effect if there is no media)
|
int |
libvlc_media_player_will_play(libvlc_media_player_t p_mi)
Is the player able to play
|
void |
libvlc_media_release(libvlc_media_t p_md)
Decrement the reference count of a media descriptor object.
|
void |
libvlc_media_retain(libvlc_media_t p_md)
Retain a reference to a media descriptor object (libvlc_media_t).
|
int |
libvlc_media_save_meta(libvlc_media_t p_md)
Save the meta previously set
|
void |
libvlc_media_set_meta(libvlc_media_t p_md,
int e_meta,
String psz_value)
Set the meta of the media (this function will not save the meta, call libvlc_media_save_meta
in order to save the meta)
|
void |
libvlc_media_set_user_data(libvlc_media_t p_md,
com.sun.jna.Pointer p_new_user_data)
Sets media descriptor's user_data.
|
libvlc_media_list_t |
libvlc_media_subitems(libvlc_media_t p_md)
Get subitems of media descriptor object.
|
int |
libvlc_media_tracks_get(libvlc_media_t p_md,
com.sun.jna.ptr.PointerByReference tracks)
Get media descriptor's elementary streams description
|
void |
libvlc_media_tracks_release(com.sun.jna.Pointer p_tracks,
int i_count)
Release media descriptor's elementary streams description array
|
void |
libvlc_module_description_list_release(libvlc_module_description_t p_list)
Release a list of module descriptions.
|
libvlc_instance_t |
libvlc_new_with_builtins(int argc,
String[] argv,
com.sun.jna.Pointer[] builtins)
Create and initialize a libvlc instance.
|
libvlc_instance_t |
libvlc_new(int argc,
String[] argv)
Create and initialize a libvlc instance.
|
void |
libvlc_release(libvlc_instance_t p_instance)
Decrement the reference count of a libvlc instance, and destroy it if it reaches zero.
|
void |
libvlc_retain(libvlc_instance_t p_instance)
Increments the reference count of a libvlc instance.
|
void |
libvlc_set_app_id(libvlc_instance_t p_instance,
String id,
String version,
String icon)
Sets some meta-informations about the application.
|
void |
libvlc_set_fullscreen(libvlc_media_player_t p_mi,
int b_fullscreen)
Enable or disable fullscreen.
|
void |
libvlc_set_user_agent(libvlc_instance_t p_instance,
String name,
String http)
Sets the application name.
|
void |
libvlc_toggle_fullscreen(libvlc_media_player_t p_mi)
Toggle fullscreen status on non-embedded video outputs.
|
void |
libvlc_toggle_teletext(libvlc_media_player_t p_mi)
Toggle teletext transparent status on video output.
|
void |
libvlc_track_description_list_release(com.sun.jna.Pointer p_track_description)
Release (free) libvlc_track_description_t
|
libvlc_module_description_t |
libvlc_video_filter_list_get(libvlc_instance_t p_instance)
Returns a list of video filters that are available.
|
float |
libvlc_video_get_adjust_float(libvlc_media_player_t p_mi,
int option)
Get float adjust option.
|
int |
libvlc_video_get_adjust_int(libvlc_media_player_t p_mi,
int option)
Get integer adjust option.
|
com.sun.jna.Pointer |
libvlc_video_get_aspect_ratio(libvlc_media_player_t p_mi)
Get current video aspect ratio.
|
libvlc_track_description_t |
libvlc_video_get_chapter_description(libvlc_media_player_t p_mi,
int i_title)
Get the description of available chapters for specific title.
|
com.sun.jna.Pointer |
libvlc_video_get_crop_geometry(libvlc_media_player_t p_mi)
Get current crop filter geometry.
|
int |
libvlc_video_get_cursor(libvlc_media_player_t p_mi,
int num,
com.sun.jna.Pointer px,
com.sun.jna.Pointer py)
Get the mouse pointer coordinates over a video.
|
int |
libvlc_video_get_logo_int(libvlc_media_player_t p_mi,
int option)
Get integer logo option.
|
int |
libvlc_video_get_marquee_int(libvlc_media_player_t p_mi,
int option)
Get an integer marquee option value
|
String |
libvlc_video_get_marquee_string(libvlc_media_player_t p_mi,
int option)
Get a string marquee option value
|
float |
libvlc_video_get_scale(libvlc_media_player_t p_mi)
Get the current video scaling factor.
|
int |
libvlc_video_get_size(libvlc_media_player_t p_mi,
int num,
com.sun.jna.ptr.IntByReference px,
com.sun.jna.ptr.IntByReference py)
Get the pixel dimensions of a video.
|
int |
libvlc_video_get_spu_count(libvlc_media_player_t p_mi)
Get the number of available video subtitles.
|
long |
libvlc_video_get_spu_delay(libvlc_media_player_t p_mi)
Get the current subtitle delay.
|
libvlc_track_description_t |
libvlc_video_get_spu_description(libvlc_media_player_t p_mi)
Get the description of available video subtitles.
|
int |
libvlc_video_get_spu(libvlc_media_player_t p_mi)
Get current video subtitle.
|
int |
libvlc_video_get_teletext(libvlc_media_player_t p_mi)
Get current teletext page requested.
|
libvlc_track_description_t |
libvlc_video_get_title_description(libvlc_media_player_t p_mi)
Get the description of available titles.
|
int |
libvlc_video_get_track_count(libvlc_media_player_t p_mi)
Get number of available video tracks.
|
libvlc_track_description_t |
libvlc_video_get_track_description(libvlc_media_player_t p_mi)
Get the description of available video tracks.
|
int |
libvlc_video_get_track(libvlc_media_player_t p_mi)
Get current video track.
|
void |
libvlc_video_set_adjust_float(libvlc_media_player_t p_mi,
int option,
float value)
Set adjust option as float.
|
void |
libvlc_video_set_adjust_int(libvlc_media_player_t p_mi,
int option,
int value)
Set adjust option as integer.
|
void |
libvlc_video_set_aspect_ratio(libvlc_media_player_t p_mi,
String psz_aspect)
Set new video aspect ratio.
|
void |
libvlc_video_set_callbacks(libvlc_media_player_t mp,
libvlc_lock_callback_t lock,
libvlc_unlock_callback_t unlock,
libvlc_display_callback_t display,
com.sun.jna.Pointer opaque)
Set callbacks and private data to render decoded video to a custom area in memory.
|
void |
libvlc_video_set_crop_geometry(libvlc_media_player_t p_mi,
String psz_geometry)
Set new crop filter geometry.
|
void |
libvlc_video_set_deinterlace(libvlc_media_player_t p_mi,
String psz_mode)
Enable or disable deinterlace filter
|
void |
libvlc_video_set_format_callbacks(libvlc_media_player_t mp,
libvlc_video_format_cb setup,
libvlc_video_cleanup_cb cleanup)
Set decoded video chroma and dimensions.
|
void |
libvlc_video_set_format(libvlc_media_player_t mp,
String chroma,
int width,
int height,
int pitch)
Set decoded video chroma and dimensions.
|
void |
libvlc_video_set_key_input(libvlc_media_player_t p_mi,
int on)
Enable or disable key press events handling, according to the LibVLC hotkeys configuration.
|
void |
libvlc_video_set_logo_int(libvlc_media_player_t p_mi,
int option,
int value)
Set logo option as integer.
|
void |
libvlc_video_set_logo_string(libvlc_media_player_t p_mi,
int option,
String psz_value)
Set logo option as string.
|
void |
libvlc_video_set_marquee_int(libvlc_media_player_t p_mi,
int option,
int i_val)
Enable, disable or set an integer marquee option Setting libvlc_marquee_Enable has the side
effect of enabling (arg !0) or disabling (arg 0) the marq filter.
|
void |
libvlc_video_set_marquee_string(libvlc_media_player_t p_mi,
int option,
String psz_text)
Set a marquee string option
|
void |
libvlc_video_set_mouse_input(libvlc_media_player_t p_mi,
int on)
Enable or disable mouse click events handling.
|
void |
libvlc_video_set_scale(libvlc_media_player_t p_mi,
float f_factor)
Set the video scaling factor.
|
int |
libvlc_video_set_spu_delay(libvlc_media_player_t p_mi,
long i_delay)
Set the subtitle delay.
|
int |
libvlc_video_set_spu(libvlc_media_player_t p_mi,
int i_spu)
Set new video subtitle.
|
int |
libvlc_video_set_subtitle_file(libvlc_media_player_t p_mi,
String psz_subtitle)
Set new video subtitle file.
|
void |
libvlc_video_set_teletext(libvlc_media_player_t p_mi,
int i_page)
Set new teletext page to retrieve.
|
int |
libvlc_video_set_track(libvlc_media_player_t p_mi,
int i_track)
Set video track.
|
int |
libvlc_video_take_snapshot(libvlc_media_player_t p_mi,
int num,
String psz_filepath,
int i_width,
int i_height)
Take a snapshot of the current video window.
|
int |
libvlc_vlm_add_broadcast(libvlc_instance_t p_instance,
String psz_name,
String psz_input,
String psz_output,
int i_options,
String[] ppsz_options,
int b_enabled,
int b_loop)
Add a broadcast, with one input.
|
int |
libvlc_vlm_add_input(libvlc_instance_t p_instance,
String psz_name,
String psz_input)
Add a media's input MRL.
|
int |
libvlc_vlm_add_vod(libvlc_instance_t p_instance,
String psz_name,
String psz_input,
int i_options,
String[] ppsz_options,
int b_enabled,
String psz_mux)
Add a vod, with one input.
|
int |
libvlc_vlm_change_media(libvlc_instance_t p_instance,
String psz_name,
String psz_input,
String psz_output,
int i_options,
String[] ppsz_options,
int b_enabled,
int b_loop)
Edit the parameters of a media.
|
int |
libvlc_vlm_del_media(libvlc_instance_t p_instance,
String psz_name)
Delete a media (VOD or broadcast).
|
libvlc_event_manager_t |
libvlc_vlm_get_event_manager(libvlc_instance_t p_instance)
Get libvlc_event_manager from a vlm media.
|
int |
libvlc_vlm_get_media_instance_length(libvlc_instance_t p_instance,
String psz_name,
int i_instance)
Get vlm_media instance length by name or instance id
|
float |
libvlc_vlm_get_media_instance_position(libvlc_instance_t p_instance,
String psz_name,
int i_instance)
Get vlm_media instance position by name or instance id
|
int |
libvlc_vlm_get_media_instance_rate(libvlc_instance_t p_instance,
String psz_name,
int i_instance)
Get vlm_media instance playback rate by name or instance id
|
int |
libvlc_vlm_get_media_instance_time(libvlc_instance_t p_instance,
String psz_name,
int i_instance)
Get vlm_media instance time by name or instance id
|
int |
libvlc_vlm_pause_media(libvlc_instance_t p_instance,
String psz_name)
Pause the named broadcast.
|
int |
libvlc_vlm_play_media(libvlc_instance_t p_instance,
String psz_name)
Play the named broadcast.
|
void |
libvlc_vlm_release(libvlc_instance_t p_instance)
Release the vlm instance related to the given libvlc_instance_t
|
int |
libvlc_vlm_seek_media(libvlc_instance_t p_instance,
String psz_name,
float f_percentage)
Seek in the named broadcast.
|
int |
libvlc_vlm_set_enabled(libvlc_instance_t p_instance,
String psz_name,
int b_enabled)
Enable or disable a media (VOD or broadcast).
|
int |
libvlc_vlm_set_input(libvlc_instance_t p_instance,
String psz_name,
String psz_input)
Set a media's input MRL.
|
int |
libvlc_vlm_set_loop(libvlc_instance_t p_instance,
String psz_name,
int b_loop)
Set a media's loop status.
|
int |
libvlc_vlm_set_mux(libvlc_instance_t p_instance,
String psz_name,
String psz_mux)
Set a media's vod muxer.
|
int |
libvlc_vlm_set_output(libvlc_instance_t p_instance,
String psz_name,
String psz_output)
Set the output for a media.
|
String |
libvlc_vlm_show_media(libvlc_instance_t p_instance,
String psz_name)
Return information about the named media as a JSON string representation.
|
int |
libvlc_vlm_stop_media(libvlc_instance_t p_instance,
String psz_name)
Stop the named broadcast.
|
void |
libvlc_wait(libvlc_instance_t p_instance)
Waits until an interface causes the instance to exit.
|
static final Info INFO
static final LibVlc INSTANCE
static final LibVlc SYNC_INSTANCE
String libvlc_errmsg()
This will be NULL if there was no error.
void libvlc_clearerr()
libvlc_instance_t libvlc_new(int argc, String[] argv)
argc
- the number of argumentsargv
- command-line-type argumentslibvlc_instance_t libvlc_new_with_builtins(int argc, String[] argv, com.sun.jna.Pointer[] builtins)
argc
- the number of argumentsargv
- command-line-type argumentsbuiltins
- a NULL terminated array of \see vlc_plugin.{ vlc_declare_plugin(mp4); vlc_declare_plugin(dummy); const void **builtins = { vlc_plugin(mp4), vlc_plugin(dummy), NULL }; libvlc_instance_t *vlc = libvlc_new_with_builtins(argc, argv, builtins); }
void libvlc_release(libvlc_instance_t p_instance)
p_instance
- the instance to destroyvoid libvlc_retain(libvlc_instance_t p_instance)
p_instance
- the instance to referenceint libvlc_add_intf(libvlc_instance_t p_instance, String name)
p_instance
- the instancename
- interface name, or NULL for defaultvoid libvlc_wait(libvlc_instance_t p_instance)
p_instance
- the instancevoid libvlc_set_user_agent(libvlc_instance_t p_instance, String name, String http)
p_instance
- LibVLC instancename
- human-readable application name, e.g. "FooBar player 1.2.3"http
- HTTP User Agent, e.g. "FooBar/1.2.3 Python/2.6.0"void libvlc_set_app_id(libvlc_instance_t p_instance, String id, String version, String icon)
See also libvlc_set_user_agent(libvlc_instance_t, String, String)
.
p_instance
- LibVLC instanceid
- Java-style application identifier, e.g. "com.acme.foobar"version
- application version numbers, e.g. "1.2.3"icon
- application icon name, e.g. "foobar"String libvlc_get_version()
String libvlc_get_compiler()
String libvlc_get_changeset()
void libvlc_free(com.sun.jna.Pointer ptr)
ptr
- the pointerint libvlc_event_attach(libvlc_event_manager_t p_event_manager, int i_event_type, libvlc_callback_t f_callback, com.sun.jna.Pointer user_data)
p_event_manager
- the event manager to which you want to attach to. Generally it is
obtained by vlc_my_object_event_manager() where my_object is the object you want
to listen to.i_event_type
- the desired event to which we want to listenf_callback
- the function to call when i_event_type occursuser_data
- user provided data to carry with the eventvoid libvlc_event_detach(libvlc_event_manager_t p_event_manager, int i_event_type, libvlc_callback_t f_callback, com.sun.jna.Pointer p_user_data)
p_event_manager
- the event manageri_event_type
- the desired event to which we want to unregisterf_callback
- the function to call when i_event_type occursp_user_data
- user provided data to carry with the eventString libvlc_event_type_name(int event_type)
event_type
- the desired eventvoid libvlc_log_get_context(libvlc_log_t ctx, com.sun.jna.ptr.PointerByReference module, com.sun.jna.ptr.PointerByReference file, com.sun.jna.ptr.IntByReference line)
The returned module name and file name will be NULL if unknown.
The returned line number will similarly be zero if unknown.
The returned module name and source code file name, if non-NULL, are only valid until the logging callback returns.*
ctx
- message context (as passed to the libvlc_log_cb
)module
- module name storage (or NULL) [OUT]file
- source code file name storage (or NULL) [OUT]line
- source code file line number storage (or NULL) [OUT]void libvlc_log_get_object(libvlc_log_t ctx, com.sun.jna.ptr.PointerByReference name, com.sun.jna.ptr.PointerByReference header, com.sun.jna.ptr.IntByReference id)
The returned type name may be "generic" if unknown, but it cannot be NULL.
The returned header will be NULL if unset; in current versions, the header is used to distinguish for VLM inputs.
The returned object ID will be zero if the message is not associated with any VLC object.
The returned module name and source code file name, if non-NULL, are only valid until the logging callback returns.
ctx
- message context (as passed to the libvlc_log_cb
)name
- object name storage (or NULL) [OUT]header
- object header (or NULL) [OUT]id
- source code file line number storage (or NULL) [OUT]void libvlc_log_unset(libvlc_instance_t p_instance)
This function will wait for any pending callbacks invocation to complete (causing a deadlock if called from within the callback).
void libvlc_log_set(libvlc_instance_t p_instance, libvlc_log_cb cb, com.sun.jna.Pointer data)
This function is thread-safe: it will wait for any pending callbacks invocation to complete.
Some log messages (especially debug) are emitted by LibVLC while is being initialized. These messages cannot be captured with this interface.
A deadlock may occur if this function is called from the callback.
p_instance
- the instancecb
- callback function pointerdata
- opaque data pointer for the callback functionvoid libvlc_module_description_list_release(libvlc_module_description_t p_list)
p_list
- the list to be releasedlibvlc_module_description_t libvlc_audio_filter_list_get(libvlc_instance_t p_instance)
p_instance
- libvlc instancelibvlc_module_description_t
,
libvlc_module_description_list_release(libvlc_module_description_t)
libvlc_module_description_t libvlc_video_filter_list_get(libvlc_instance_t p_instance)
p_instance
- libvlc instancelibvlc_module_description_t
,
libvlc_module_description_list_release(libvlc_module_description_t)
long libvlc_clock()
libvlc_media_t libvlc_media_new_location(libvlc_instance_t p_instance, String psz_mrl)
p_instance
- the instancepsz_mrl
- the MRL to readlibvlc_media_release(libvlc_media_t)
libvlc_media_t libvlc_media_new_path(libvlc_instance_t p_instance, String path)
p_instance
- the instancepath
- local filesystem pathlibvlc_media_release(libvlc_media_t)
libvlc_media_t libvlc_media_new_as_node(libvlc_instance_t p_instance, String psz_name)
p_instance
- the instancepsz_name
- the name of the nodelibvlc_media_release(libvlc_media_t)
void libvlc_media_add_option(libvlc_media_t p_md, String ppsz_options)
p_md
- the media descriptorppsz_options
- the options (as a string)void libvlc_media_add_option_flag(libvlc_media_t p_md, String ppsz_options, int i_flags)
p_md
- the media descriptorppsz_options
- the options (as a string)i_flags
- the flags for this optionvoid libvlc_media_retain(libvlc_media_t p_md)
p_md
- the media descriptorvoid libvlc_media_release(libvlc_media_t p_md)
p_md
- the media descriptorcom.sun.jna.Pointer libvlc_media_get_mrl(libvlc_media_t p_md)
p_md
- a media descriptor objectlibvlc_media_t libvlc_media_duplicate(libvlc_media_t p_md)
p_md
- a media descriptor object.com.sun.jna.Pointer libvlc_media_get_meta(libvlc_media_t p_md, int e_meta)
p_md
- the media descriptore_meta
- the meta to readlibvlc_media_parse(libvlc_media_t)
,
libvlc_media_parse_async(libvlc_media_t)
,
libvlc_event_e.libvlc_MediaMetaChanged
void libvlc_media_set_meta(libvlc_media_t p_md, int e_meta, String psz_value)
p_md
- the media descriptore_meta
- the meta to writepsz_value
- the media's metaint libvlc_media_save_meta(libvlc_media_t p_md)
p_md
- the media desriptorint libvlc_media_get_state(libvlc_media_t p_meta_desc)
p_meta_desc
- a media descriptor objectlibvlc_state_t
int libvlc_media_get_stats(libvlc_media_t p_md, libvlc_media_stats_t p_stats)
p_md
- media descriptor objectp_stats
- structure that contain the statistics about the media (this structure must be
allocated by the caller)libvlc_media_list_t libvlc_media_subitems(libvlc_media_t p_md)
p_md
- media descriptor objectlibvlc_event_manager_t libvlc_media_event_manager(libvlc_media_t p_md)
p_md
- a media descriptor objectlong libvlc_media_get_duration(libvlc_media_t p_md)
p_md
- media descriptor objectvoid libvlc_media_parse(libvlc_media_t media)
media
- media descriptor objectlibvlc_media_parse_async(libvlc_media_t)
,
libvlc_media_get_meta(libvlc_media_t, int)
void libvlc_media_parse_async(libvlc_media_t media)
media
- media descriptor objectlibvlc_media_parse(libvlc_media_t)
,
libvlc_event_e.libvlc_MediaParsedChanged
,
libvlc_media_get_meta(libvlc_media_t, int)
int libvlc_media_is_parsed(libvlc_media_t p_md)
p_md
- media descriptor objectlibvlc_event_e.libvlc_MediaParsedChanged
void libvlc_media_set_user_data(libvlc_media_t p_md, com.sun.jna.Pointer p_new_user_data)
p_md
- media descriptor objectp_new_user_data
- pointer to user datacom.sun.jna.Pointer libvlc_media_get_user_data(libvlc_media_t p_md)
p_md
- media descriptor objectint libvlc_media_tracks_get(libvlc_media_t p_md, com.sun.jna.ptr.PointerByReference tracks)
Note, you need to call libvlc_media_parse(libvlc_media_t)
or play the media at least once
before calling this function.
Not doing this will result in an empty array.
p_md
- media descriptor objecttracks
- address to store an allocated array of Elementary Streams
descriptions (must be freed with libvlc_media_tracks_release
by the caller) [OUT]void libvlc_media_tracks_release(com.sun.jna.Pointer p_tracks, int i_count)
p_tracks
- tracks info array to releasei_count
- number of elements in the arraylibvlc_media_player_t libvlc_media_player_new(libvlc_instance_t p_libvlc_instance)
p_libvlc_instance
- the libvlc instance in which the Media Player should be created.libvlc_media_player_t libvlc_media_player_new_from_media(libvlc_media_t p_md)
p_md
- the media. Afterwards the p_md can be safely destroyed.void libvlc_media_player_release(libvlc_media_player_t p_mi)
p_mi
- the Media Player to freevoid libvlc_media_player_retain(libvlc_media_player_t p_mi)
p_mi
- media player objectvoid libvlc_media_player_set_media(libvlc_media_player_t p_mi, libvlc_media_t p_md)
p_mi
- the Media Playerp_md
- the Media. Afterwards the p_md can be safely destroyed.libvlc_media_t libvlc_media_player_get_media(libvlc_media_player_t p_mi)
You do not need to invoke libvlc_media_player_release().
p_mi
- the Media Playerlibvlc_event_manager_t libvlc_media_player_event_manager(libvlc_media_player_t p_mi)
p_mi
- the Media Playerint libvlc_media_player_is_playing(libvlc_media_player_t p_mi)
p_mi
- the Media Playerint libvlc_media_player_play(libvlc_media_player_t p_mi)
p_mi
- the Media Playervoid libvlc_media_player_set_pause(libvlc_media_player_t mp, int do_pause)
mp
- the Media Playerdo_pause
- play/resume if zero, pause if non-zerovoid libvlc_media_player_pause(libvlc_media_player_t p_mi)
p_mi
- the Media Playervoid libvlc_media_player_stop(libvlc_media_player_t p_mi)
p_mi
- the Media Playervoid libvlc_video_set_callbacks(libvlc_media_player_t mp, libvlc_lock_callback_t lock, libvlc_unlock_callback_t unlock, libvlc_display_callback_t display, com.sun.jna.Pointer opaque)
Use libvlc_video_set_format() or libvlc_video_set_format_callbacks() to configure the decoded format.
mp
- the media playerlock
- callback to allocate video memoryunlock
- callback to release video memorydisplay
- callback when ready to display a video frameopaque
- private pointer for the three callbacks (as first parameter)void libvlc_video_set_format(libvlc_media_player_t mp, String chroma, int width, int height, int pitch)
This only works in combination with libvlc_video_set_callbacks(), and is mutually exclusive with libvlc_video_set_format_callbacks().
mp
- the media playerchroma
- a four-characters string identifying the chroma (e.g. "RV32" or "YUYV")width
- pixel widthheight
- pixel heightpitch
- line pitch (in bytes)void libvlc_video_set_format_callbacks(libvlc_media_player_t mp, libvlc_video_format_cb setup, libvlc_video_cleanup_cb cleanup)
mp
- the media playersetup
- callback to select the video format (cannot be NULL)cleanup
- callback to release any allocated resources (or NULL)void libvlc_media_player_set_nsobject(libvlc_media_player_t p_mi, long drawable)
\@protocol VLCOpenGLVideoViewEmbeddingOr it can be an NSView object. If you want to use it along with Qt4 see the QMacCocoaViewContainer. Then the following code should work:- (void)addVoutSubview:(NSView*)view; - (void)removeVoutSubview:(NSView *)view; \@end
{ NSView *video = [[NSView alloc] init]; QMacCocoaViewContainer *container = new QMacCocoaViewContainer(video, parent); libvlc_media_player_set_nsobject(mp, video); [video release]; }You can find a live example in VLCVideoView in VLCKit.framework.
p_mi
- the Media Playerdrawable
- the drawable that is either an NSView or an object following the
VLCOpenGLVideoViewEmbedding protocol.com.sun.jna.Pointer libvlc_media_player_get_nsobject(libvlc_media_player_t p_mi)
p_mi
- the Media Playervoid libvlc_media_player_set_agl(libvlc_media_player_t p_mi, int drawable)
p_mi
- the Media Playerdrawable
- the agl handlerint libvlc_media_player_get_agl(libvlc_media_player_t p_mi)
p_mi
- the Media Playervoid libvlc_media_player_set_xwindow(libvlc_media_player_t p_mi, int drawable)
p_mi
- the Media Playerdrawable
- the ID of the X windowint libvlc_media_player_get_xwindow(libvlc_media_player_t p_mi)
p_mi
- the Media Playervoid libvlc_media_player_set_hwnd(libvlc_media_player_t p_mi, com.sun.jna.Pointer drawable)
p_mi
- the Media Playerdrawable
- windows handle of the drawablecom.sun.jna.Pointer libvlc_media_player_get_hwnd(libvlc_media_player_t p_mi)
p_mi
- the Media Playervoid 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, com.sun.jna.Pointer opaque)
Use libvlc_audio_set_format() or libvlc_audio_set_format_callbacks() to configure the decoded audio format.
mp
- the media playerplay
- callback to play audio samples (must not be NULL)pause
- callback to pause playback (or NULL to ignore)resume
- callback to resume playback (or NULL to ignore)flush
- callback to flush audio buffers (or NULL to ignore)drain
- callback to drain audio buffers (or NULL to ignore)opaque
- private pointer for the audio callbacks (as first parameter)void libvlc_audio_set_volume_callback(libvlc_media_player_t mp, libvlc_audio_set_volume_cb set_volume)
mp
- the media playerset_volume
- callback to apply audio volume, or NULL to apply volume in softwarevoid libvlc_audio_set_format_callbacks(libvlc_media_player_t mp, libvlc_audio_setup_cb setup, libvlc_audio_cleanup_cb cleanup)
mp
- the media playersetup
- callback to select the audio format (cannot be NULL)cleanup
- callback to release any allocated resources (or NULL)void libvlc_audio_set_format(libvlc_media_player_t mp, String format, int rate, int channels)
mp
- the media playerformat
- a four-characters string identifying the sample format (e.g. "S16N" or "FL32")rate
- sample rate (expressed in Hz)channels
- channels countlong libvlc_media_player_get_length(libvlc_media_player_t p_mi)
p_mi
- the Media Playerlong libvlc_media_player_get_time(libvlc_media_player_t p_mi)
p_mi
- the Media Playervoid libvlc_media_player_set_time(libvlc_media_player_t p_mi, long i_time)
p_mi
- the Media Playeri_time
- the movie time (in ms).float libvlc_media_player_get_position(libvlc_media_player_t p_mi)
p_mi
- the Media Playervoid libvlc_media_player_set_position(libvlc_media_player_t p_mi, float f_pos)
p_mi
- the Media Playerf_pos
- the positionvoid libvlc_media_player_set_chapter(libvlc_media_player_t p_mi, int i_chapter)
p_mi
- the Media Playeri_chapter
- chapter number to playint libvlc_media_player_get_chapter(libvlc_media_player_t p_mi)
p_mi
- the Media Playerint libvlc_media_player_get_chapter_count(libvlc_media_player_t p_mi)
p_mi
- the Media Playerint libvlc_media_player_will_play(libvlc_media_player_t p_mi)
p_mi
- the Media Playerint libvlc_media_player_get_chapter_count_for_title(libvlc_media_player_t p_mi, int i_title)
p_mi
- the Media Playeri_title
- titlevoid libvlc_media_player_set_title(libvlc_media_player_t p_mi, int i_title)
p_mi
- the Media Playeri_title
- title number to playint libvlc_media_player_get_title(libvlc_media_player_t p_mi)
p_mi
- the Media Playerint libvlc_media_player_get_title_count(libvlc_media_player_t p_mi)
p_mi
- the Media Playervoid libvlc_media_player_previous_chapter(libvlc_media_player_t p_mi)
p_mi
- the Media Playervoid libvlc_media_player_next_chapter(libvlc_media_player_t p_mi)
p_mi
- the Media Playerfloat libvlc_media_player_get_rate(libvlc_media_player_t p_mi)
Depending on the underlying media, the requested rate may be different from the real playback rate.
p_mi
- the Media Playerint libvlc_media_player_set_rate(libvlc_media_player_t p_mi, float rate)
p_mi
- the Media Playerrate
- movie play rate to setint libvlc_media_player_get_state(libvlc_media_player_t p_mi)
p_mi
- the Media Playerfloat libvlc_media_player_get_fps(libvlc_media_player_t p_mi)
p_mi
- the Media Playerint libvlc_media_player_has_vout(libvlc_media_player_t p_mi)
p_mi
- the media playerint libvlc_media_player_is_seekable(libvlc_media_player_t p_mi)
p_mi
- the media playerint libvlc_media_player_can_pause(libvlc_media_player_t p_mi)
p_mi
- the media playerint libvlc_media_player_program_scrambled(libvlc_media_player_t p_mi)
p_mi
- the media playervoid libvlc_media_player_next_frame(libvlc_media_player_t p_mi)
p_mi
- the media playervoid libvlc_media_player_navigate(libvlc_media_player_t p_mi, int navigate)
p_mi
- the Media Playernavigate
- the Navigation modevoid libvlc_media_player_set_video_title_display(libvlc_media_player_t p_mi, int position, int timeout)
p_mi
- the media playerposition
- position at which to display the title, or libvlc_position_disable to prevent the title from being displayedtimeout
- title display timeout in milliseconds (ignored if libvlc_position_disable)void libvlc_track_description_list_release(com.sun.jna.Pointer p_track_description)
p_track_description
- the structure to releasevoid libvlc_toggle_fullscreen(libvlc_media_player_t p_mi)
The same limitations applies to this function as to libvlc_set_fullscreen().
p_mi
- the media playervoid libvlc_set_fullscreen(libvlc_media_player_t p_mi, int b_fullscreen)
With most window managers, only a top-level windows can be in full-screen mode. Hence, this function will not operate properly if libvlc_media_player_set_xid() was used to embed the video in a non-top-level window. In that case, the embedding window must be reparented to the root window before fullscreen mode is enabled. You will want to reparent it back to its normal parent when disabling fullscreen.
p_mi
- the media playerb_fullscreen
- boolean for fullscreen statusint libvlc_get_fullscreen(libvlc_media_player_t p_mi)
p_mi
- the media playervoid libvlc_video_set_key_input(libvlc_media_player_t p_mi, int on)
On X11, there can be only one subscriber for key press and mouse click events per window. If your application has subscribed to those events for the X window ID of the video widget, then LibVLC will not be able to handle key presses and mouse clicks in any case.
This function is only implemented for X11 and Win32 at the moment.
p_mi
- the media playeron
- true to handle key press events, false to ignore them.void libvlc_video_set_mouse_input(libvlc_media_player_t p_mi, int on)
See also libvlc_video_set_key_input().
This function is only implemented for X11 and Win32 at the moment.
p_mi
- the media playeron
- true to handle mouse click events, false to ignore them.int libvlc_video_get_size(libvlc_media_player_t p_mi, int num, com.sun.jna.ptr.IntByReference px, com.sun.jna.ptr.IntByReference py)
p_mi
- media playernum
- number of the video (starting from, and most commonly 0)px
- pointer to get the pixel width [OUT]py
- pointer to get the pixel height [OUT]int libvlc_video_get_cursor(libvlc_media_player_t p_mi, int num, com.sun.jna.Pointer px, com.sun.jna.Pointer py)
The coordinates may be out-of-date if the pointer is not located on the video rendering area. LibVLC does not track the pointer if it is outside of the video widget.
LibVLC does not support multiple pointers (it does of course support multiple input devices sharing the same pointer) at the moment.
p_mi
- media playernum
- number of the video (starting from, and most commonly 0)px
- pointer to get the abscissa [OUT]py
- pointer to get the ordinate [OUT]float libvlc_video_get_scale(libvlc_media_player_t p_mi)
p_mi
- the media playervoid libvlc_video_set_scale(libvlc_media_player_t p_mi, float f_factor)
p_mi
- the media playerf_factor
- the scaling factor, or zerocom.sun.jna.Pointer libvlc_video_get_aspect_ratio(libvlc_media_player_t p_mi)
p_mi
- the media playervoid libvlc_video_set_aspect_ratio(libvlc_media_player_t p_mi, String psz_aspect)
p_mi
- the media playerpsz_aspect
- new video aspect-ratio or NULL to reset to defaultint libvlc_video_get_spu(libvlc_media_player_t p_mi)
p_mi
- the media playerint libvlc_video_get_spu_count(libvlc_media_player_t p_mi)
p_mi
- the media playerlibvlc_track_description_t libvlc_video_get_spu_description(libvlc_media_player_t p_mi)
p_mi
- the media playerint libvlc_video_set_spu(libvlc_media_player_t p_mi, int i_spu)
p_mi
- the media playeri_spu
- new video subtitle to selectint libvlc_video_set_subtitle_file(libvlc_media_player_t p_mi, String psz_subtitle)
p_mi
- the media playerpsz_subtitle
- new video subtitle filelong libvlc_video_get_spu_delay(libvlc_media_player_t p_mi)
p_mi
- media playerint libvlc_video_set_spu_delay(libvlc_media_player_t p_mi, long i_delay)
p_mi
- media playeri_delay
- time (in microseconds) the display of subtitles should be delayedlibvlc_track_description_t libvlc_video_get_title_description(libvlc_media_player_t p_mi)
p_mi
- the media playerlibvlc_track_description_t libvlc_video_get_chapter_description(libvlc_media_player_t p_mi, int i_title)
p_mi
- the media playeri_title
- selected titlecom.sun.jna.Pointer libvlc_video_get_crop_geometry(libvlc_media_player_t p_mi)
p_mi
- the media playervoid libvlc_video_set_crop_geometry(libvlc_media_player_t p_mi, String psz_geometry)
p_mi
- the media playerpsz_geometry
- new crop filter geometry (NULL to unset)int libvlc_video_get_teletext(libvlc_media_player_t p_mi)
p_mi
- the media playervoid libvlc_video_set_teletext(libvlc_media_player_t p_mi, int i_page)
p_mi
- the media playeri_page
- teletex page number requestedvoid libvlc_toggle_teletext(libvlc_media_player_t p_mi)
p_mi
- the media playerint libvlc_video_get_track_count(libvlc_media_player_t p_mi)
p_mi
- media playerlibvlc_track_description_t libvlc_video_get_track_description(libvlc_media_player_t p_mi)
p_mi
- media playerint libvlc_video_get_track(libvlc_media_player_t p_mi)
p_mi
- media playerint libvlc_video_set_track(libvlc_media_player_t p_mi, int i_track)
p_mi
- media playeri_track
- the track ID (i_id field from track description)int libvlc_video_take_snapshot(libvlc_media_player_t p_mi, int num, String psz_filepath, int i_width, int i_height)
p_mi
- media player instancenum
- number of video output (typically 0 for the first/only one)psz_filepath
- the path where to save the screenshot toi_width
- the snapshot's widthi_height
- the snapshot's heightvoid libvlc_video_set_deinterlace(libvlc_media_player_t p_mi, String psz_mode)
p_mi
- libvlc media playerpsz_mode
- type of deinterlace filter, NULL to disableint libvlc_video_get_marquee_int(libvlc_media_player_t p_mi, int option)
p_mi
- libvlc media playeroption
- marq option to get @see libvlc_video_marquee_int_option_tString libvlc_video_get_marquee_string(libvlc_media_player_t p_mi, int option)
p_mi
- libvlc media playeroption
- marq option to get @see libvlc_video_marquee_string_option_tvoid libvlc_video_set_marquee_int(libvlc_media_player_t p_mi, int option, int i_val)
p_mi
- libvlc media playeroption
- marq option to set @see libvlc_video_marquee_int_option_ti_val
- marq option valuevoid libvlc_video_set_marquee_string(libvlc_media_player_t p_mi, int option, String psz_text)
p_mi
- libvlc media playeroption
- marq option to set @see libvlc_video_marquee_string_option_tpsz_text
- marq option valueint libvlc_video_get_logo_int(libvlc_media_player_t p_mi, int option)
p_mi
- libvlc media player instanceoption
- logo option to get, values of libvlc_video_logo_option_tvoid libvlc_video_set_logo_int(libvlc_media_player_t p_mi, int option, int value)
p_mi
- libvlc media player instanceoption
- logo option to set, values of libvlc_video_logo_option_tvalue
- logo option valuevoid libvlc_video_set_logo_string(libvlc_media_player_t p_mi, int option, String psz_value)
p_mi
- libvlc media player instanceoption
- logo option to set, values of libvlc_video_logo_option_tpsz_value
- logo option valueint libvlc_video_get_adjust_int(libvlc_media_player_t p_mi, int option)
p_mi
- libvlc media player instanceoption
- adjust option to get, values of libvlc_video_adjust_option_tvoid libvlc_video_set_adjust_int(libvlc_media_player_t p_mi, int option, int value)
p_mi
- libvlc media player instanceoption
- adust option to set, values of libvlc_video_adjust_option_tvalue
- adjust option valuefloat libvlc_video_get_adjust_float(libvlc_media_player_t p_mi, int option)
p_mi
- libvlc media player instanceoption
- adjust option to get, values of libvlc_video_adjust_option_tvoid libvlc_video_set_adjust_float(libvlc_media_player_t p_mi, int option, float value)
p_mi
- libvlc media player instanceoption
- adust option to set, values of libvlc_video_adjust_option_tvalue
- adjust option valuelibvlc_audio_output_t libvlc_audio_output_list_get(libvlc_instance_t p_instance)
p_instance
- libvlc instancelibvlc_audio_output_list_release(libvlc_audio_output_t)
. In case of error,
NULL is returned.void libvlc_audio_output_list_release(libvlc_audio_output_t p_list)
p_list
- list with audio outputs for releaseint libvlc_audio_output_set(libvlc_media_player_t p_mi, String psz_name)
Note: Any change will take be effect only after playback is stopped and restarted. Audio output cannot be changed while playing.
p_mi
- media playerpsz_name
- name of audio output, use psz_name of @see libvlc_audio_output_tlibvlc_audio_output_device_t libvlc_audio_output_device_enum(libvlc_media_player_t mp)
libvlc_audio_output_device_set(libvlc_media_player_t, String, String)
.
Not all audio outputs support enumerating devices. The audio output may be functional even if the list is empty (NULL).
The list may not be exhaustive.
Some audio output devices in the list might not actually work in some circumstances. By default, it is recommended to not specify any explicit audio device.
mp
- media playerlibvlc_audio_output_device_list_release(libvlc_audio_output_device_t)
.libvlc_audio_output_device_t libvlc_audio_output_device_list_get(libvlc_instance_t p_instance, String psz_aout)
See libvlc_audio_output_device_set(libvlc_media_player_t, String, String)
.
Not all audio outputs support this. In particular, an empty (NULL) list of devices does not imply that the specified audio output does not work.
The list might not be exhaustive.
Some audio output devices in the list might not actually work in some circumstances. By default, it is recommended to not specify any explicit audio device.
p_instance
- libvlc instancepsz_aout
- audio output name (as returned by libvlc_audio_output_list_get())void libvlc_audio_output_device_list_release(libvlc_audio_output_device_t p_list)
p_list
- list with audio outputs for releasevoid libvlc_audio_output_device_set(libvlc_media_player_t p_mi, String psz_audio_output, String psz_device_id)
If the module parameter is NULL, audio output will be moved to the device specified by the device identifier string immediately. This is the recommended usage.
A list of adequate potential device strings can be obtained with libvlc_audio_output_device_enum(). // FIXME
However passing NULL is supported in LibVLC version 2.2.0 and later only; in earlier versions, this function would have no effects when the module parameter was NULL.
If the module parameter is not NULL, the device parameter of the corresponding audio output, if it exists, will be set to the specified string. Note that some audio output modules do not have such a parameter (notably MMDevice and PulseAudio).
A list of adequate potential device strings can be obtained with libvlc_audio_output_device_list_get().
This function does not select the specified audio output plugin. libvlc_audio_output_set() is used for that purpose.
The syntax for the device parameter depends on the audio output.
Some audio output modules require further parameters (e.g. a channels map in the case of ALSA).
mp
- media playermodule
- If NULL, current audio output module; if non-NULL, name of audio output module (@see libvlc_audio_output_t
)device_id
- device identifier stringvoid libvlc_audio_toggle_mute(libvlc_media_player_t p_mi)
p_mi
- media playerint libvlc_audio_get_mute(libvlc_media_player_t p_mi)
p_mi
- media playervoid libvlc_audio_set_mute(libvlc_media_player_t p_mi, int status)
p_mi
- media playerstatus
- If status is true then mute, otherwise unmuteint libvlc_audio_get_volume(libvlc_media_player_t p_mi)
p_mi
- media playerint libvlc_audio_set_volume(libvlc_media_player_t p_mi, int i_volume)
p_mi
- media playeri_volume
- the volume in percents (0 = mute, 100 = 0dB)int libvlc_audio_get_track_count(libvlc_media_player_t p_mi)
p_mi
- media playerlibvlc_track_description_t libvlc_audio_get_track_description(libvlc_media_player_t p_mi)
p_mi
- media playerint libvlc_audio_get_track(libvlc_media_player_t p_mi)
p_mi
- media playerint libvlc_audio_set_track(libvlc_media_player_t p_mi, int i_track)
p_mi
- media playeri_track
- the track ID (i_id field from track description)int libvlc_audio_get_channel(libvlc_media_player_t p_mi)
p_mi
- media playerint libvlc_audio_set_channel(libvlc_media_player_t p_mi, int channel)
p_mi
- media playerchannel
- the audio channel, @see libvlc_audio_output_channel_tlong libvlc_audio_get_delay(libvlc_media_player_t p_mi)
p_mi
- media playerint libvlc_audio_set_delay(libvlc_media_player_t p_mi, long i_delay)
p_mi
- media playeri_delay
- amount to delay audio by, in microsecondsint libvlc_audio_equalizer_get_preset_count()
String libvlc_audio_equalizer_get_preset_name(int u_index)
This name can be used, for example, to prepare a preset label or menu in a user interface.
u_index
- index of the preset, counting from zeroint libvlc_audio_equalizer_get_band_count()
float libvlc_audio_equalizer_get_band_frequency(int u_index)
This value can be used, for example, to create a label for an equalizer band control in a user interface.
u_index
- index of the band, counting from zerolibvlc_equalizer_t libvlc_audio_equalizer_new()
The new equalizer can subsequently be applied to a media player by invoking libvlc_media_player_set_equalizer().
The returned handle should be freed via libvlc_audio_equalizer_release() when it is no longer needed.
libvlc_equalizer_t libvlc_audio_equalizer_new_from_preset(int u_index)
The new equalizer can subsequently be applied to a media player by invoking libvlc_media_player_set_equalizer().
The returned handle should be freed via libvlc_audio_equalizer_release() when it is no longer needed.
u_index
- index of the preset, counting from zerovoid libvlc_audio_equalizer_release(libvlc_equalizer_t p_equalizer)
The equalizer was previously created by using libvlc_audio_equalizer_new() or libvlc_audio_equalizer_new_from_preset().
It is safe to invoke this method with a NULL p_equalizer parameter for no effect.
p_equalizer
- opaque equalizer handle, or NULLint libvlc_audio_equalizer_set_preamp(libvlc_equalizer_t p_equalizer, float f_preamp)
The new equalizer settings are subsequently applied to a media player by invoking libvlc_media_player_set_equalizer().
p_equalizer
- valid equalizer handle, must not be NULLf_preamp
- preamp value (-20.0 to 20.0 Hz)float libvlc_audio_equalizer_get_preamp(libvlc_equalizer_t p_equalizer)
p_equalizer
- valid equalizer handle, must not be NULLint libvlc_audio_equalizer_set_amp_at_index(libvlc_equalizer_t p_equalizer, float f_amp, int u_band)
The new equalizer settings are subsequently applied to a media player by invoking libvlc_media_player_set_equalizer().
p_equalizer
- valid equalizer handle, must not be NULLf_amp
- amplification value (-20.0 to 20.0 Hz)u_band
- index, counting from zero, of the frequency band to setfloat libvlc_audio_equalizer_get_amp_at_index(libvlc_equalizer_t p_equalizer, int u_band)
p_equalizer
- valid equalizer handle, must not be NULLu_band
- index, counting from zero, of the frequency band to getint libvlc_media_player_set_equalizer(libvlc_media_player_t p_mi, libvlc_equalizer_t p_equalizer)
The equalizer is first created by invoking libvlc_audio_equalizer_new() or libvlc_audio_equalizer_new_from_preset().
It is possible to apply new equalizer settings to a media player whether the media player is currently playing media or not.
Invoking this method will immediately apply the new equalizer settings to the audio output of the currently playing media if there is any.
If there is no currently playing media, the new equalizer settings will be applied later if and when new media is played.
Equalizer settings will automatically be applied to subsequently played media.
To disable the equalizer for a media player invoke this method passing NULL for the p_equalizer parameter.
The media player does not keep a reference to the supplied equalizer so it is safe for an application to release the equalizer reference any time after this method returns.
p_mi
- opaque media player handlep_equalizer
- opaque equalizer handle, or NULL to disable the equalizer for this media playerlibvlc_media_list_t libvlc_media_list_new(libvlc_instance_t p_instance)
p_instance
- libvlc instancevoid libvlc_media_list_release(libvlc_media_list_t p_ml)
p_ml
- a media list created with libvlc_media_list_new()void libvlc_media_list_retain(libvlc_media_list_t p_ml)
p_ml
- a media list created with libvlc_media_list_new()void libvlc_media_list_set_media(libvlc_media_list_t p_ml, libvlc_media_t p_md)
p_ml
- a media list instancep_md
- media instance to addlibvlc_media_t libvlc_media_list_media(libvlc_media_list_t p_ml)
p_ml
- a media list instanceint libvlc_media_list_add_media(libvlc_media_list_t p_ml, libvlc_media_t p_md)
p_ml
- a media list instancep_md
- a media instanceint libvlc_media_list_insert_media(libvlc_media_list_t p_ml, libvlc_media_t p_md, int i_pos)
p_ml
- a media list instancep_md
- a media instancei_pos
- position in array where to insertint libvlc_media_list_remove_index(libvlc_media_list_t p_ml, int i_pos)
p_ml
- a media list instancei_pos
- position in array where to insertint libvlc_media_list_count(libvlc_media_list_t p_ml)
p_ml
- a media list instancelibvlc_media_t libvlc_media_list_item_at_index(libvlc_media_list_t p_ml, int i_pos)
p_ml
- a media list instancei_pos
- position in array where to insertint libvlc_media_list_index_of_item(libvlc_media_list_t p_ml, libvlc_media_t p_md)
p_ml
- a media list instancep_md
- media list instanceint libvlc_media_list_is_readonly(libvlc_media_list_t p_ml)
p_ml
- media list instancevoid libvlc_media_list_lock(libvlc_media_list_t p_ml)
p_ml
- a media list instancevoid libvlc_media_list_unlock(libvlc_media_list_t p_ml)
p_ml
- a media list instancelibvlc_event_manager_t libvlc_media_list_event_manager(libvlc_media_list_t p_ml)
p_ml
- a media list instancelibvlc_media_list_player_t libvlc_media_list_player_new(libvlc_instance_t p_instance)
p_instance
- libvlc instancevoid libvlc_media_list_player_release(libvlc_media_list_player_t p_mlp)
p_mlp
- media list player instancevoid libvlc_media_list_player_retain(libvlc_media_list_player_t p_mlp)
p_mlp
- media player list objectlibvlc_event_manager_t libvlc_media_list_player_event_manager(libvlc_media_list_player_t p_mlp)
p_mlp
- media list player instancevoid libvlc_media_list_player_set_media_player(libvlc_media_list_player_t p_mlp, libvlc_media_player_t p_mi)
p_mlp
- media list player instancep_mi
- media player instancevoid libvlc_media_list_player_set_media_list(libvlc_media_list_player_t p_mlp, libvlc_media_list_t p_mlist)
p_mlp
- media list player instancep_mlist
- list of mediavoid libvlc_media_list_player_play(libvlc_media_list_player_t p_mlp)
p_mlp
- media list player instancevoid libvlc_media_list_player_pause(libvlc_media_list_player_t p_mlp)
p_mlp
- media list player instanceint libvlc_media_list_player_is_playing(libvlc_media_list_player_t p_mlp)
p_mlp
- media list player instanceint libvlc_media_list_player_get_state(libvlc_media_list_player_t p_mlp)
p_mlp
- media list player instanceint libvlc_media_list_player_play_item_at_index(libvlc_media_list_player_t p_mlp, int i_index)
p_mlp
- media list player instancei_index
- index in media list to playint libvlc_media_list_player_play_item(libvlc_media_list_player_t p_mlp, libvlc_media_t p_md)
p_mlp
- media list player instancep_md
- the media instancevoid libvlc_media_list_player_stop(libvlc_media_list_player_t p_mlp)
p_mlp
- media list player instanceint libvlc_media_list_player_next(libvlc_media_list_player_t p_mlp)
p_mlp
- media list player instanceint libvlc_media_list_player_previous(libvlc_media_list_player_t p_mlp)
p_mlp
- media list player instancevoid libvlc_media_list_player_set_playback_mode(libvlc_media_list_player_t p_mlp, int e_mode)
p_mlp
- media list player instancee_mode
- playback mode specificationlibvlc_media_discoverer_t libvlc_media_discoverer_new_from_name(libvlc_instance_t p_inst, String psz_name)
p_inst
- libvlc instancepsz_name
- service namevoid libvlc_media_discoverer_release(libvlc_media_discoverer_t p_mdis)
p_mdis
- media service discover objectcom.sun.jna.Pointer libvlc_media_discoverer_localized_name(libvlc_media_discoverer_t p_mdis)
p_mdis
- media discover objectlibvlc_media_list_t libvlc_media_discoverer_media_list(libvlc_media_discoverer_t p_mdis)
p_mdis
- media service discover objectlibvlc_event_manager_t libvlc_media_discoverer_event_manager(libvlc_media_discoverer_t p_mdis)
p_mdis
- media service discover objectint libvlc_media_discoverer_is_running(libvlc_media_discoverer_t p_mdis)
p_mdis
- media service discover objectvoid libvlc_vlm_release(libvlc_instance_t p_instance)
p_instance
- the instanceint libvlc_vlm_add_broadcast(libvlc_instance_t p_instance, String psz_name, String psz_input, String psz_output, int i_options, String[] ppsz_options, int b_enabled, int b_loop)
p_instance
- the instancepsz_name
- the name of the new broadcastpsz_input
- the input MRLpsz_output
- the output MRL (the parameter to the "sout" variable)i_options
- number of additional optionsppsz_options
- additional optionsb_enabled
- boolean for enabling the new broadcastb_loop
- Should this broadcast be played in loop ?int libvlc_vlm_add_vod(libvlc_instance_t p_instance, String psz_name, String psz_input, int i_options, String[] ppsz_options, int b_enabled, String psz_mux)
p_instance
- the instancepsz_name
- the name of the new vod mediapsz_input
- the input MRLi_options
- number of additional optionsppsz_options
- additional optionsb_enabled
- boolean for enabling the new vodpsz_mux
- the muxer of the vod mediaint libvlc_vlm_del_media(libvlc_instance_t p_instance, String psz_name)
p_instance
- the instancepsz_name
- the media to deleteint libvlc_vlm_set_enabled(libvlc_instance_t p_instance, String psz_name, int b_enabled)
p_instance
- the instancepsz_name
- the media to work onb_enabled
- the new statusint libvlc_vlm_set_output(libvlc_instance_t p_instance, String psz_name, String psz_output)
p_instance
- the instancepsz_name
- the media to work onpsz_output
- the output MRL (the parameter to the "sout" variable)int libvlc_vlm_set_input(libvlc_instance_t p_instance, String psz_name, String psz_input)
p_instance
- the instancepsz_name
- the media to work onpsz_input
- the input MRLint libvlc_vlm_add_input(libvlc_instance_t p_instance, String psz_name, String psz_input)
p_instance
- the instancepsz_name
- the media to work onpsz_input
- the input MRLint libvlc_vlm_set_loop(libvlc_instance_t p_instance, String psz_name, int b_loop)
p_instance
- the instancepsz_name
- the media to work onb_loop
- the new statusint libvlc_vlm_set_mux(libvlc_instance_t p_instance, String psz_name, String psz_mux)
p_instance
- the instancepsz_name
- the media to work onpsz_mux
- the new muxerint libvlc_vlm_change_media(libvlc_instance_t p_instance, String psz_name, String psz_input, String psz_output, int i_options, String[] ppsz_options, int b_enabled, int b_loop)
p_instance
- the instancepsz_name
- the name of the new broadcastpsz_input
- the input MRLpsz_output
- the output MRL (the parameter to the "sout" variable)i_options
- number of additional optionsppsz_options
- additional optionsb_enabled
- boolean for enabling the new broadcastb_loop
- Should this broadcast be played in loop ?int libvlc_vlm_play_media(libvlc_instance_t p_instance, String psz_name)
p_instance
- the instancepsz_name
- the name of the broadcastint libvlc_vlm_stop_media(libvlc_instance_t p_instance, String psz_name)
p_instance
- the instancepsz_name
- the name of the broadcastint libvlc_vlm_pause_media(libvlc_instance_t p_instance, String psz_name)
p_instance
- the instancepsz_name
- the name of the broadcastint libvlc_vlm_seek_media(libvlc_instance_t p_instance, String psz_name, float f_percentage)
p_instance
- the instancepsz_name
- the name of the broadcastf_percentage
- the percentage to seek toString libvlc_vlm_show_media(libvlc_instance_t p_instance, String psz_name)
p_instance
- the instancepsz_name
- the name of the media, if the name is an empty string, all media is describedfloat libvlc_vlm_get_media_instance_position(libvlc_instance_t p_instance, String psz_name, int i_instance)
p_instance
- a libvlc instancepsz_name
- name of vlm media instancei_instance
- instance idint libvlc_vlm_get_media_instance_time(libvlc_instance_t p_instance, String psz_name, int i_instance)
p_instance
- a libvlc instancepsz_name
- name of vlm media instancei_instance
- instance idint libvlc_vlm_get_media_instance_length(libvlc_instance_t p_instance, String psz_name, int i_instance)
p_instance
- a libvlc instancepsz_name
- name of vlm media instancei_instance
- instance idint libvlc_vlm_get_media_instance_rate(libvlc_instance_t p_instance, String psz_name, int i_instance)
p_instance
- a libvlc instancepsz_name
- name of vlm media instancei_instance
- instance idlibvlc_event_manager_t libvlc_vlm_get_event_manager(libvlc_instance_t p_instance)
p_instance
- a libvlc instanceCopyright © 2009–2014 Caprica Software Limited. All rights reserved.