修复主子码流开关 配置不生效

This commit is contained in:
zxb 2024-02-24 13:41:37 +08:00
parent e70c5f4cf3
commit 7ad0709b0e
2 changed files with 4 additions and 2 deletions

View File

@ -496,6 +496,8 @@ public class DeviceServiceImpl implements IDeviceService {
} }
deviceChannelMapper.clearPlay(device.getDeviceId()); deviceChannelMapper.clearPlay(device.getDeviceId());
inviteStreamService.clearInviteInfo(device.getDeviceId()); inviteStreamService.clearInviteInfo(device.getDeviceId());
deviceInStore.setSwitchPrimarySubStream(device.isSwitchPrimarySubStream());
} }
if (!ObjectUtils.isEmpty(device.getName())) { if (!ObjectUtils.isEmpty(device.getName())) {

View File

@ -22,7 +22,7 @@ spring:
# [可选] 访问密码,若你的redis服务器没有设置密码就不需要用密码去连接 # [可选] 访问密码,若你的redis服务器没有设置密码就不需要用密码去连接
password: 12341234 password: 12341234
# [可选] 超时时间 # [可选] 超时时间
timeout: 10000 timeout: 30000
# mysql数据源 # mysql数据源
datasource: datasource:
dynamic: dynamic:
@ -138,7 +138,7 @@ media:
# [根据业务需求配置] # [根据业务需求配置]
user-settings: user-settings:
# 点播/录像回放 等待超时时间,单位:毫秒 # 点播/录像回放 等待超时时间,单位:毫秒
play-timeout: 30000 play-timeout: 60000
# [可选] 自动点播, 使用固定流地址进行播放时,如果未点播则自动进行点播, 需要rtp.enable=true # [可选] 自动点播, 使用固定流地址进行播放时,如果未点播则自动进行点播, 需要rtp.enable=true
auto-apply-play: false auto-apply-play: false
# 设备/通道状态变化时发送消息 # 设备/通道状态变化时发送消息