fuliqi
2024-08-29 4163c93761115c7524ef74a557a1f5e01eafb429
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
package com.ycl.api.YS.liveview.live;
 
import com.ycl.api.YS.NetDemo;
 
import javax.swing.*;
 
/**
 * 
 * @introduction  Make I frame
 * @description Support IPC/NVR/VMS
 */
public class MakeI {
 
    /**
     * 
     * @introduction Make I frame
     * @description Calling the interface of NETDEV_MakeKeyFrame to dynamically create an I frame
     *
     */
    public static void makeI(){
        if(null == NetDemo.lpUserID){
            JOptionPane.showMessageDialog(null, "Please Login device first. error code"+NetDemo.netdevsdk.NETDEV_GetLastError());
            return;
        }
        if(NetDemo.ChannelID == 0){
            JOptionPane.showMessageDialog(null, "Please Login device first. error code"+NetDemo.netdevsdk.NETDEV_GetLastError());
            return;
        }
        
        boolean bRet = NetDemo.netdevsdk.NETDEV_MakeKeyFrame(NetDemo.lpUserID, NetDemo.ChannelID, 0);
        if(bRet){
            JOptionPane.showMessageDialog(null, "Make Key Frame OK");
        }
        else{
            JOptionPane.showMessageDialog(null, "Make Key Frame failed,  Please check device status.");
        }
    }
}