mme_play_get_status()

Get the status of the current track

Synopsis:

#include <mme/mme.h>

int mme_play_get_status( mme_hdl_t *hdl,
                         mme_play_status_t *play_status);

Arguments:

hdl
An MME connection handle.
play_status
The pointer to the structure with the playback status information filled in by mme_play_get_status().

Library:

mme

Description:

The function mme_play_get_status() retrieves the status of a media play. It provides the total play time of the media track and the play time elapsed by filling in the structure mme_play_status_t pointed to by play_status. See mme_play_status_t in this reference.

Events

None delivered.

Blocking and validation

This function validates all data, and doesn't block.

Returns:

0
Success: MME retrieved the status of the media play and filled in the information in the structure mme_play_status_t.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

mme_play(), mme_play_get_info(), mme_play_get_status(), mme_play_set_output_attr(), mme_time_t, mme_playstate_t, mme_playstatus_t