00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __BG_PLAYERMSG_H_
00023 #define __BG_PLAYERMSG_H_
00024
00032 #define BG_PLAYER_STATE_INIT -1
00033 #define BG_PLAYER_STATE_STOPPED 0
00034 #define BG_PLAYER_STATE_PLAYING 1
00035 #define BG_PLAYER_STATE_SEEKING 2
00036 #define BG_PLAYER_STATE_CHANGING 3
00037 #define BG_PLAYER_STATE_BUFFERING 4
00038 #define BG_PLAYER_STATE_PAUSED 5
00039 #define BG_PLAYER_STATE_FINISHING 6
00040 #define BG_PLAYER_STATE_STARTING 7
00041 #define BG_PLAYER_STATE_ERROR 8
00042
00043
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 #define BG_PLAYER_CMD_PLAY 0
00059
00060
00061
00062 #define BG_PLAYER_CMD_STOP 1
00063
00064
00065
00066
00067
00068 #define BG_PLAYER_CMD_SEEK 2
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082 #define BG_PLAYER_CMD_SETSTATE 3
00083
00084
00085
00086 #define BG_PLAYER_CMD_QUIT 4
00087
00088
00089
00090 #define BG_PLAYER_CMD_SET_OV_PLUGIN 5
00091
00092 #define BG_PLAYER_CMD_SET_OA_PLUGIN 6
00093
00094
00095
00096 #define BG_PLAYER_CMD_SET_NAME 7
00097
00098
00099
00100 #define BG_PLAYER_CMD_PAUSE 8
00101
00102
00103
00104
00105
00106 #define BG_PLAYER_CMD_SEEK_REL 10
00107
00108
00109
00110 #define BG_PLAYER_CMD_SET_VOLUME 11
00111
00112
00113
00114 #define BG_PLAYER_CMD_SET_VOLUME_REL 12
00115
00116
00117
00118
00119 #define BG_PLAYER_CMD_PLAY_PAUSE 13
00120
00121 #define BG_PLAYER_CMD_SET_AUDIO_STREAM 14
00122 #define BG_PLAYER_CMD_SET_VIDEO_STREAM 15
00123 #define BG_PLAYER_CMD_SET_SUBTITLE_STREAM 16
00124
00125
00126
00127
00128
00129 #define BG_PLAYER_CMD_KEY 17
00130
00131 #define BG_PLAYER_CMD_CHANGE 18
00132
00133
00134 #define BG_PLAYER_CMD_TOGGLE_MUTE 19
00135
00136 #define BG_PLAYER_CMD_SET_CHAPTER 20
00137
00138 #define BG_PLAYER_CMD_NEXT_CHAPTER 21
00139
00140 #define BG_PLAYER_CMD_PREV_CHAPTER 22
00141
00142 #define BG_PLAYER_CMD_INTERRUPT 23
00143 #define BG_PLAYER_CMD_INTERRUPT_RESUME 24
00144
00145
00146
00147
00148
00162 #define BG_PLAYER_MSG_TIME_CHANGED 0
00163
00172 #define BG_PLAYER_MSG_TRACK_CHANGED 1
00173
00186 #define BG_PLAYER_MSG_STATE_CHANGED 2
00187
00196 #define BG_PLAYER_MSG_TRACK_NAME 3
00197
00203 #define BG_PLAYER_MSG_TRACK_DURATION 5
00204
00214 #define BG_PLAYER_MSG_TRACK_NUM_STREAMS 4
00215
00225 #define BG_PLAYER_MSG_AUDIO_STREAM 6
00226
00236 #define BG_PLAYER_MSG_VIDEO_STREAM 7
00237
00238
00248 #define BG_PLAYER_MSG_SUBTITLE_STREAM 9
00249
00250
00251
00257 #define BG_PLAYER_MSG_METADATA 10
00258
00264 #define BG_PLAYER_MSG_AUDIO_DESCRIPTION 11
00265
00270 #define BG_PLAYER_MSG_VIDEO_DESCRIPTION 12
00271
00272
00278 #define BG_PLAYER_MSG_SUBTITLE_DESCRIPTION 14
00279
00284 #define BG_PLAYER_MSG_STREAM_DESCRIPTION 15
00285
00290 #define BG_PLAYER_MSG_VOLUME_CHANGED 16
00291
00304 #define BG_PLAYER_MSG_AUDIO_STREAM_INFO 17
00305
00318 #define BG_PLAYER_MSG_VIDEO_STREAM_INFO 18
00319
00331 #define BG_PLAYER_MSG_SUBTITLE_STREAM_INFO 19
00332
00343 #define BG_PLAYER_MSG_ACCEL 20
00344
00345
00351 #define BG_PLAYER_MSG_CLEANUP 21
00352
00359 #define BG_PLAYER_MSG_MUTE 22
00360
00366 #define BG_PLAYER_MSG_NUM_CHAPTERS 23
00367
00375 #define BG_PLAYER_MSG_CHAPTER_INFO 24
00376
00382 #define BG_PLAYER_MSG_CHAPTER_CHANGED 25
00383
00387 #define BG_PLAYER_MSG_INTERRUPT 26
00388
00392 #define BG_PLAYER_MSG_INTERRUPT_RESUME 27
00393
00400 #define BG_PLAYER_MSG_INPUT 28
00401
00402
00406 #endif // __BG_PLAYERMSG_H_