CN110798647B - Device switching method and device in audio and video call process and storage medium - Google Patents

Device switching method and device in audio and video call process and storage medium Download PDF

Info

Publication number
CN110798647B
CN110798647B CN201911129443.XA CN201911129443A CN110798647B CN 110798647 B CN110798647 B CN 110798647B CN 201911129443 A CN201911129443 A CN 201911129443A CN 110798647 B CN110798647 B CN 110798647B
Authority
CN
China
Prior art keywords
identifier
equipment
switching
target account
candidate
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
Application number
CN201911129443.XA
Other languages
Chinese (zh)
Other versions
CN110798647A (en
Inventor
陈雍
王骏
申娇龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911129443.XA priority Critical patent/CN110798647B/en
Publication of CN110798647A publication Critical patent/CN110798647A/en
Application granted granted Critical
Publication of CN110798647B publication Critical patent/CN110798647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Abstract

The disclosure relates to a device switching method, device and storage medium in an audio and video call process, and belongs to the field of audio and video calls. The method comprises the following steps: receiving a device switching signaling; adding the second equipment logged with the target account into the call group according to the equipment switching signaling; and switching the second equipment to an access state and switching the first equipment to a disconnection state. According to the method for receiving the equipment switching signaling and determining the first equipment and the second equipment which are registered with the target account and pointed by the identification in the equipment switching signaling, the determined second equipment is added into a call group and switched to an access state, and the first equipment is switched to a disconnection state.

Description

Device switching method and device in audio and video call process and storage medium
Technical Field
The present disclosure relates to the field of audio and video calls, and in particular, to a device switching method, device, and storage medium in an audio and video call process.
Background
With the development of science and technology, more and more household appliances have an audio and video communication function. The audio and video call based on data flow and wireless network is easy to realize under the current technology, and at present, users tend to demand an audio and video call mode for switching devices in the call process.
At present, the device switching in the process of passing audio and video can be realized on some devices, and a user can log in accounts on a plurality of devices by means of an ongoing call initiated by certain application software in the process of calling, and realize the device switching in the process of calling in a switching mode in corresponding switching interfaces of the devices which log in the accounts.
However, in the above-mentioned communication process, when the account logs in a plurality of audio/video communication devices at the same time, the device performing the audio/video communication determines that the number of devices that can be switched exists only by the account identifier in the application program, but the switchable specific device cannot be determined, which may cause a problem in the device switching process due to the uncertainty of the switching device.
Disclosure of Invention
The embodiment of the disclosure provides a device switching method, device and storage medium in an audio and video call process, which can solve the problem that when an account logs in a plurality of audio and video call devices simultaneously, the device performing the audio and video call determines the number of devices which can be switched only through an account identifier in an application program, but the switchable specific devices cannot be determined, so that the device switching process is caused by uncertain switching devices. The technical scheme is as follows:
on one hand, a method for switching equipment in the process of audio and video communication is provided, and the method comprises the following steps:
adding first equipment logged with a target account into a call group, wherein the first equipment logged with the target account corresponds to a first identifier, and the first identifier is generated according to a first equipment identifier of the first equipment and a target account identifier of the target account;
receiving a device switching signaling sent by first equipment or second equipment, wherein the device switching signaling is used for indicating that the first equipment in a call group is switched to the second equipment, a target account is logged on the second equipment, and the second equipment logged with the target account corresponds to a second identifier which is generated according to a second equipment identifier of the second equipment and the target account identifier;
adding the second equipment logged with the target account into the call group according to the equipment switching signaling;
and switching the state of the second equipment in the call group to an access state, and switching the state of the first equipment in the call group to a disconnection state.
In an optional embodiment, the receiving device switching signaling includes:
determining candidate equipment logged with a target account and candidate identifications corresponding to the candidate equipment, wherein the candidate identifications are generated according to equipment identifications of the candidate equipment and the target account identifications;
sending candidate identifications to the first equipment, wherein the candidate identifications comprise second identifications;
and receiving a device switching signaling sent by the first device, wherein the device switching signaling comprises a second identifier.
In an optional embodiment, determining candidate devices logged in with the target account and candidate identifiers corresponding to the candidate devices further includes:
receiving a device switching request sent by first equipment, wherein the device switching request is used for requesting to switch equipment applied when a target account participates in a call group;
and determining candidate equipment and candidate identification according to the equipment switching request.
In an optional embodiment, switching the second device to the access state and switching the first device to the disconnection state includes:
sending a call invitation signaling to the second equipment;
when receiving an invitation acceptance signaling sent by the second equipment, switching the second equipment to an access state;
and after an audio and video communication channel is established with the second equipment, switching the first equipment into a disconnected state.
In an optional embodiment, the receiving device switching signaling includes:
determining a target account which is logged in by a first device in a call group correspondingly;
determining candidate equipment logged with a target account, wherein the candidate equipment comprises second equipment;
sending a call notification message to the candidate device, wherein the call notification message is used for indicating that the first device logged with the target account is currently in an access state in a call group;
and receiving a device switching signaling sent by the second device.
In an optional embodiment, switching the second device to the access state and switching the first device to the disconnection state includes:
switching the second device to an access state according to the device switching signaling;
and after an audio and video communication channel is established with the second equipment, switching the first equipment to a disconnected state.
In an optional embodiment, the first identifier is generated according to the first device identifier, the target account identifier, and a first device type of the first device;
the second identifier is generated according to the second device identifier, the target account identifier and the device type of the second device.
On the other hand, a device switching device in the audio and video call process is provided, which comprises:
the adding module is used for adding the first equipment logged with the target account into the call group, wherein the first equipment logged with the target account corresponds to a first identifier, and the first identifier is generated according to the first equipment identifier of the first equipment and the target account identifier of the target account;
the receiving module is used for receiving a device switching signaling sent by first equipment or second equipment, wherein the device switching signaling is used for indicating that the first equipment in the call group is switched to the second equipment, a target account is logged on the second equipment, and the second equipment logged with the target account corresponds to a second identifier which is generated according to a second equipment identifier of the second equipment and the target account identifier;
the adding module is used for adding the second equipment logged with the target account into the conversation group according to the equipment switching signaling;
and the switching module is used for switching the second equipment to the access state and switching the first equipment to the disconnection state.
In an optional embodiment, the apparatus further comprises: a determination module;
the determining module is used for determining candidate equipment logged with the target account and candidate identifications corresponding to the candidate equipment, wherein the candidate identifications are generated according to the equipment identifications of the candidate equipment and the target account identifications;
the device still includes: a sending module;
a sending module, configured to send a candidate identifier to a first device, where the candidate identifier includes a second identifier;
and the receiving module is used for receiving the equipment switching signaling sent by the first equipment, wherein the equipment switching signaling comprises the second identifier.
In an optional embodiment, the receiving module is further configured to receive a device switching request sent by the first device, where the device switching request is used to request to switch a device applied when the target account participates in the talk group;
and the determining module is further used for determining the candidate equipment and the candidate identification according to the equipment switching request.
In an optional embodiment, the sending module is further configured to send a call invitation signaling to the second device;
the receiving module is further used for switching the second equipment to an access state when receiving an invitation acceptance signaling sent by the second equipment;
and the switching module is also used for switching the first equipment into a disconnected state after an audio and video communication channel is established with the second equipment.
In an optional embodiment, the determining module is further configured to determine a target account logged in by the first device in the talk group;
the determining module is further used for determining candidate equipment logged with the target account, wherein the candidate equipment comprises second equipment;
the sending module is further used for sending a call notification message to the candidate device, wherein the call notification message is used for indicating that the first device logged with the target account is currently in an access state in the call group;
and the receiving module is further used for receiving the device switching signaling sent by the second device.
In an optional embodiment, the switching module is further configured to switch the second device to the access state according to the device switching signaling;
and the switching module is also used for switching the first equipment to a disconnected state after an audio and video communication channel is established with the second equipment.
In an optional embodiment, the first identifier is generated according to the first device identifier, the target account identifier, and a first device type of the first device;
the second identifier is generated according to the second device identifier, the target account identifier and the device type of the second device.
In another aspect, a computer device is provided, where the computer device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the device switching method in the audio/video call process as provided in the embodiment of the present disclosure.
In another aspect, a computer-readable storage medium is provided, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the computer-readable storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement any of the above-mentioned device switching methods during an audio/video call.
In another aspect, a computer program product is provided, which when running on a computer, causes the computer to execute the device switching method in the audio/video call process as described in any one of the embodiments of the present application.
The technical scheme provided by the disclosure at least comprises the following beneficial effects:
according to the method for receiving the equipment switching signaling and determining the first equipment and the second equipment which are registered with the target account and pointed by the identification in the equipment switching signaling, the determined second equipment is added into a call group and switched to an access state, and the first equipment is switched to a disconnection state.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating device switching during an audio/video call according to an exemplary embodiment of the present disclosure;
fig. 2 shows a flowchart of a device switching method in an audio/video call process according to an exemplary embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a device switching method in an audio/video call process according to an exemplary embodiment of the present disclosure;
fig. 4 shows a flowchart of an audio and video call method provided by an exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating a signaling server logic flow provided by an exemplary embodiment of the present disclosure;
fig. 6 is a block diagram illustrating an apparatus switching device in an audio/video call process according to an exemplary embodiment of the present disclosure;
fig. 7 is a block diagram illustrating an apparatus switching device in an audio/video call process according to an exemplary embodiment of the present disclosure;
fig. 8 shows a schematic block diagram of an audio-video call server provided by an exemplary embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Audio-video calls based on data traffic or wireless network connections are more widely used in today's call models. Fig. 1 shows a schematic diagram of device switching during an audio/video call according to an exemplary embodiment of the present disclosure. Referring to fig. 1, during the audio-video call, the device a101 and the device B104 perform the audio-video call, the first account 102 is logged in the system or application program of the device a101, and the second account 105 is logged in the system or application program of the device B104. Optionally, the device a101 and the first account 102 jointly determine the identifier a corresponding to the device a, and the device B104 and the second account 105 jointly determine the identifier B106 corresponding to the device B. When the device a101 needs to perform audio/video switching with the device C107 logged with the same account, the device C is accessed to the audio/video call, and the device a is removed from the audio/video call, that is, the identifier C108 needs to be determined through the first account 102 and the device C107, after the identifier a103 and the identifier C108 are determined, the signaling server can determine the device a101 and the device C107 according to the identifier a103 and the identifier C108, and the switching between the device a101 and the device C107 in the audio/video call is realized by configuring signaling thereof and performing access and disconnection of the audio/video call between the device a101 and the device C107 according to the signaling.
Fig. 2 shows a device switching method in an audio/video call process according to an exemplary embodiment of the present disclosure, taking as an example that the method is applied to a server connected to a device capable of performing audio/video call, the method includes:
step 201, joining a first device logged in with a target account into a talk group, where the first device logged in with the target account corresponds to a first identifier, and the first identifier is generated according to a first device identifier of the first device and a target account identifier of the target account.
Optionally, a precondition for switching the devices for performing the audio-video call is that the first device is in the talk group.
Step 202, receiving a device switching signaling sent by the first device or the second device, where the device switching signaling is used to indicate to switch the first device in the talk group to the second device, a target account is logged in the second device, and the second device logged in the target account corresponds to a second identifier, where the second identifier is generated according to a second device identifier of the second device and the target account identifier.
Optionally, the server in this embodiment may be implemented as a server cluster including a server with signaling sending and receiving functions and a server with audio/video sending and receiving functions.
Optionally, the handover signaling is used to indicate that a first device within the talk group is to be handed over to a second device. Optionally, the call group is a group in which a device in audio and video call is in call when the handover signaling is sent. Optionally, in the process of switching devices, the devices in the group include a device in an access state, a device in a standby state, and a device in a non-access state. Optionally, when the number of the devices in the access state is larger than the number requirement, the talk group is in the working state.
Optionally, target accounts are logged in the first device and the second device. Optionally, the first device and the second device are both devices that can communicate through a data connection. Optionally, the first device and the second device are both installed with corresponding application software, and the user can log in the software on the first device and the second device through the installation of the application software.
Optionally, the first device logged in with the target account corresponds to a first identifier, and the second device logged in with the target account corresponds to a second identifier. The first identification is generated according to a first device identification of the first device and a target account identification of the target account, and the second identification is generated according to a second device identification and the target account identification of the second device.
Optionally, the first identifier is generated by the first device and the target account. Optionally, the first identifier is generated by the first device identifier, the target account identifier, and a device type of the first device. In one example, a first device identifier corresponding to a first device is represented in a form of a character string, a target account identifier corresponding to a target account is represented in a form of a character string, a device type of the first device corresponds to a first device type identifier character string, the character strings are connected in series to obtain a first identifier character string, and the character string is determined as the first identifier. For example, the character string of the first device identifier corresponding to the first device is represented in the form of "a 1". If the expression form of the character string of the target account identifier corresponding to the target account is "123456", and the expression form of the character string of the first device type representation corresponding to the device type of the first device is "89", the first identifier character string may be "a 112345689".
Optionally, the process of generating the second identifier is the same as the process of generating the first identifier, that is, the second identifier is generated according to the second device identifier, the target account identifier, and the device type of the second device.
Optionally, the device switching signaling may be sent by the first device, and may also be sent by the second device.
Optionally, when the first device sends the handover signaling, after determining the candidate device with the target account and the candidate identifier corresponding to the candidate device, sending the candidate identifier to the first device, where the candidate identifier includes the second identifier, and receiving the candidate identifier sent by the first device, where the candidate identifier includes the second identifier. Optionally, the server may receive a device switching request sent by the first device, and determine the candidate device and the candidate identifier according to the device switching request. Optionally, the candidate device and the candidate identity are determined by the user. In one example, a user selects a device to be switched in a user interface, and a signaling server sends a device switching signaling to a specified device according to a device switching request containing the user's selection.
Optionally, the device switch signaling may be sent by the second device. Optionally, when the second device sends the device switching signaling, the target account corresponding to the login of the first device in the talk group is determined. Optionally, after the target account is determined, candidate devices logged in with the target account are determined, where the candidate devices include the second device, and then a call notification message is sent to the candidate devices. Optionally, the call notification message is used to indicate that the first device logged in with the target account is currently in an access state in the call group; optionally, after sending the call notification message to the candidate device, receiving a device switching signaling sent by the second device. Optionally, the determination of the second one of the candidate devices is made by the user.
Step 203, adding the second device logged with the target account into the talk group according to the device switching signaling.
Optionally, after the second device joins the talk group, the second device is directly switched to the access state.
Step 204, the second device is switched to the access state, and the first device is switched to the disconnection state.
Optionally, the second device is first switched to the access state, and then the first device is switched to the disconnection state. Optionally, after the second device establishes the audio/video call channel in the audio/video device server, the first device is switched to a disconnected state.
In summary, according to the method provided in this embodiment, according to the reception of the device switching signaling and the determination of the first device and the second device, which are registered with the target account and pointed by the identifiers in the device switching signaling, and the determined second device is added to the call group and switched to the access state, the first device is switched to the disconnection state, and the identifier generated by the account and the device together in the audio and video call switching process is used as the object for determining the instruction in the signaling, so that the specific device to be switched is determined, and the situation of switching to the wrong device does not occur.
Fig. 3 shows a flowchart of a device switching method in an audio/video call process according to an exemplary embodiment of the present disclosure, taking application of the method to a server connected to a device performing the audio/video call as an example, the method includes:
step 301, receiving a device switching request sent by a first device;
optionally, the device switching request is used to request to switch a device applied when the target account participates in the talk group.
Step 302, determining a target account corresponding to the first device.
Optionally, the target account corresponding to the first device is determined according to the reception of the device switching request.
Optionally, after the first device sends the device switching request, the server determines the first identifier according to a target account in the received device switching request.
Step 303, determining candidate devices logged in with the target account and candidate identifiers corresponding to the candidate devices.
Optionally, since the candidate identifier is generated by the device identifier and the account identifier, the identifier generated by the target account identifier is used as the candidate identifier. Optionally, the determination of the candidate device logged in with the target account is completed through the determination of the candidate identifier.
For the difference between the device switching operation of the audio/video call performed by the user on the first device and the audio/video call performed by the user on the second device, the step is distinguished after the step 303, the steps 304 to 305 are steps performed by the server when the user performs the device switching operation of the audio/video call on the first device, and the steps 306 to 307 are steps performed by the server when the user performs the device switching operation of the audio/video call on the second device.
When the user performs the device switching operation of the audio/video call on the first device, steps 304 to 305 are performed.
Step 304, sending the candidate identification to the first device.
Optionally, when performing a device switching operation of an audio-video call on a first device, the first device needs to determine a device that can be switched to on the device. Optionally, the server sends a candidate identifier to the first device, where the candidate identifier indicates a device that has logged in the target account and can perform device switching for audio/video call with the first device.
Step 305, receiving a device handover signaling from a first device.
Optionally, after receiving the candidate identifier, the first device selects the candidate identifier, that is, selects a device for switching the device for performing the audio/video call, finally determines the candidate identifier corresponding to the candidate device for switching, and sends a device switching signaling including an instruction to switch the device for performing the audio/video call to the candidate device to the server.
When the user performs the device switching operation of the audio/video call on the second device, steps 306 to 307 are performed.
Step 306, sending a call notification message to the candidate device.
Optionally, when the device switching operation of the audio/video call is performed on the second device, the second device needs to determine a target device on which the target accounts which are the same as the target account and can be logged in are the same.
Optionally, the call notification message is used to indicate that the first device logged in with the target account is currently in an access state in the call group. Optionally, the second device determines, through the call notification message, the first device that is switched to the device that performs the audio/video call with the second device.
Step 307, receiving a device switching signaling sent by the second device.
Optionally, the second device sends a device switching signaling to the server after determining the first device expected to perform device switching for the audio/video call and preparing to perform device switching.
After receiving the device switching signaling sent by the device, the server executes step 308.
And 308, adding the second equipment logged with the target account into the call group according to the equipment switching signaling.
Optionally, after the second device joins the talk group, the second device is directly switched to the access state.
Step 309, the second device is switched to the access state, and the first device is switched to the disconnection state.
Optionally, the second device is first switched to the access state, and then the first device is switched to the disconnection state. Optionally, after the second device establishes the audio/video call channel in the audio/video device server, the first device is switched to a disconnected state.
Optionally, a call invitation signaling is sent to the second device, and when receiving the invitation reception signaling sent by the second device, the second device is switched to the access state, and the first device is switched to the disconnect state.
In summary, according to the method provided in this embodiment, according to the reception of the device switching signaling and the determination of the first device and the second device, which are registered with the target account and pointed by the identifiers in the device switching signaling, and the determined second device is added to the call group and switched to the access state, the first device is switched to the disconnection state, and the identifier generated by the account and the device together in the audio and video call switching process is used as the object for determining the instruction in the signaling, so that the specific device to be switched is determined, and the situation of switching to the wrong device does not occur. Through distinguishing the switching signaling sent by the first device and the second device and determining the corresponding method, the user can correctly control the switching of the devices of the audio and video calls from the first device and the second device.
Optionally, the device switching method in the audio/video call process shown in fig. 2 and fig. 3 needs to be performed under the condition that an audio/video call method corresponding to the device switching method is used, and fig. 4 shows a flowchart of the audio/video call method provided in an exemplary embodiment of the present disclosure, taking as an example that the method is applied to a server connected to a device capable of performing audio/video call, the method includes:
step 401, receiving a call creation signaling sent by a call initiating device.
Optionally, the server in this embodiment may be implemented as a server cluster including a server with signaling sending and receiving functions and a server with audio/video sending and receiving functions.
Optionally, in this embodiment, the first account logged on the call initiating device and the second account logged on the call receiving device may be implemented as a consistent account, or may be implemented as an inconsistent account.
Optionally, the call process includes a call between a first account and a second account, where the first account is an initiator of the call process, and the second account is an invitee of the call process. Optionally, the number of second accounts is at least one. In one example, the call creation signaling sent by the call initiating device may indicate that call connections are created with multiple second accounts.
Optionally, the call initiating device corresponds to a first identifier, the first identifier is generated according to the call initiating device identifier of the call initiating device and a first account identifier of a first account, and the first account is an account logged in the call initiating device. In one example, the call initiating device is implemented as an audio/video call enabled device that can connect to a network through data traffic. The device is loaded with an application program capable of performing account login, after the device logs in by using an account, the server generates an identifier according to a device identifier corresponding to the device and an account identifier of the account login on the device, and the identifier indicates that the account is logged in on the device.
Optionally, the second identifier is generated by the call receiving device and the second account, and a generation manner of the second identifier is consistent with a generation manner of the first identifier. Optionally, the first account id of the first account logged on the call initiating device is consistent with the second account id of the second account logged on the call receiving device, and the first id and the second id are inconsistent. That is, the call initiating device and the call receiving device may log in the same account, and the identifier is generated according to the device identifier and the account identifier. Therefore, even if the call initiating device and the call receiving device log in the same account, the first identifier and the second identifier corresponding to the call initiating device and the call receiving device are different.
Optionally, the call initiating device may log in to multiple devices at the same time, and the first account may log in to multiple devices at the same time. Optionally, multiple accounts may be simultaneously logged on the call initiating device.
Optionally, the first identifier is generated by the call initiating device and the first account. Optionally, the first identifier is generated by an identifier of the call initiating device, an identifier of the first account, and a device type of the call initiating device.
Optionally, before receiving the call creation signaling sent by the call initiating device, the method further includes: receiving a login signaling sent by the call receiving equipment, wherein the login signaling comprises a call receiving equipment identifier corresponding to the call receiving equipment and a second account identifier corresponding to a second account; generating a second identifier according to the call receiving equipment identifier and the second account identifier; and sending the second identifier to the call initiating equipment. Optionally, the foregoing process is a process of determining the device identifier of the call receiving device with the second account. Alternatively, when a new account is registered on an account of a device that can be registered, a new identifier is generated. Optionally, the new identifier cannot be directly known by the call initiating device when being generated, so that the new identifier needs to be sent to the call initiating device, and when the first identifier needs to be called, a call creation signaling for initiating a call with the call receiving device corresponding to the identifier can be sent according to the identifier.
Optionally, an association relationship is established between the first account and the second account, and the association relationship includes a friend relationship established in an application program or other operation interface. Optionally, an association relationship established between the first account and the second account is determined, and the second identifier is sent to the login device corresponding to the first account according to the association relationship.
Step 402, a talk group is created according to the first identifier and the second identifier.
Optionally, after the communication group is created according to the first identifier and the second identifier, the call group includes a call initiating device in an access state and a call receiving device in a standby state.
Optionally, when the call group includes a call initiating device and a plurality of call receiving devices, the plurality of call receiving devices are all in a state to be answered. Alternatively, after the talk group is created, the talk initiation device may choose to close the talk group.
Step 403, sending a call invitation signaling to the call receiving device.
Optionally, since multiple accounts can be logged on each device, the call invitation signaling sent to the call receiving device includes invitation signaling for sending a call to a specified account on the call receiving device. Optionally, a login account currently logged in the call receiving device is acquired, and when the login account is consistent with the second account, a call invitation signaling is sent to the call receiving device, so as to ensure that the invited call receiving device is the call receiving device logged in the second account.
Step 404, when receiving an invitation receiving signaling sent by the call receiving device, switching the state to be answered of the call receiving device to an access state.
Optionally, the call receiving device feeds back the call invitation signaling according to the current state of the call receiving device or the operation state of the user corresponding to the call receiving device. In an example, if a user corresponding to the call receiving device executes a request for rejecting the invitation to receive the signaling on a user interface, the call receiving device will be switched from the standby state to the hang-up state. In another example, the call receiving device is engaged in another call, and the call receiving device is busy. Optionally, when the call receiving device is in a busy state or a hang-up state, a corresponding busy signaling or a hang-up signaling is sent to the server and other devices in the call group.
Optionally, when the call receiving device determines that the call can be answered according to the current state of the call receiving device, or a user corresponding to the call receiving device performs an invitation receiving operation on a user interface, the call receiving device may send a receive invitation signaling. Optionally, the invite acceptance signaling sent by the call receiving device is received by the server and forwarded to other devices in the call group.
Optionally, after a talk group is established and a talk receiving device sends a receive invitation signaling, it is considered that there is an active talk in the talk group. Optionally, when there is an effective call in the call group, a heartbeat detection signaling is sent to the call devices in the call group, where the heartbeat detection signaling is used to instruct the call devices to feed back a heartbeat signal, and determine the number of the call devices in the access state in the call group according to the received heartbeat signal, and when the number of the devices is less than the number requirement, the call group is ended. In an example, the finally established effective call includes three call devices, which are device a, device B, and device C, and optionally, the server sends a heartbeat detection signaling to the device a, the device B, and the device C every 10 seconds, where the signaling indicates that the three devices feed back heartbeat signals, when the devices are still in the access state, the fed back heartbeat signals indicate that the devices are in the access state, and when the devices are not in the access state, the fed back heartbeat signals indicate that the devices are not in the access state or do not feed back the heartbeat signals. And determining whether the equipment A to the equipment C are in an access state or not according to the received heartbeat signals. Optionally, when the time for not receiving the feedback heartbeat signal sent by the device reaches a time threshold, or when the feedback heartbeat signal sent by the device is continuously received and indicates that the device is not in the access state and reaches a time threshold, it is determined that the device is in the disconnection state. Indicating that in one example, the preset time threshold is 30 seconds, and when the time that the device B does not feed back the heartbeat signal reaches the preset time threshold, the device B is determined to be in the off state. Optionally, the number of devices of the call devices in the access state in the call group at this time is 2. Optionally, after a period of time, when the time for which the device C does not feed back the heartbeat signal reaches 30 seconds, it is determined that the device C is in the disconnection state, and the number of the devices in the call group in the call device in the access state is 1. Alternatively, the required number is 2, and when the number of devices is 1, the talk group is ended. Optionally, after the number of devices is less than the required number for a period of time, the talk group is ended.
Optionally, in the audio and video call method shown in this embodiment and the above embodiments, the signaling server used has the signaling logic flow shown in fig. 5. Referring to fig. 5, optionally, the logic signaling flow includes a group creation of an audio/video call, a device removal in the audio/video call group, an initiation of an audio/video call process, and the like. Referring to fig. 5, the signaling logic flow can include a room status logic flow 501, a member status logic flow 502, and an audio-video call event flow 503.
Optionally, the room status logic flow 501 is a logic flow of signaling for determining the status of the talk group. Optionally, the room status logic flow 501 determines the existence status of the group and the status of the members in the group, and then determines whether the group needs to be removed.
Optionally, the member status logic flow 502 is a logic flow for determining the status of devices in the talk group. Optionally, the member status logic flow 502 performs heartbeat detection or status monitoring on the status of the devices in the talk group to determine whether the devices need to be moved out of the group.
Optionally, the audio/video call event flow 503 is a logic flow interacting with the audio/video call server. Optionally, through the audio/video call time flow 503, the call state and the content of the device in the audio/video call process may be judged, so as to determine an action executed to the device in the audio/video device server.
In summary, the method provided in this embodiment embodies a method in which, before the method for switching devices is performed, a first identifier corresponding to a call initiator and a second identifier corresponding to a call invitee are generated by using corresponding device identifiers and account identifiers, a group is created according to a call creation signaling including the first identifier and the second identifier, and an audio/video call is performed in the call group, and each specific device and its corresponding account are determined, so that an error of a communication or a subsequent object to be switched is not generated.
Fig. 6 is a block diagram illustrating an apparatus switching device in an audio/video call process according to an exemplary embodiment of the present disclosure, where the apparatus includes:
an adding module 602, configured to add a first device logged with a target account into a talk group, where the first device logged with the target account corresponds to a first identifier, and the first identifier is generated according to a first device identifier of the first device and a target account identifier of the target account;
a receiving module 601, configured to receive a device switching signaling sent by a first device or a second device, where the device switching signaling is used to indicate that the first device in a talk group is switched to the second device, a target account is logged in the second device, and the second device logged in the target account corresponds to a second identifier, where the second identifier is generated according to a second device identifier of the second device and the target account identifier;
an adding module 602, configured to add, according to the device switching signaling, the second device logged with the target account into the talk group;
the switching module 603 is configured to switch the second device to the access state, and switch the first device to the disconnection state.
In an alternative embodiment, as shown in fig. 7, the apparatus further comprises:
a determining module 604, configured to determine candidate devices logged in with the target account and candidate identifiers corresponding to the candidate devices, where the candidate identifiers are generated according to device identifiers of the candidate devices and target account identifiers;
the device also comprises:
a sending module 605, configured to send a candidate identifier to the first device, where the candidate identifier includes the second identifier;
a receiving module 601, configured to receive a device switching signaling sent by a first device, where the device switching signaling includes a second identifier.
In an optional embodiment, the receiving module 601 is further configured to receive a device switching request sent by the first device, where the device switching request is used to request to switch a device applied when the target account participates in the talk group;
the determining module 604 is further configured to determine a candidate device and a candidate identifier according to the device handover request.
In an optional embodiment, the sending module 605 is further configured to send a call invitation signaling to the second device;
the receiving module 601 is further configured to switch the second device to the access state when receiving an invitation acceptance signaling sent by the second device;
the switching module 603 is further configured to switch the first device to a disconnected state after an audio/video call channel is established with the second device.
In an optional embodiment, the determining module 604 is further configured to determine a target account where a first device in the talk group is logged in correspondingly;
the determining module 604 is further configured to determine candidate devices logged in with the target account, where the candidate devices include the second device;
the sending module 605 is further configured to send a call notification message to the candidate device, where the call notification message is used to indicate that the first device logged in the target account is currently in an access state in the call group;
the receiving module 601 is further configured to receive a device switching signaling sent by the second device.
In an optional embodiment, the switching module is further configured to switch the second device to the access state according to the device switching signaling;
the switching module 603 is further configured to switch the first device to a disconnected state after an audio/video call channel is established with the second device.
In an optional embodiment, the first identifier is generated according to the first device identifier, the target account identifier, and a first device type of the first device;
the second identifier is generated according to the second device identifier, the target account identifier and the device type of the second device.
The present disclosure also provides a server, where the server includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the device switching method in the audio/video call process provided by the foregoing method embodiments. It should be noted that the server may be a server as provided in fig. 8 below.
Referring to fig. 8, a schematic structural diagram of a server according to an exemplary embodiment of the present disclosure is shown. Specifically, the method comprises the following steps: server 800 includes a Central Processing Unit (CPU) 801, a system Memory 804 including a Random Access Memory (RAM) 802 and a Read-Only Memory (ROM) 803, and a system bus 805 connecting system Memory 104 and CPU 801. The server 800 also includes a basic Input/output system (I/O) system 106 for facilitating information transfer between devices within the computer, and a mass storage device 807 for storing an operating system 813, application programs 814, and other program modules 815.
The basic input/output system 806 includes a display 808 for displaying information and an input device 809 such as a mouse, keyboard, etc. for user input of information. Wherein a display 808 and an input device 809 are connected to the central processing unit 801 through an input output controller 810 connected to the system bus 805. The basic input/output system 806 may also include an input/output controller 810 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 810 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 807 is connected to the central processing unit 801 through a mass storage controller (not shown) connected to the system bus 805. The mass storage device 807 and its associated computer-readable media provide non-volatile storage for the server 800. That is, the mass storage device 807 may include a computer-readable medium (not shown) such as a hard disk or CD-ROI drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other solid state Memory technology, CD-ROM, Digital Versatile Disks (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 804 and mass storage 807 described above may be collectively referred to as memory.
The memory stores one or more programs configured to be executed by the one or more central processing units 801, the one or more programs containing instructions for implementing the device switching method during the audio/video call, and the central processing unit 801 executes the one or more programs to implement the device switching method during the audio/video call provided by the various method embodiments.
According to various embodiments of the invention, server 800 may also operate as a remote computer connected to a network through a network, such as the Internet. That is, the server 800 may be connected to the network 812 through the network interface unit 811 coupled to the system bus 805, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 811.
The memory also comprises one or more programs, the one or more programs are stored in the memory, and the one or more programs comprise steps executed by the server in the method for switching the devices in the audio and video call process provided by the embodiment of the invention.
The embodiment of the present disclosure further provides a computer device, where the computer device includes a memory and a processor, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded by the processor and implements the device switching method in the audio/video call process.
The embodiment of the present disclosure further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or an instruction set is stored in the computer-readable storage medium, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the device switching method in the audio/video call process.
The present disclosure also provides a computer program product, which when running on a computer, causes the computer to execute the device switching method in the audio/video call process provided by the above method embodiments.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
The communication system and the service scenario described in the embodiment of the present disclosure are for more clearly illustrating the technical solution of the embodiment of the present disclosure, and do not constitute a limitation to the technical solution provided in the embodiment of the present disclosure, and as a person having ordinary skill in the art knows that along with the evolution of the communication system and the appearance of a new service scenario, the technical solution provided in the embodiment of the present disclosure is also applicable to similar technical problems.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk.

Claims (14)

1. A device switching method in the process of audio and video communication is characterized by comprising the following steps:
adding first equipment logged with a target account into a call group, wherein the first equipment logged with the target account corresponds to a first identifier, and the first identifier is generated according to a first equipment identifier of the first equipment and a target account identifier of the target account;
determining candidate equipment logged with the target account and candidate identifications corresponding to the candidate equipment, wherein the candidate identifications are generated according to equipment identifications of the candidate equipment and the target account identifications;
sending the candidate identification to the first equipment, wherein the candidate identification comprises a second identification;
receiving a device switching signaling sent by the first device or the second device, where the device switching signaling includes the second identifier, the device switching signaling is used to indicate that the first device in the talk group is switched to the second device, the second device logs in a target account, and the second device logged in the target account corresponds to the second identifier, where the second identifier is generated according to the second device identifier of the second device and the target account identifier;
adding the second equipment logged with the target account into the call group according to the equipment switching signaling;
and switching the state of the second equipment in the call group to an access state, and switching the state of the first equipment in the call group to a disconnection state.
2. The method of claim 1, wherein the determining the candidate device logged in with the target account and the candidate identifier corresponding to the candidate device further comprises:
receiving a device switching request sent by the first device, wherein the device switching request is used for requesting to switch a device applied when the target account participates in the talk group;
and determining the candidate equipment and the candidate identification according to the equipment switching request.
3. The method of claim 1, wherein switching the second device to the on state and the first device to the off state comprises:
sending a call invitation signaling to the second device;
when receiving an invitation acceptance signaling sent by the second equipment, switching the second equipment to the access state;
and after an audio and video communication channel is established with the second equipment, switching the first equipment into the disconnection state.
4. The method of claim 1, wherein the receiving device handover signaling sent by the first device or the second device comprises:
determining the target account which is logged in by the first device in the call group correspondingly;
determining candidate equipment logged with the target account, wherein the candidate equipment comprises the second equipment;
sending a call notification message to the candidate device, where the call notification message is used to indicate that the first device logged in with the target account is currently in the access state in the call group;
and receiving the equipment switching signaling sent by the second equipment.
5. The method of claim 4, wherein switching the second device to the on state and the first device to the off state comprises:
switching the second device to the access state according to the device switching signaling;
and after an audio and video communication channel is established with the second equipment, the first equipment is switched to the disconnection state.
6. The method according to any one of claims 1 to 5,
the first identifier is generated according to the first device identifier, the target account identifier and a first device type of the first device;
the second identifier is generated according to the second device identifier, the target account identifier and the device type of the second device.
7. An apparatus switching device in an audio/video call process, the apparatus comprising:
the device comprises an adding module, a communication module and a processing module, wherein the adding module is used for adding first equipment logged with a target account into a communication group, the first equipment logged with the target account corresponds to a first identifier, and the first identifier is generated according to a first equipment identifier of the first equipment and a target account identifier of the target account;
a determining module, configured to determine a candidate device logged in with the target account and a candidate identifier corresponding to the candidate device, where the candidate identifier is generated according to a device identifier of the candidate device and the target account identifier;
a sending module, configured to send the candidate identifier to the first device, where the candidate identifier includes a second identifier;
a receiving module, configured to receive a device switching signaling sent by the first device or the second device, where the device switching signaling includes the second identifier, the device switching signaling is used to indicate that the first device in the talk group is switched to the second device, a target account is logged in the second device, and the second device logged in with the target account corresponds to the second identifier, where the second identifier is generated according to the second device identifier of the second device and the target account identifier;
the adding module is used for adding the second equipment logged with the target account into the call group according to the equipment switching signaling;
and the switching module is used for switching the second equipment to an access state and switching the first equipment to a disconnection state.
8. The apparatus according to claim 7, wherein the receiving module is further configured to receive a device switching request sent by the first device, where the device switching request is used to request to switch a device applied when the target account participates in the talk group;
the determining module is further configured to determine the candidate device and the candidate identifier according to the device handover request.
9. The apparatus of claim 7, wherein the sending module is further configured to send a call invitation signaling to the second device;
the receiving module is further configured to switch the second device to the access state when receiving an invitation acceptance signaling sent by the second device;
the switching module is further configured to switch the first device to the disconnected state after an audio/video call channel is established with the second device.
10. The apparatus according to claim 7, wherein the determining module is further configured to determine the target account number to which the first device in the talk group is logged;
the determining module is further configured to determine candidate devices logged in with the target account, where the candidate devices include the second device;
the sending module is further configured to send a call notification message to the candidate device, where the call notification message is used to indicate that the first device logged in with the target account is currently in the access state in the call group;
the receiving module is further configured to receive the device switching signaling sent by the second device.
11. The apparatus of claim 10, wherein the switching module is further configured to switch the second device to the access state according to the device switching signaling;
the switching module is further configured to switch the first device to the disconnected state after an audio/video call channel is established with the second device.
12. The apparatus according to any one of claims 7 to 11,
the first identifier is generated according to the first device identifier, the target account identifier and a first device type of the first device;
the second identifier is generated according to the second device identifier, the target account identifier and the device type of the second device.
13. A computer device comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, at least one program, a set of codes, or a set of instructions is loaded and executed by the processor to implement the device switching method during an audio video call according to any one of claims 1 to 6.
14. A computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of device switching during an audio video call according to any one of claims 1 to 6.
CN201911129443.XA 2019-11-18 2019-11-18 Device switching method and device in audio and video call process and storage medium Active CN110798647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911129443.XA CN110798647B (en) 2019-11-18 2019-11-18 Device switching method and device in audio and video call process and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911129443.XA CN110798647B (en) 2019-11-18 2019-11-18 Device switching method and device in audio and video call process and storage medium

Publications (2)

Publication Number Publication Date
CN110798647A CN110798647A (en) 2020-02-14
CN110798647B true CN110798647B (en) 2021-06-22

Family

ID=69445246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911129443.XA Active CN110798647B (en) 2019-11-18 2019-11-18 Device switching method and device in audio and video call process and storage medium

Country Status (1)

Country Link
CN (1) CN110798647B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104913B (en) * 2020-09-11 2023-09-26 腾讯科技(深圳)有限公司 Wheat connecting switching method and device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139529A (en) * 2013-02-22 2013-06-05 青岛海信宽带多媒体技术有限公司 Video call switchover method between session initiation protocol (SIP) server and video call devices
US20140177613A1 (en) * 2012-12-21 2014-06-26 Broadcom Corporation Resilient peer network with 802.11 technology
CN104348989A (en) * 2013-08-05 2015-02-11 中国移动通信集团公司 Call switching method between set top box and call terminal, and application server
CN104641686A (en) * 2012-07-18 2015-05-20 感觉媒体 Vvoip call transfer
CN105515937A (en) * 2014-09-24 2016-04-20 腾讯科技(深圳)有限公司 Instant communication method, instant communication terminal, instant communication server and instant communication system
CN105872439A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Multi-device video call method and device, and server
CN107968767A (en) * 2016-10-19 2018-04-27 腾讯科技(深圳)有限公司 A kind of multi-terminal communication method, server and first terminal
CN108881779A (en) * 2018-07-17 2018-11-23 聚好看科技股份有限公司 Video calling between smart machine answers transfer method, system and server
US20190082312A1 (en) * 2017-09-08 2019-03-14 At&T Intellectual Property I, L.P. Disaster event management

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6761207B2 (en) * 2016-09-30 2020-09-23 株式会社リコー Shared terminals, communication systems, communication methods, and programs

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104641686A (en) * 2012-07-18 2015-05-20 感觉媒体 Vvoip call transfer
US20140177613A1 (en) * 2012-12-21 2014-06-26 Broadcom Corporation Resilient peer network with 802.11 technology
CN103139529A (en) * 2013-02-22 2013-06-05 青岛海信宽带多媒体技术有限公司 Video call switchover method between session initiation protocol (SIP) server and video call devices
CN104348989A (en) * 2013-08-05 2015-02-11 中国移动通信集团公司 Call switching method between set top box and call terminal, and application server
CN105515937A (en) * 2014-09-24 2016-04-20 腾讯科技(深圳)有限公司 Instant communication method, instant communication terminal, instant communication server and instant communication system
CN105872439A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Multi-device video call method and device, and server
CN107968767A (en) * 2016-10-19 2018-04-27 腾讯科技(深圳)有限公司 A kind of multi-terminal communication method, server and first terminal
US20190082312A1 (en) * 2017-09-08 2019-03-14 At&T Intellectual Property I, L.P. Disaster event management
CN108881779A (en) * 2018-07-17 2018-11-23 聚好看科技股份有限公司 Video calling between smart machine answers transfer method, system and server

Also Published As

Publication number Publication date
CN110798647A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN109756504B (en) Communication method based on live broadcast platform and related device
CN108881779B (en) Method, system and server for answering and transferring video calls between intelligent devices
EP3817283B1 (en) Data transmission control method and related apparatus
CN113765932B (en) Control method for multiparty call and electronic equipment
CN111064552B (en) Intelligent device control method and device, electronic device and storage medium
WO2018133767A1 (en) Call control method, terminal apparatus, and data storage medium
CN103338144A (en) Session data synchronization method and session data synchronization device
CN110798647B (en) Device switching method and device in audio and video call process and storage medium
CN106789913B (en) User account management method and device
CN114867075A (en) Wireless network switching method, device, equipment, storage medium and product
RU2670096C2 (en) Method and device for ending video communication
US20160226933A1 (en) Method and device for communicating between at least a first terminal and a second terminal
CN111064915B (en) Audio and video call method, device, equipment and readable storage medium
CN112291501B (en) Video conference control method and device
CN106488537B (en) Sending method, device and mobile terminal
CN111131641A (en) Conference cascading method, device, server and readable storage medium
CN106034064A (en) Instant communication session state prompting method, instant communication server and instant communication system
CN111327667B (en) Multi-party talkback method, device and system and electronic equipment
CN113434187B (en) Server and whiteboard version compatible method
CN107453935B (en) Method and device for recovering conference resources and conference system
WO2017215317A1 (en) Call processing method and device
CN113596380B (en) Video conference server and communication method
CN109451266B (en) Remote control method and device
CN117014998A (en) method, device and equipment for determining node state in mesh network
CN108173910B (en) Method and system for managing application

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