dengzedong
2024-12-19 85b2001c0ec2f1adc598db3bf47ad457dcca7074
提交 | 用户 | 时间
149dd0 1 package com.iailab.netsdk.lib.enumeration;
H 2
3 /**
4  * @author 47081
5  * @version 1.0
6  * @description 录像文件的状态
7  * @date 2021/2/22
8  */
9 public enum EM_VIDEO_FILE_STATE {
10   /** 未知 */
11   EM_VIDEO_FILE_STATE_UNKNOWN,
12   /** 正在写 */
13   EM_VIDEO_FILE_STATE_TEMPORARY,
14   /** 已写完并正常关闭文件句柄 */
15   EM_VIDEO_FILE_STATE_COMPLETE;
16
17   public static EM_VIDEO_FILE_STATE getVideoFileState(int status) {
18     for (EM_VIDEO_FILE_STATE fileState : EM_VIDEO_FILE_STATE.values()) {
19       if (fileState.ordinal() == status) {
20         return fileState;
21       }
22     }
23     return EM_VIDEO_FILE_STATE_UNKNOWN;
24   }
25 }