uvoice_player

结构体

struct  uvoice_player_t
 播放接口 更多...
 

枚举

enum  player_state_t {
  PLAYER_STAT_IDLE = 0 , PLAYER_STAT_READY , PLAYER_STAT_RUNNING , PLAYER_STAT_PAUSED ,
  PLAYER_STAT_RESUME , PLAYER_STAT_STOP , PLAYER_STAT_COMPLETE , PLAYER_STAT_SEEK_CPLT ,
  PLAYER_STAT_MEDIA_INFO , PLAYER_STAT_SOURCE_INVALID , PLAYER_STAT_FORMAT_UNSUPPORT , PLAYER_STAT_LIST_PLAY_START ,
  PLAYER_STAT_LIST_PLAY_STOP , PLAYER_STAT_ERROR
}
 播放状态 更多...
 

函数

uvoice_player_tuvoice_player_create (void)
 
int uvoice_player_release (uvoice_player_t *mplayer)
 

详细描述

枚举类型说明

◆ player_state_t

播放状态

枚举值
PLAYER_STAT_IDLE 
PLAYER_STAT_READY 
PLAYER_STAT_RUNNING 
PLAYER_STAT_PAUSED 
PLAYER_STAT_RESUME 
PLAYER_STAT_STOP 
PLAYER_STAT_COMPLETE 
PLAYER_STAT_SEEK_CPLT 
PLAYER_STAT_MEDIA_INFO 
PLAYER_STAT_SOURCE_INVALID 
PLAYER_STAT_FORMAT_UNSUPPORT 
PLAYER_STAT_LIST_PLAY_START 
PLAYER_STAT_LIST_PLAY_STOP 
PLAYER_STAT_ERROR 

在文件 uvoice_player.h17 行定义.

函数说明

◆ uvoice_player_create()

uvoice_player_t* uvoice_player_create ( void  )

创建播放器

@retrun 成功返回非NULL指针,失败返回NULL.

◆ uvoice_player_release()

int uvoice_player_release ( uvoice_player_t mplayer)

释放播放器.

参数
[in]mplayer创建播放器时返回的指针.
返回
0成功,其他失败.