ドキュメント

サポート

Vivox Unity SDK

Vivox Unity SDK

アンチフラッディング

Implement anti-flooding measures for text chat.
読み終わるまでの所要時間 1 分最終更新 23日前

サインイン前のパラメーター
MaxTextMessageRate
を設定することにより、レート制限を設定します。0 に設定すると、この機能は無効になります。
レート制限は Vivox SDK によって強制されます。ユーザーが許可されているよりも高いレートでメッセージを送信しようとすると、
VxErrorMessageTextRateExceeded
エラーが返されます。
vx_req_account_send_msg *req;vx_req_account_send_msg_create(&req);req->connector_handle = vx_strdup("c1");req->account_handle = vx_strdup(".issuer-w-dev.mytestaccountname.");req->language = vx_strdup(“en-us”);req->user_uri = vx_strdup("sip:theotheruser@vd1.vivox.com");req->message_body = vx_strdup("Hey there buddy!");int status = vx_issue_request2(&req->base); // If rate limiting is surpassed, status = VxErrorMessageTextRateExceeded