Register the media player.
#include <bps/mediaplayer.h>
BPS_API int mediaplayer_register(const char *name,
int priority,
int audio_type,
int volume_overlay,
char **id)
BlackBerry 10.0.0
The descriptive name.
The priority, one of the values of the media_priority_t enumeration.
The audio type, one of the values of the media_audio_type_t enumeration.
The volume overlay, one of the values of the media_volume_overlay_t enumeration.
If not NULL, the ID used in the register request is returned in the id argument. The caller must free this buffer using the bps_free() function. This same ID will be delivered in the corresponding MEDIAPLAYER_REGISTER_RESULT event.
The mediaplayer_register() function registers the media player.
BPS_SUCCESS when the function completes successfully, BPS_FAILURE with errno value set otherwise.