两个回调函数:
FRealDataCallBack 实现预览回调数据
DecCallBack 解码回调函数
在HCNetSDK.java补充相关函数和结构声明
//播放库函数声明,PlayCtrl.dll
interface PlayCtrl extendsStdCallLibrary
{
PlayCtrl INSTANCE= (PlayCtrl) Native.loadLibrary("lib\\PlayCtrl", PlayCtrl.class);public static final int STREAME_REALTIME = 0;public static final int STREAME_FILE = 1;//20140501, cuizhenfu@gmail.com, frame type
public static final int T_AUDIO16 = 101;public static final int T_AUDIO8 = 100;public static final int T_UYVY = 1;public static final int T_YV12 = 3;public static final int T_RGB32 = 7;booleanPlayM4_GetPort(NativeLongByReference nPort);boolean PlayM4_OpenStream(NativeLong nPort, ByteByReference pFileHeadBuf, int nSize, intnB