liusuyi
2026-06-01 a2e7e8ff9cfaa69b001d483710bddbda50d55c91
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
package com.ard.gb28181.api.common.enums;
 
/**
 * 支持的通道数据类型
 */
 
public class ChannelDataType {
 
    public final static int GB28181 = 1;
    public final static int STREAM_PUSH = 2;
    public final static int STREAM_PROXY = 3;
    public final static int JT_1078 = 200;
 
    public final static String PLAY_SERVICE = "sourceChannelPlayService";
    public final static String PLAYBACK_SERVICE = "sourceChannelPlaybackService";
    public final static String DOWNLOAD_SERVICE = "sourceChannelDownloadService";
    public final static String PTZ_SERVICE = "sourceChannelPTZService";
 
 
    public static String getDateTypeDesc(Integer dataType) {
        if (dataType == null) {
            return "未知";
        }
        return switch (dataType) {
            case ChannelDataType.GB28181 -> "国标28181";
            case ChannelDataType.STREAM_PUSH -> "推流设备";
            case ChannelDataType.STREAM_PROXY -> "拉流代理";
            case ChannelDataType.JT_1078 -> "部标设备";
            default -> "未知";
        };
    }
 
 
}