Skip to content

Commit 9b9fde9

Browse files
author
eagleychen
committed
2 parents a6ad12f + 9b57437 commit 9b9fde9

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
-9.01 KB
Binary file not shown.

Source/XP2P-iOS/Classes/AppWrapper.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extern "C" {
2121

2222
#define MAX_SIZE_OF_PARAMS 3000
2323

24-
static const char * VIDEOSDKVERSION = "2.4.x+git.fb841851";
24+
static const char * VIDEOSDKVERSION = "2.4.x+git.889200c8";
2525

2626
typedef enum
2727
{
@@ -42,6 +42,7 @@ typedef enum
4242
XP2PTypeCmdNOReturn = 1007, // 设备未返回app自定义信令
4343
XP2PTypeStreamEnd = 1008, // 设备停止推流,或者由于达到设备最大连接数,拒绝推流
4444
XP2PTypeDownloadEnd = 1009, // 设备停止推流,下载结束
45+
XP2PTypeStreamRefush = 1010, // 设备拒绝推流,请求的devicename不一致
4546
XP2PTypeSaveFileOn = 8000, //获取保存音视频流开关状态
4647
XP2PTypeSaveFileUrl = 8001 //获取音视频流保存路径
4748
} XP2PType;
@@ -78,6 +79,11 @@ typedef enum
7879
XP2P_ERR_CLIENT_NULL = -1020 //从map中取出的client为空
7980
} XP2PErrCode;
8081

82+
typedef struct {
83+
unsigned char* report_buf;
84+
size_t report_size;
85+
} data_report_t;
86+
8187
typedef const char *(*msg_handle_t)(const char *id, XP2PType type, const char *msg);
8288
typedef void (*av_recv_handle_t)(const char *id, uint8_t *recv_buf, size_t recv_len);
8389
typedef char *(*device_data_recv_handle_t)(const char *id, uint8_t *recv_buf, size_t recv_len);
@@ -294,7 +300,7 @@ IPCLIBRARY_API size_t getStreamBufSize(const char *id);
294300
IPCLIBRARY_API void setStunServerToXp2p(const char *server, uint16_t port);
295301

296302
IPCLIBRARY_API void setContentDetail(const char *content, const char *detail);
297-
IPCLIBRARY_API const char* getContentData();
303+
IPCLIBRARY_API data_report_t getContentData();
298304
IPCLIBRARY_API const char* getUserID();
299305
#ifdef __cplusplus
300306
}

Source/XP2P-iOS/libenet.a

6.49 KB
Binary file not shown.

0 commit comments

Comments
 (0)