libVLC-2

7.LIBVLC_APIlibvlc_media_list_t*libvlc_media_list_new(libvlc_instance_t*p_instance)

Create an empty media list.

LIBVLC_APIvoidlibvlc_media_list_release(libvlc_media_list_t*p_ml)

Release media list created withlibvlc_media_list_new().

LIBVLC_APIvoidlibvlc_media_list_retain(libvlc_media_list_t*p_ml)

Retain reference to a media list.

LIBVLC_DEPRECATEDintlibvlc_media_list_add_file_content(libvlc_media_list_t*p_ml, const char *psz_uri)

LIBVLC_APIvoidlibvlc_media_list_set_media(libvlc_media_list_t*p_ml,libvlc_media_t*p_md)

Associate media instance with this media list instance.

LIBVLC_APIlibvlc_media_t*libvlc_media_list_media(libvlc_media_list_t*p_ml)

Get media instance from this media list instance.

LIBVLC_APIintlibvlc_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.

LIBVLC_APIintlibvlc_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.

LIBVLC_APIintlibvlc_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.

LIBVLC_APIintlibvlc_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_APIlibvlc_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.

LIBVLC_APIintlibvlc_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.

LIBVLC_APIintlibvlc_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_APIvoidlibvlc_media_list_lock(libvlc_media_list_t*p_ml)

Get lock on media list items.

LIBVLC_APIvoidlibvlc_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_APIlibvlc_event_manager_t*libvlc_media_list_event_manager(libvlc_media_list_t*p_ml)

Get libvlc_event_manager from this media list instance.

8.media list player

LIBVLC_API

libvlc_media_list_player_t*libvlc_media_list_player_new(libvlc_instance_t*p_instance)

Create new media_list_player.

LIBVLC_APIvoidlibvlc_media_list_player_release(libvlc_media_list_player_t*p_mlp)

Release a media_list_player after use Decrement the reference count of a media player object.

LIBVLC_APIvoidlibvlc_media_list_player_retain(libvlc_media_list_player_t*p_mlp)

Retain a reference to a media player list object.

LIBVLC_APIlibvlc_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.

LIBVLC_APIvoidlibvlc_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.

LIBVLC_APIvoidlibvlc_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.

LIBVLC_APIvoidlibvlc_media_list_player_play(libvlc_media_list_player_t*p_mlp)

Play media list.

LIBVLC_APIvoidlibvlc_media_list_player_pause(libvlc_media_list_player_t*p_mlp)

Toggle pause (or resume) media list.

LIBVLC_APIintlibvlc_media_list_player_is_playing(libvlc_media_list_player_t*p_mlp)

Is media list playing?

LIBVLC_APIlibvlc_state_tlibvlc_media_list_player_get_state(libvlc_media_list_player_t*p_mlp)

Get current libvlc_state of media list player.

LIBVLC_APIintlibvlc_media_list_player_play_item_at_index(libvlc_media_list_player_t*p_mlp, int i_index)

Play media list item at position index.

LIBVLC_APIintlibvlc_media_list_player_play_item(libvlc_media_list_player_t*p_mlp,libvlc_media_t*p_md)

Play the given media item.

LIBVLC_APIvoidlibvlc_media_list_player_stop(libvlc_media_list_player_t*p_mlp)

Stop playing media list.

LIBVLC_APIintlibvlc_media_list_player_next(libvlc_media_list_player_t*p_mlp)

Play next item from media list.

LIBVLC_APIintlibvlc_media_list_player_previous(libvlc_media_list_player_t*p_mlp)

Play previous item from media list.

LIBVLC_APIvoidlibvlc_media_list_player_set_playback_mode(libvlc_media_list_player_t*p_mlp,libvlc_playback_mode_te_mode)

Sets the playback mode for the playlist.

9.media player

你可能感兴趣的:(libVLC-2)