hkstreamer/include/HkStreamer.h

44 lines
928 B
C
Raw Normal View History

2023-03-24 19:34:36 +08:00
#ifndef _HK_STREAMER_
#define _HK_STREAMER_
2023-03-31 18:32:46 +08:00
#include <string>
using namespace std;
2023-03-24 19:34:36 +08:00
// // #ifdef __LINUX__
// typedef unsigned char UCHAR;
// typedef unsigned char* PBYTE;
// typedef char* LPTSTR;
// typedef unsigned short USHORT;
// typedef unsigned long ULONG;
// typedef unsigned long unsigned long ;
// // #endif //#ifdef __LINUX__
2023-03-29 19:03:49 +08:00
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct
{
2023-03-31 18:32:46 +08:00
string sDeviceAddress;
string sUserName;
string sPassword;
2023-03-29 19:03:49 +08:00
} LoginInfo, *LPLoginInfo;
2023-03-24 19:34:36 +08:00
2023-03-31 18:32:46 +08:00
2023-03-29 19:03:49 +08:00
typedef struct
{
unsigned long lChannel;
2023-03-31 18:32:46 +08:00
unsigned long bitrate;
string start;
string end;
2023-03-29 19:03:49 +08:00
} StreamCon, *LPStream;
2023-03-24 19:34:36 +08:00
2023-03-29 19:03:49 +08:00
#define HPR_OK 0
#define HPR_ERROR -1
int playback(LPLoginInfo loginInfo, LPStream stream);
2023-04-07 11:31:09 +08:00
int play(LPLoginInfo loginInfo, LPStream stream);
2023-03-29 19:03:49 +08:00
int getCfg(LPLoginInfo loginInfo);
#ifdef __cplusplus
}
#endif
2023-03-24 19:34:36 +08:00
2023-03-31 18:32:46 +08:00
#endif