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