|
@@ -18,7 +18,7 @@ import lombok.Setter;
|
|
|
public class VideoFile extends BaseObject<Integer> {
|
|
public class VideoFile extends BaseObject<Integer> {
|
|
|
private String videoId;
|
|
private String videoId;
|
|
|
// 原始文件的 objectId
|
|
// 原始文件的 objectId
|
|
|
- private String videoFileId;
|
|
|
|
|
|
|
+ //private String videoFileId;
|
|
|
private String objectId;
|
|
private String objectId;
|
|
|
private Integer channelCode;
|
|
private Integer channelCode;
|
|
|
private String videoCodec;
|
|
private String videoCodec;
|
|
@@ -37,26 +37,6 @@ public class VideoFile extends BaseObject<Integer> {
|
|
|
|
|
|
|
|
public VideoFile(String videoId, VideoInfo videoInfo, int channelCode) {
|
|
public VideoFile(String videoId, VideoInfo videoInfo, int channelCode) {
|
|
|
this.videoId = videoId;
|
|
this.videoId = videoId;
|
|
|
- this.videoFileId = videoInfo.getVideoFileId();
|
|
|
|
|
- this.objectId = videoInfo.getObjectId();
|
|
|
|
|
- this.channelCode = channelCode;
|
|
|
|
|
- this.videoCodec = videoInfo.getVideoCodec();
|
|
|
|
|
- this.vbitRate = videoInfo.getVbitRate();
|
|
|
|
|
- this.audioCodec = videoInfo.getAudioCodec();
|
|
|
|
|
- this.abitRate = videoInfo.getAbitRate();
|
|
|
|
|
- this.formatName = videoInfo.getFormatName();
|
|
|
|
|
- this.urlType = videoInfo.getUrlType();
|
|
|
|
|
- this.url = videoInfo.getUrl();
|
|
|
|
|
- this.quality = videoInfo.getQuality();
|
|
|
|
|
- this.width = videoInfo.getWidth();
|
|
|
|
|
- this.height = videoInfo.getHeight();
|
|
|
|
|
- this.horizontal = videoInfo.getWidth()>videoInfo.getHeight();
|
|
|
|
|
- this.duration = videoInfo.getDuration();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public VideoFile(String videoId, String videoFileId, int channelCode, VideoInfo videoInfo) {
|
|
|
|
|
- this.videoId = videoId;
|
|
|
|
|
- this.videoFileId = videoFileId;
|
|
|
|
|
this.objectId = videoInfo.getObjectId();
|
|
this.objectId = videoInfo.getObjectId();
|
|
|
this.channelCode = channelCode;
|
|
this.channelCode = channelCode;
|
|
|
this.videoCodec = videoInfo.getVideoCodec();
|
|
this.videoCodec = videoInfo.getVideoCodec();
|