mm_player_open()

Open a connection to a player.

Synopsis:

#include <mmplayer/mmplayerclient.h>
 
int mm_player_open( mmplayer_hdl_t *hdl, 
                    const char *player_name, 
                    int oflag )

Arguments:

hdl
The mm-player connection handle
player_name
The player to connect to
oflag
Flags specifying the status and access modes. This field is unused and should be set to 0.

Library:

mmplayerclient

Description:

Open a connection to the player specified by player_name. If the player doesn't exist, it gets created. The player is the mechanism that carries out the browsing and playback actions, so all subsequent API commands using the same mm-player handle will be directed to this player.

Returns:

0 on success, -1 on failure