Set the state of the media player.
#include <bps/mediaplayer.h>
BPS_API int mediaplayer_set_state(int state)
BlackBerry 10.0.0
The state to set the media player to, must be one of the value of the media_state_t enumeration.
The mediaplayer_set_state() function sets the state of the media player to a given state.
BPS_SUCCESS when the function completes successfully, BPS_FAILURE with errno value set otherwise.