648540858
2022-10-17 f6320c7dd3dfd25e98bb63f41d79a33af5009a93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
package com.genersoft.iot.vmp.media.zlm.dto;
 
 
import com.genersoft.iot.vmp.gb28181.session.SsrcConfig;
import com.genersoft.iot.vmp.media.zlm.ZLMServerConfig;
import org.springframework.util.StringUtils;
 
import java.util.HashMap;
 
/**
 * 精简的MediaServerItem信息,方便给前端返回数据
 */
public class MediaServerItemLite {
 
    private String id;
 
    private String ip;
 
    private String hookIp;
 
    private String sdpIp;
 
    private String streamIp;
 
    private int httpPort;
 
    private int httpSSlPort;
 
    private int rtmpPort;
 
    private int rtmpSSlPort;
 
    private int rtpProxyPort;
 
    private int rtspPort;
 
    private int rtspSSLPort;
 
    private String secret;
 
    private int hookAliveInterval;
 
    private int recordAssistPort;
 
 
 
    public MediaServerItemLite(MediaServerItem mediaServerItem) {
        this.id = mediaServerItem.getId();
        this.ip = mediaServerItem.getIp();
        this.hookIp = mediaServerItem.getHookIp();
        this.sdpIp = mediaServerItem.getSdpIp();
        this.streamIp = mediaServerItem.getStreamIp();
        this.httpPort = mediaServerItem.getHttpPort();
        this.httpSSlPort = mediaServerItem.getHttpSSlPort();
        this.rtmpPort = mediaServerItem.getRtmpPort();
        this.rtmpSSlPort = mediaServerItem.getRtmpSSlPort();
        this.rtpProxyPort = mediaServerItem.getRtpProxyPort();
        this.rtspPort = mediaServerItem.getRtspPort();
        this.rtspSSLPort = mediaServerItem.getRtspSSLPort();
        this.secret = mediaServerItem.getSecret();
        this.hookAliveInterval = mediaServerItem.getHookAliveInterval();
        this.recordAssistPort = mediaServerItem.getRecordAssistPort();
    }
 
    public String getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public String getIp() {
        return ip;
    }
 
    public void setIp(String ip) {
        this.ip = ip;
    }
 
    public String getHookIp() {
        return hookIp;
    }
 
    public void setHookIp(String hookIp) {
        this.hookIp = hookIp;
    }
 
    public String getSdpIp() {
        return sdpIp;
    }
 
    public void setSdpIp(String sdpIp) {
        this.sdpIp = sdpIp;
    }
 
    public String getStreamIp() {
        return streamIp;
    }
 
    public void setStreamIp(String streamIp) {
        this.streamIp = streamIp;
    }
 
    public int getHttpPort() {
        return httpPort;
    }
 
    public void setHttpPort(int httpPort) {
        this.httpPort = httpPort;
    }
 
    public int getHttpSSlPort() {
        return httpSSlPort;
    }
 
    public void setHttpSSlPort(int httpSSlPort) {
        this.httpSSlPort = httpSSlPort;
    }
 
    public int getRtmpPort() {
        return rtmpPort;
    }
 
    public void setRtmpPort(int rtmpPort) {
        this.rtmpPort = rtmpPort;
    }
 
    public int getRtmpSSlPort() {
        return rtmpSSlPort;
    }
 
    public void setRtmpSSlPort(int rtmpSSlPort) {
        this.rtmpSSlPort = rtmpSSlPort;
    }
 
    public int getRtpProxyPort() {
        return rtpProxyPort;
    }
 
    public void setRtpProxyPort(int rtpProxyPort) {
        this.rtpProxyPort = rtpProxyPort;
    }
 
    public int getRtspPort() {
        return rtspPort;
    }
 
    public void setRtspPort(int rtspPort) {
        this.rtspPort = rtspPort;
    }
 
    public int getRtspSSLPort() {
        return rtspSSLPort;
    }
 
    public void setRtspSSLPort(int rtspSSLPort) {
        this.rtspSSLPort = rtspSSLPort;
    }
 
 
    public String getSecret() {
        return secret;
    }
 
    public void setSecret(String secret) {
        this.secret = secret;
    }
 
    public int getHookAliveInterval() {
        return hookAliveInterval;
    }
 
    public void setHookAliveInterval(int hookAliveInterval) {
        this.hookAliveInterval = hookAliveInterval;
    }
 
    public int getRecordAssistPort() {
        return recordAssistPort;
    }
 
    public void setRecordAssistPort(int recordAssistPort) {
        this.recordAssistPort = recordAssistPort;
    }
}