Demo in the interface file - HCNetSDK. In Java, there is only a small number of functions in the interface PlayCtrl, see "play library programming guide" v7.3.6 contains most of the function, a load problem? ! I download the device network SDK_V5. 3.5.46 (for Windows x64), containing playCtrl. DLL files, don't know where is not good debugging, request customer service service failed, can only help you a great god!!!!!!!!!!
//play library function declarations, PlayCtrl. DLL
Interface PlayCtrl extends StdCallLibrary
{
PlayCtrl INSTANCE=(PlayCtrl) Native. LoadLibrary (". \ \ PlayCtrl ",
PlayCtrl. Class);
Public static final ints STREAME_REALTIME=0;
Public static final ints STREAME_FILE=1;
Boolean PlayM4_GetPort (NativeLongByReference nPort);
Boolean PlayM4_OpenStream (NativeLong nPort, ByteByReference pFileHeadBuf, int nSize, int nBufPoolSize);
Boolean PlayM4_InputData (NativeLong nPort, ByteByReference pbufs, int nSize);
Boolean PlayM4_CloseStream (NativeLong nPort);
Boolean PlayM4_SetStreamOpenMode (NativeLong nPort, int nMode);
Boolean PlayM4_Play (NativeLong nPort, HWND HWND);
Boolean PlayM4_Stop (NativeLong nPort);
Boolean PlayM4_SetSecretKey (NativeLong nPort, NativeLong lKeyType, String pSecretKey, NativeLong lKeyLen);
}
HCNetSDK. In Java code as shown above, "broadcast V7.3.6 library programming guide" PlayM4_GetLastError, PlayM4_OpenFile, and many other functions are not
CodePudding user response:
Write "absolute path"!