Audio and video communication method and system and audio and video communication platform
By optimizing user list and media server service status management, the number of signaling interactions is reduced, the problem of long response time in traditional audio and video communication is solved, and communication efficiency and real-time performance are improved.
Patent Information
- Application Number
- CN202410656724.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
AI Technical Summary
Traditional audio and video communication methods lack a clear and efficient message structure, resulting in too many signaling interactions, long response times, and low communication efficiency.
By obtaining room requests from participants and hosts, updating the user list, subscribing to the service status of the media server, and optimizing audio and video data distribution, the number of signaling interactions is reduced and communication efficiency is improved.
It reduces the response time of audio and video communication, improves communication efficiency and real-time performance, and simplifies the communication process.
Smart Images

Figure CN118612376A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio and video communication, and in particular to an audio and video communication method, system and audio and video communication platform. Background Art
[0002] The development of network technology has brought many conveniences to people's lives. For example, in terms of communication, it provides an audio and video communication method based on the Internet to achieve more convenient and faster communication. In the traditional communication process from calling to answering, there is a lack of a clear and efficient message structure to define the specific process of signaling interaction, which requires more than 10 signaling interactions in the entire communication process, resulting in long response time and low communication efficiency during audio and video communication. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide an audio and video communication method, system and audio and video communication platform, which can simplify the signaling interaction process in the communication process, thereby reducing the response time of audio and video and improving the communication efficiency of audio and video.
[0004] In the first aspect, an embodiment of the present invention provides an audio and video communication method, including: obtaining a room joining request sent by a participant; the room joining request includes a target room number; updating a user list corresponding to the target room number according to the room joining request; the user list stores user information of each communication user; the communication users include a host and at least one participant; generating joining feedback information according to the user list, and sending the joining feedback information to the participant to receive audio and video data sent by the participant; and subscribing each communication user participating in the communication to the audio and video data corresponding to other communication users except itself in the updated user list to complete the audio and video communication between all communication users in the user list.
[0005] Furthermore, before the step of obtaining a room joining request sent by a participant, the method also includes: obtaining a room creation request sent by a host; the room creation request includes the host's user information; after the room is successfully created, generating a room number and user list corresponding to the room; generating creation feedback information based on the room number and user list, and sending the creation feedback information to the host to receive audio and video data sent by the host.
[0006] Furthermore, before the step of obtaining the room creation request sent by the host, the method also includes: traversing the address and real-time data of each successfully registered media server in the media server history record at a preset time interval, and obtaining the registration data corresponding to the media server; comparing the real-time data with the registration data to determine whether the registration data includes each service data in the real-time data; if so, determining that the service status of the current media server is normal.
[0007] Further, the media server is registered in the following manner: obtaining a registration request of the media server to be registered; obtaining service data corresponding to the media server to be registered, and saving the service data to the media server history record; determining whether the media server history record includes service data, and if so, deleting each cached data related to the media server to be registered in the media server history record; traversing each successfully registered media server whose service status is normal, and establishing a connection between the media server to be registered and each successfully registered media server; determining whether the media server to be registered is successfully connected to each successfully registered media server, and if so, determining that the media server to be registered is a successfully registered media server; sending registration success information to the media server to be registered, determining that the service data and communication data after the successful connection are the registration data corresponding to the media server, and saving the registration data to the media server history record.
[0008] Furthermore, the step of subscribing each communication user participating in the communication to the audio and video data corresponding to other communication users except the communication user in the updated user list includes: traversing the media servers with normal service status in the media server history records; allocating a corresponding media server for each audio and video data from the media servers with normal service status according to a preset allocation principle; and forwarding the address of the server of each communication user participating in the communication to other communication users except the communication user in the user list.
[0009] Furthermore, the audio and video data includes at least one of audio data and video data; after the step of subscribing for each communication user participating in the communication to the audio and video data corresponding to other communication users except oneself in the updated user list to complete the audio and video communication between all communication users in the user list, the method also includes: if the audio and video data is audio data, after receiving the video data sent by any communication user in the room, subscribing to the video data for other communication users.
[0010] Furthermore, the audio and video data includes at least one of audio data and video data; after the step of subscribing for each communication user participating in the communication to the audio and video data corresponding to other communication users except oneself in the updated user list to complete the audio and video communication between all communication users in the user list, the method also includes: if the audio and video data is video data and audio data, after receiving the stop publishing video data information sent by any communication user in the room, subscribing to audio data for other communication users.
[0011] Furthermore, the audio and video data include at least one of audio data and video data; after the step of subscribing to the audio and video data corresponding to other communication users except oneself in the updated user list for each communication user participating in the communication to complete the audio and video communication between all communication users in the user list, the method also includes: after receiving the communication status information sent by any communication user in the room, obtaining the audio and video data of the corresponding communication user according to the communication status information; the communication status information includes at least one of pausing audio communication, pausing video communication, resuming audio communication and resuming video communication.
[0012] In the second aspect, an embodiment of the present invention provides an audio and video communication system, including: a request acquisition module, used to obtain a room joining request sent by a participant; the room joining request includes a target room number; a user list update module, used to update the user list corresponding to the target room number according to the room joining request; the user list stores user information of each communication user; the communication users include a host and at least one participant; an audio and video data acquisition module, used to generate joining feedback information according to the user list, and send the joining feedback information to the participant to receive audio and video data sent by the participant; a communication module, used to subscribe each communication user participating in the communication to the audio and video data corresponding to other communication users except itself in the updated user list, so as to complete the audio and video communication between all communication users in the user list.
[0013] In a third aspect, an embodiment of the present invention provides an audio and video communication platform, including a relay control unit and a signaling control unit, and also includes the above-mentioned audio and video communication system; the audio and video communication system is respectively connected to the relay control unit and the signaling control unit.
[0014] The embodiment of the present invention provides an audio and video communication method, system and audio and video communication platform, including: obtaining a room joining request sent by a participant; the room joining request includes a target room number; updating a user list corresponding to the target room number according to the room joining request; the user list stores user information of each communication user; the communication users include a host and at least one participant; generating joining feedback information according to the user list, and sending the joining feedback information to the participant to receive the audio and video data sent by the participant; subscribing for each communication user participating in the communication to the audio and video data corresponding to other communication users except the user in the updated user list, so as to complete the audio and video communication between all communication users in the user list. In this method, by reducing the number of signaling interactions in the communication process, the response time of audio and video is reduced, the communication efficiency of audio and video is improved, and the real-time performance of audio and video communication is improved.
[0015] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0016] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A flow chart of the audio and video communication method provided in Embodiment 1 of the present invention;
[0019] Figure 2 A flowchart of creating a host room provided in the first embodiment of the present invention;
[0020] Figure 3 A flow chart of determining the service status of a media server provided in Embodiment 1 of the present invention;
[0021] Figure 4 A flow chart of a registration method for a media server provided in Embodiment 1 of the present invention;
[0022] Figure 5 A schematic diagram of relay registration of a media server provided in Embodiment 1 of the present invention;
[0023] Figure 6 A schematic diagram of relay maintenance of a media server provided in Embodiment 1 of the present invention;
[0024] Figure 7 A flowchart of the steps of subscribing to audio and video data in a user list provided in the first embodiment of the present invention;
[0025] Figure 8 A schematic diagram of relay management for participants to join a room provided in the first embodiment of the present invention;
[0026] Fig. 9 A schematic diagram of a method for audio and video switching provided in Embodiment 1 of the present invention;
[0027] Fig.10 A schematic diagram of an audio and video communication system provided in Embodiment 2 of the present invention;
[0028] Fig.11 This is an audio and video communication platform provided in Embodiment 3 of the present invention.
[0029] Icons: 1-Request acquisition module; 2-User list update module; 3-Audio and video data acquisition module; 4-Communication module; 5-Relay control unit; 6-Signaling control unit; 7-Audio and video communication system. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] To facilitate understanding of this embodiment, the embodiment of the present invention is described in detail below.
[0032] Embodiment 1:
[0033] Figure 1 This is a flow chart of the audio and video communication method provided in Example 1 of the present invention.
[0034] The audio and video communication method is applied to an audio and video communication platform, and participants and hosts conduct real-time audio and video communication on the audio and video platform through terminal devices connected to the audio and video communication platform.
[0035] Reference Figure 1 , audio and video communication methods, including:
[0036] Step S101, obtaining a room joining request sent by a participant; the room joining request includes a target room number.
[0037] Here, the target room number is the room number corresponding to the room that the participant wants to join. The room joining request also includes the user information of the participant.
[0038] In one embodiment, referring to Figure 2 Before step S101, the method further includes:
[0039] Step S201, obtaining a room creation request sent by a host; the room creation request includes user information of the host.
[0040] Here, in the audio and video communication method, the communication users participating in the communication include a host and at least one participant, wherein the communication user who creates the room is the host.
[0041] User information includes user ID, user address, etc.
[0042] In one embodiment, referring to Figure 3 Before step S201, the method further includes:
[0043] Step S301: traverse the address and real-time data of each successfully registered media server in the media server history record at a preset time interval, and obtain the registration data corresponding to the media server.
[0044] Here, the preset time interval is preset according to actual needs.
[0045] The media server is used to transmit the data stream of audio and video data. When the communication users participate in the communication in the room, a good and stable media server is required to ensure the establishment of audio and video communication. If the media server service status is abnormal, when the audio and video call is established, there will be quality problems such as call failure or no sound in the audio and video.
[0046] The available media servers are marked by periodically performing heartbeat detection on the media servers to ensure that healthy and available media servers are allocated to audio and video services.
[0047] Real-time data includes status data of media server interfaces and media transmission channels.
[0048] The historical data of the media server is stored in a pre-set cache server. The data stored in the cache server is retrieved through nacos (Service Registration and Discovery Center) for comparison with the real-time data.
[0049] In one embodiment, referring to Figure 4 In step S301, the media server history record is generated in the following manner:
[0050] Step S401: obtaining a registration request of a media server to be registered.
[0051] Here, all media servers are controlled by MCU (Multipoint Control Unit).
[0052] After the media server to be registered is started, the registration interface (such as smooth / mcu / register) is called to register the media service with the MCU, indicating that the media server to be registered is ready to provide services.
[0053] Step S402: Obtain service data corresponding to the media server to be registered, and save the service data to the media server history record.
[0054] Here, service data refers to data such as ServiceUrl (real attributes), which can include information such as server address, port number, protocol type, path or API endpoint, query parameters and authentication information.
[0055] The service data of the media server to be registered is cached in the cache server, which helps to quickly access and manage the media server.
[0056] Step S403: determine whether the media server history record includes service data, and if so, delete each cache data related to the media server to be registered in the media server history record.
[0057] Here, if there is old cache data about the media server to be registered in the cache server, the cache server will clear it. The MCU checks whether there is any user data of the communicating user related to the media server to be registered. If so, the data will be cleared. The MCU traverses the user list on the media server and deletes the invalid user data on the media server node to be registered.
[0058] Step S404, traverse each successfully registered media server whose service status is normal, and establish a connection between the media server to be registered and each successfully registered media server.
[0059] Here, a media transmission channel is established between the media server to be registered and the media server that has successfully registered.
[0060] Step S405, determining whether the media server to be registered is successfully connected to each successfully registered media server, and if so, determining that the media server to be registered is a successfully registered media server.
[0061] Here, if the connection between the media server to be registered and the successfully registered media server is successful, it is determined that the audio and video data can be directly transmitted between the media server to be registered and the successfully registered media server, and it is determined that the registration of the media server to be registered is successful.
[0062] Step S406, sending registration success information to the media server to be registered, determining the service data and the communication data after successful connection as the registration data corresponding to the media server, and saving the registration data to the media server history record.
[0063] Here, the MCU sends a notification of successful registration to the media server to be registered.
[0064] The communication data includes the communication status of the connection channels established between the media server and other media servers.
[0065] If a media server is successfully registered, the information of the media server is saved in the registration list of nacos.
[0066] Specifically, the media server relay registration is performed by the relay management method, refer to Figure 5 , including the media server to be registered as MediaGW1, the media server that has successfully registered as MediaGW2, the MCU for relay management and the cache server redis. The steps of relay registration of the media server include:
[0067] 1. After MediaGW1 is started, the MCU registration interface (smooth / mcu / register) is called to register the media service.
[0068] 2. Save the ServiceUrl and other data of MediaGW1 to the cache server.
[0069] 3. If there is cache data related to the MediaGW1 being registered, clear and initialize it.
[0070] 4. Query the communication user cache data of MediaGW1, clear it and return the user list.
[0071] 5. Traverse the user list and delete the user data of invalid communication users.
[0072] 6. Query the media servers whose service status is normal and successfully registered, and traverse all the media servers whose service status is normal and successfully registered.
[0073] 7. MCU calls the createTransport interface of MediaGW2 service.
[0074] 8. MediaGW2 creates a directly connected Transport2 for MediaGW1.
[0075] 9. MCU obtains Transport2 of MediaGW2 server.
[0076] 10. MCU calls the createTransport interface of MediaGW1 service.
[0077] 11. MediaGW1 creates a directly connected Transport1 for MediaGW2.
[0078] 12. MCU obtains Transport1 of MediaGW1 server.
[0079] 13. MCU calls the connectTransport interface of MediaGW1 service
[0080] 14. MCU calls the connectTransport interface of MediaGW2 service. At this time, MediaGW2 and MediaGW1 complete the direct connection of media server Transport.
[0081] 15. Call the MediaGW1 registration success notification interface to inform that the registration is complete.
[0082] Among them, referring to Table 1, the interfaces in the media server relay management are as follows.
[0083]
[0084] Table 1 Media server relay management interface
[0085] Step S302: compare the real-time data with the registration data to determine whether the registration data includes each service data in the real-time data.
[0086] Here, naxos determines whether each service data in the real-time data exists in the registration data to determine whether the media server in the cache server is still in the registration list of nacos.
[0087] Step S303: If yes, determine that the service status of the current media server is normal.
[0088] Here, if naxos determines that each service data in the real-time data exists in the registration data, and determines that the service status of the current media server is normal, the MCU keeps the registration data of the current media server stored in the cache server.
[0089] If naxos determines that any service data in the real-time data does not exist in the registration data, and determines that the service status of the current media server is abnormal, the MCU will call the status detection interface of the current media server to check its status. The MCU receives the response of the media server detection interface. If the detection interface returns a failure, it indicates that the media server may have been offline or unavailable. For media servers that fail to detect, the MCU will clear all cached data related to the server node. The MCU will also query the user cache data related to the server, clear this data, and delete all invalid user data on the server.
[0090] Specifically, the intermediate maintenance of the media server is performed through the relay management method. Figure 6 , including the first media server MediaGW1, the second media server MediaGW2, the MCU for relay management, the cache server redis and the service registration and discovery center nacos. The steps of media server relay maintenance include:
[0091] 1. The MCU obtains all registered media server data from the cache server.
[0092] 2. Traverse each piece of real-time data of the media server and call nacos (Service Registration and Discovery Center) to obtain the service registration data for comparison.
[0093] 3. If the service exists in nacos, the media service status is normal and the media service registration data continues to remain in the cache server.
[0094] 4. If the service is not in nacos, call the media server status detection interface.
[0095] 5. Receive the media server detection interface response.
[0096] 6. If the detection interface returns a failure, clear the cache data related to the media server node.
[0097] 7. Query the user cache data of the registered node, clear and return the user list.
[0098] 8. Traverse the user list and delete invalid user data on the node.
[0099] Step S202: after the room is successfully created, generate the room number and user list corresponding to the room.
[0100] Here, each room corresponds to a unique room number. When a room is successfully created, the initial user list at this time only includes the user information of the host.
[0101] Step S203: Generate creation feedback information according to the room number and the user list, and send the creation feedback information to the host to receive the audio and video data sent by the host.
[0102] Here, the creation feedback information includes creation success feedback, room number and user list. After the host receives the creation feedback information, the host establishes communication with the audio and video communication platform and can send audio and video data to the room.
[0103] Step S102, updating the user list corresponding to the target room number according to the room joining request; the user list stores the user information of each communication user; the communication users include the host and at least one participant.
[0104] Here, the user information of the participant is added to the user list corresponding to the target room number.
[0105] Step S103: Generate joining feedback information according to the user list, and send the joining feedback information to the participant to receive the audio and video data sent by the participant.
[0106] Here, the joining feedback information includes joining success feedback and an updated user list. After the participant receives the joining feedback information, the participant establishes communication with the audio and video communication platform and can send audio and video data to the room.
[0107] Step S104, subscribing each communication user participating in the communication to the audio and video data corresponding to other communication users except the user himself in the updated user list, so as to complete the audio and video communication between all communication users in the user list.
[0108] In one embodiment, referring to Figure 7 , the steps of step S104 include:
[0109] Step S701, traverse the media servers whose service status is normal in the media server history records.
[0110] Here, the media server with a normal service status is a media server that can normally transmit audio and video data.
[0111] Step S702: According to a preset allocation principle, a corresponding media server is allocated to each audio or video data from the media servers in normal service status.
[0112] Here, the preset allocation principles include: operator matching principle, campus matching principle and load balancing principle. The operator matching principle is to bind the media server to the public network link of the specified operator. When registering the media service, the corresponding operator tag is marked on the media server. When traversing and selecting the media server, the media server that matches the operator ID accessed by the service user is selected.
[0113] The park matching principle is that the media server belongs to a specified park. When registering the media service, the media server is marked with a label corresponding to the park. When traversing and selecting media servers, the media server of the corresponding park is allocated according to the host's park, ensuring that the media servers used in a room are all in the same park.
[0114] The load balancing principle is to ensure balanced distribution of media servers for audio and video services through load balancing algorithms based on the above two principles.
[0115] Step S703, forwarding the server address of each communication user participating in the communication to other communication users in the user list except the user himself.
[0116] Here, audio and video communication is established between each communication user participating in the communication through the address of the media server.
[0117] Specifically, participants are managed by joining the room through the relay management method, refer to Figure 8The management method for participants to join a room includes an SDK client, a media server MediaGW, and an MCU for relay management. The participant sends a request to join the room to the MCU through the client. The relay management steps for participants to join the room include:
[0118] 1. The SDK establishes a connection with the media server MediaGW.
[0119] 2. MCU performs token identity verification.
[0120] 3. MCU sends connect / disconnect signaling, where disconnect is a verification failure rejection signaling and connect is a verification success signaling.
[0121] 4. createWebRtcTransport creates a WebRtc (Web Real-time Communication) channel.
[0122] 5. connectSendWebRtcTransport establishes a WebRTC connection for the sending channel.
[0123] 6. connectRecvWebRtcTransport establishes a WebRTC connection for the receiving channel.
[0124] 7. The participant sends a request to join the room.
[0125] 8. MCU verifies the media server. If it fails, it sends a disconnection signal and the reason for the failure to the SDK.
[0126] 9. Return the updated user list.
[0127] 10. MediaGW notifies all communicating users that a new participant has joined the channel.
[0128] 11. SDK publishes audio data (if any).
[0129] 12. MediaGW acts as a proxy to send audio information (if any).
[0130] 13. SDK releases video data (if any).
[0131] 14. MediaGW acts as a proxy to send video information (if any).
[0132] 15. If the default subscription audio and video stream mode is used when the SDK is connected, the MediaGW agent user automatically completes the subscription.
[0133] 16. After the subscription is successful, the notification is returned.
[0134] 17. MediaGW notifies the SDK that the new consumer has completed the stream subscription. The audio and video stream subscriptions are separate.
[0135] 18. SDK leaves the channel.
[0136] 19. MediaGW notifies the MCU that other participants have left.
[0137] The interface for relay management for participants to join a room is shown in Table 2.
[0138] Table 2 Interface for relay management of participants joining the room
[0139]
[0140]
[0141] The audio and video data includes at least one of audio data and video data.
[0142] In one embodiment, when the audio and video data is audio data, after step S104, the method further includes:
[0143] If the audio and video data is audio data, after receiving the video data sent by any communication user in the room, the video data is subscribed for other communication users.
[0144] Here, in this embodiment, the audio data can be upgraded to video data for transmission.
[0145] Specifically, the communication users in the user list communicate using audio. When any user participating in the communication in the room sends video data, the video data sent by the user is subscribed to for other communication users.
[0146] In one embodiment, when the audio and video data is video data and audio data, after step S104, the method further includes:
[0147] After receiving the communication status information sent by any communication user in the room, the audio and video data of the corresponding communication user is obtained according to the communication status information; the communication status information includes at least one of pausing audio communication, pausing video communication, resuming audio communication and resuming video communication.
[0148] Here, in this embodiment, the audio and video data may be downgraded to audio data, the audio data may be paused or resumed, and the video data may be paused or resumed.
[0149] In one embodiment, when the audio and video data is video data and audio data, after step S104, the method further includes:
[0150] If the audio and video data is video data and audio data, after receiving the stop publishing video data information sent by any communication user in the room, the audio data is subscribed for other communication users.
[0151] Specifically, refer to Fig. 9 , audio and video switching is performed through a relay management method, including: SDK1 first client, SDK2 second client, media server MediaGW and MCU for relay management. Among them, SDK1 and SDK2 are clients used by two communication users participating in the communication in the same room. The audio and video switching method includes:
[0152] When you need to upgrade audio data to video data:
[0153] 1.SDK1 publishes video data.
[0154] 2. MediaGW agent SDK1 publishes video data to MCU.
[0155] 3. SDK2 requests to resume subscription to SDK1's remote video data.
[0156] 4. MediaGW proxy SDK2 requests to subscribe to the video data of SDK1.
[0157] 5. After the subscription request is successful, MediaGW returns a notification to SDK2.
[0158] 6. MediaGW sends a newConsumer notification to SDK2, indicating that it has completed the subscription to SDK1’s video data.
[0159] 7. MCU notifies MediaGW that SDK1 has released the video data.
[0160] 8. MediaGW acts as a proxy for remote user SDK2 to request to subscribe to the video data of SDK1.
[0161] 9. After the subscription is successful, MediaGW returns a notification to SDK2.
[0162] 10. MediaGW sends a newConsumer notification to SDK2 to complete the subscription to SDK1’s video data.
[0163] When video data needs to be downgraded to audio data:
[0164] 11.SDK1 closes the local video source.
[0165] 12.SDK2 closes the remote video data subscription of SDK1.
[0166] 13.SDK2 stops subscribing to the remote video data of SDK1.
[0167] 14.MediaGW agent SDK1 stops publishing video data to MCU.
[0168] 15. MCU notifies MediaGW that SDK1 has stopped publishing video data.
[0169] 16. MediaGW sends an operator notification to SDK2, indicating that the video data has been closed. Operator is a notification type used to inform SDK2 of the video data status.
[0170] When you need to pause or resume audio and video data:
[0171] 17. SDK1 decides to pause or resume sending audio and video data.
[0172] 18.MediaGW agent SDK1 publishes notifications about the pause or resume of audio and video data.
[0173] 19. MCU notifies MediaGW that SDK1 has paused or resumed publishing audio and video data.
[0174] 20. MediaGW sends an onMute notification to SDK2, indicating whether the audio and video data of SDK1 is temporarily suspended. OnMute is a notification type used to indicate the transmission status of audio and video data.
[0175] The embodiment of the present invention provides an audio and video communication method, including: obtaining a room joining request sent by a participant; the room joining request includes a target room number; updating a user list corresponding to the target room number according to the room joining request; the user list stores user information of each communication user; the communication users include a host and at least one participant; generating joining feedback information according to the user list, and sending the joining feedback information to the participant to receive the audio and video data sent by the participant; and subscribing for each communication user participating in the communication to the audio and video data corresponding to other communication users except the user in the updated user list, so as to complete the audio and video communication between all communication users in the user list. In this method, by reducing the number of signaling interactions in the communication process, the response time of audio and video is reduced, the communication efficiency of audio and video is improved, and the real-time performance of audio and video communication is improved.
[0176] Embodiment 2:
[0177] Fig.10 A schematic diagram of an audio and video communication system provided in Embodiment 2 of the present invention.
[0178] Reference Fig.10, audio and video communication system, including:
[0179] The request acquisition module 1 is used to acquire a room joining request sent by a participant; the room joining request includes a target room number.
[0180] The user list updating module 2 is used to update the user list corresponding to the target room number according to the room joining request; the user list stores the user information of each communication user; the communication users include the host and at least one participant.
[0181] The audio and video data acquisition module 3 is used to generate joining feedback information according to the user list, and send the joining feedback information to the participants to receive the audio and video data sent by the participants.
[0182] The communication module 4 is used to subscribe each communication user participating in the communication to the audio and video data corresponding to other communication users except the user himself in the updated user list, so as to complete the audio and video communication between all communication users in the user list.
[0183] The embodiment of the present invention provides an audio and video communication system, which reduces the number of signaling interactions in the communication process, thereby reducing the response time of the audio and video, improving the communication efficiency of the audio and video, and further improving the real-time performance of the audio and video communication.
[0184] Embodiment three:
[0185] Fig.11 This is an audio and video communication platform provided in Embodiment 3 of the present invention.
[0186] Reference Fig.11 The audio and video communication platform includes a relay control unit 5 and a signaling control unit 6, and also includes the above-mentioned audio and video communication system 7; the audio and video communication system 7 is connected to the relay control unit 5 and the signaling control unit 6 respectively.
[0187] The embodiment of the present invention provides an audio and video communication platform, which can reduce the response time of audio and video, improve the communication efficiency of audio and video, and further improve the real-time performance of audio and video communication.
[0188] The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.
[0189] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0190] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0191] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0192] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0193] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. An audio and video communication method, characterized in that: include: Obtaining a room joining request sent by a participant; the room joining request includes a target room number; According to the room joining request, a user list corresponding to the target room number is updated; the user list stores user information of each communication user; the communication users include a host and at least one of the participants; Generate joining feedback information according to the user list, and send the joining feedback information to the participant to receive the audio and video data sent by the participant; Each communication user participating in the communication subscribes to the audio and video data corresponding to other communication users except the user himself in the updated user list, so as to complete the audio and video communication between all communication users in the user list.
2. The audio and video communication method according to claim 1, characterized in that: Before the step of obtaining a room joining request sent by a participant, the method further includes: Obtaining a room creation request sent by the host; the room creation request includes the user information of the host; After the room is successfully created, the room number and user list corresponding to the room are generated; Generate creation feedback information according to the room number and the user list, and send the creation feedback information to the host to receive the audio and video data sent by the host.
3. The audio and video communication method according to claim 2, characterized in that: Before the step of obtaining the room creation request sent by the host, the method further includes: According to a preset time interval, traverse the address and real-time data of each successfully registered media server in the media server history record, and obtain the registration data corresponding to the media server; Comparing the real-time data with the registration data to determine whether the registration data includes each service data in the real-time data; If yes, determine that the service status of the current media server is normal.
4. The audio and video communication method according to claim 3, characterized in that: The media server is registered in the following way: Obtain a registration request from the media server to be registered; Obtaining service data corresponding to the media server to be registered, and saving the service data to the media server history record; Determine whether the media server history record includes the service data, and if so, delete each cache data related to the media server to be registered in the media server history record; Traversing each successfully registered media server whose service status is normal, and establishing a connection between the media server to be registered and each successfully registered media server; Determine whether the media server to be registered is successfully connected to each of the media servers that have been successfully registered, and if so, determine that the media server to be registered is the media server that has been successfully registered; Sending registration success information to the media server to be registered, determining the service data and the communication data after successful connection as registration data corresponding to the media server, and saving the registration data to the media server history record.
5. The audio and video communication method according to claim 3, characterized in that: The step of subscribing each communication user participating in the communication to the audio and video data corresponding to other communication users other than the user in the updated user list includes: Traversing the media servers whose service status is normal in the history records of the media servers; According to a preset allocation principle, from the media servers in normal service status, a corresponding media server is allocated to each of the audio and video data; The server address of each communication user participating in the communication is forwarded to other communication users in the user list except the user himself.
6. The audio and video communication method according to claim 1, characterized in that: The audio and video data includes at least one of audio data and video data; After the step of subscribing each communication user participating in the communication to the audio and video data corresponding to other communication users except the user in the updated user list to complete the audio and video communication between all communication users in the user list, the method further includes: If the audio and video data is the audio data, after receiving the video data sent by any of the communication users in the room, the other communication users are subscribed to the video data.
7. The audio and video communication method according to claim 1, characterized in that: The audio and video data includes at least one of audio data and video data; After the step of subscribing each communication user participating in the communication to the audio and video data corresponding to other communication users except the user in the updated user list to complete the audio and video communication between all communication users in the user list, the method further includes: If the audio and video data is the video data and the audio data, after receiving the stop publishing video data information sent by any of the communication users in the room, the audio data is subscribed for the other communication users.
8. The audio and video communication method according to claim 1, characterized in that: The audio and video data includes at least one of audio data and video data; After the step of subscribing each communication user participating in the communication to the audio and video data corresponding to other communication users except the user in the updated user list to complete the audio and video communication between all communication users in the user list, the method further includes: After receiving the communication status information sent by any of the communication users in the room, the audio and video data of the corresponding communication user is obtained according to the communication status information; the communication status information includes at least one of pausing audio communication, pausing video communication, resuming audio communication and resuming video communication.
9. An audio and video communication system, characterized in that: include: A request acquisition module, used to acquire a room joining request sent by a participant; the room joining request includes a target room number; A user list updating module is used to update the user list corresponding to the target room number according to the room joining request; the user list stores user information of each communication user; the communication users include the host and at least one of the participants; An audio and video data acquisition module, used to generate joining feedback information according to the user list, and send the joining feedback information to the participant to receive the audio and video data sent by the participant; The communication module is used to subscribe each communication user participating in the communication to the audio and video data corresponding to other communication users in the updated user list except for the user himself, so as to complete the audio and video communication between all communication users in the user list.
10. An audio and video communication platform, characterized in that: It includes a relay control unit and a signaling control unit, and also includes the audio and video communication system as described in claim 9; the audio and video communication system is connected to the relay control unit and the signaling control unit respectively.
