Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-api-boot
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-api-boot
Commits
c311e27f
提交
c311e27f
authored
5月 21, 2022
作者:
Administrator
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:工区表设计
上级
1b39115a
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
67 行增加
和
4 行删除
+67
-4
WorkArea.java
...rc/main/java/com/yiring/app/domain/workArea/WorkArea.java
+54
-0
BroadcastQueryParam.java
...a/com/yiring/app/param/broadcast/BroadcastQueryParam.java
+2
-2
StreamProxyItem.java
...main/java/com/yiring/app/param/video/StreamProxyItem.java
+5
-0
VideoServiceImpl.java
...a/com/yiring/app/service/video/impl/VideoServiceImpl.java
+6
-2
没有找到文件。
app/src/main/java/com/yiring/app/domain/workArea/WorkArea.java
0 → 100644
浏览文件 @
c311e27f
/* (C) 2022 YiRing, Inc. */
package
com
.
yiring
.
app
.
domain
.
workArea
;
import
com.yiring.app.domain.video.Video
;
import
com.yiring.common.domain.BasicEntity
;
import
java.io.Serial
;
import
java.io.Serializable
;
import
javax.persistence.*
;
import
lombok.*
;
import
lombok.experimental.FieldDefaults
;
import
lombok.experimental.FieldNameConstants
;
import
org.hibernate.annotations.Comment
;
/**
* @author tzl
* @version 1.0
* @description:
* @date 2022/5/20 16:08
*/
@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@FieldNameConstants
@FieldDefaults
(
level
=
AccessLevel
.
PRIVATE
)
@Entity
@Table
(
name
=
"BS_WORK_AREA"
)
@Comment
(
"工区"
)
public
class
WorkArea
extends
BasicEntity
implements
Serializable
{
@Serial
private
static
final
long
serialVersionUID
=
-
6738299404223231827L
;
@Comment
(
"工区名称"
)
String
workAreaName
;
@Comment
(
"消抖阈值(秒)"
)
Integer
threshold
;
@Comment
(
"超时时间(秒)"
)
Integer
timeout
;
@Comment
(
"负责人"
)
String
personInCharge
;
@Comment
(
"联系电话"
)
String
mobile
;
@Comment
(
"监控设备"
)
@OneToOne
Video
video
;
}
app/src/main/java/com/yiring/app/param/broadcast/BroadcastQueryParam.java
浏览文件 @
c311e27f
...
...
@@ -34,9 +34,9 @@ public class BroadcastQueryParam implements Serializable {
@ApiModelProperty
(
value
=
"状态"
,
example
=
"1"
)
String
status
;
@ApiModelProperty
(
value
=
"分页条数"
,
example
=
"10"
,
required
=
true
)
@ApiModelProperty
(
value
=
"分页条数"
,
example
=
"10"
)
Integer
pageSize
;
@ApiModelProperty
(
value
=
"当前页数"
,
example
=
"1"
,
required
=
true
)
@ApiModelProperty
(
value
=
"当前页数"
,
example
=
"1"
)
Integer
pageNo
;
}
app/src/main/java/com/yiring/app/param/video/StreamProxyItem.java
浏览文件 @
c311e27f
...
...
@@ -27,12 +27,17 @@ public class StreamProxyItem implements Serializable {
String
stream
;
//拉流地址
String
url
;
//ffmpeg地址
String
src_url
;
String
rtp_type
;
String
ffmpeg_cmd_key
;
//类型,根据地址是否有关键字判断
String
type
;
//节点选择
String
mediaServerId
;
//是否启用
boolean
enable
;
boolean
status
;
//是否转HLS
boolean
enable_hls
;
...
...
app/src/main/java/com/yiring/app/service/video/impl/VideoServiceImpl.java
浏览文件 @
c311e27f
...
...
@@ -91,12 +91,16 @@ public class VideoServiceImpl implements VideoService {
.
name
(
video
.
getVideoName
())
.
app
(
"stream"
)
.
stream
(
video
.
getUuid
())
.
url
(
video
.
getM3u8
())
.
url
(
video
.
getM3u8
().
contains
(
"/h264"
)
?
video
.
getM3u8
()
:
""
)
.
src_url
(
video
.
getM3u8
().
contains
(
"/h265"
)
?
video
.
getM3u8
()
:
""
)
.
ffmpeg_cmd_key
(
video
.
getM3u8
().
contains
(
"/h265"
)
?
"ffmpeg.cmd"
:
""
)
.
rtp_type
(
video
.
getM3u8
().
contains
(
"/h265"
)
?
""
:
"0"
)
.
mediaServerId
(
"ZbnQN5csqxrPix7a"
)
.
enable
(
true
)
.
enable_hls
(
true
)
// .status(true)
.
type
(
video
.
getM3u8
().
contains
(
"/h265"
)
?
"ffmpeg"
:
"default"
)
.
timeout_ms
(
video
.
getM3u8
().
contains
(
"/h265"
)
?
6
0
:
null
)
.
timeout_ms
(
video
.
getM3u8
().
contains
(
"/h265"
)
?
3000
0
:
null
)
.
build
();
JSONObject
jsonObject
=
gbClient
.
proxySave
(
streamProxyItem
,
gbCookie
());
if
(!
jsonObject
.
get
(
"code"
).
equals
(
0
))
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论