提交所进行的修改
parent
7bdee2dc48
commit
4e6515d521
@ -0,0 +1,77 @@
|
||||
package com.zhehekeji.web.config.zlm;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class RtspSessionResponse {
|
||||
|
||||
private int code;
|
||||
private List<RtspSession> data;
|
||||
|
||||
@Data
|
||||
public static class RtspSession {
|
||||
private int aliveSecond;
|
||||
private String app;
|
||||
private Integer loss; // 映射 JSON 中的 "loss" 字段
|
||||
private long bytesSpeed;
|
||||
private long createStamp;
|
||||
@JsonProperty("isRecordingHLS")
|
||||
private boolean recordingHLS;
|
||||
@JsonProperty("isRecordingMP4")
|
||||
private boolean recordingMP4;
|
||||
private OriginSock originSock;
|
||||
private int originType;
|
||||
private String originTypeStr;
|
||||
private String originUrl;
|
||||
private String params;
|
||||
private int readerCount;
|
||||
private String schema;
|
||||
private String stream;
|
||||
private int totalReaderCount;
|
||||
private List<Track> tracks;
|
||||
private String vhost;
|
||||
|
||||
@Data
|
||||
public static class OriginSock {
|
||||
private String identifier;
|
||||
@JsonProperty("local_ip")
|
||||
private String localIp;
|
||||
@JsonProperty("local_port")
|
||||
private int localPort;
|
||||
@JsonProperty("peer_ip")
|
||||
private String peerIp;
|
||||
@JsonProperty("peer_port")
|
||||
private int peerPort;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class Track {
|
||||
@JsonProperty("codec_id")
|
||||
private int codecId;
|
||||
@JsonProperty("codec_id_name")
|
||||
private String codecIdName;
|
||||
@JsonProperty("codec_type")
|
||||
private int codecType;
|
||||
private long duration;
|
||||
private int fps;
|
||||
private int frames;
|
||||
@JsonProperty("gop_interval_ms")
|
||||
private int gopIntervalMs;
|
||||
@JsonProperty("gop_size")
|
||||
private int gopSize;
|
||||
private int height;
|
||||
@JsonProperty("key_frames")
|
||||
private int keyFrames;
|
||||
private boolean ready;
|
||||
private int width;
|
||||
private int channels;
|
||||
@JsonProperty("sample_bit")
|
||||
private int sampleBit;
|
||||
@JsonProperty("sample_rate")
|
||||
private int sampleRate;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue