mm_player_get_current_state()

Get the player's state.

Synopsis:

#include <mmplayer/mmplayerclient.h>

int mm_player_get_current_state( mmplayer_hdl_t *hdl, 
                                 mmp_state_t **state )

Arguments:

hdl
The mm-player connection handle
state
The player's current state

Library:

mmplayerclient

Description:

Get the state of the currently connected player. The library allocates memory for the structure referenced in state but it's the caller's responsibility to later deallocate that memory.

Returns:

0 on success, -1 on failure