1 /*****************************************************************
2  * gmerlin - a general purpose multimedia framework and applications
3  *
4  * Copyright (c) 2001 - 2011 Members of the Gmerlin project
5  * gmerlin-general@lists.sourceforge.net
6  * http://gmerlin.sourceforge.net
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20  * *****************************************************************/
21 
22 #define PLAYER_REMOTE_PORT (BG_REMOTE_PORT_BASE+1)
23 #define PLAYER_REMOTE_ID "gmerlin_player"
24 #define PLAYER_REMOTE_ENV "GMERLIN_PLAYER_REMOTE_PORT"
25 
26 
27 /* Player commands */
28 
29 /* These resemble the player buttons */
30 
31 #define PLAYER_COMMAND_PLAY           1
32 #define PLAYER_COMMAND_STOP           2
33 #define PLAYER_COMMAND_NEXT           3
34 #define PLAYER_COMMAND_PREV           4
35 #define PLAYER_COMMAND_PAUSE          5
36 
37 /* Add or play a location (arg1: Location) */
38 
39 #define PLAYER_COMMAND_ADD_LOCATION   6
40 #define PLAYER_COMMAND_PLAY_LOCATION  7
41 
42 
43 /* Volume control (arg: Volume in dB) */
44 
45 #define PLAYER_COMMAND_SET_VOLUME     8
46 #define PLAYER_COMMAND_SET_VOLUME_REL 9
47 
48 /* Seek */
49 
50 #define PLAYER_COMMAND_SEEK           10
51 #define PLAYER_COMMAND_SEEK_REL       11
52 
53 /* Open devices */
54 
55 #define PLAYER_COMMAND_OPEN_DEVICE    12
56 #define PLAYER_COMMAND_PLAY_DEVICE    13
57 
58 /* Mute */
59 
60 #define PLAYER_COMMAND_TOGGLE_MUTE    14
61 
62 /* Chapters */
63 
64 #define PLAYER_COMMAND_SET_CHAPTER    15
65 #define PLAYER_COMMAND_NEXT_CHAPTER   16
66 #define PLAYER_COMMAND_PREV_CHAPTER   17
67 
68 /* Query values */
69 
70 #define PLAYER_COMMAND_GET_NAME       (1<<8)
71 #define PLAYER_COMMAND_GET_METADATA   (2<<8)
72 #define PLAYER_COMMAND_GET_TIME       (3<<8)
73 
74 /* Query responses */
75 
76 #define PLAYER_RESPONSE_GET_NAME      (1<<16)
77 #define PLAYER_RESPONSE_GET_METADATA  (2<<16)
78 #define PLAYER_RESPONSE_GET_TIME      (3<<16)
79 
80