mediaplayer_set_state()

Set the state of the media player.

Synopsis:

#include <bps/mediaplayer.h>
 
BPS_API int mediaplayer_set_state(int state)

Since:

BlackBerry 10.0.0

Arguments:

state

The state to set the media player to, must be one of the value of the media_state_t enumeration.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The mediaplayer_set_state() function sets the state of the media player to a given state.

Returns:

BPS_SUCCESS when the function completes successfully, BPS_FAILURE with errno value set otherwise.