| | |
| | | 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) { |
| | | } |