X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc%2Flibvlc_media_list_player.h;h=bd7563585547ddd87484dc96516f7c3a7f904578;hb=f7ef9010f8c65b6a66a14c9c1000dc1f29f56027;hp=634881a39f8609ac871aa1ffbb9d7c30e10ecab0;hpb=8d875234ec302aec877c35682d9b1dc2d7b22982;p=vlc diff --git a/include/vlc/libvlc_media_list_player.h b/include/vlc/libvlc_media_list_player.h index 634881a39f..bd75635855 100644 --- a/include/vlc/libvlc_media_list_player.h +++ b/include/vlc/libvlc_media_list_player.h @@ -36,10 +36,13 @@ extern "C" { /***************************************************************************** * Media List Player *****************************************************************************/ -/** \defgroup libvlc_media_list_player libvlc_media_list_player +/** \defgroup libvlc_media_list_player LibVLC media list player * \ingroup libvlc - * LibVLC Media List Player, play a media_list. You can see that as a media - * instance subclass + * The LibVLC media list player plays a @ref libvlc_media_list_t list of media, + * in a certain order. + * This is required to especially support playlist files. + * The normal @ref libvlc_media_player_t LibVLC media player can only play a + * single media, and does not handle playlist files properly. * @{ */ @@ -59,7 +62,6 @@ typedef enum libvlc_playback_mode_t * Create new media_list_player. * * \param p_instance libvlc instance - * \param p_e initialized exception instance * \return media list player instance or NULL on error */ VLC_PUBLIC_API libvlc_media_list_player_t * @@ -77,6 +79,7 @@ VLC_PUBLIC_API void * Return the event manager of this media_list_player. * * \param p_mlp media list player instance + * \return the event manager */ VLC_PUBLIC_API libvlc_event_manager_t * libvlc_media_list_player_event_manager(libvlc_media_list_player_t * p_mlp); @@ -86,13 +89,18 @@ VLC_PUBLIC_API libvlc_event_manager_t * * * \param p_mlp media list player instance * \param p_mi media player instance - * \param p_e initialized exception instance */ VLC_PUBLIC_API void libvlc_media_list_player_set_media_player( libvlc_media_list_player_t * p_mlp, libvlc_media_player_t * p_mi ); +/** + * Set the media list associated with the player + * + * \param p_mlp media list player instance + * \param p_mlist list of media + */ VLC_PUBLIC_API void libvlc_media_list_player_set_media_list( libvlc_media_list_player_t * p_mlp, @@ -102,27 +110,22 @@ VLC_PUBLIC_API void * Play media list * * \param p_mlp media list player instance - * \param p_e initialized exception instance */ -VLC_PUBLIC_API void - libvlc_media_list_player_play( libvlc_media_list_player_t * p_mlp, - libvlc_exception_t * p_e ); +VLC_PUBLIC_API +void libvlc_media_list_player_play(libvlc_media_list_player_t * p_mlp); /** * Pause media list * * \param p_mlp media list player instance - * \param p_e initialized exception instance */ -VLC_PUBLIC_API void - libvlc_media_list_player_pause( libvlc_media_list_player_t * p_mlp, - libvlc_exception_t * p_e ); +VLC_PUBLIC_API +void libvlc_media_list_player_pause(libvlc_media_list_player_t * p_mlp); /** * Is media list playing? * * \param p_mlp media list player instance - * \param p_e initialized exception instance * \return true for playing and false for not playing */ VLC_PUBLIC_API int @@ -142,19 +145,22 @@ VLC_PUBLIC_API libvlc_state_t * * \param p_mlp media list player instance * \param i_index index in media list to play - * \param p_e initialized exception instance + * \return 0 upon success -1 if the item wasn't found */ -VLC_PUBLIC_API void - libvlc_media_list_player_play_item_at_index( - libvlc_media_list_player_t * p_mlp, - int i_index, - libvlc_exception_t * p_e ); +VLC_PUBLIC_API +int libvlc_media_list_player_play_item_at_index(libvlc_media_list_player_t * p_mlp, + int i_index); -VLC_PUBLIC_API void - libvlc_media_list_player_play_item( - libvlc_media_list_player_t * p_mlp, - libvlc_media_t * p_md, - libvlc_exception_t * p_e ); +/** + * Play the given media item + * + * \param p_mlp media list player instance + * \param p_md the media instance + * \return 0 upon success, -1 if the media is not part of the media list + */ +VLC_PUBLIC_API +int libvlc_media_list_player_play_item(libvlc_media_list_player_t * p_mlp, + libvlc_media_t * p_md); /** * Stop playing media list @@ -162,27 +168,25 @@ VLC_PUBLIC_API void * \param p_mlp media list player instance */ VLC_PUBLIC_API void - libvlc_media_list_player_stop( libvlc_media_list_player_t * p_mlp ); + libvlc_media_list_player_stop( libvlc_media_list_player_t * p_mlp); /** * Play next item from media list * * \param p_mlp media list player instance - * \param p_e initialized exception instance + * \return 0 upon success -1 if there is no next item */ -VLC_PUBLIC_API void - libvlc_media_list_player_next( libvlc_media_list_player_t * p_mlp, - libvlc_exception_t * p_e ); +VLC_PUBLIC_API +int libvlc_media_list_player_next(libvlc_media_list_player_t * p_mlp); /** * Play previous item from media list * * \param p_mlp media list player instance - * \param p_e initialized exception instance + * \return 0 upon success -1 if there is no previous item */ -VLC_PUBLIC_API void - libvlc_media_list_player_previous( libvlc_media_list_player_t * p_mlp, - libvlc_exception_t * p_e ); +VLC_PUBLIC_API +int libvlc_media_list_player_previous(libvlc_media_list_player_t * p_mlp); @@ -192,10 +196,9 @@ VLC_PUBLIC_API void * \param p_mlp media list player instance * \param e_mode playback mode specification */ -VLC_PUBLIC_API void - libvlc_media_list_player_set_playback_mode( - libvlc_media_list_player_t * p_mlp, - libvlc_playback_mode_t e_mode ); +VLC_PUBLIC_API +void libvlc_media_list_player_set_playback_mode(libvlc_media_list_player_t * p_mlp, + libvlc_playback_mode_t e_mode ); /** @} media_list_player */