mediaplayer_request_events()

Start receiving Media player events.

Synopsis:

#include <bps/mediaplayer.h>
 
BPS_API int mediaplayer_request_events(int flags)

Since:

BlackBerry 10.0.0

Arguments:

flags

Additional flags that are reserved for future use. Set this value to 0 to request all Media player events.

Library:

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

Description:

The mediaplayer_request_events() function starts to deliver Media player events to your application using BlackBerry Platform Services (BPS). Events will be posted to the currently active channel.

Returns:

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