22 #ifndef __BG_PLAYERMSG_H_
23 #define __BG_PLAYERMSG_H_
32 #define BG_PLAYER_STATE_INIT -1
33 #define BG_PLAYER_STATE_STOPPED 0
34 #define BG_PLAYER_STATE_PLAYING 1
35 #define BG_PLAYER_STATE_SEEKING 2
36 #define BG_PLAYER_STATE_CHANGING 3
37 #define BG_PLAYER_STATE_BUFFERING 4
38 #define BG_PLAYER_STATE_PAUSED 5
39 #define BG_PLAYER_STATE_EOF 6
40 #define BG_PLAYER_STATE_STARTING 8
41 #define BG_PLAYER_STATE_ERROR 9
58 #define BG_PLAYER_CMD_PLAY 0
62 #define BG_PLAYER_CMD_STOP 1
68 #define BG_PLAYER_CMD_SEEK 2
82 #define BG_PLAYER_CMD_SETSTATE 3
86 #define BG_PLAYER_CMD_QUIT 4
90 #define BG_PLAYER_CMD_SET_OV_PLUGIN 5
92 #define BG_PLAYER_CMD_SET_OA_PLUGIN 6
96 #define BG_PLAYER_CMD_SET_NAME 7
100 #define BG_PLAYER_CMD_PAUSE 8
106 #define BG_PLAYER_CMD_SEEK_REL 10
110 #define BG_PLAYER_CMD_SET_VOLUME 11
114 #define BG_PLAYER_CMD_SET_VOLUME_REL 12
119 #define BG_PLAYER_CMD_PLAY_PAUSE 13
121 #define BG_PLAYER_CMD_SET_AUDIO_STREAM 14
122 #define BG_PLAYER_CMD_SET_VIDEO_STREAM 15
123 #define BG_PLAYER_CMD_SET_SUBTITLE_STREAM 16
129 #define BG_PLAYER_CMD_KEY 17
131 #define BG_PLAYER_CMD_CHANGE 18
134 #define BG_PLAYER_CMD_TOGGLE_MUTE 19
136 #define BG_PLAYER_CMD_SET_CHAPTER 20
138 #define BG_PLAYER_CMD_NEXT_CHAPTER 21
140 #define BG_PLAYER_CMD_PREV_CHAPTER 22
142 #define BG_PLAYER_CMD_INTERRUPT 23
143 #define BG_PLAYER_CMD_INTERRUPT_RESUME 24
162 #define BG_PLAYER_MSG_TIME_CHANGED 0
172 #define BG_PLAYER_MSG_TRACK_CHANGED 1
186 #define BG_PLAYER_MSG_STATE_CHANGED 2
196 #define BG_PLAYER_MSG_TRACK_NAME 3
203 #define BG_PLAYER_MSG_TRACK_DURATION 5
214 #define BG_PLAYER_MSG_TRACK_NUM_STREAMS 4
225 #define BG_PLAYER_MSG_AUDIO_STREAM 6
236 #define BG_PLAYER_MSG_VIDEO_STREAM 7
248 #define BG_PLAYER_MSG_SUBTITLE_STREAM 9
257 #define BG_PLAYER_MSG_METADATA 10
263 #define BG_PLAYER_MSG_VOLUME_CHANGED 16
277 #define BG_PLAYER_MSG_AUDIO_STREAM_INFO 17
291 #define BG_PLAYER_MSG_VIDEO_STREAM_INFO 18
304 #define BG_PLAYER_MSG_SUBTITLE_STREAM_INFO 19
316 #define BG_PLAYER_MSG_ACCEL 20
324 #define BG_PLAYER_MSG_CLEANUP 21
332 #define BG_PLAYER_MSG_MUTE 22
339 #define BG_PLAYER_MSG_NUM_CHAPTERS 23
348 #define BG_PLAYER_MSG_CHAPTER_INFO 24
355 #define BG_PLAYER_MSG_CHAPTER_CHANGED 25
360 #define BG_PLAYER_MSG_INTERRUPT 26
365 #define BG_PLAYER_MSG_INTERRUPT_RESUME 27
373 #define BG_PLAYER_MSG_INPUT 28
381 #define BG_PLAYER_MSG_AUDIO_PEAK 29
386 #endif // __BG_PLAYERMSG_H_