Jay
2024-11-08 02722a3f9eca857ce7fffea352e9f7ee692a1b71
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
package com.iailab.netsdk.lib.enumeration;
 
/**
 * @author 47081
 * @version 1.0
 * @description 录像文件的状态
 * @date 2021/2/22
 */
public enum EM_VIDEO_FILE_STATE {
  /** 未知 */
  EM_VIDEO_FILE_STATE_UNKNOWN,
  /** 正在写 */
  EM_VIDEO_FILE_STATE_TEMPORARY,
  /** 已写完并正常关闭文件句柄 */
  EM_VIDEO_FILE_STATE_COMPLETE;
 
  public static EM_VIDEO_FILE_STATE getVideoFileState(int status) {
    for (EM_VIDEO_FILE_STATE fileState : EM_VIDEO_FILE_STATE.values()) {
      if (fileState.ordinal() == status) {
        return fileState;
      }
    }
    return EM_VIDEO_FILE_STATE_UNKNOWN;
  }
}