In IM communication, there will often be one-to-many, many-to-many communication scenarios, whether it is the voice or video, or the combination of the two, then how to achieve one-to-one real-time communication scene requirements, the following describes BRAChat's Instant Messenger SDK.
The brachat SDK (anychat audio and video interactive development platform) is a cross-platform (*) Instant messaging solution based on advanced H. code Standard, AAC audio coding standards and peer-to technology, support high-definition video, integration of Bai Rui technology in audio and video coding, multimedia communications in the field of leading development technology and rich product experience and design of high-quality, wide adaptability, distributed, modular network audio-visual interactive platform.
Since the chat Platform Core SDK can only be used to interact with voice, video, and text in the room, if you want to complete the peer-to-peer chat of voice and video in the IM implemented by the SDK, you need to implement it through the business layer extension, as follows:
1. Client A wants to make a voice video call with Client B, then a request for a voice video chat is sent to B through the transparent channel function (Brac_transbuffer), and when B agrees, the service layer server is notified using the interface (Brac_sendsdkfilterdata). Request a room that is assigned a point-to-point chat;
2, the Business layer server received a, B point-to-point chat request, assign a room number, using the interface (BRAS_SENDBUFTOUSER) notification to A, B, and in the parameters of the notification with room number;
3, A, B received business-level server notification, at the same time into the room allocated by the server, open their own voice, video equipment, and automatically request the other's voice, video data, so that a, B two users in the same room for voice, video chat function, The process of entering the room is completely transparent to the user;
4, when a, B has a party to close the chat interface (leave the room), the other party also automatically leave the room;
5, Login system success, did not enter the room, if a want to send a text message to B users, the upper application can customize an instruction, through the interface "Brac_transbuffer" sent to each other, that is, point-to-point text chat, can not enter the room, through the transparent channel can be achieved.
6, the specific demo implementation can refer to Http://bbs.anychat.cn/forum.php?mod=viewthread&tid=1112&highlight=%CB%BD%C1%C4
Instant Messenger SDK One-to-a-communication technology