| | |
| | | return monicaResult; |
| | | } |
| | | |
| | | @RequestMapping(value = "/history", method = RequestMethod.GET) |
| | | @ApiOperation("history") |
| | | public MonicaResult History(@RequestParam("param")String param,@RequestParam("startTime")String startTime) { |
| | | @RequestMapping(value = "rtsp/live", method = RequestMethod.GET) |
| | | @ApiOperation("liveRTSP") |
| | | public MonicaResult liveRTSP(@RequestParam("param")String param) { |
| | | MonicaResult monicaResult = new MonicaResult(); |
| | | try { |
| | | monicaResult.setSourceURL("rtsp:////"); |
| | |
| | | return monicaResult; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/history", method = RequestMethod.GET) |
| | | @ApiOperation("history") |
| | | public MonicaResult history(@RequestParam("param")String param,@RequestParam("startTime")String startTime) { |
| | | MonicaResult monicaResult = new MonicaResult(); |
| | | try { |
| | | monicaResult.setSourceURL("rtsp:////"); |
| | | monicaResult.setHlsURL(""); |
| | | monicaResult.setFlvURL(""); |
| | | monicaResult.setJessicaURL("ws://172.16.30.113:8082/live/ff80808178af424e0178af44e677000343616d657261.flv"); |
| | | monicaResult.setWebrtcURL(""); |
| | | monicaResult.setStreamPath("live/ff80808178af424e0178af44e677000343616d657261"); |
| | | |
| | | return monicaResult; |
| | | } catch (Exception e) { |
| | | log.error("接口:com.hbbh.adapter.controller.api.MonibucaAPIController.parseVideoRTSP 调用失败"); |
| | | e.printStackTrace(); |
| | | } |
| | | return monicaResult; |
| | | } |
| | | |
| | | @RequestMapping(value = "rtsp/history", method = RequestMethod.GET) |
| | | @ApiOperation("historyRTSP") |
| | | public MonicaResult historyRTSP(@RequestParam("param")String param,@RequestParam("startTime")String startTime) { |
| | | MonicaResult monicaResult = new MonicaResult(); |
| | | try { |
| | | monicaResult.setSourceURL("rtsp:////"); |
| | | monicaResult.setHlsURL(""); |
| | | monicaResult.setFlvURL(""); |
| | | monicaResult.setJessicaURL("ws://172.16.30.113:8082/live/ff80808178af424e0178af44e677000343616d657261.flv"); |
| | | monicaResult.setWebrtcURL(""); |
| | | monicaResult.setStreamPath("live/ff80808178af424e0178af44e677000343616d657261"); |
| | | |
| | | return monicaResult; |
| | | } catch (Exception e) { |
| | | log.error("接口:com.hbbh.adapter.controller.api.MonibucaAPIController.parseVideoRTSP 调用失败"); |
| | | e.printStackTrace(); |
| | | } |
| | | return monicaResult; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/stop", method = RequestMethod.GET) |
| | | @ApiOperation("stop") |
| | | public String stop(@RequestParam("param")String param) { |
| | |
| | | HistoryComponent.prototype.playVideo = function (video_id,starttime, callback) { |
| | | $.ajax({ |
| | | type: "get", |
| | | url: "../../webapi/media/historical?param=" + video_id+ "&startTime=" + starttime+"&endTime=", |
| | | url: "../../monica/history?param=" + video_id+ "&startTime=" + starttime+"&endTime=", |
| | | timeout: 5000, |
| | | async: false, |
| | | success: function (result) { |
| | |
| | | HistoryComponent.prototype.playVideoRTSP = function (rtspURL,starttime, callback) { |
| | | $.ajax({ |
| | | type: "get", |
| | | url: "../../webapi/media/rtsp/historical?param=" + rtspURL+ "&startTime=" + starttime+"&endTime=", |
| | | url: "../../monica/rtsp/history?param=" + rtspURL+ "&startTime=" + starttime+"&endTime=", |
| | | timeout: 5000, |
| | | async: false, |
| | | success: function (result) { |
| | |
| | | if (streamPath && typeof streamPath === "string") { |
| | | $.ajax({ |
| | | type: "get", |
| | | url: "../../webapi/media/stop?param=" + streamPath, |
| | | url: "../../monica/stop?param=" + streamPath, |
| | | async: false, |
| | | success: function (result) { |
| | | } |
| | |
| | | LiveComponent.prototype.playVideo = function (video_id, callback) { |
| | | $.ajax({ |
| | | type: "get", |
| | | url: "../../webapi/media/live?param=" + video_id, |
| | | url: "../../monica/live?param=" + video_id, |
| | | timeout: 5000, |
| | | async: false, |
| | | success: function (result) { |
| | |
| | | LiveComponent.prototype.playVideoRTSP = function (rtspUrl, callback) { |
| | | $.ajax({ |
| | | type: "get", |
| | | url: "../../webapi/media/rtsp/live?param=" + rtspUrl, |
| | | url: "../../monica/rtsp/live?param=" + rtspUrl, |
| | | timeout: 5000, |
| | | async: false, |
| | | success: function (result) { |
| | |
| | | if (streamPath && typeof streamPath === "string") { |
| | | $.ajax({ |
| | | type: "get", |
| | | url: "../../webapi/media/stop?param=" + streamPath, |
| | | url: "../../monica/stop?param=" + streamPath, |
| | | async: false, |
| | | success: function (result) { |
| | | } |