9 typedef void (*AcbAPI_Callback)(
long acbId,
long taskId,
long eventType,
long appState,
long playState,
const char *reply);
11 typedef enum AcbAPI_PlayerType
13 PLAYER_TYPE_GROUP = 0,
14 PLAYER_TYPE_VIDEO = 0,
15 PLAYER_TYPE_VIDEO_UNMUTED_AFTER_PLAYING = 1,
17 PLAYER_TYPE_HTML5_AUDIO,
19 PLAYER_TYPE_EXT_INPUT,
22 PLAYER_TYPE_DIRECT_VIDEO,
23 PLAYER_TYPE_DIRECT_AUDIO,
29 typedef enum AcbAPI_SinkType
35 typedef enum AcbAPI_AppState
37 APPSTATE_INITIALIZED = 0,
38 APPSTATE_FOREGROUND = 1,
39 APPSTATE_BACKGROUND = 2,
42 typedef enum AcbAPI_PlayState
44 PLAYSTATE_UNLOADED = 0,
46 PLAYSTATE_PLAYING = 2,
50 long AcbAPI_create(
void);
52 bool AcbAPI_initialize(
long acbId, AcbAPI_PlayerType playerType,
const char *appId, AcbAPI_Callback callback);
54 bool AcbAPI_setMediaId(
long acbId,
const char *connId);
56 bool AcbAPI_setSinkType(
long acbId, AcbAPI_SinkType sinkType);
58 int AcbAPI_setMediaAudioData(
long acbId,
const char *payload,
long *taskId);
60 int AcbAPI_setMediaVideoData(
long acbId,
const char *payload,
long *taskId);
62 int AcbAPI_setState(
long acbId, AcbAPI_AppState appState, AcbAPI_PlayState playState,
long *taskId);
64 int AcbAPI_setDisplayWindow(
long acbId,
long x,
long y,
long w,
long h,
bool fullScreen,
long *taskId);
66 int AcbAPI_setCustomDisplayWindow(
long acbId,
long in_x,
long in_y,
long in_w,
long in_h,
long out_x,
long out_y,
long out_w,
long out_h,
bool fullScreen,
long *taskId);
68 int AcbAPI_startMute(
long acbId,
bool audio,
bool video,
long *taskId);
70 int AcbAPI_stopMute(
long acbId,
bool audio,
bool video,
long *taskId);
72 int AcbAPI_finalize(
long acbId);
74 void AcbAPI_destroy(
long acbId);