Skip to content

Commit

Permalink
increase signaling metrics message size
Browse files Browse the repository at this point in the history
  • Loading branch information
niyatim23 committed Nov 20, 2023
1 parent 7be92b5 commit 317c08c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/Common.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ VOID onDataChannelMessage(UINT64 customData, PRtcDataChannel pDataChannel, BOOL
PSampleStreamingSession pSampleStreamingSession = (PSampleStreamingSession) customData;
PSampleConfiguration pSampleConfiguration = pSampleStreamingSession->pSampleConfiguration;
DataChannelMessage dataChannelMessage = {'\0', '\0', '\0', '\0', '\0', '\0'};
CHAR pMessageSend[MAX_DATA_CHANNEL_METRICS_MESSAGE_SIZE];
CHAR pMessageSend[SIZEOF(DataChannelMessage)];
jsmn_parser parser;
jsmn_init(&parser);
jsmntok_t tokens[MAX_JSON_TOKEN_COUNT];
Expand Down
2 changes: 1 addition & 1 deletion samples/Samples.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ extern "C" {

#define MAX_DATA_CHANNEL_METRICS_MESSAGE_SIZE 172 // strlen(DATA_CHANNEL_MESSAGE_TEMPLATE) + 20 * 5
#define MAX_PEER_CONNECTION_METRICS_MESSAGE_SIZE 105 // strlen(PEER_CONNECTION_METRICS_JSON_TEMPLATE) + 20 * 2
#define MAX_SIGNALING_CLIENT_METRICS_MESSAGE_SIZE 302 // strlen(SIGNALING_CLIENT_METRICS_JSON_TEMPLATE) + 20 * 10
#define MAX_SIGNALING_CLIENT_METRICS_MESSAGE_SIZE 736 // strlen(SIGNALING_CLIENT_METRICS_JSON_TEMPLATE) + 20 * 10
#define MAX_ICE_AGENT_METRICS_MESSAGE_SIZE 113 // strlen(ICE_AGENT_METRICS_JSON_TEMPLATE) + 20 * 2

CHAR pPeerConnectionMetricsMessage[MAX_PEER_CONNECTION_METRICS_MESSAGE_SIZE];
Expand Down

0 comments on commit 317c08c

Please sign in to comment.