| | |
| | |
|
| | | public static final String CALLBACK_CMD_DOWNLOAD = "CALLBACK_DOWNLOAD";
|
| | |
|
| | | public static final String CALLBACK_CMD_PROXY = "CALLBACK_PROXY";
|
| | |
|
| | | public static final String CALLBACK_CMD_STOP = "CALLBACK_STOP";
|
| | |
|
| | | public static final String UPLOAD_FILE_CHANNEL = "UPLOAD_FILE_CHANNEL";
|
| | |
|
| | | public static final String CALLBACK_CMD_MOBILEPOSITION = "CALLBACK_MOBILEPOSITION";
|
| | | public static final String CALLBACK_CMD_MOBILE_POSITION = "CALLBACK_CMD_MOBILE_POSITION";
|
| | |
|
| | | public static final String CALLBACK_CMD_PRESETQUERY = "CALLBACK_PRESETQUERY";
|
| | |
|
| | |
| | | map.remove(msg.getKey());
|
| | | }
|
| | | }
|
| | |
|
| | | /*============================设备主子码流逻辑START========================*/
|
| | | public static String getPlayKey(String deviceId,String channelId,boolean deviceSwitchSubStream,boolean isSubStream){
|
| | | String key = null;
|
| | | if(deviceSwitchSubStream){
|
| | | key = CALLBACK_CMD_PLAY + isSubStream + deviceId + channelId;
|
| | | }else {
|
| | | key = CALLBACK_CMD_PLAY +deviceId + channelId;
|
| | | }
|
| | | return key;
|
| | | }
|
| | |
|
| | | public static String getSnapKey(String deviceId,String channelId,boolean deviceSwitchSubStream,boolean isSubStream){
|
| | | String key = null;
|
| | | if(deviceSwitchSubStream){
|
| | | key = CALLBACK_CMD_SNAP + isSubStream + deviceId + channelId;
|
| | | }else {
|
| | | key = CALLBACK_CMD_SNAP +deviceId + channelId;
|
| | | }
|
| | | return key;
|
| | | }
|
| | |
|
| | |
|
| | | /*============================设备主子码流逻辑END========================*/
|
| | |
|
| | |
|
| | | }
|