| | |
| | | package com.genersoft.iot.vmp.common; |
| | | |
| | | import com.genersoft.iot.vmp.service.bean.DownloadFileInfo; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | private String endTime; |
| | | @Schema(description = "进度(录像下载使用)") |
| | | private double progress; |
| | | @Schema(description = "文件下载地址(录像下载使用)") |
| | | private DownloadFileInfo downLoadFilePath; |
| | | |
| | | @Schema(description = "是否暂停(录像回放使用)") |
| | | private boolean pause; |
| | |
| | | } |
| | | } |
| | | |
| | | public void setRtc(String host, int port, int sslPort, String app, String stream, String callIdParam) { |
| | | public void setRtc(String host, int port, int sslPort, String app, String stream, String callIdParam, boolean isPlay) { |
| | | if (callIdParam != null) { |
| | | callIdParam = Objects.equals(callIdParam, "") ? callIdParam : callIdParam.replace("?", "&"); |
| | | } |
| | | String file = String.format("index/api/webrtc?app=%s&stream=%s&type=play%s", app, stream, callIdParam); |
| | | String file = String.format("index/api/webrtc?app=%s&stream=%s&type=%s%s", app, stream, isPlay?"play":"push", callIdParam); |
| | | if (port > 0) { |
| | | this.rtc = new StreamURL("http", host, port, file); |
| | | } |
| | |
| | | this.subStream = subStream; |
| | | } |
| | | |
| | | public DownloadFileInfo getDownLoadFilePath() { |
| | | return downLoadFilePath; |
| | | } |
| | | |
| | | public void setDownLoadFilePath(DownloadFileInfo downLoadFilePath) { |
| | | this.downLoadFilePath = downLoadFilePath; |
| | | } |
| | | } |