commit
98d12ecd6b
10
pom.xml
10
pom.xml
|
@ -169,13 +169,6 @@
|
||||||
<version>1.2.73</version>
|
<version>1.2.73</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--Guava是一种基于开源的Java库-->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.guava</groupId>
|
|
||||||
<artifactId>guava</artifactId>
|
|
||||||
<version>30.0-jre</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- okhttp -->
|
<!-- okhttp -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.squareup.okhttp3</groupId>
|
<groupId>com.squareup.okhttp3</groupId>
|
||||||
|
@ -279,6 +272,9 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>pl.project13.maven</groupId>
|
<groupId>pl.project13.maven</groupId>
|
||||||
<artifactId>git-commit-id-plugin</artifactId>
|
<artifactId>git-commit-id-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<offline>true</offline>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
|
@ -459,7 +459,7 @@ public class ZLMHttpHookListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MediaServerItem mediaServerItem = mediaServerService.getOne(mediaServerId);
|
MediaServerItem mediaServerItem = mediaServerService.getOne(mediaServerId);
|
||||||
if (mediaServerItem != null && "-1".equals(mediaServerItem.getStreamNoneReaderDelayMS())) {
|
if (mediaServerItem != null && mediaServerItem.getStreamNoneReaderDelayMS() == -1) {
|
||||||
ret.put("close", false);
|
ret.put("close", false);
|
||||||
}
|
}
|
||||||
return new ResponseEntity<String>(ret.toString(),HttpStatus.OK);
|
return new ResponseEntity<String>(ret.toString(),HttpStatus.OK);
|
||||||
|
|
|
@ -512,7 +512,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
||||||
param.put("hook.on_stream_not_found",String.format("%s/on_stream_not_found", hookPrex));
|
param.put("hook.on_stream_not_found",String.format("%s/on_stream_not_found", hookPrex));
|
||||||
param.put("hook.on_server_keepalive",String.format("%s/on_server_keepalive", hookPrex));
|
param.put("hook.on_server_keepalive",String.format("%s/on_server_keepalive", hookPrex));
|
||||||
param.put("hook.timeoutSec","20");
|
param.put("hook.timeoutSec","20");
|
||||||
param.put("general.streamNoneReaderDelayMS","-1".equals(mediaServerItem.getStreamNoneReaderDelayMS())?"3600000":mediaServerItem.getStreamNoneReaderDelayMS() );
|
param.put("general.streamNoneReaderDelayMS",mediaServerItem.getStreamNoneReaderDelayMS()==-1?"3600000":mediaServerItem.getStreamNoneReaderDelayMS() );
|
||||||
// 推流断开后可以在超时时间内重新连接上继续推流,这样播放器会接着播放。
|
// 推流断开后可以在超时时间内重新连接上继续推流,这样播放器会接着播放。
|
||||||
// 置0关闭此特性(推流断开会导致立即断开播放器)
|
// 置0关闭此特性(推流断开会导致立即断开播放器)
|
||||||
// 此参数不应大于播放器超时时间
|
// 此参数不应大于播放器超时时间
|
||||||
|
|
|
@ -231,7 +231,6 @@ public interface DeviceChannelMapper {
|
||||||
" name as title,\n" +
|
" name as title,\n" +
|
||||||
" channelId as \"value\",\n" +
|
" channelId as \"value\",\n" +
|
||||||
" channelId as \"key\",\n" +
|
" channelId as \"key\",\n" +
|
||||||
" channelId,\n" +
|
|
||||||
" longitude,\n" +
|
" longitude,\n" +
|
||||||
" latitude\n" +
|
" latitude\n" +
|
||||||
" from device_channel\n" +
|
" from device_channel\n" +
|
||||||
|
|
Loading…
Reference in New Issue