Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
runner authored and runner committed Dec 11, 2023
1 parent 6f8e1ad commit 43af6a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Source/XP2P-iOS/Classes/AppWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ extern "C" {

#define MAX_SIZE_OF_PARAMS 3000

static const char * VIDEOSDKVERSION = "2.4.x+git.891f74e9";
static const char * VIDEOSDKVERSION = "2.4.x+git.183404b1";

typedef enum
{
XP2P_PROTOCOL_AUTO = 0, //auto模式,udp不通自动切换tcp
XP2P_PROTOCOL_UDP = 1, //udp传输
XP2P_PROTOCOL_TCP = 2, //tcp传输
} XP2PProtocolType;

typedef enum
{
Expand Down Expand Up @@ -140,7 +147,7 @@ IPCLIBRARY_API int stopAvRecvService(const char *id, void *req);
* @param sensor_timeout: 探测失败切换tcp的超时时间
* @return 0 为成功
*/
IPCLIBRARY_API int startService(const char *id, const char *product_id, const char *device_name, int sensor_timeout);
IPCLIBRARY_API int startService(const char *id, const char *product_id, const char *device_name, XP2PProtocolType protocol_type);

/**
* @brief 初始化xp2p服务
Expand Down
Binary file modified Source/XP2P-iOS/libenet.a
Binary file not shown.

0 comments on commit 43af6a0

Please sign in to comment.