init
This commit is contained in:
137
ruoyi-video/src/main/java/com/ruoyi/video/domain/Device.java
Normal file
137
ruoyi-video/src/main/java/com/ruoyi/video/domain/Device.java
Normal file
@@ -0,0 +1,137 @@
|
||||
package com.ruoyi.video.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 设备对象 v_device
|
||||
*
|
||||
* @Author: orange
|
||||
* @CreateTime: 2025-01-16
|
||||
*/
|
||||
public class Device extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Long deviceId;
|
||||
@Excel(name = "IP地址")
|
||||
private String ip;
|
||||
@Excel(
|
||||
name = "设备类型(1=haikan,2=dahua)"
|
||||
)
|
||||
private String type;
|
||||
@Excel(
|
||||
name = "区分流"
|
||||
)
|
||||
private String mediaKey;
|
||||
@Excel(
|
||||
name = "设备账号"
|
||||
)
|
||||
private String userName;
|
||||
@Excel(
|
||||
name = "设备密码"
|
||||
)
|
||||
private String password;
|
||||
@Excel(
|
||||
name = "播放地址"
|
||||
)
|
||||
private String url;
|
||||
@Excel(
|
||||
name = "启用flv(0=true,1=false)"
|
||||
)
|
||||
private String enabledFlv;
|
||||
@Excel(
|
||||
name = "启用hls(0=true,1=false)"
|
||||
)
|
||||
private String enabledHls;
|
||||
@Excel(
|
||||
name = "javacv/ffmpeg(默认不开启)"
|
||||
)
|
||||
private String mode;
|
||||
|
||||
public Device() {
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "Device{deviceId=" + this.deviceId + ", ip='" + this.ip + "', type='" + this.type + "', mediaKey='" + this.mediaKey + "', userName='" + this.userName + "', password='" + this.password + "', url='" + this.url + "', enabledFlv='" + this.enabledFlv + "', enabledHls='" + this.enabledHls + "', mode='" + this.mode + "'}";
|
||||
}
|
||||
|
||||
public Long getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return this.ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getMediaKey() {
|
||||
return this.mediaKey;
|
||||
}
|
||||
|
||||
public void setMediaKey(String mediaKey) {
|
||||
this.mediaKey = mediaKey;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return this.userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return this.password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return this.url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getEnabledFlv() {
|
||||
return this.enabledFlv;
|
||||
}
|
||||
|
||||
public void setEnabledFlv(String enabledFlv) {
|
||||
this.enabledFlv = enabledFlv;
|
||||
}
|
||||
|
||||
public String getEnabledHls() {
|
||||
return this.enabledHls;
|
||||
}
|
||||
|
||||
public void setEnabledHls(String enabledHls) {
|
||||
this.enabledHls = enabledHls;
|
||||
}
|
||||
|
||||
public String getMode() {
|
||||
return this.mode;
|
||||
}
|
||||
|
||||
public void setMode(String mode) {
|
||||
this.mode = mode;
|
||||
}
|
||||
}
|
||||
|
||||
71
ruoyi-video/src/main/java/com/ruoyi/video/domain/VImage.java
Normal file
71
ruoyi-video/src/main/java/com/ruoyi/video/domain/VImage.java
Normal file
@@ -0,0 +1,71 @@
|
||||
package com.ruoyi.video.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 图片存储对象 v_image
|
||||
*
|
||||
* @author orange
|
||||
* @date 2025-01-16
|
||||
*/
|
||||
public class VImage extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 图片名称
|
||||
*/
|
||||
@Excel(name = "图片名称")
|
||||
private String imageName;
|
||||
|
||||
/**
|
||||
* 图片数据
|
||||
*/
|
||||
@Excel(name = "图片数据")
|
||||
private String imageData;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setImageName(String imageName) {
|
||||
this.imageName = imageName;
|
||||
}
|
||||
|
||||
public String getImageName() {
|
||||
return imageName;
|
||||
}
|
||||
|
||||
public void setImageData(String imageData) {
|
||||
this.imageData = imageData;
|
||||
}
|
||||
|
||||
public String getImageData() {
|
||||
return imageData;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("imageName", getImageName())
|
||||
.append("imageData", getImageData())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package com.ruoyi.video.domain.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* camera相机
|
||||
* @Author: orange
|
||||
* @CreateTime: 2025-01-16
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class CameraDto implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -5575352151805386129L;
|
||||
|
||||
/**
|
||||
* rtsp、rtmp、d:/flv/test.mp4、desktop
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 流备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* flv开启状态
|
||||
*/
|
||||
private boolean enabledFlv = true;
|
||||
|
||||
/**
|
||||
* hls开启状态
|
||||
*/
|
||||
private boolean enabledHls = false;
|
||||
|
||||
/**
|
||||
* 是否启用ffmpeg,启用ffmpeg则不用javacv
|
||||
*/
|
||||
private boolean enabledFFmpeg = false;
|
||||
|
||||
/**
|
||||
* 无人拉流观看是否自动关闭流
|
||||
*/
|
||||
private boolean autoClose;
|
||||
|
||||
/**
|
||||
* md5 key,媒体标识,区分不同媒体
|
||||
*/
|
||||
private String mediaKey;
|
||||
|
||||
/**
|
||||
* 网络超时 ffmpeg默认5秒,这里设置15秒
|
||||
*/
|
||||
private String netTimeout = "15000000";
|
||||
/**
|
||||
* 读写超时,默认5秒
|
||||
*/
|
||||
private String readOrWriteTimeout = "15000000";
|
||||
|
||||
/**
|
||||
* 无人拉流观看持续多久自动关闭,默认1分钟
|
||||
*/
|
||||
private long noClientsDuration = 60000;
|
||||
|
||||
/**
|
||||
* 0网络流,1本地视频
|
||||
*/
|
||||
private int type = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.ruoyi.video.domain.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* CameraVo
|
||||
* @Author: orange
|
||||
* @CreateTime: 2025-01-16
|
||||
*/
|
||||
@Data
|
||||
public class CameraVo {
|
||||
|
||||
private String id;
|
||||
/**
|
||||
* 播放地址
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 启用flv
|
||||
*/
|
||||
private boolean enabledFlv = false;
|
||||
|
||||
/**
|
||||
* 启用hls
|
||||
*/
|
||||
private boolean enabledHls = false;
|
||||
|
||||
/**
|
||||
* javacv/ffmpeg
|
||||
*/
|
||||
private String mode = "未开启";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user