CN113747100B - Audio and video call method and device, storage medium and electronic equipment - Google Patents
Audio and video call method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN113747100B CN113747100B CN202110975531.2A CN202110975531A CN113747100B CN 113747100 B CN113747100 B CN 113747100B CN 202110975531 A CN202110975531 A CN 202110975531A CN 113747100 B CN113747100 B CN 113747100B
- Authority
- CN
- China
- Prior art keywords
- call
- identifier
- channel
- long connection
- local
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004891 communication Methods 0.000 claims abstract description 40
- 230000001960 triggered effect Effects 0.000 claims abstract description 18
- 238000004088 simulation Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 12
- 230000037361 pathway Effects 0.000 claims description 4
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
- H04N7/147—Communication arrangements, e.g. identifying the communication as a video-communication, intermediate storage of the signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1069—Session establishment or de-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application discloses an audio and video call method, an audio and video call device, a storage medium and electronic equipment, and relates to the technical field of Internet of things, wherein the method comprises the following steps: establishing a first long connection with a cloud end, wherein the cloud end establishes a second long connection with target equipment; sending a call request to the target equipment through a call server so that the call server establishes a call channel; acquiring an identifier corresponding to the call channel, and adding the call channel according to the identifier; and sending the identifier to the cloud end through the first long connection, so that the cloud end sends the identifier to the target equipment through the second long connection, and the target equipment is triggered to join the conversation channel according to the identifier to carry out audio and video conversation with the local. The method and the device effectively improve the communication rate and timeliness of audio and video calls.
Description
Technical Field
The application relates to the technical field of communication, in particular to an audio and video communication method, an audio and video communication device, a storage medium and electronic equipment.
Background
When in audio-video call, the calling party device calls the receiving party device, so that the calling party device establishes a call with the receiving party device. One of the difficulties in audio and video calls is how to allow the recipient device to receive the reminder and to join the call.
At present, the conventional scheme is to push the call message to the receiving party equipment in a push mode so as to establish the call, but the push delay is usually serious in the conventional mode, even the push delay has a certain loss rate, and the communication rate and timeliness of the audio and video call are reduced.
Disclosure of Invention
The embodiment of the application provides a scheme which can effectively improve the communication rate and timeliness of audio and video calls.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme:
according to one embodiment of the application, an audio/video call method includes: establishing a first long connection with a cloud end, wherein the cloud end establishes a second long connection with target equipment; sending a call request to the target equipment through a call server so that the call server establishes a call channel; acquiring an identifier corresponding to the call channel, and adding the call channel according to the identifier; and sending the identifier to the cloud end through the first long connection, so that the cloud end sends the identifier to the target equipment through the second long connection, and the target equipment is triggered to join the conversation channel according to the identifier to carry out audio and video conversation with the local.
In some embodiments of the present application, the obtaining the identifier corresponding to the call channel includes: and receiving an identifier corresponding to the call channel returned by the call server after the call channel is established.
In some embodiments of the present application, the obtaining the identifier corresponding to the call channel includes: and acquiring the identifier corresponding to the communication channel which is built by local pre-simulation.
In some embodiments of the present application, the sending, by a call server, a call request to the target device, so that the call server establishes a call channel, includes: and sending a call request carrying a local equipment identifier and a target equipment identifier of the target equipment to the call server so as to trigger the call server to establish the call channel between the local equipment and the target equipment.
In some embodiments of the present application, the sending, to the call server, a call request carrying a local device identifier and a target device identifier of the target device, to trigger the call server to establish the call channel between the local device and the target device, includes: and sending a call request carrying an identifier corresponding to the call channel, a local equipment identifier and a target equipment identifier of the target equipment, which are constructed by local pre-simulation, to the call server so as to trigger the call server to establish the call channel between the local equipment and the target equipment, wherein the call channel corresponds to the identifier.
In some embodiments of the present application, the conversation pathway includes a video conversation conference, and the identification includes a conference identification of the video conversation conference; the step of joining the call channel according to the identification comprises the following steps: joining the video call conference according to the conference identification; the sending the identifier to the cloud end through the first long connection, so that the cloud end sends the identifier to the target device through the second long connection, and triggering the target device to join the conversation channel according to the identifier to carry out audio/video conversation with the local, including: and sending the conference identifier to the cloud end through the first long connection, so that the cloud end sends the conference identifier to the target equipment through the second long connection, and the target equipment is triggered to join the video call conference and locally conduct audio and video call according to the conference identifier.
In some embodiments of the present application, the first long connection and the second long connection comprise long connections based on a message queue telemetry transport protocol.
According to one embodiment of the present application, an audio/video telephony device includes: the connection module is used for establishing a first long connection with the cloud end, and establishing a second long connection with the target equipment; the request module is used for sending a call request to the target equipment through the call server so that the call server establishes a call channel; the joining module is used for obtaining the identification corresponding to the call channel and joining the call channel according to the identification; and the communication module is used for sending the identifier to the cloud end through the first long connection, so that the cloud end sends the identifier to the target equipment through the second long connection, and the target equipment is triggered to join the communication channel according to the identifier to carry out audio and video communication with the local.
According to another embodiment of the present application, a storage medium has stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method described in the embodiments of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method according to the embodiment of the application.
In the embodiment of the application, in the audio/video call scheme, a first long connection is established between a local terminal and a cloud terminal, and a second long connection is established between the cloud terminal and target equipment; sending a call request to the target equipment through the call server so that the call server establishes a call channel; acquiring an identifier corresponding to the call channel, and adding the call channel according to the identifier; the identification is sent to the cloud through the first long connection, so that the cloud sends the identification to the target device through the second long connection, and the target device is triggered to join the conversation channel according to the identification to conduct audio and video conversation with the local.
In this way, when in audio and video call, corresponding long connection is established with the cloud through the local equipment and the target equipment, and the identification of the call channel is shared efficiently based on the long connection through the cloud, so that the equipment can accurately and timely join the call channel to carry out audio and video call, and the communication rate and timeliness of the audio and video call are effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 shows a schematic diagram of a system to which embodiments of the present application may be applied.
Fig. 2 shows a flowchart of an audio-video call method according to an embodiment of the present application.
Fig. 3 shows a block diagram of an audio-video telephony device in accordance with one embodiment of the present application.
Fig. 4 shows a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In the following description, specific embodiments of the present application will be described with reference to steps and symbols performed by one or more computers, unless otherwise indicated. Thus, these steps and operations will be referred to in several instances as being performed by a computer, which as referred to herein performs operations that include processing units by the computer that represent electronic signals that represent data in a structured form. This operation transforms the data or maintains it in place in the memory system of the computer, which may be reconfigured or otherwise altered in ways well known to those skilled in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principles of the present application are described in the foregoing text and are not meant to be limiting, and one skilled in the art will recognize that various steps and operations described below may also be implemented in hardware.
Fig. 1 shows a schematic diagram of a system 100 to which embodiments of the present application may be applied. As shown in fig. 1, the system 100 may include a cloud server 101, a first device 102, a target device 103, and a call server 104. The first device 102 and the second device 103 may be any computer device, such as a computer, a mobile phone, a smart watch, and a home appliance. The cloud server 101 is a cloud server of the internet of things platform. The call server 104 is a server supporting the audio/video call process, and may be a separate physical server or a server cluster.
In one implementation of this example, the first terminal device 102 may establish a first long connection with a cloud (e.g., the cloud server 101), and the cloud (e.g., the cloud server 101) establishes a second long connection with the target device 103; sending a call request to the target device 103 through a call server 104, so that the call server 104 establishes a call channel; acquiring an identifier corresponding to the call channel, and adding the call channel according to the identifier; the identifier is sent to the cloud (for example, the cloud server 101) through the first long connection, so that the cloud (for example, the cloud server 101) sends the identifier to the target device 103 through the second long connection, and the target device 103 is triggered to join the conversation channel according to the identifier to carry out audio/video conversation with the local.
Fig. 2 schematically illustrates a flow chart of an audio-video call method according to an embodiment of the present application. The main body of execution of the audio/video call method may be any device, for example, the first terminal 102 shown in fig. 1.
As shown in fig. 2, the audio/video call method may include steps S210 to S240.
Step S210, a first long connection is established with a cloud end, and a second long connection is established between the cloud end and target equipment;
step S220, a call request is sent to the target equipment through the call server, so that the call server establishes a call channel;
step S230, obtaining the identification corresponding to the call channel, and adding the call channel according to the identification;
step S240, the identifier is sent to the cloud end through the first long connection, so that the cloud end sends the identifier to the target device through the second long connection, and the target device is triggered to join the conversation channel according to the identifier to conduct audio and video conversation with the local.
The connection mode of the first long connection and the second long connection which are maintained for a long time, namely the connection maintaining time length of the first long connection and the second long connection is higher than a preset threshold value. The first long connection and the second long connection may be long connections based on a message queue telemetry transport protocol (mqtt) or long connections based on a custom internet of things device long connection protocol.
The local may establish a first long connection with the cloud based on a predetermined protocol, and the target device may establish a second long connection with the cloud based on the predetermined protocol. The local target terminal can respectively establish a first long connection and a second long connection with the cloud end in a contracted target time period.
When a call request is sent to a target device locally, a call channel between the local device and the target device can be established through a call server, and the target device can be one or more, for example at least two, call channels, namely channels for pushing audio and video data between the devices, and can be audio and video call conferences or channels with a characteristic communication protocol.
The call server establishes a call channel, the local can acquire the identification corresponding to the call channel, the identification is uploaded to the cloud end through the first long connection, the cloud end sends the identification to the target equipment through the second long connection, and the target equipment is triggered to join the call channel according to the identification to perform audio and video call with the local.
The corresponding long connection is established with the cloud through the local equipment and the target equipment, and the identification of the communication channel is efficiently shared based on the long connection through the cloud, so that the equipment can accurately and timely join the communication channel to carry out audio and video communication, and the communication rate and timeliness of the audio and video communication are effectively improved.
The specific procedure of each step performed when the audio-video call is performed is described below.
In step S210, a first long connection is established with a cloud, and a second long connection is established between the cloud and a target device.
The connection mode of the first long connection and the second long connection which are maintained for a long time, namely the connection maintaining time length of the first long connection and the second long connection is higher than a preset threshold value. The first long connection and the second long connection may be long connections based on a message queue telemetry transport protocol (mqtt) or long connections based on a custom internet of things device long connection protocol.
The local may establish a first long connection with the cloud based on a predetermined protocol, and the target device may establish a second long connection with the cloud based on the predetermined protocol. The local target terminal can respectively establish a first long connection and a second long connection with the cloud end in a contracted target time period.
In one embodiment, the first long connection and the second long connection comprise long connections based on a message queue telemetry transport protocol.
In step S220, a call request is sent to the target device through a call server, so that the call server establishes a call channel.
In this example embodiment, when a call request is sent locally to a target device, through a call server, the call server may establish a call channel between the local device and the target device, where the target device may be one or more, for example, at least two, call channels, that is, channels for pushing audio and video data between devices, and may be channels of an audio and video call conference or a feature communication protocol.
In one embodiment, step S220, sending, by a call server, a call request to the target device, so that the call server establishes a call channel, includes: and sending a call request carrying the local equipment identifier and the target equipment identifier of the target equipment to a call server so as to trigger the establishment of a call channel between the local equipment and the target equipment.
The local device identification, i.e., an identification of the local device (e.g., the first device 102 shown in fig. 1), may be information uniquely identifying the local device, such as an IP address of the local device. The target device identification, i.e., the identification of the target device (e.g., target device 103 shown in fig. 1), may be information uniquely identifying the target device, such as an IP address of the target device.
And sending a call request carrying the local equipment identifier and the target equipment identifier of the target equipment to the call server, and triggering the call server to establish a call channel between the local equipment and the target equipment according to the local equipment identifier and the target equipment identifier. The user may define an account corresponding to the target device in the local call application, and further send a call request to the account, and the call server may receive the call request.
In one embodiment, sending a call request carrying a local device identifier and a target device identifier of a target device to a call server to trigger establishment of a call path between the local device and the target device includes:
and sending a call request carrying an identifier corresponding to the call channel which is built by local pre-simulation, a local equipment identifier and a target equipment identifier of target equipment to a call server so as to trigger the establishment of the call channel corresponding to the identifier between the local equipment and the target equipment.
The identifier corresponding to the call channel constructed by local pre-simulation, i.e. the channel identifier (e.g. conference identifier) constructed by the call server simulated according to the predetermined protocol before or when the call request is sent. The identification corresponding to the local pre-simulated conversation channel is sent to the conversation server, the conversation server is guided to construct the conversation channel corresponding to the identification, the identification can be uploaded to the cloud end before the conversation server issues the identification, and the identification is issued to the target device in advance by the cloud end, so that conversation efficiency is further improved.
In step S230, the identifier corresponding to the call channel is obtained, and the call channel is added according to the identifier.
In this embodiment of the present example, the call server establishes a call channel, and may locally obtain an identifier corresponding to the call channel, and then accurately join in the corresponding call channel according to the identifier.
In one embodiment, step S230, obtaining the identifier corresponding to the call channel includes: and receiving the identifier corresponding to the returned call channel after the call channel is established by the call server.
After the call channel is established, the call server generates the identifier corresponding to the call channel, and then returns the identifier corresponding to the call channel to the local equipment.
In one embodiment, step S230, obtaining the identifier corresponding to the call channel includes: and acquiring the identification corresponding to the local pre-simulated conversation channel.
The identifier corresponding to the call channel constructed by local pre-simulation, i.e. the channel identifier (e.g. conference identifier) constructed by the call server simulated according to the predetermined protocol before or when the call request is sent. The identification corresponding to the local pre-simulated conversation channel is sent to the conversation server, the conversation server is guided to construct the conversation channel corresponding to the identification, the identification can be uploaded to the cloud end before the conversation server issues the identification, and the identification is issued to the target device in advance by the cloud end, so that conversation efficiency is further improved.
In step S240, the identifier is sent to the cloud end through the first long connection, so that the cloud end sends the identifier to the target device through the second long connection, and the target device is triggered to join the conversation channel according to the identifier to perform audio/video conversation with the local.
In the embodiment of the example, the first long connection is used for uploading to the cloud, the cloud sends the identifier to the target device through the second long connection, the target device is triggered to join the conversation channel according to the identifier, the local device also joins the conversation channel according to the identifier, and then the target device and the local device can conduct audio and video conversation based on the conversation channel.
In one embodiment, the conversation pathway includes an audio-video conversation conference, and the identification includes a conference identification of the audio-video conversation conference; step S230, joining the call channel according to the identification, including:
joining an audio-video call conference according to the conference identification;
step S240, sending the identifier to the cloud end through the first long connection, so that the cloud end sends the identifier to the target device through the second long connection, and triggering the target device to join the conversation channel according to the identifier to perform audio/video conversation with the local, including:
the conference identification is sent to the cloud through the first long connection, so that the cloud sends the conference identification to the target equipment through the second long connection, and the target equipment is triggered to join the video call conference and locally conduct audio and video call according to the conference identification.
The audio-video call conference is built, so that the essence of the audio-video call is that both call parties are added into the same audio-video call conference, and the conventional video conference is different from the conventional video conference in that multiple parties agree to enter the same conference, and the audio-video call conference is divided into a calling party device and a receiving party device, and the calling party device can directly call to the receiving party device.
After the local equipment initiates a call, the call server constructs an audio-video call conference, the local equipment joins the audio-video call conference according to the conference identification, and sends the conference identification to the cloud end through the first long connection, so that the cloud end sends the conference identification to the target equipment through the second long connection, and the target equipment is triggered to join the video call conference according to the conference identification to carry out audio-video call with the local, so that the communication rate and timeliness of the audio-video call are further both considered.
In this way, based on the steps S210 to S240, the local and target devices are respectively connected with the cloud end in a long way, and the cloud end is used for efficiently sharing the identification of the communication channel based on the long connection, so that the devices can accurately and timely join the communication channel to perform audio and video communication, and the communication rate and timeliness of the audio and video communication are effectively improved.
In order to facilitate better implementation of the audio/video call method provided by the embodiment of the application, the embodiment of the application also provides an audio/video call device based on the audio/video call method. The meaning of the nouns is the same as that in the audio-video call method, and specific implementation details can be referred to the description in the method embodiment. Fig. 3 shows a block diagram of an audio-video telephony device in accordance with one embodiment of the present application.
As shown in fig. 3, the audio-video telephony device 300 may include a connection module 310, a request module 320, a joining module 330, and a telephony module 340.
The connection module 310 may be configured to establish a first long connection with a cloud, where the cloud establishes a second long connection with a target device; the request module 320 may be configured to send a call request to the target device through a call server, so that the call server establishes a call channel; the joining module 330 may be configured to obtain an identifier corresponding to the call channel, and join the call channel according to the identifier; the call module 340 may be configured to send the identifier to the cloud end through the first long connection, so that the cloud end sends the identifier to the target device through the second long connection, and trigger the target device to join the call channel according to the identifier to perform an audio/video call with a local area.
In one embodiment, the joining module 330 includes: the first acquisition unit is used for receiving the identifier corresponding to the call channel returned by the call server after the call channel is established.
In one embodiment, the joining module 330 includes: the second acquisition unit is used for acquiring the identifier corresponding to the communication channel which is constructed by local pre-simulation.
In one embodiment, the request module 320 includes: and the call request unit is used for sending a call request carrying a local equipment identifier and a target equipment identifier of the target equipment to the call server so as to trigger the call server to establish the call channel between the local equipment and the target equipment.
In one embodiment, the call request unit is configured to:
and sending a call request carrying an identifier corresponding to the call channel, a local equipment identifier and a target equipment identifier of the target equipment, which are constructed by local pre-simulation, to the call server so as to trigger the call server to establish the call channel between the local equipment and the target equipment, wherein the call channel corresponds to the identifier.
In one embodiment, the call channel includes an audio-video call conference, and the identifier includes a conference identifier of the audio-video call conference; the joining module 330 includes: the conference joining unit is used for joining the audio-video call conference according to the conference identification; the call module 340 includes: and the conference call unit is used for sending the conference identifier to the cloud end through the first long connection, so that the cloud end sends the conference identifier to the target equipment through the second long connection, and the target equipment is triggered to join the video call conference and carry out audio and video call locally according to the conference identifier.
In an embodiment, the first long connection and the second long connection of any of the preceding claims comprise a long connection based on a message queue telemetry transport protocol.
In this way, based on the audio/video call device 300, corresponding long connection is established with the cloud through both the local and target devices, and the identification of the call channel is efficiently shared based on the long connection through the cloud, so that the devices can accurately and timely join the call channel to perform audio/video call, and the communication rate and timeliness of the audio/video call are effectively improved.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, in accordance with embodiments of the present application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In addition, the embodiment of the application further provides an electronic device, which may be a terminal or a server, as shown in fig. 4, which shows a schematic structural diagram of the electronic device according to the embodiment of the application, specifically:
the electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. Those skilled in the art will appreciate that the electronic device structure shown in fig. 4 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user page, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 executes the computer programs stored in the memory 402, so as to implement various functions, for example, the processor 401 may perform the following steps:
establishing a first long connection with a cloud end, wherein the cloud end establishes a second long connection with target equipment; sending a call request to the target equipment through a call server so that the call server establishes a call channel; acquiring an identifier corresponding to the call channel, and adding the call channel according to the identifier; and sending the identifier to the cloud end through the first long connection, so that the cloud end sends the identifier to the target equipment through the second long connection, and the target equipment is triggered to join the conversation channel according to the identifier to carry out audio and video conversation with the local.
In some embodiments of the present application, when the identifier corresponding to the call channel is obtained, the processor 401 may execute: and receiving an identifier corresponding to the call channel returned by the call server after the call channel is established.
In some embodiments of the present application, when the identifier corresponding to the call channel is obtained, the processor 401 may execute: and acquiring the identifier corresponding to the communication channel which is built by local pre-simulation.
In some embodiments of the present application, when the call request is sent to the target device by the call server, so that the call server establishes a call channel, the processor 401 may perform: and sending a call request carrying a local equipment identifier and a target equipment identifier of the target equipment to the call server so as to trigger the call server to establish the call channel between the local equipment and the target equipment.
In some embodiments of the present application, when the sending, to the call server, a call request carrying a local device identifier and a target device identifier of the target device to trigger the call server to establish the call channel between the local device and the target device, the processor 401 may perform: and sending a call request carrying an identifier corresponding to the call channel, a local equipment identifier and a target equipment identifier of the target equipment, which are constructed by local pre-simulation, to the call server so as to trigger the call server to establish the call channel between the local equipment and the target equipment, wherein the call channel corresponds to the identifier.
In some embodiments of the present application, the conversation pathway includes a video conversation conference, and the identification includes a conference identification of the video conversation conference; the processor 401 may execute, when joining the call path according to the identifier: joining the video call conference according to the conference identification; the sending the identifier to the cloud end through the first long connection, so that the cloud end sends the identifier to the target device through the second long connection, and triggering the target device to join the conversation channel according to the identifier to carry out audio/video conversation with the local, including: and sending the conference identifier to the cloud end through the first long connection, so that the cloud end sends the conference identifier to the target equipment through the second long connection, and the target equipment is triggered to join the video call conference and locally conduct audio and video call according to the conference identifier.
In some embodiments of the present application, the first long connection and the second long connection comprise long connections based on a message queue telemetry transport protocol.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present embodiments also provide a storage medium having stored therein a computer program that can be loaded by a processor to perform the steps of any of the methods provided by the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Since the computer program stored in the storage medium may perform any of the steps in the method provided in the embodiment of the present application, the beneficial effects that can be achieved by the method provided in the embodiment of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It will be understood that the present application is not limited to the embodiments that have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.
Claims (6)
1. An audio-video call method is characterized by comprising the following steps:
establishing a first long connection with a cloud end, wherein the cloud end establishes a second long connection with target equipment;
sending a call request to the target equipment through a call server so that the call server establishes a call channel, wherein the call channel is a channel for pushing audio and video data between the local equipment and the target equipment, and the call request carries an identifier corresponding to the call channel which is built by local pre-simulation; the identification corresponding to the communication channel which is built by the local pre-simulation is a channel identification built by the communication server which is simulated according to a preset protocol before or when the communication request is sent; the identifier is used for guiding the call server to construct the call channel corresponding to the identifier;
acquiring an identifier corresponding to the conversation channel constructed by the local pre-simulation, and adding the identifier corresponding to the conversation channel constructed by the local pre-simulation into the conversation channel established by the conversation server;
the identification is sent to the cloud end through the first long connection, so that the cloud end sends the identification to the target equipment through the second long connection, the target equipment is triggered to join the communication channel according to the identification to carry out audio and video communication with the local, and the identification is uploaded to the cloud end through the first long connection before the communication server issues the identification;
the sending, by the call server, a call request to the target device, so that the call server establishes a call channel, including: and sending a call request carrying an identifier corresponding to the call channel, a local equipment identifier and a target equipment identifier of the target equipment, which are constructed by local pre-simulation, to the call server so as to trigger the call server to establish the call channel between the local equipment and the target equipment, wherein the call channel corresponds to the identifier.
2. The method of claim 1, wherein the conversation pathway comprises an audio-video conversation conference, and the identification comprises a conference identification of the audio-video conversation conference;
the step of adding the identifier corresponding to the call channel constructed according to the local pre-simulation to the call channel comprises the following steps:
joining the audio-video call conference according to the conference identification;
the sending the identifier to the cloud end through the first long connection, so that the cloud end sends the identifier to the target device through the second long connection, and triggering the target device to join the conversation channel according to the identifier to carry out audio/video conversation with the local, including:
and sending the conference identifier to the cloud end through the first long connection, so that the cloud end sends the conference identifier to the target equipment through the second long connection, and the target equipment is triggered to join the video call conference and locally conduct audio and video call according to the conference identifier.
3. The method according to any of claims 1 to 2, wherein the first long connection and the second long connection comprise long connections based on a message queue telemetry transport protocol.
4. An audio-video telephony device, comprising:
the connection module is used for establishing a first long connection with the cloud end, and establishing a second long connection with the target equipment;
the request module is used for sending a call request to the target equipment through the call server so that the call server establishes a call channel, wherein the call channel is a channel for pushing audio and video data between the local equipment and the target equipment, and the call request carries an identifier corresponding to the call channel which is built by local pre-simulation; the identification corresponding to the communication channel which is built by the local pre-simulation is a channel identification built by the communication server which is simulated according to a preset protocol before or when the communication request is sent; the identifier is used for guiding the call server to construct the call channel corresponding to the identifier; the sending, by the call server, a call request to the target device, so that the call server establishes a call channel, including: sending a call request carrying an identifier corresponding to the call channel, a local equipment identifier and a target equipment identifier of the target equipment, which are constructed by local pre-simulation, to the call server so as to trigger the call server to establish the call channel between the local equipment and the target equipment, wherein the call channel corresponds to the identifier;
the adding module is used for obtaining the identifier corresponding to the conversation channel built by the local pre-simulation, adding the identifier to the conversation channel built by the conversation server according to the identifier corresponding to the conversation channel built by the local pre-simulation, and uploading the identifier to the cloud through the first long connection before the conversation server issues the identifier;
and the communication module is used for sending the identifier to the cloud end through the first long connection, so that the cloud end sends the identifier to the target equipment through the second long connection, and the target equipment is triggered to join the communication channel according to the identifier to carry out audio and video communication with the local.
5. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of any of claims 1 to 3.
6. An electronic device, comprising: a memory storing a computer program; a processor reading the computer program stored in the memory to perform the method of any one of claims 1 to 3.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110975531.2A CN113747100B (en) | 2021-08-24 | 2021-08-24 | Audio and video call method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110975531.2A CN113747100B (en) | 2021-08-24 | 2021-08-24 | Audio and video call method and device, storage medium and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113747100A CN113747100A (en) | 2021-12-03 |
| CN113747100B true CN113747100B (en) | 2024-01-23 |
Family
ID=78732489
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110975531.2A Active CN113747100B (en) | 2021-08-24 | 2021-08-24 | Audio and video call method and device, storage medium and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113747100B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115348410A (en) * | 2022-08-16 | 2022-11-15 | 中国建设银行股份有限公司 | Data processing method, device, equipment and medium |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101465919A (en) * | 2007-12-19 | 2009-06-24 | 北京品视电子技术有限公司 | Method and system for implementing video conference |
| CN103546717A (en) * | 2012-07-16 | 2014-01-29 | 中兴通讯股份有限公司 | Audio/video conference connection establishment method and device |
| CN104243281A (en) * | 2014-08-20 | 2014-12-24 | 北京比邻在线信息技术有限公司 | Voice communication method based on mobile Internet |
| CN104754279A (en) * | 2013-12-30 | 2015-07-01 | 阿里巴巴集团控股有限公司 | Method and system for realizing video call |
| JP2017174276A (en) * | 2016-03-25 | 2017-09-28 | ブラザー工業株式会社 | Program and remote conference method |
| CN110519473A (en) * | 2018-05-21 | 2019-11-29 | 重庆理工大学 | Communication means, device, computer equipment and storage medium |
| CN111224792A (en) * | 2018-11-23 | 2020-06-02 | 华为技术有限公司 | Conference access method and device |
| CN113285994A (en) * | 2021-05-17 | 2021-08-20 | 深圳市欧瑞博科技股份有限公司 | Message sending method, device, server and storage medium |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7809376B2 (en) * | 2005-11-29 | 2010-10-05 | Roberto S. Catalan | Enhanced analogue of interactive voice response structures and functions for mobile phones and similar handheld communications devices |
-
2021
- 2021-08-24 CN CN202110975531.2A patent/CN113747100B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101465919A (en) * | 2007-12-19 | 2009-06-24 | 北京品视电子技术有限公司 | Method and system for implementing video conference |
| CN103546717A (en) * | 2012-07-16 | 2014-01-29 | 中兴通讯股份有限公司 | Audio/video conference connection establishment method and device |
| CN104754279A (en) * | 2013-12-30 | 2015-07-01 | 阿里巴巴集团控股有限公司 | Method and system for realizing video call |
| CN104243281A (en) * | 2014-08-20 | 2014-12-24 | 北京比邻在线信息技术有限公司 | Voice communication method based on mobile Internet |
| JP2017174276A (en) * | 2016-03-25 | 2017-09-28 | ブラザー工業株式会社 | Program and remote conference method |
| CN110519473A (en) * | 2018-05-21 | 2019-11-29 | 重庆理工大学 | Communication means, device, computer equipment and storage medium |
| CN111224792A (en) * | 2018-11-23 | 2020-06-02 | 华为技术有限公司 | Conference access method and device |
| CN113285994A (en) * | 2021-05-17 | 2021-08-20 | 深圳市欧瑞博科技股份有限公司 | Message sending method, device, server and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113747100A (en) | 2021-12-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109347934B (en) | Message pushing method and system, server, storage medium and electronic device | |
| EP3547715B1 (en) | Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker | |
| CN112767936B (en) | Voice dialogue method and device, storage medium and electronic equipment | |
| CN112260933B (en) | Communication method, communication device, electronic equipment and medium | |
| CN113836405B (en) | Information query method, device and computer readable storage medium | |
| CN112492372A (en) | Comment message display method and device, electronic equipment, system and storage medium | |
| CN113747100B (en) | Audio and video call method and device, storage medium and electronic equipment | |
| CN108965359B (en) | Communication method, communication device, readable medium, and electronic apparatus | |
| CN108566328B (en) | Data transmission method, device, medium and electronic equipment | |
| US20250008170A1 (en) | Data stream-based playing method and apparatus, device, and medium | |
| CN103297434A (en) | Method for processing data, user sides, server and system | |
| CN113993092A (en) | An emergency calling method, device, mobile terminal and network side device | |
| CN111131741B (en) | Multi-party video call method, electronic device, device, and computer-readable storage medium | |
| CN105978853B (en) | Session scheduling method, scheduling server and terminal | |
| CN118175052A (en) | Model training method, terminal and network side equipment | |
| CN111897441B (en) | Expression adding method, device and electronic device | |
| CN115098254A (en) | Method and system for triggering execution of subtask sequence and electronic equipment | |
| CN112511884B (en) | Mixed flow control method, system and storage medium for audio and video flow | |
| CN108270912A (en) | A kind of information processing method and device based on calendar application | |
| CN113765886B (en) | Multimedia playing method and device, storage medium and electronic equipment | |
| CN113810775A (en) | Voice and video connection system and method | |
| CN111818293A (en) | Communication method and device and electronic equipment | |
| CN117255332B (en) | Bluetooth connection control method and device, storage medium and electronic equipment | |
| CN114629997B (en) | Resource allocation method, device, equipment, medium and program product | |
| CN112291420A (en) | Message display method and terminal equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |