Set the duration in a metadata structure.
#include <bps/mediaplayer.h>
BPS_API int mediaplayer_metadata_set_duration(mediaplayer_metadata_t *metadata,
int duration)
BlackBerry 10.0.0
The mediaplayer_metadata_t structure to update.
The duration. Use a negative number to leave duration unspecified.
The mediaplayer_metadata_set_duration() function sets the duration in the given metadata structure.
BPS_SUCCESS when the function completes successfully, BPS_FAILURE with errno value set otherwise.