status_e

Player status.

Synopsis:

#include <mmplayer/types.h>
 
typedef enum {
      STATUS_DESTROYED = 0,
      STATUS_IDLE,
      STATUS_PLAYING,
      STATUS_PAUSED,
      STATUS_STOPPED
} status_e;

Data:

STATUS_DESTROYED
Reserved for future use
STATUS_IDLE
The player is created but no tracksession is defined so playback is currently not possible
STATUS_PLAYING
A track is currently playing
STATUS_PAUSED
Playback is paused
STATUS_STOPPED
Playback is stopped, no track is selected, or an error has occurred

Library:

mmplayerclient

Description:

The status_e enumerated type defines the possible player statuses, which reflect the current playback support and activity. The initial status after a player has been created is STATUS_IDLE. Playback isn't possible until you call mm_player_create_trksession() to define a tracksession for the player, at which point its status changes to STATUS_STOPPED. The status returns to STATUS_IDLE when you destroy the tracksession.

A status of STATUS_PAUSED means that playback will resume at the same position if the client calls mm_player_play(). In contrast, the STATUS_STOPPED status means that playback will restart at the beginning of the current track if the client calls that last function.

The STATUS_DESTROYED status means that no state information could be read from the player. This status could be returned in an event's information if the connection to the player gets abruptly closed after the event is generated but before the API call to retrieve that event.