648540858
2024-06-14 f3ea07bdcd722d667e16b7a880f41a30b9374732
src/main/java/com/genersoft/iot/vmp/vmanager/bean/StreamContent.java
old mode 100644 new mode 100755
@@ -1,6 +1,7 @@
package com.genersoft.iot.vmp.vmanager.bean;
import com.genersoft.iot.vmp.common.StreamInfo;
import com.genersoft.iot.vmp.service.bean.DownloadFileInfo;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(description = "流信息")
@@ -93,6 +94,12 @@
    @Schema(description = "结束时间")
    private String endTime;
    @Schema(description = "文件下载地址(录像下载使用)")
    private DownloadFileInfo downLoadFilePath;
    @Schema(description = "转码后的视频流")
    private StreamContent transcodeStream;
    private double progress;
    public StreamContent(StreamInfo streamInfo) {
@@ -170,6 +177,21 @@
        this.startTime = streamInfo.getStartTime();
        this.endTime = streamInfo.getEndTime();
        this.progress = streamInfo.getProgress();
        if (streamInfo.getDownLoadFilePath() != null) {
            this.downLoadFilePath = streamInfo.getDownLoadFilePath();
        }
        if (streamInfo.getTranscodeStream() != null) {
            this.transcodeStream = new StreamContent(streamInfo.getTranscodeStream());
        }
    }
    public StreamContent getTranscodeStream() {
        return transcodeStream;
    }
    public void setTranscodeStream(StreamContent transcodeStream) {
        this.transcodeStream = transcodeStream;
    }
    public String getApp() {
@@ -411,4 +433,12 @@
    public void setProgress(double progress) {
        this.progress = progress;
    }
    public DownloadFileInfo getDownLoadFilePath() {
        return downLoadFilePath;
    }
    public void setDownLoadFilePath(DownloadFileInfo downLoadFilePath) {
        this.downLoadFilePath = downLoadFilePath;
    }
}