panlinlin
2021-03-30 56859d09df8d4226882d43934acf32d60a3b51d7
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
package com.genersoft.iot.vmp.common;
 
import com.alibaba.fastjson.JSONObject;
import com.genersoft.iot.vmp.media.zlm.dto.MediaItem;
import org.jetbrains.annotations.NotNull;
 
import java.util.List;
 
 
public class RealVideo implements Comparable<RealVideo>{
 
    /**
     * 应用名
     */
    private String app;
 
    /**
     * 流id
     */
    private String stream;
 
    /**
     * 观看总人数,包括hls/rtsp/rtmp/http-flv/ws-flv
     */
    private String totalReaderCount;
 
    /**
     * 协议 包括hls/rtsp/rtmp/http-flv/ws-flv
     */
    private List<MediaSchema> schemas;
 
    /**
     * 产生源类型,
     * unknown = 0,
     * rtmp_push=1,
     * rtsp_push=2,
     * rtp_push=3,
     * pull=4,
     * ffmpeg_pull=5,
     * mp4_vod=6,
     * device_chn=7
     */
    private int originType;
 
    /**
     * 客户端和服务器网络信息,可能为null类型
     */
    private MediaItem.OriginSock originSock;
 
    /**
     * 产生源类型的字符串描述
     */
    private String originTypeStr;
 
    /**
     * 产生源的url
     */
    private String originUrl;
 
    /**
     * GMT unix系统时间戳,单位秒
     */
    private Long createStamp;
 
    /**
     * 存活时间,单位秒
     */
    private Long aliveSecond;
 
    /**
     * 音视频轨道
     */
    private List<MediaItem.MediaTrack> tracks;
 
    /**
     * 音视频轨道
     */
    private String vhost;
 
    public String getVhost() {
        return vhost;
    }
 
    public void setVhost(String vhost) {
        this.vhost = vhost;
    }
 
    @Override
    public int compareTo(@NotNull RealVideo realVideo) {
        return new Long(this.createStamp - realVideo.getCreateStamp().intValue()).intValue();
    }
 
    public static class MediaSchema {
        private String schema;
        private Long bytesSpeed;
 
        public String getSchema() {
            return schema;
        }
 
        public void setSchema(String schema) {
            this.schema = schema;
        }
 
        public Long getBytesSpeed() {
            return bytesSpeed;
        }
 
        public void setBytesSpeed(Long bytesSpeed) {
            this.bytesSpeed = bytesSpeed;
        }
    }
 
 
    public String getApp() {
        return app;
    }
 
    public void setApp(String app) {
        this.app = app;
    }
 
    public String getStream() {
        return stream;
    }
 
    public void setStream(String stream) {
        this.stream = stream;
    }
 
    public String getTotalReaderCount() {
        return totalReaderCount;
    }
 
    public void setTotalReaderCount(String totalReaderCount) {
        this.totalReaderCount = totalReaderCount;
    }
 
    public List<MediaSchema> getSchemas() {
        return schemas;
    }
 
    public void setSchemas(List<MediaSchema> schemas) {
        this.schemas = schemas;
    }
 
    public int getOriginType() {
        return originType;
    }
 
    public void setOriginType(int originType) {
        this.originType = originType;
    }
 
    public MediaItem.OriginSock getOriginSock() {
        return originSock;
    }
 
    public void setOriginSock(MediaItem.OriginSock originSock) {
        this.originSock = originSock;
    }
 
 
    public String getOriginTypeStr() {
        return originTypeStr;
    }
 
    public void setOriginTypeStr(String originTypeStr) {
        this.originTypeStr = originTypeStr;
    }
 
    public String getOriginUrl() {
        return originUrl;
    }
 
    public void setOriginUrl(String originUrl) {
        this.originUrl = originUrl;
    }
 
    public Long getCreateStamp() {
        return createStamp;
    }
 
    public void setCreateStamp(Long createStamp) {
        this.createStamp = createStamp;
    }
 
    public Long getAliveSecond() {
        return aliveSecond;
    }
 
    public void setAliveSecond(Long aliveSecond) {
        this.aliveSecond = aliveSecond;
    }
 
    public List<MediaItem.MediaTrack> getTracks() {
        return tracks;
    }
 
    public void setTracks(List<MediaItem.MediaTrack> tracks) {
        this.tracks = tracks;
    }
 
 
}