mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-23 13:37:49 +08:00
Compare commits
4 Commits
0574b8ba07
...
f8d65887c8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8d65887c8 | ||
|
|
a433003f74 | ||
|
|
dd32f4b07a | ||
|
|
ed7ff6db55 |
@ -9,6 +9,16 @@ services:
|
||||
environment:
|
||||
TZ: "Asia/Shanghai"
|
||||
command: redis-server /etc/redis/redis_default.conf --appendonly yes
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
volumes:
|
||||
- ./mysql:/var/lib/mysql
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: mysql@tafei
|
||||
MYSQL_DATABASE: wvp2
|
||||
LANG: C.UTF-8
|
||||
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
||||
|
||||
wvp:
|
||||
build:
|
||||
context: ./wvp
|
||||
@ -33,7 +43,7 @@ services:
|
||||
environment:
|
||||
TZ: "Asia/Shanghai"
|
||||
# [必须修改] 本机的IP
|
||||
WVP_HOST: 172.18.0.61
|
||||
WVP_HOST: 111.67.197.136
|
||||
WVP_PWD: aseqw_+hiy123
|
||||
WVP_DOMAIN: 6101130049
|
||||
WVP_ID: 61011300490000000001
|
||||
@ -45,5 +55,8 @@ services:
|
||||
WVP_JVM_CONFIG: -Xms128m -Xmx256m
|
||||
ASSIST_CONFIG:
|
||||
WVP_CONFIG:
|
||||
DB_HOST: mysql
|
||||
DB_PASSWORD: mysql@tafei
|
||||
depends_on:
|
||||
- redis
|
||||
- mysql
|
||||
|
||||
@ -27,12 +27,12 @@ public class SipConfig {
|
||||
private String id;
|
||||
|
||||
private String password;
|
||||
|
||||
|
||||
Integer ptzSpeed = 50;
|
||||
|
||||
Integer registerTimeInterval = 120;
|
||||
|
||||
private boolean alarm = false;
|
||||
|
||||
private long timeout = 500;
|
||||
private long timeout = 1000;
|
||||
}
|
||||
|
||||
@ -2,6 +2,7 @@ package com.genersoft.iot.vmp.gb28181.service.impl;
|
||||
|
||||
import com.genersoft.iot.vmp.common.InviteSessionType;
|
||||
import com.genersoft.iot.vmp.common.StreamInfo;
|
||||
import com.genersoft.iot.vmp.conf.exception.ControllerException;
|
||||
import com.genersoft.iot.vmp.conf.exception.ServiceException;
|
||||
import com.genersoft.iot.vmp.gb28181.bean.*;
|
||||
import com.genersoft.iot.vmp.common.enums.ChannelDataType;
|
||||
@ -145,6 +146,9 @@ public class GbChannelPlayServiceImpl implements IGbChannelPlayService {
|
||||
deviceChannelPlayService.play(channel, record, callback);
|
||||
} catch (PlayException e) {
|
||||
callback.run(e.getCode(), e.getMsg(), null);
|
||||
} catch (ControllerException e) {
|
||||
log.error("[点播失败] {}({}), {}", channel.getGbName(), channel.getGbDeviceId(), e.getMsg());
|
||||
callback.run(Response.BUSY_HERE, "busy here", null);
|
||||
} catch (Exception e) {
|
||||
log.error("[点播失败] {}({})", channel.getGbName(), channel.getGbDeviceId(), e);
|
||||
callback.run(Response.BUSY_HERE, "busy here", null);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user