| | |
| | | }
|
| | | String app = json.getString("app");
|
| | | String streamId = json.getString("id");
|
| | |
|
| | |
|
| | | if ("rtp".equals(app)) {
|
| | | String ssrc = new DecimalFormat("0000000000").format(Integer.parseInt(streamId, 16));
|
| | | StreamInfo streamInfoForPlay = storager.queryPlayBySSRC(ssrc);
|
| | | if ("rtp".equals(app) && streamInfoForPlay != null ) {
|
| | |
| | | streamInfoForPlayBack.setRtsp(String.format("rtsp://%s:%s/rtp/%s", mediaInfo.getWanIp(), mediaInfo.getRtspPort(), streamId));
|
| | | storager.startPlayback(streamInfoForPlayBack);
|
| | | }
|
| | | }
|
| | |
|
| | | // TODO Auto-generated method stub
|
| | |
|