
Defines | |
| #define | register_event(a, b) __register_event(a, libvlc_MediaPlayer ## b) |
Functions | |
| static int | input_seekable_changed (vlc_object_t *p_this, char const *psz_cmd, vlc_value_t oldval, vlc_value_t newval, void *p_userdata) |
| static int | input_pausable_changed (vlc_object_t *p_this, char const *psz_cmd, vlc_value_t oldval, vlc_value_t newval, void *p_userdata) |
| static int | input_event_changed (vlc_object_t *p_this, char const *psz_cmd, vlc_value_t oldval, vlc_value_t newval, void *p_userdata) |
| static int | snapshot_was_taken (vlc_object_t *p_this, char const *psz_cmd, vlc_value_t oldval, vlc_value_t newval, void *p_data) |
| static void | libvlc_media_player_destroy (libvlc_media_player_t *p_mi) |
| static void | __register_event (libvlc_media_player_t *mp, libvlc_event_type_t type) |
| static void | lock (libvlc_media_player_t *mp) |
| static void | unlock (libvlc_media_player_t *mp) |
| static void | lock_input (libvlc_media_player_t *mp) |
| static void | unlock_input (libvlc_media_player_t *mp) |
| static void | release_input_thread (libvlc_media_player_t *p_mi, bool b_input_abort) |
| input_thread_t * | libvlc_get_input_thread (libvlc_media_player_t *p_mi) |
| static void | set_state (libvlc_media_player_t *p_mi, libvlc_state_t state, bool b_locked) |
| static input_thread_t * | find_input (vlc_object_t *obj) |
| libvlc_media_player_t * | libvlc_media_player_new (libvlc_instance_t *instance) |
| Create an empty Media Player object. | |
| libvlc_media_player_t * | libvlc_media_player_new_from_media (libvlc_media_t *p_md) |
| Create a Media Player object from a Media. | |
| 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_media (libvlc_media_player_t *p_mi, libvlc_media_t *p_md) |
| Set the media that will be used by the media_player. | |
| libvlc_media_t * | libvlc_media_player_get_media (libvlc_media_player_t *p_mi) |
| Get the media used by the media_player. | |
| 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_play (libvlc_media_player_t *p_mi) |
| Play. | |
| void | libvlc_media_player_set_pause (libvlc_media_player_t *p_mi, int paused) |
| Pause or resume (no effect if there is no media). | |
| void | libvlc_media_player_pause (libvlc_media_player_t *p_mi) |
| Toggle pause (no effect if there is no media). | |
| int | libvlc_media_player_is_playing (libvlc_media_player_t *p_mi) |
| is_playing | |
| void | libvlc_media_player_stop (libvlc_media_player_t *p_mi) |
| Stop (no effect if there is no media). | |
| void | libvlc_video_set_callbacks (libvlc_media_player_t *mp, void *(*lock_cb)(void *, void **), void(*unlock_cb)(void *, void *, void *const *), void(*display_cb)(void *, void *), void *opaque) |
| 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, const char *chroma, unsigned width, unsigned height, unsigned pitch) |
| Set decoded video chroma and dimensions. | |
| void | libvlc_media_player_set_nsobject (libvlc_media_player_t *p_mi, void *drawable) |
| Set the NSView handler where the media player should render its video output. | |
| void * | libvlc_media_player_get_nsobject (libvlc_media_player_t *p_mi) |
| Get the NSView handler previously set with libvlc_media_player_set_nsobject(). | |
| void | libvlc_media_player_set_agl (libvlc_media_player_t *p_mi, uint32_t drawable) |
| Set the agl handler where the media player should render its video output. | |
| uint32_t | libvlc_media_player_get_agl (libvlc_media_player_t *p_mi) |
| Get the agl handler previously set with libvlc_media_player_set_agl(). | |
| void | libvlc_media_player_set_xwindow (libvlc_media_player_t *p_mi, uint32_t drawable) |
| Set an X Window System drawable where the media player should render its video output. | |
| uint32_t | 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(). | |
| void | libvlc_media_player_set_hwnd (libvlc_media_player_t *p_mi, void *drawable) |
| Set a Win32/Win64 API window handle (HWND) where the media player should render its video output. | |
| void * | 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(). | |
| void | libvlc_audio_set_callbacks (libvlc_media_player_t *mp, libvlc_audio_play_cb play_cb, libvlc_audio_pause_cb pause_cb, libvlc_audio_resume_cb resume_cb, libvlc_audio_flush_cb flush_cb, libvlc_audio_drain_cb drain_cb, void *opaque) |
| Set callbacks and private data for decoded audio. | |
| void | libvlc_audio_set_volume_callback (libvlc_media_player_t *mp, libvlc_audio_set_volume_cb cb) |
| Set callbacks and private data for decoded audio. | |
| 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, const char *format, unsigned rate, unsigned channels) |
| Set decoded audio format. | |
| libvlc_time_t | libvlc_media_player_get_length (libvlc_media_player_t *p_mi) |
| Get the current movie length (in ms). | |
| libvlc_time_t | libvlc_media_player_get_time (libvlc_media_player_t *p_mi) |
| Get the current movie time (in ms). | |
| void | libvlc_media_player_set_time (libvlc_media_player_t *p_mi, libvlc_time_t i_time) |
| Set the movie time (in ms). | |
| void | libvlc_media_player_set_position (libvlc_media_player_t *p_mi, float position) |
| Set movie position. | |
| float | libvlc_media_player_get_position (libvlc_media_player_t *p_mi) |
| Get movie position. | |
| void | libvlc_media_player_set_chapter (libvlc_media_player_t *p_mi, int chapter) |
| Set movie chapter (if applicable). | |
| int | libvlc_media_player_get_chapter (libvlc_media_player_t *p_mi) |
| Get movie chapter. | |
| int | libvlc_media_player_get_chapter_count (libvlc_media_player_t *p_mi) |
| Get movie chapter count. | |
| int | libvlc_media_player_get_chapter_count_for_title (libvlc_media_player_t *p_mi, int i_title) |
| Get title chapter count. | |
| void | libvlc_media_player_set_title (libvlc_media_player_t *p_mi, int i_title) |
| Set movie title. | |
| int | libvlc_media_player_get_title (libvlc_media_player_t *p_mi) |
| Get movie title. | |
| int | libvlc_media_player_get_title_count (libvlc_media_player_t *p_mi) |
| Get movie title count. | |
| void | libvlc_media_player_next_chapter (libvlc_media_player_t *p_mi) |
| Set next chapter (if applicable). | |
| void | libvlc_media_player_previous_chapter (libvlc_media_player_t *p_mi) |
| Set previous chapter (if applicable). | |
| float | libvlc_media_player_get_fps (libvlc_media_player_t *p_mi) |
| Get movie fps rate. | |
| int | libvlc_media_player_will_play (libvlc_media_player_t *p_mi) |
| Is the player able to play. | |
| int | libvlc_media_player_set_rate (libvlc_media_player_t *p_mi, float rate) |
| Set movie play rate. | |
| float | libvlc_media_player_get_rate (libvlc_media_player_t *p_mi) |
| Get the requested movie play rate. | |
| libvlc_state_t | libvlc_media_player_get_state (libvlc_media_player_t *p_mi) |
| Get current movie state. | |
| 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, unsigned navigate) |
| Navigate through DVD Menu. | |
| libvlc_track_description_t * | libvlc_get_track_description (libvlc_media_player_t *p_mi, const char *psz_variable) |
| void | libvlc_track_description_release (libvlc_track_description_t *p_td) |
| Release (free) libvlc_track_description_t. | |
| int | libvlc_media_player_can_pause (libvlc_media_player_t *p_mi) |
| Can this media player be paused? | |
| void | libvlc_media_player_next_frame (libvlc_media_player_t *p_mi) |
| Display the next frame (if supported). | |
Variables | |
| static const vlc_action_t | libvlc_navigate_to_action [] |
| static const uint32_t | libvlc_navigate_to_action_size |
| #define register_event | ( | a, | ||
| b | ||||
| ) | __register_event(a, libvlc_MediaPlayer ## b) |
Referenced by libvlc_media_player_new().
| static void __register_event | ( | libvlc_media_player_t * | mp, | |
| libvlc_event_type_t | type | |||
| ) | [inline, static] |
| static input_thread_t* find_input | ( | vlc_object_t * | obj | ) | [static] |
References libvlc_get_input_thread().
Referenced by libvlc_media_player_new().
| static int input_event_changed | ( | vlc_object_t * | p_this, | |
| char const * | psz_cmd, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_userdata | |||
| ) | [static] |
References END_S, ERROR_S, from_mtime(), vlc_value_t::i_int, INIT_S, INPUT_EVENT_ABORT, INPUT_EVENT_CACHE, INPUT_EVENT_LENGTH, INPUT_EVENT_POSITION, INPUT_EVENT_STATE, libvlc_event_send(), OPENING_S, libvlc_media_player_t::p_event_manager, PAUSE_S, PLAYING_S, set_state(), var_GetFloat, var_GetInteger, var_GetTime, and VLC_UNUSED.
Referenced by libvlc_media_player_play(), and release_input_thread().
| static int input_pausable_changed | ( | vlc_object_t * | p_this, | |
| char const * | psz_cmd, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_userdata | |||
| ) | [static] |
References vlc_value_t::b_bool, libvlc_event_send(), libvlc_media_player_t::p_event_manager, and VLC_UNUSED.
Referenced by libvlc_media_player_play(), and release_input_thread().
| static int input_seekable_changed | ( | vlc_object_t * | p_this, | |
| char const * | psz_cmd, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_userdata | |||
| ) | [static] |
References vlc_value_t::b_bool, libvlc_event_send(), libvlc_media_player_t::p_event_manager, and VLC_UNUSED.
Referenced by libvlc_media_player_play(), and release_input_thread().
| input_thread_t* libvlc_get_input_thread | ( | libvlc_media_player_t * | p_mi | ) |
References libvlc_media_player_t::input, libvlc_printerr(), lock_input(), libvlc_media_player_t::p_thread, unlock_input(), and vlc_object_hold.
Referenced by find_input(), GetAOut(), GetVouts(), libvlc_audio_get_delay(), libvlc_audio_get_track(), libvlc_audio_get_track_count(), libvlc_audio_set_delay(), libvlc_audio_set_track(), libvlc_get_track_description(), libvlc_media_player_can_pause(), libvlc_media_player_get_chapter(), libvlc_media_player_get_chapter_count(), libvlc_media_player_get_chapter_count_for_title(), libvlc_media_player_get_fps(), libvlc_media_player_get_length(), libvlc_media_player_get_position(), libvlc_media_player_get_time(), libvlc_media_player_get_title(), libvlc_media_player_get_title_count(), libvlc_media_player_is_seekable(), libvlc_media_player_navigate(), libvlc_media_player_next_chapter(), libvlc_media_player_next_frame(), libvlc_media_player_previous_chapter(), libvlc_media_player_set_chapter(), libvlc_media_player_set_pause(), libvlc_media_player_set_position(), libvlc_media_player_set_rate(), libvlc_media_player_set_time(), libvlc_media_player_set_title(), libvlc_media_player_will_play(), libvlc_toggle_teletext(), libvlc_video_get_spu(), libvlc_video_get_spu_count(), libvlc_video_get_track(), libvlc_video_get_track_count(), libvlc_video_set_spu(), libvlc_video_set_subtitle_file(), libvlc_video_set_teletext(), and libvlc_video_set_track().
| libvlc_track_description_t* libvlc_get_track_description | ( | libvlc_media_player_t * | p_mi, | |
| const char * | psz_variable | |||
| ) |
References vlc_list_t::i_count, vlc_value_t::i_int, libvlc_get_input_thread(), libvlc_printerr(), libvlc_track_description_release(), vlc_value_t::p_list, vlc_list_t::p_values, vlc_value_t::psz_string, strdup(), var_Change, var_FreeList(), vlc_object_release, and VLC_VAR_GETLIST.
Referenced by libvlc_audio_get_track_description(), libvlc_video_get_chapter_description(), libvlc_video_get_spu_description(), libvlc_video_get_title_description(), and libvlc_video_get_track_description().
| static void libvlc_media_player_destroy | ( | libvlc_media_player_t * | p_mi | ) | [static] |
References libvlc_media_player_t::input, input_resource_Release(), input_resource_Terminate(), libvlc_event_manager_release(), libvlc_media_release(), libvlc_release(), libvlc_media_player_t::lock, libvlc_media_player_t::object_lock, libvlc_media_player_t::p_event_manager, libvlc_media_player_t::p_libvlc, libvlc_media_player_t::p_libvlc_instance, libvlc_media_player_t::p_md, libvlc_media_player_t::p_resource, libvlc_media_player_t::p_thread, release_input_thread(), snapshot_was_taken(), var_DelCallback, vlc_mutex_destroy(), and vlc_object_release.
Referenced by libvlc_media_player_release().
| void libvlc_video_set_callbacks | ( | libvlc_media_player_t * | mp, | |
| void *(*)(void *, void **) | lock_cb, | |||
| void(*)(void *, void *, void *const *) | unlock_cb, | |||
| void(*)(void *, void *) | display_cb, | |||
| void * | opaque | |||
| ) |
References var_SetAddress, and var_SetString.
| static void lock | ( | libvlc_media_player_t * | mp | ) | [inline, static] |
References libvlc_media_player_t::object_lock, and vlc_mutex_lock().
| static void lock_input | ( | libvlc_media_player_t * | mp | ) | [inline, static] |
References libvlc_media_player_t::input, libvlc_media_player_t::lock, and vlc_mutex_lock().
Referenced by libvlc_get_input_thread(), libvlc_media_player_play(), libvlc_media_player_set_media(), and libvlc_media_player_stop().
| static void release_input_thread | ( | libvlc_media_player_t * | p_mi, | |
| bool | b_input_abort | |||
| ) | [static] |
References libvlc_media_player_t::input, input_Close(), input_event_changed(), input_pausable_changed(), input_seekable_changed(), input_Stop(), libvlc_media_player_t::p_thread, and var_DelCallback.
Referenced by libvlc_media_player_destroy(), libvlc_media_player_set_media(), and libvlc_media_player_stop().
| static void set_state | ( | libvlc_media_player_t * | p_mi, | |
| libvlc_state_t | state, | |||
| bool | b_locked | |||
| ) | [static] |
| static int snapshot_was_taken | ( | vlc_object_t * | p_this, | |
| char const * | psz_cmd, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References libvlc_event_send(), libvlc_media_player_t::p_event_manager, vlc_value_t::psz_string, and VLC_UNUSED.
Referenced by libvlc_media_player_destroy(), and libvlc_media_player_new().
| static void unlock | ( | libvlc_media_player_t * | mp | ) | [inline, static] |
| static void unlock_input | ( | libvlc_media_player_t * | mp | ) | [inline, static] |
References libvlc_media_player_t::input, libvlc_media_player_t::lock, and vlc_mutex_unlock().
Referenced by libvlc_get_input_thread(), libvlc_media_player_play(), libvlc_media_player_set_media(), and libvlc_media_player_stop().
const vlc_action_t libvlc_navigate_to_action[] [static] |
{
ACTIONID_NAV_ACTIVATE,
ACTIONID_NAV_UP,
ACTIONID_NAV_DOWN,
ACTIONID_NAV_LEFT,
ACTIONID_NAV_RIGHT
}
Referenced by libvlc_media_player_navigate().
const uint32_t libvlc_navigate_to_action_size [static] |
sizeof( libvlc_navigate_to_action ) / sizeof( libvlc_navigate_to_action[0] )
Referenced by libvlc_media_player_navigate().
1.7.1