| | |
| | | @Schema(description = "是否暂停(录像回放使用)") |
| | | private boolean pause; |
| | | |
| | | @Schema(description = "转码后的视频流") |
| | | private StreamInfo transcodeStream; |
| | | |
| | | public void setFlv(StreamURL flv) { |
| | | this.flv = flv; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | 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.transactionInfo = transactionInfo; |
| | | } |
| | | |
| | | public StreamInfo getTranscodeStream() { |
| | | return transcodeStream; |
| | | } |
| | | |
| | | public void setTranscodeStream(StreamInfo transcodeStream) { |
| | | this.transcodeStream = transcodeStream; |
| | | } |
| | | |
| | | @Override |
| | | public StreamInfo clone() { |
| | | StreamInfo instance = null; |