mediaplayer_event_get_command()

Retrieve the command from the MEDIAPLAYER_COMMAND event.

Synopsis:

#include <bps/mediaplayer.h>
 
BPS_API int mediaplayer_event_get_command(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The MEDIAPLAYER_COMMAND event to extract the command from.

Library:

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

Description:

The mediaplayer_event_get_command() function extracts the command from the specified MEDIAPLAYER_COMMAND event.

Returns:

The command, one of the values of the media_command_t enumeration, or BPS_FAILURE with errno value set on error.