21 #ifndef NDL_DIRECTMEDIA2_ESPLAYER_API_H_
22 #define NDL_DIRECTMEDIA2_ESPLAYER_API_H_
26 #include "ndl-directmedia2/media-common.h"
27 #include "ndl-directmedia2/states.h"
33 typedef void* NDL_EsplayerHandle;
34 typedef void NDL_EsplayerCallback(NDL_ESP_EVENT event,
void* playerdata,
void* userdata);
44 NDL_EsplayerHandle NDL_EsplayerCreate(
const char* appid, NDL_EsplayerCallback callback,
void* userdata);
49 void NDL_EsplayerDestroy(NDL_EsplayerHandle player);
58 int NDL_EsplayerGetConnectionId(NDL_EsplayerHandle player,
char* buf,
size_t buf_len);
74 int NDL_EsplayerLoadEx(NDL_EsplayerHandle player,
NDL_ESP_META_DATA* meta, NDL_ESP_PTS_UNITS units);
80 int NDL_EsplayerUnload(NDL_EsplayerHandle player);
87 int NDL_EsplayerPlay(NDL_EsplayerHandle player);
94 int NDL_EsplayerPause(NDL_EsplayerHandle player);
110 int NDL_EsplayerStepFrame(NDL_EsplayerHandle player);
118 int NDL_EsplayerFlush(NDL_EsplayerHandle player);
125 int NDL_EsplayerGetBufferLevel(NDL_EsplayerHandle player, NDL_ESP_STREAM_T type, uint32_t * level);
130 NDL_ESP_STATUS NDL_EsplayerGetStatus(NDL_EsplayerHandle player);
135 int NDL_EsplayerGetMediatime(NDL_EsplayerHandle player, int64_t* start_time, int64_t* current_time);
142 int NDL_EsplayerSetPlaybackRate(NDL_EsplayerHandle player,
int rate);
157 int NDL_EsplayerSetVideoDisplayWindow(NDL_EsplayerHandle player,
158 long left,
long top,
long width,
long height,
int isFullScreen);
167 int NDL_EsplayerSetVideoCustomDisplayWindow(NDL_EsplayerHandle player,
168 long src_left,
long src_top,
long src_width,
long src_height,
169 long dst_left,
long dst_top,
long dst_width,
long dst_height,
176 int NDL_EsplayerSetAppForegroundState(NDL_EsplayerHandle player, NDL_ESP_APP_STATE appState);
184 int NDL_EsplayerMuteAudio(NDL_EsplayerHandle player,
int mute);
191 int NDL_EsplayerMuteVideo(NDL_EsplayerHandle player,
int mute);
198 int NDL_EsplayerSet3DType(NDL_EsplayerHandle player, NDL_ESP_3D_TYPE e3DType);
207 int NDL_EsplayerSetTrickMode(NDL_EsplayerHandle player,
int enable);
217 int NDL_EsplayerSetVolume(NDL_EsplayerHandle player,
int volume,
int duration, NDL_ESP_EASE_TYPE type);
Definition: media-common.h:37