文档

支持

Vivox Core SDK

Vivox Core SDK

Leave a channel

How to remove a player from a Vivox channel and disconnect from communication.
阅读时间1 分钟最后更新于 12 天前

To remove a user from a channel, the game sends a
vx_req_sessiongroup_remove_session
message to the Vivox SDK.
The following code displays an example of how to perform this operation:
. . .vx_req_sessiongroup_remove_session *req;vx_req_sessiongroup_remove_session_create(&req);req->sessiongroup_handle = vx_strdup("sg1");req->session_handle = vx_strdup("mychannel");vx_issue_request3(&req->base, &request_count);. . .