优化按需拉流配置,拉流代理支持按需拉流
This commit is contained in:
@@ -26,7 +26,6 @@ public interface MediaServerMapper {
|
||||
"rtspSSLPort, " +
|
||||
"autoConfig, " +
|
||||
"secret, " +
|
||||
"streamNoneReaderDelayMS, " +
|
||||
"rtpEnable, " +
|
||||
"rtpPortRange, " +
|
||||
"sendRtpPortRange, " +
|
||||
@@ -51,7 +50,6 @@ public interface MediaServerMapper {
|
||||
"${rtspSSLPort}, " +
|
||||
"${autoConfig}, " +
|
||||
"'${secret}', " +
|
||||
"${streamNoneReaderDelayMS}, " +
|
||||
"${rtpEnable}, " +
|
||||
"'${rtpPortRange}', " +
|
||||
"'${sendRtpPortRange}', " +
|
||||
@@ -77,7 +75,6 @@ public interface MediaServerMapper {
|
||||
"<if test=\"rtspPort != null\">, rtspPort=${rtspPort}</if>" +
|
||||
"<if test=\"rtspSSLPort != null\">, rtspSSLPort=${rtspSSLPort}</if>" +
|
||||
"<if test=\"autoConfig != null\">, autoConfig=${autoConfig}</if>" +
|
||||
"<if test=\"streamNoneReaderDelayMS != null\">, streamNoneReaderDelayMS=${streamNoneReaderDelayMS}</if>" +
|
||||
"<if test=\"rtpEnable != null\">, rtpEnable=${rtpEnable}</if>" +
|
||||
"<if test=\"rtpPortRange != null\">, rtpPortRange='${rtpPortRange}'</if>" +
|
||||
"<if test=\"sendRtpPortRange != null\">, sendRtpPortRange='${sendRtpPortRange}'</if>" +
|
||||
@@ -102,7 +99,6 @@ public interface MediaServerMapper {
|
||||
"<if test=\"rtspPort != null\">, rtspPort=${rtspPort}</if>" +
|
||||
"<if test=\"rtspSSLPort != null\">, rtspSSLPort=${rtspSSLPort}</if>" +
|
||||
"<if test=\"autoConfig != null\">, autoConfig=${autoConfig}</if>" +
|
||||
"<if test=\"streamNoneReaderDelayMS != null\">, streamNoneReaderDelayMS=${streamNoneReaderDelayMS}</if>" +
|
||||
"<if test=\"rtpEnable != null\">, rtpEnable=${rtpEnable}</if>" +
|
||||
"<if test=\"rtpPortRange != null\">, rtpPortRange='${rtpPortRange}'</if>" +
|
||||
"<if test=\"sendRtpPortRange != null\">, sendRtpPortRange='${sendRtpPortRange}'</if>" +
|
||||
|
||||
@@ -11,10 +11,10 @@ import java.util.List;
|
||||
public interface StreamProxyMapper {
|
||||
|
||||
@Insert("INSERT INTO stream_proxy (type, name, app, stream,mediaServerId, url, src_url, dst_url, " +
|
||||
"timeout_ms, ffmpeg_cmd_key, rtp_type, enable_hls, enable_mp4, enable, status, enable_remove_none_reader, createTime) VALUES" +
|
||||
"timeout_ms, ffmpeg_cmd_key, rtp_type, enable_hls, enable_mp4, enable, status, enable_remove_none_reader, enable_disable_none_reader, createTime) VALUES" +
|
||||
"('${type}','${name}', '${app}', '${stream}', '${mediaServerId}','${url}', '${src_url}', '${dst_url}', " +
|
||||
"'${timeout_ms}', '${ffmpeg_cmd_key}', '${rtp_type}', ${enable_hls}, ${enable_mp4}, ${enable}, ${status}, " +
|
||||
"${enable_remove_none_reader}, '${createTime}' )")
|
||||
"${enable_remove_none_reader}, ${enable_disable_none_reader}, '${createTime}' )")
|
||||
int add(StreamProxyItem streamProxyDto);
|
||||
|
||||
@Update("UPDATE stream_proxy " +
|
||||
@@ -33,6 +33,7 @@ public interface StreamProxyMapper {
|
||||
"enable=#{enable}, " +
|
||||
"status=#{status}, " +
|
||||
"enable_remove_none_reader=#{enable_remove_none_reader}, " +
|
||||
"enable_disable_none_reader=#{enable_disable_none_reader}, " +
|
||||
"enable_mp4=#{enable_mp4} " +
|
||||
"WHERE app=#{app} AND stream=#{stream}")
|
||||
int update(StreamProxyItem streamProxyDto);
|
||||
|
||||
Reference in New Issue
Block a user