Commit ed806017 by songxiang

预习课自定义截取视频封面图

parent 3df84c28
...@@ -9,216 +9,232 @@ import java.io.Serializable; ...@@ -9,216 +9,232 @@ import java.io.Serializable;
/** /**
* @描述: * @描述:
*
* @作者:songx * @作者:songx
* @创建时间:2017年2月27日,上午11:23:29 @版本:1.0 * @创建时间:2017年2月27日,上午11:23:29 @版本:1.0
*/ */
public class ConvertQueueDto implements Serializable { public class ConvertQueueDto implements Serializable {
/** /**
* *
*/ */
private static final long serialVersionUID = 7968821573480010447L; private static final long serialVersionUID = 7968821573480010447L;
/** /**
* 标识 * 标识
*/ */
private Long id; private Long id;
/** /**
* 文件UUID * 文件UUID
*/ */
private String fileId; private String fileId;
/** /**
* 来源类型 * 来源类型
*/ */
private String fromType; private String fromType;
/** /**
* 自定义类型,fromType的二级类型 * 自定义类型,fromType的二级类型
*/ */
@ApiModelProperty(name = "自定义类型", dataType = "String") @ApiModelProperty(name = "自定义类型", dataType = "String")
private String customType; private String customType;
/** /**
* 来源标识 * 视频截图时间点
*/ */
private Long fromId; private int snapshotTime;
/** /**
* 文件路径 * 来源标识
*/ */
private String fileUrl; private Long fromId;
/** /**
* 文件大小 * 文件路径
*/ */
private Long fileSize; private String fileUrl;
/** /**
* 文件类型 * 文件大小
*/ */
private String fileType; private Long fileSize;
/** /**
* 在缓存中被处理的次数 * 文件类型
*/ */
private int processTimes = 0; private String fileType;
/** /**
* 转换成功标记,true:成功,false失败 * 在缓存中被处理的次数
*/ */
private Boolean state; private int processTimes = 0;
/** /**
* 封面图 * 转换成功标记,true:成功,false失败
*/ */
private String coverImg; private Boolean state;
/** /**
* 使用地址 * 封面图
*/ */
private String pilotUrl; private String coverImg;
/** /**
* 视频时长 * 使用地址
*/ */
private Integer duration; private String pilotUrl;
/** /**
* 视频m3u8地址 * 视频时长
*/ */
private String m3u8Url; private Integer duration;
public String getCustomType() { /**
return customType; * 视频m3u8地址
} */
private String m3u8Url;
public void setCustomType(String customType) {
this.customType = customType; public int getSnapshotTime() {
} return snapshotTime;
}
public String getM3u8Url() {
return m3u8Url; public void setSnapshotTime(int snapshotTime) {
} this.snapshotTime = snapshotTime;
}
public void setM3u8Url(String m3u8Url) {
this.m3u8Url = m3u8Url; public String getCustomType() {
} return customType;
}
public Integer getDuration() {
return duration; public void setCustomType(String customType) {
} this.customType = customType;
}
public void setDuration(Integer duration) {
this.duration = duration; public String getM3u8Url() {
} return m3u8Url;
}
public Long getFromId() {
return fromId; public void setM3u8Url(String m3u8Url) {
} this.m3u8Url = m3u8Url;
}
public void setFromId(Long fromId) {
this.fromId = fromId; public Integer getDuration() {
} return duration;
}
public String getPilotUrl() {
return pilotUrl; public void setDuration(Integer duration) {
} this.duration = duration;
}
public void setPilotUrl(String pilotUrl) {
this.pilotUrl = pilotUrl; public Long getFromId() {
} return fromId;
}
public String getCoverImg() {
return coverImg; public void setFromId(Long fromId) {
} this.fromId = fromId;
}
public void setCoverImg(String coverImg) {
this.coverImg = coverImg; public String getPilotUrl() {
} return pilotUrl;
}
public Boolean getState() {
return state; public void setPilotUrl(String pilotUrl) {
} this.pilotUrl = pilotUrl;
}
public void setState(Boolean state) {
this.state = state; public String getCoverImg() {
} return coverImg;
}
public String getFileType() {
return fileType; public void setCoverImg(String coverImg) {
} this.coverImg = coverImg;
}
public void setFileType(String fileType) {
this.fileType = fileType; public Boolean getState() {
} return state;
}
public Long getId() {
return id; public void setState(Boolean state) {
} this.state = state;
}
public void setId(Long id) {
this.id = id; public String getFileType() {
} return fileType;
}
public String getFileId() {
return fileId; public void setFileType(String fileType) {
} this.fileType = fileType;
}
public void setFileId(String fileId) {
this.fileId = fileId; public Long getId() {
} return id;
}
public String getFromType() {
return fromType; public void setId(Long id) {
} this.id = id;
}
public void setFromType(String fromType) {
this.fromType = fromType; public String getFileId() {
} return fileId;
}
/**
* @return Returns the fileUrl. public void setFileId(String fileId) {
*/ this.fileId = fileId;
public String getFileUrl() { }
return fileUrl;
} public String getFromType() {
return fromType;
/** }
* @param fileUrl The fileUrl to set.
*/ public void setFromType(String fromType) {
public void setFileUrl(String fileUrl) { this.fromType = fromType;
this.fileUrl = fileUrl; }
}
/**
/** * @return Returns the fileUrl.
* @return Returns the fileSize. */
*/ public String getFileUrl() {
public Long getFileSize() { return fileUrl;
return fileSize; }
}
/**
/** * @param fileUrl
* @param fileSize The fileSize to set. * The fileUrl to set.
*/ */
public void setFileSize(Long fileSize) { public void setFileUrl(String fileUrl) {
this.fileSize = fileSize; this.fileUrl = fileUrl;
} }
public int getProcessTimes() { /**
return processTimes; * @return Returns the fileSize.
} */
public Long getFileSize() {
public void setProcessTimes(int processTimes) { return fileSize;
this.processTimes = processTimes; }
}
/**
@Override * @param fileSize
public String toString() { * The fileSize to set.
return "ConvertQueueDto [fileId=" + fileId + ", fromType=" + fromType + ", fileUrl=" + fileUrl + ", fileSize=" */
+ fileSize + ", fileType=" + fileType + ", state=" + state + ", coverImg=" + coverImg + ", pilotUrl=" public void setFileSize(Long fileSize) {
+ pilotUrl + "]"; this.fileSize = fileSize;
} }
public int getProcessTimes() {
return processTimes;
}
public void setProcessTimes(int processTimes) {
this.processTimes = processTimes;
}
@Override
public String toString() {
return "ConvertQueueDto [fileId=" + fileId + ", fromType=" + fromType + ", fileUrl=" + fileUrl + ", fileSize="
+ fileSize + ", fileType=" + fileType + ", state=" + state + ", coverImg=" + coverImg + ", pilotUrl="
+ pilotUrl + "]";
}
} }
...@@ -1178,6 +1178,7 @@ public class OssUtils { ...@@ -1178,6 +1178,7 @@ public class OssUtils {
} else { } else {
uploadResultInfo.setSize(size); uploadResultInfo.setSize(size);
} }
uploadResultInfo.setFileName(FileUtils.getFileName(objectKey));
uploadResultInfo.setFileId("ali"); uploadResultInfo.setFileId("ali");
uploadResultInfo.setFlag(true); uploadResultInfo.setFlag(true);
uploadResultInfo.setFinish(true); uploadResultInfo.setFinish(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment