浏览代码

//vodeo

private_deployment
xhxu 2 年前
父节点
当前提交
11ed176943
共有 6 个文件被更改,包括 15 次插入6 次删除
  1. +1
    -1
      suimangAdmin/src/main/java/com/iformall/controller/video/VideoController.java
  2. +1
    -0
      suimangAdmin/src/main/java/com/iformall/schedule/VideoSchedule.java
  3. +6
    -1
      suimangService/src/main/java/com/iformall/domain/po/sm/UserMouldVideo.java
  4. +5
    -3
      suimangService/src/main/resources/mapper/UserMouldVideoMapper.xml
  5. +1
    -0
      suimangVideo/src/main/java/com/iformall/video/aliyun/AliyunVideoExcutor.java
  6. +1
    -1
      suimangVideo/src/main/java/com/iformall/video/entity/VideUploadResult.java

+ 1
- 1
suimangAdmin/src/main/java/com/iformall/controller/video/VideoController.java 查看文件

@@ -98,7 +98,7 @@ public class VideoController extends BaseController {
return new ResultData(ErrorCode.PICTURE_ENDWIDTH_ERROR);
}
VideUploadResult result = videoFactory.getExcutor(videoType).uploadVideoStream(title, multiReq.getInputStream(),fileFormat);
result.setSize(String.valueOf(size));
result.setSize(size);
return new ResultData(result);
} catch (Exception e) {
logger.error(e.getMessage());


+ 1
- 0
suimangAdmin/src/main/java/com/iformall/schedule/VideoSchedule.java 查看文件

@@ -41,6 +41,7 @@ public class VideoSchedule {
if (videoDetail.isSuccess() && StringUtils.isNotBlank(videoDetail.getDuration())
&& !"0.0".equals(videoDetail.getDuration())) {
video.setVideoTime(videoDetail.getDuration());
video.setVideoSize(videoDetail.getSize());
userMouldVideoService.updateById(video);
}
} catch (Exception e) {


+ 6
- 1
suimangService/src/main/java/com/iformall/domain/po/sm/UserMouldVideo.java 查看文件

@@ -64,6 +64,9 @@ public class UserMouldVideo extends TenantEntity {
@io.swagger.annotations.ApiModelProperty(value="名称",name="title")
private String title;

@io.swagger.annotations.ApiModelProperty(value="封面图",name="coverImg")
private String coverImg;

@io.swagger.annotations.ApiModelProperty(value="备注",name="remark")
private String remark;

@@ -79,8 +82,10 @@ public class UserMouldVideo extends TenantEntity {
}
@io.swagger.annotations.ApiModelProperty(value="",name="videoPath")
private String videoPath;
@io.swagger.annotations.ApiModelProperty(value="视频时长",name="videoTime")
@io.swagger.annotations.ApiModelProperty(value="视频时长(秒)",name="videoTime")
private String videoTime;
@io.swagger.annotations.ApiModelProperty(value="视频大小(byte)",name="videoSize")
private Long videoSize;
@io.swagger.annotations.ApiModelProperty(value="EnumVideoStatus 视频状态",name="videoStatus")
private Integer videoStatus;
@io.swagger.annotations.ApiModelProperty(value="生成视频信息",name="videoMsg")


+ 5
- 3
suimangService/src/main/resources/mapper/UserMouldVideoMapper.xml 查看文件

@@ -15,10 +15,12 @@
<result column="background_mould_id" jdbcType="BIGINT" property="backgroundMouldId"/>
<result column="background_mould_sm_id" jdbcType="VARCHAR" property="backgroundMouldSmId"/>
<result column="title" jdbcType="VARCHAR" property="title"/>
<result column="cover_img" jdbcType="VARCHAR" property="coverImg"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="video_id" jdbcType="VARCHAR" property="videoId"/>
<result column="video_path" jdbcType="VARCHAR" property="videoPath"/>
<result column="video_time" jdbcType="VARCHAR" property="videoTime"/>
<result column="video_size" jdbcType="BIGINT" property="videoSize"/>
<result column="video_status" jdbcType="INTEGER" property="videoStatus"/>
<result column="video_msg" jdbcType="VARCHAR" property="videoMsg"/>

@@ -30,7 +32,7 @@
<sql id="allColumns">
`id`, `tenant_id`, `parent_tenant_id`, `user_id`, `type`,
`person_mould_id`, `person_mould_sm_id`, `voice_mould_id`, `voice_mould_sm_id`, `paperwork`, `background_mould_id`, `background_mould_sm_id`,
`title`, `remark`, `video_id`, `video_path`, `video_time`, `video_status`, `video_msg`, `create_video_date`, `create_date`, `update_date`
`title`, `cover_img`, `remark`, `video_id`, `video_path`, `video_time`, `video_size`, `video_status`, `video_msg`, `create_video_date`, `create_date`, `update_date`
</sql>

<sql id="dynamicWhereConditions">
@@ -107,7 +109,7 @@
select
`id`, `type`,
`paperwork`,
`title`, `remark`, `video_id`, `video_path`, `video_time`,`video_status`,
`title`, `cover_img`, `remark`, `video_id`, `video_path`, `video_time`, `video_size`, `video_status`,
`create_video_date`, `create_date`, `update_date`
from user_mould_video
<include refid="dynamicWhereConditions"/>
@@ -116,7 +118,7 @@

<select id="findVideo" parameterType="java.util.HashMap" resultMap="BaseResultMap">
select
`video_id`, `video_path`, `video_time`,`video_status`,`video_msg`
`video_id`, `video_path`, `video_time`, `video_size`, `video_status`, `video_msg`
from user_mould_video
where `id` = #{id}
</select>


+ 1
- 0
suimangVideo/src/main/java/com/iformall/video/aliyun/AliyunVideoExcutor.java 查看文件

@@ -147,6 +147,7 @@ public class AliyunVideoExcutor implements VideoExcutor {
result.setVideoUrl(playInfo.getPlayURL());
result.setHeight(playInfo.getHeight());
result.setWidth(playInfo.getWidth());
result.setSize(playInfo.getSize());
break;
}
GetPlayInfoResponse.VideoBase videoBase = response.getVideoBase();


+ 1
- 1
suimangVideo/src/main/java/com/iformall/video/entity/VideUploadResult.java 查看文件

@@ -12,7 +12,7 @@ public class VideUploadResult {
private String coverURL;//视频封面
private String duration;//视频时长
private String title;//视频标题
private String size;//视频大小
private Long size;//视频大小 b
private boolean success = false;
private String msg;



正在加载...
取消
保存