Call method, server and computer-readable storage medium

Obtaining terminal connection information through the server and establishing a call connection solves the problem that the IoT terminal integrated with a third-party video cloud App cannot initiate a call, and improves the terminal's applicability and call quality.

CN112333411BActive Publication Date: 2024-09-17SHENZHEN TCL NEW-TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010742335.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-28
Publication Date
2024-09-17
Estimated Expiration
2040-07-28

AI Technical Summary

Technical Problem

IoT terminals integrated with third-party video cloud multi-application apps cannot initiate calls, which reduces the applicability of the terminal.

Method used

Obtain the application connection information when detecting the terminal connection through the server, establish the relationship between the terminal and the application, send the invitation instruction to the invited terminal when receiving the call instruction, and establish the call connection after receiving the consent instruction, and support point-to-point connection to improve Call quality.

Benefits of technology

It solves the problem of terminals being unable to initiate calls, improves the terminal's applicability and call quality, and realizes effective call connections between terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112333411B
    Figure CN112333411B
Patent Text Reader

Abstract

The present invention provides a call method, a server and a computer-readable storage medium. The call method is applied to the server, and the call method includes the following steps: when a terminal connection is detected, the application connection information of the connected terminal is obtained; when a call instruction sent by a requesting terminal in the connected terminal based on the application connection information is received, a corresponding invitation instruction is sent to an invited terminal in the connected terminal according to the call instruction; when an agreement instruction returned by the invited terminal is received, a call connection is established between the requesting terminal and the invited terminal, so that the requesting terminal and the invited terminal can talk through the call connection. The present invention can establish a connection between the requesting terminal and the invited terminal, so that the requesting terminal can talk with the invited terminal, solve the problem that the integrated third-party video cloud multi-application cannot initiate a call, and improve the applicability of the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a communication method, device and computer-readable storage medium. Background Art

[0002] With the development of intelligent wireless technology, the connection between IoT terminals is getting closer and closer. However, at present, IoT terminals integrated with third-party video cloud multi-application apps cannot initiate calls, which reduces the applicability of the terminals. Summary of the invention

[0003] The main purpose of the present invention is to provide a video call method, device and computer-readable storage medium, aiming to solve the problem that a multi-application App integrated with a third-party video cloud cannot initiate a call.

[0004] To achieve the above object, an embodiment of the present invention provides a communication method, which is applied to a server and includes the following steps:

[0005] When a terminal connection is detected, the application connection information of the connected terminal is obtained;

[0006] When receiving a call instruction sent by a requesting terminal among the connected terminals based on the application connection information, sending a corresponding invitation instruction to an invited terminal among the connected terminals according to the call instruction;

[0007] When the consent instruction returned by the invited terminal is received, a call connection is established between the requesting terminal and the invited terminal, so that the requesting terminal and the invited terminal can have a call through the call connection.

[0008] Optionally, when a terminal connection is detected, the step of acquiring application connection information of the connected terminal includes:

[0009] When a terminal connection is detected, terminal identification information of the connected terminal is obtained, and the terminal identification information is compared with a preset mapping table to determine whether there is known identification information consistent with the terminal identification information in the preset mapping table;

[0010] If there is known identification information consistent with the terminal identification information in the preset mapping table, it is determined that the terminal identification information matches the preset mapping table, and application connection information of the connected terminal is obtained.

[0011] Optionally, after the step of acquiring application connection information of the connected terminal when a terminal connection is detected, the method further includes:

[0012] When receiving the terminal viewing instruction sent by the requesting terminal, returning the terminal identification information to the requesting terminal, so that the requesting terminal can determine the invited object identification according to the terminal identification information;

[0013] Accordingly, when receiving a call instruction sent by a requesting terminal in the connected terminals based on the application connection information, the step of sending a corresponding invitation instruction to an invited terminal in the connected terminals according to the call instruction includes:

[0014] When receiving a call instruction sent by a requesting terminal in the connected terminals based on the application connection information, an invited terminal is determined in the connected terminals according to the invited object identifier in the call instruction, and a corresponding invitation instruction is sent to the invited terminal.

[0015] Optionally, when receiving a call instruction sent by a requesting terminal among the connected terminals based on the application connection information, the step of sending a corresponding invitation instruction to an invited terminal among the connected terminals according to the call instruction includes:

[0016] When receiving a call instruction sent by a requesting terminal among the connected terminals based on the application connection information, determining a request application of the requesting terminal according to the call instruction;

[0017] The corresponding invitation instruction is acquired according to the request application, and the invitation instruction is sent to the invited terminal among the connected terminals.

[0018] Optionally, when receiving the consent instruction returned by the invited terminal, establishing a call connection between the requesting terminal and the invited terminal so that the requesting terminal and the invited terminal can talk through the call connection includes:

[0019] When receiving the consent instruction returned by the invited terminal, a performance strategy is obtained according to the total number of terminals and the terminal video performance of the requesting terminal and the invited terminal, and a point-to-point connection is established between the requesting terminal and the invited terminal according to the performance strategy, so that the requesting terminal and the invited terminal can communicate through the point-to-point connection.

[0020] Optionally, the terminal video performance includes a terminal video frame rate, and the performance strategy includes a video frame bandwidth.

[0021] The step of obtaining a performance strategy according to the total number of terminals of the requesting terminal and the invited terminal and the terminal video performance comprises:

[0022] Acquire a total frame rate according to the terminal video frame rate of the requesting terminal and the terminal video frame rate of the invited terminal;

[0023] Acquire a frame rate average value according to the total frame rate and the total number of requesting terminals and invited terminals;

[0024] The corresponding video frame bandwidth is obtained according to the frame rate average.

[0025] Optionally, after the step of obtaining a performance strategy according to the total number of terminals and terminal video performance of the requesting terminal and the invited terminal when receiving the consent instruction returned by the invited terminal, and establishing a point-to-point connection between the requesting terminal and the invited terminal according to the performance strategy so that the requesting terminal and the invited terminal can talk through the point-to-point connection, the step further includes:

[0026] When the requesting terminal and the invited terminal are in a call, the call information sent by the invited terminal is acquired and the call information is stored.

[0027] Optionally, after the step of acquiring call information sent by the invited terminal and storing the call information when the requesting terminal and the invited terminal are talking, the method further includes:

[0028] When the information forwarding instruction sent by the requesting terminal is received, the call information is sent to the requesting terminal.

[0029] In addition, to achieve the above-mentioned purpose, an embodiment of the present invention further proposes a server, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program implements the steps of the video call method as described above when executed by the processor.

[0030] In addition, to achieve the above objectives, an embodiment of the present invention further proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the video call method as described above are implemented.

[0031] When the server of the embodiment of the present invention detects that a terminal is connected, it will obtain the application connection information of the connected terminal, and then establish a corresponding relationship between the terminal and the application; when a call instruction sent by a requesting terminal in the connected terminal based on the application is received, a corresponding invitation instruction is sent to the invited terminal in the connected terminal; when a consent instruction returned by the invited terminal is received, a connection can be established between the requesting terminal and the invited terminal, so that the requesting terminal can talk with the invited terminal, thereby solving the problem that the integrated third-party video cloud multi-application App cannot initiate a call, and improving the applicability of the terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the server structure involved in the embodiment of the present invention;

[0033] Figure 2 FIG. 1 is a flow chart of a first embodiment of a communication method according to the present invention.

[0034] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0036] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture. If the specific posture changes, the directional indications will also change accordingly.

[0037] In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0038] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0039] The communication method involved in the embodiment of the present invention is mainly applied to a server, and the physical carrier form of the server can be a personal computer (PC), a notebook computer, etc.

[0040] Reference Figure 1 , Figure 1It is a schematic diagram of the server hardware architecture involved in the embodiment of the present invention. In the embodiment of the present invention, the server includes a processor 1001 (such as a central processing unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display screen (Display), an input unit such as a key (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as wireless fidelity WIreless-FIdelity, WI-FI interface); the memory 1005 may be a high-speed random access memory (random access memory, RAM), or a stable memory (non-volatile memory), such as a disk storage, and the memory 1005 may optionally be a storage device independent of the aforementioned processor 1001. Of course, those skilled in the art will understand that Figure 1 The hardware structure shown in the figure does not constitute a limitation of the present invention.

[0041] Continue to refer to Figure 1 , Figure 1 The memory 1005 as a readable storage medium may include an operating system, a network communication module, and a computer program. Figure 1 In the embodiment, the network communication module can be used to connect to the terminal and perform data interaction with the terminal; and the processor 1001 can call the computer program stored in the memory 1005 and implement the following steps:

[0042] When a terminal connection is detected, the application connection information of the connected terminal is obtained;

[0043] When receiving a call instruction sent by a requesting terminal among the connected terminals based on the application connection information, sending a corresponding invitation instruction to an invited terminal among the connected terminals according to the call instruction;

[0044] When the consent instruction returned by the invited terminal is received, a call connection is established between the requesting terminal and the invited terminal, so that the requesting terminal and the invited terminal can have a call through the call connection.

[0045] Furthermore, when a terminal connection is detected, the step of obtaining application connection information of the connected terminal includes:

[0046] When a terminal connection is detected, terminal identification information of the connected terminal is obtained, and the terminal identification information is compared with a preset mapping table to determine whether there is known identification information consistent with the terminal identification information in the preset mapping table;

[0047] If there is known identification information consistent with the terminal identification information in the preset mapping table, it is determined that the terminal identification information matches the preset mapping table, and the application connection information of the connected terminal is obtained.

[0048] Furthermore, the processor 1001 may also call a computer program stored in the memory 1005 and implement the following steps:

[0049] When receiving the terminal viewing instruction sent by the requesting terminal, returning the terminal identification information to the requesting terminal, so that the requesting terminal can determine the invited object identification according to the terminal identification information;

[0050] Accordingly, when receiving a call instruction sent by a requesting terminal in the connected terminals based on the application connection information, the step of sending a corresponding invitation instruction to an invited terminal in the connected terminals according to the call instruction includes:

[0051] When receiving a call instruction sent by a requesting terminal in the connected terminals based on the application connection information, an invited terminal is determined in the connected terminals according to the invited object identifier in the call instruction, and a corresponding invitation instruction is sent to the invited terminal.

[0052] Further, when receiving a call instruction sent by a requesting terminal in the connected terminals based on the application connection information, the step of sending a corresponding invitation instruction to an invited terminal in the connected terminals according to the call instruction includes:

[0053] When receiving a call instruction sent by a requesting terminal among the connected terminals based on the application connection information, determining a request application of the requesting terminal according to the call instruction;

[0054] The corresponding invitation instruction is acquired according to the request application, and the invitation instruction is sent to the invited terminal among the connected terminals.

[0055] Further, when receiving the consent instruction returned by the invited terminal, establishing a call connection between the requesting terminal and the invited terminal so that the requesting terminal and the invited terminal can talk through the call connection includes:

[0056] When receiving the consent instruction returned by the invited terminal, a performance strategy is obtained according to the total number of terminals and the terminal video performance of the requesting terminal and the invited terminal, and a point-to-point connection is established between the requesting terminal and the invited terminal according to the performance strategy, so that the requesting terminal and the invited terminal can communicate through the point-to-point connection.

[0057] Furthermore, the terminal video performance includes the terminal video frame rate, and the performance strategy includes the video frame bandwidth.

[0058] The step of obtaining a performance strategy according to the total number of terminals of the requesting terminal and the invited terminal and the terminal video performance comprises:

[0059] Acquire a total frame rate according to the terminal video frame rate of the requesting terminal and the terminal video frame rate of the invited terminal;

[0060] Acquire a frame rate average value according to the total frame rate and the total number of requesting terminals and invited terminals;

[0061] The corresponding video frame bandwidth is obtained according to the frame rate average.

[0062] Furthermore, the processor 1001 may also call a computer program stored in the memory 1005 and implement the following steps:

[0063] When the requesting terminal and the invited terminal are in a call, the call information sent by the invited terminal is acquired and the call information is stored.

[0064] Furthermore, the processor 1001 may also call a computer program stored in the memory 1005 and implement the following steps:

[0065] When the information forwarding instruction sent by the requesting terminal is received, the call information is sent to the requesting terminal.

[0066] An embodiment of the present invention provides a conversation method.

[0067] Reference Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a communication method according to the present invention.

[0068] In this embodiment, the communication method is applied to a server, and the communication method includes the following steps:

[0069] Step S10, when a terminal connection is detected, obtaining application connection information of the connected terminal;

[0070] In this embodiment, the server can be connected to a number of terminals, and the terminals can realize integrated third-party video cloud multi-application App calls through the server; wherein the terminal can be a mobile phone, a tablet computer, a tablet computer, a smart TV, an access control device, etc. The server in this embodiment includes a cloud server and a video server (TUTK). When the cloud server detects that a terminal is connected, if the number of connected terminals is greater than a certain number (such as greater than 1), it will detect whether the video function of the connected terminal is turned on. If the video function is turned on, the server will obtain the terminal identification information of the terminal, and the terminal identification information includes the terminal name, the MAC address (Media Access Control Address) of the terminal, etc.; it is worth noting that the MAC addresses of different terminals are different, that is, the MAC address of each terminal has the characteristic of uniqueness. Of course, the cloud server can also count the number of terminals with the video function turned on and store the number. For terminals with the video function turned on, the cloud server will obtain the application connection information of the terminal, and the application connection information includes the name of the App application turned on by the terminal, the connection status of the App application and the video server (whether the connection is successful), etc., and send the application connection information to the video server for implementing subsequent processing steps.

[0071] Furthermore, the step S10 includes:

[0072] Step A11, when a terminal connection is detected, obtaining terminal identification information of the connected terminal, and comparing the terminal identification information with a preset mapping table to determine whether there is known identification information consistent with the terminal identification information in the preset mapping table;

[0073] Step A12: If the preset mapping table contains known identification information that is consistent with the terminal identification information, it is determined that the terminal identification information matches the preset mapping table, and application connection information of the connected terminal is obtained.

[0074] In this embodiment, when the cloud server detects that a terminal is connected, if the terminal video function is turned on, the cloud server will obtain the terminal identification information of the terminal, and then compare the terminal identification information with the preset mapping table to determine whether there is known identification information consistent with the terminal identification information in the preset mapping table, thereby determining whether the terminal identification information matches the preset mapping table; wherein the preset mapping table records the terminal identification information of known terminals, and the terminal identification information of these known terminals can be referred to as known identification information; if there is known identification information consistent with the terminal identification information in the preset mapping table, it can be considered that the acquired terminal identification information matches the preset mapping table. If the preset mapping table matches, the terminal has been connected before (or the terminal is trustworthy), and the application connection information of the terminal can be obtained and sent to the video server (TUTK); if there is no known identification information consistent with the terminal identification information in the preset mapping table, it is determined that the terminal identification information does not match the preset mapping table, and it can be considered that the terminal has not been connected before (or the terminal is untrustworthy). At this time, the connection of the terminal can be stopped. Of course, a cache area for temporary storage of connections can also be allocated to the terminal, and the application connection information of the terminal can be obtained, and then the application connection information is sent to the video server (TUTK).

[0075] Step S20, when receiving a call instruction sent by a requesting terminal among the connected terminals based on the application connection information, sending a corresponding invitation instruction to an invited terminal among the connected terminals according to the call instruction;

[0076] In this embodiment, when the cloud server is connected to the terminal and the application connection information of the terminal is obtained (the video function of the terminal is turned on and the application is connected to the video server), the terminal can talk to another terminal through the cloud server. Specifically, a connected terminal can send a call instruction to the cloud server. For the convenience of explanation, the terminal that sends the call instruction can be called a requesting terminal; wherein the call instruction includes the terminal identification information of the requesting terminal, the application connection information of the requesting terminal (such as the App application name, package name), the time of the connection request, the terminal identification of the invited terminal, etc.; it is worth noting that the call instruction sent by the requesting terminal is sent based on its own application connection information. For example, if the requesting terminal is the App application "T" connected to the video server (TUTK), the call instruction sent includes the App application name "T". When the cloud server obtains the call instruction, it can determine which requesting terminal initiated the call request, the application connection information of the requesting terminal, the requesting application (application name) of the requesting terminal, and which invited terminal this call instruction is for, etc.; then, the cloud server can send a corresponding invitation instruction to the invited terminal based on this information to ask whether the invited terminal agrees to talk with the requesting terminal. Among them, the invitation instruction can be sent in the form of a message queue. For example, the cloud server can embed this information into the MQTT (Message Queuing Telemetry Transport) message body (Payload) custom field as an invitation instruction. The field format can be defined according to actual needs. For example, the field format includes the terminal identification information of the requesting terminal, the number of App application connections, the application connection information of the requesting terminal (the requesting application name of the requesting terminal), the time of the requested connection, the control command, etc., and then the invitation instruction is put into the message queue (middleware) for sending, and then the invited terminal obtains the invitation instruction.

[0077] Furthermore, in order to facilitate the requesting terminal to obtain which terminals are connected to the cloud server so as to select the invited object, the requesting terminal may also query the information of the connected terminals. Specifically, after the step of obtaining the application connection information of the connected terminal when a terminal connection is detected in step A11, the following is further included:

[0078] Step A40: When receiving the terminal viewing instruction sent by the requesting terminal, the terminal identification information is returned to the requesting terminal, so that the requesting terminal can determine the invited object identification according to the terminal identification information.

[0079] In this embodiment, when the cloud server obtains the terminal identification information of the connected terminal, it will store it; and the requesting terminal can send a terminal viewing instruction to the cloud server to view which terminals are connected to the cloud server. When the cloud server receives the terminal viewing instruction sent by the requesting terminal, it will return the obtained terminal identification information to the requesting terminal. When the requesting terminal obtains the terminal identification information returned by the requesting terminal, it can determine which terminals are connected to the cloud server, and then determine the invited object and the invited object identification of the call according to the terminal identification information.

[0080] Accordingly, the step S20 includes:

[0081] Step A21, when receiving a call instruction sent by a requesting terminal in the connected terminals based on the application connection information, determining an invited terminal in the connected terminals according to the invited object identifier in the call instruction, and sending a corresponding invitation instruction to the invited terminal.

[0082] When the requesting terminal determines the invited object and the invited object identifier of the call, it can send a call instruction according to the invited object, the invited object identifier and its own application connection information. When the cloud server receives the call instruction, it can also determine the invited terminal in the connected terminals according to the invited object identifier in the call instruction, and send a corresponding invitation instruction to the invited terminal. The specific process is not repeated here.

[0083] Step S30: when receiving the consent instruction returned by the invited terminal, establishing a call connection between the requesting terminal and the invited terminal, so that the requesting terminal and the invited terminal can have a call through the call connection.

[0084] In this embodiment, when the invited terminal receives the invitation instruction, it can obtain relevant invitation information, such as the name of the requesting application, the requesting terminal, etc. according to the invitation instruction; the invited terminal can determine whether to agree to make a call according to the actual situation, and if it agrees, it returns the corresponding consent instruction to the cloud server, and if it refuses, it returns the corresponding rejection instruction to the cloud server. When the cloud server receives the consent instruction returned by the invited terminal, it will establish a call connection between the requesting terminal and the invited terminal, so that the requesting terminal and the invited terminal can make a call through the call connection; wherein, the call mode can be point-to-point, or it can be forwarded through a cloud server or a video server. In practice, for the same invited terminal, there may be multiple requesting terminals requesting a call, so when the invited terminal receives the invitation instruction, it can also determine the order of agreeing to the invitation according to the content of the invitation instruction, such as determining the requesting terminal with priority call according to the terminal identification information in the invitation instruction, and determining the requesting terminal with priority call according to the control command, and determining the requesting terminal with priority call according to the time of the request connection. Secondly, the invited terminal can also determine the identity of the requesting terminal according to the terminal identification information of the requesting terminal, and then determine whether to allow the requesting terminal to control the invited terminal to perform certain operations during the call. In addition, the invited terminal may also determine the number of parallel conversation threads to be opened according to the number of requesting terminals, so as to conduct conversations with multiple requesting terminals through the parallel conversation threads.

[0085] When the server of this embodiment detects that a terminal is connected, it will obtain the application connection information of the connected terminal, and then establish a corresponding relationship between the terminal and the application; when a call instruction sent by a requesting terminal in the connected terminal based on the application is received, a corresponding invitation instruction is sent to the invited terminal in the connected terminal; when a consent instruction returned by the invited terminal is received, a connection can be established between the requesting terminal and the invited terminal, so that the requesting terminal can talk with the invited terminal, solving the problem that the integrated third-party video cloud multi-application App cannot initiate a call, and improving the applicability of the terminal.

[0086] Based on the above-mentioned first embodiment of the communication method, a second embodiment of the communication method of the present invention is proposed.

[0087] In this embodiment, step S30 includes:

[0088] Step A31, when receiving the consent instruction returned by the invited terminal, obtain the performance strategy according to the total number of terminals and the terminal video performance of the requesting terminal and the invited terminal, and establish a point-to-point connection between the requesting terminal and the invited terminal according to the performance strategy, so that the requesting terminal and the invited terminal can communicate through the point-to-point connection.

[0089] In this embodiment, when the cloud server receives the consent instruction returned by the invited terminal, it will establish a call connection between the requesting terminal and the invited terminal, so that the requesting terminal and the invited terminal can talk through the call connection; wherein, the call connection can be in the form of a point-to-point connection. In order to establish the point-to-point connection, the cloud server will first obtain the total number of terminals of the call objects involved in the call connection, as well as the terminal video performance of each of these call objects, that is, determine the total number of terminals of the requesting terminal and the invited terminal, that is, the terminal video performance of each terminal, and then according to the total number of terminals and the performance strategy corresponding to the terminal video performance, the performance strategy can be considered as the call protocol when each terminal is connected to the point-to-point connection. The content of the agreement may include the transmitted video frame rate and bandwidth; of course, it includes the video format, resolution, encoding and decoding method, etc.; then the cloud server can establish a point-to-point connection between the requesting terminal and the invited terminal according to the performance strategy, so that the requesting terminal and the invited terminal can talk through the point-to-point connection. It should be understood that for point-to-point calls, the requesting terminal and the invited terminal need to obtain each other's address information and other content to realize direct calls, and the address information of both parties can be forwarded through the cloud server. For example, when the requesting terminal sends a call instruction, the call instruction includes the address information of the requesting terminal, and when the invited terminal returns an agreement instruction to the cloud server, the agreement instruction includes the address information of the invited terminal. After receiving the agreement instruction, the cloud server will send the address information of the invited terminal to the requesting terminal and the address information of the requesting terminal to the invited terminal, so that the requesting terminal and the invited terminal can obtain the address information of both parties and perform relevant network settings (such as P2P hole punching). In the above manner, point-to-point calls between the requesting terminal and the invited terminal can be realized, which improves the efficiency of the call.

[0090] Further, the terminal performance includes a terminal video frame rate, the performance strategy includes a video frame bandwidth, and the step A31 includes:

[0091] Step A311, obtaining a total frame rate according to the terminal video frame rate of the requesting terminal and the terminal video frame rate of the invited terminal;

[0092] In this embodiment, the terminal performance includes the terminal video frame rate, and the performance strategy includes the video frame bandwidth. The cloud server will obtain the terminal video frame rate of the requesting terminal and the terminal video frame rate of the invited terminal, and then obtain the total frame rate based on the terminal video frame rate of the requesting terminal and the terminal video frame rate of the invited terminal, that is, calculate the total frame rate of all terminals included in the call. For example, if the call involves three terminals, and the terminal video frame rates are 24, 60, and 120 respectively, the total frame rate is 204.

[0093] Step A312, obtaining a frame rate average according to the total frame rate and the total number of requesting terminals and invited terminals;

[0094] In this embodiment, when the total frame rate is obtained, the average frame rate can be obtained according to the total frame rate, the total number of requesting terminals and invited terminals, that is, the average frame rate of each terminal in the call is calculated. For example, if the call involves three terminals and the total frame rate is 204, the average frame rate is 68.

[0095] Step A313: Obtain the corresponding video frame bandwidth according to the frame rate mean.

[0096] In this embodiment, when the frame rate average is obtained, the corresponding video frame bandwidth can be obtained according to the frame rate average. For example, after determining the bit stream according to the frame rate average and the preset resolution, the video frame bandwidth is determined according to the bit stream, the number of terminals transmitting simultaneously and the call data size. Subsequently, each terminal will use the video frame bandwidth for communication.

[0097] Through the above method, a point-to-point call can be realized between the requesting terminal and the invited terminal, and the performance strategy is set based on the video performance of each terminal during the call, which is conducive to improving the call quality.

[0098] Based on the above second embodiment of the communication method, a third embodiment of the communication method of the present invention is proposed.

[0099] In this embodiment, after step A31, the following steps are further included:

[0100] Step A50: when the requesting terminal and the invited terminal are talking through the call connection, acquiring the call information sent by the invited terminal and storing the call information.

[0101] In this embodiment, when the requesting terminal and the invited terminal are conducting a point-to-point call, the cloud server can also participate in it, obtain the call information sent by the invited terminal, and then store the call information sent by the invited terminal to record the call situation; of course, at this time, the cloud service can be regarded as a call involving one terminal. In addition, the cloud server can also obtain the call information sent by the requesting terminal, and then store the call information sent by the requesting terminal. In the above manner, when the requesting terminal and the invited terminal are conducting a point-to-point call, the cloud server can also record the call.

[0102] Furthermore, after step A50, the method further includes:

[0103] Step A60: When receiving the information forwarding instruction sent by the requesting terminal, the call information is sent to the requesting terminal.

[0104] In this embodiment, since the cloud server can obtain the call information sent by the invited terminal, when the requesting terminal cannot normally obtain the call information sent by the invited terminal (or needs to re-acquire the call information sent by the invited terminal), it can be forwarded through the cloud server. Specifically, the requesting terminal can send an information forwarding instruction to the cloud server to obtain the call information sent by the invited terminal through the cloud server; the information forwarding instruction may include the sender information of the information to be obtained (such as the terminal identification of the requesting terminal), the time period to which the obtained information belongs, etc. When the cloud server receives the information forwarding instruction sent by the requesting terminal, it can obtain the corresponding call information according to the information forwarding instruction, and then send the call information to the requesting terminal. Of course, the cloud server can also store the call information sent by the requesting terminal, and the invited terminal can also obtain the call information sent by the requesting terminal by forwarding the cloud server. The specific process is not repeated here. In the above manner, when the requesting terminal of this embodiment cannot directly obtain the call information sent by the invited terminal, it can obtain the call information sent by the invited terminal by forwarding the cloud server, which is conducive to ensuring the normal progress of the call.

[0105] In addition, an embodiment of the present invention further provides a server, the server comprising:

[0106] An information acquisition module, used to acquire application connection information of the connected terminal when a terminal connection is detected;

[0107] an instruction sending module, configured to, when receiving a call instruction sent by a requesting terminal among the connected terminals based on the application connection information, send a corresponding invitation instruction to an invited terminal among the connected terminals according to the call instruction;

[0108] The connection establishing module is used to establish a call connection between the requesting terminal and the invited terminal when receiving the consent instruction returned by the invited terminal, so that the requesting terminal and the invited terminal can have a call through the call connection.

[0109] Furthermore, the information acquisition module includes:

[0110] An information comparison unit, configured to, when a terminal connection is detected, obtain terminal identification information of the connected terminal, and compare the terminal identification information with a preset mapping table to determine whether there is known identification information in the preset mapping table that is consistent with the terminal identification information;

[0111] The information acquisition unit is configured to determine that the terminal identification information matches the preset mapping table if known identification information consistent with the terminal identification information exists in the preset mapping table, and acquire application connection information of the connected terminal.

[0112] Furthermore, the server also includes:

[0113] The identification determination unit is used to return the terminal identification information to the requesting terminal when receiving the terminal viewing instruction sent by the requesting terminal, so that the requesting terminal can determine the invited object identification according to the terminal identification information.

[0114] Correspondingly, the instruction sending module is also used to determine the invited terminal in the connected terminals according to the invited object identifier in the call instruction when receiving a call instruction sent by the requesting terminal in the connected terminals based on the application connection information, and send a corresponding invitation instruction to the invited terminal.

[0115] Furthermore, the instruction sending module includes:

[0116] an application determining unit, configured to, when receiving a call instruction sent by a requesting terminal among the connected terminals based on the application connection information, determine a request application of the requesting terminal according to the call instruction;

[0117] The instruction sending unit is used to obtain the corresponding invitation instruction according to the request application, and send the invitation instruction to the invited terminal in the connected terminal.

[0118] Furthermore, the connection establishment module is also used to obtain a performance strategy based on the total number of terminals and terminal video performance of the requesting terminal and the invited terminal when receiving a consent instruction returned by the invited terminal, and establish a point-to-point connection between the requesting terminal and the invited terminal according to the performance strategy, so that the requesting terminal and the invited terminal can communicate through the point-to-point connection.

[0119] Furthermore, the terminal video performance includes the terminal video frame rate, and the performance strategy includes the video frame bandwidth.

[0120] The connection establishment module also includes:

[0121] A total frame rate acquisition unit, configured to acquire a total frame rate according to a terminal video frame rate of the requesting terminal and a terminal video frame rate of the invited terminal;

[0122] an average value acquisition unit, configured to acquire a frame rate average value according to the total frame rate and the total number of requesting terminals and invited terminals;

[0123] The bandwidth acquisition unit is used to acquire the corresponding video frame bandwidth according to the frame rate average.

[0124] Furthermore, the server also includes:

[0125] an information storage unit, configured to obtain call information sent by the invited terminal when the requesting terminal and the invited terminal are in a call, and store the call information;

[0126] Furthermore, the server further includes:

[0127] The information sending unit is used to send the call information to the requesting terminal when receiving the information forwarding instruction sent by the requesting terminal.

[0128] In addition, an embodiment of the present invention further provides a computer-readable storage medium.

[0129] The computer-readable storage medium of the present invention stores a computer program, wherein when the computer program is executed by a processor, the steps of the above-mentioned communication method are implemented.

[0130] Among them, the method implemented when the computer program is executed can refer to the various embodiments of the call method of the present invention, and will not be repeated here.

[0131] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0132] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0133] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A method for making a call, characterized in that: The communication method is applied to a server, and the communication method comprises the following steps: When a terminal connection is detected, the application connection information of the connected terminal is obtained; When receiving a call instruction sent by a requesting terminal among the connected terminals based on the application connection information, sending a corresponding invitation instruction to an invited terminal among the connected terminals according to the call instruction; When receiving the consent instruction returned by the invited terminal, establishing a call connection between the requesting terminal and the invited terminal, so that the requesting terminal and the invited terminal can have a call through the call connection; The step of obtaining application connection information of the connected terminal includes: If the number of connected terminals is greater than the preset number, then detect whether the video function of the connected terminals is turned on; If it is enabled, obtaining the terminal identification information of the connected terminal, and comparing the terminal identification information with a preset mapping table to determine whether there is known identification information in the preset mapping table that is consistent with the terminal identification information; If there is known identification information consistent with the terminal identification information in the preset mapping table, determining that the terminal identification information matches the preset mapping table, and acquiring application connection information of the connected terminal; If the preset mapping table does not contain known identification information consistent with the terminal information, a buffer area is allocated for the connected terminal, and application connection information of the connected terminal is obtained.

2. The communication method according to claim 1, characterized in that: After the step of obtaining application connection information of the connected terminal when a terminal connection is detected, the method further includes: When receiving the terminal viewing instruction sent by the requesting terminal, returning the terminal identification information to the requesting terminal, so that the requesting terminal can determine the invited object identification according to the terminal identification information; Accordingly, when receiving a call instruction sent by a requesting terminal in the connected terminals based on the application connection information, the step of sending a corresponding invitation instruction to an invited terminal in the connected terminals according to the call instruction includes: When receiving a call instruction sent by a requesting terminal in the connected terminals based on the application connection information, an invited terminal is determined in the connected terminals according to the invited object identifier in the call instruction, and a corresponding invitation instruction is sent to the invited terminal.

3. The communication method according to claim 1, wherein: The step of, when receiving a call instruction sent by a requesting terminal among the connected terminals based on the application connection information, sending a corresponding invitation instruction to an invited terminal among the connected terminals according to the call instruction comprises: When receiving a call instruction sent by a requesting terminal among the connected terminals based on the application connection information, determining a request application of the requesting terminal according to the call instruction; The corresponding invitation instruction is acquired according to the request application, and the invitation instruction is sent to the invited terminal among the connected terminals.

4. The communication method according to claim 1, wherein: The step of establishing a call connection between the requesting terminal and the invited terminal when receiving the consent instruction returned by the invited terminal so that the requesting terminal and the invited terminal can talk via the call connection comprises: When receiving the consent instruction returned by the invited terminal, a performance strategy is obtained according to the total number of terminals and the terminal video performance of the requesting terminal and the invited terminal, and a point-to-point connection is established between the requesting terminal and the invited terminal according to the performance strategy, so that the requesting terminal and the invited terminal can communicate through the point-to-point connection.

5. The communication method according to claim 4, characterized in that: The terminal video performance includes a terminal video frame rate, the performance strategy includes a video frame bandwidth, and the step of acquiring the performance strategy according to the total number of the requesting terminal and the invited terminal and the terminal video performance includes: Acquire a total frame rate according to the terminal video frame rate of the requesting terminal and the terminal video frame rate of the invited terminal; Acquire a frame rate average value according to the total frame rate and the total number of requesting terminals and invited terminals; The corresponding video frame bandwidth is obtained according to the frame rate average.

6. The communication method according to claim 4, characterized in that: After the step of, when receiving the consent instruction returned by the invited terminal, obtaining a performance strategy according to the total number of terminals and terminal video performance of the requesting terminal and the invited terminal, and establishing a point-to-point connection between the requesting terminal and the invited terminal according to the performance strategy so that the requesting terminal and the invited terminal can talk through the point-to-point connection, the method further includes: When the requesting terminal and the invited terminal are in a call, the call information sent by the invited terminal is acquired and the call information is stored.

7. The communication method according to claim 6, characterized in that: After the step of acquiring the call information sent by the invited terminal and storing the call information when the requesting terminal and the invited terminal are in a call, the method further includes: When the information forwarding instruction sent by the requesting terminal is received, the call information is sent to the requesting terminal.

8. A server, characterized in that: The server includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the call method according to any one of claims 1 to 7 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the communication method according to any one of claims 1 to 7 are implemented.