Browse a media node within a media source.
#include <mmplayer/mmplayerclient.h> int mm_player_browse( mmplayer_hdl_t *hdl, const int media_source_id, const char *media_node_id, const int offset, int *limit, mmp_ms_node_t **media_nodes )
Browse the contents of the folder media node identified by media_node_id and located on the media source identified by media_source_id. To start browsing a new media source with an unknown directory structure, pass in "/" for media_node_id to indicate the root folder.
You can define offset to make mm-player browse media nodes starting from a certain index in the set of items contained in the media node being browsed. You can also define limit to restrict how many items can be returned.
The media nodes returned by this function can be folders (which can contain other media nodes) or individual media files such as audio tracks, videos, or photos (i.e., leaf nodes). The library allocates memory for the media_nodes array but it's the caller's responsibility to later deallocate that memory. Each array element stores information on a single media node found during browsing.
0 on success, -1 on failure