Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a system and a method for switching recording sources in video call, which can switch recording sources incapable of recording, improve the user experience of video call, and are convenient to operate, safe and reliable.
According to the technical scheme provided by the invention, the system for switching the recording sound source in the video call comprises a video call server and a plurality of video call terminals connected with the video call server; the video call terminal is connected with a plurality of recording physical devices, a plurality of recording channels are arranged between each recording physical device and the video call terminal, and a recording channel corresponding to the recording physical device forms a recording source, so that a plurality of recording sources capable of effectively recording are formed between the video call terminal and one recording physical device;
and detecting a current recording source of the current recording physical equipment for the current recording physical equipment connected with the video call terminal, and if the current recording source is abnormal, selecting one recording source as the current recording source by the video call terminal according to recording states of all other recording sources of the current recording physical equipment so as to perform required recording by using the selected current recording source.
The video call server comprises a terminal access module, an account management module and a data service module, wherein the terminal access module can receive a terminal login request of the video call terminal, the account management module is connected with the terminal access module, and the account management module stores a terminal account for logging in the video call terminal and corresponding terminal login data; the data service module receives video call data sent by the video call terminal and can send data required by the video call terminal.
The video call terminal comprises a login module, a video recording and sending module, an audio recording and sending module, a video receiving and playing module, an audio receiving and playing module and a recording and sound source abnormity detection and switching module;
the login module can be connected and logged in the video call server; the video recording and sending module is used for sending the recorded video data to the video call server, the audio recording and sending module is used for sending the recorded audio data to the video call server, the video receiving and playing module is used for receiving and playing the video data sent by the video call server, and the audio receiving and playing module is used for receiving and playing the video and audio data sent by the audio call server; the sound recording source abnormity detection and switching module is used for detecting whether the current sound recording source records normally; and if the current recording source is abnormal, detecting other recording sources except the current recording source, and selecting one recording source from the detected recording sources as the current recording source.
The recording source abnormity detection and switching module comprises a recording initialization module, an abnormal recording detection module, a recording source acquisition module, a recording source adaptation module and a detection setting module.
A method for switching recording sound sources in video call comprises a video call server and a plurality of video call terminals connected with the video call server; the video call terminal is connected with a plurality of recording physical devices, a plurality of recording channels are arranged between each recording physical device and the video call terminal, and a recording channel corresponding to the recording physical device forms a recording source, so that a plurality of recording sources capable of effectively recording are formed between the video call terminal and one recording physical device;
and detecting a current recording source of the current recording physical equipment for the current recording physical equipment connected with the video call terminal, and if the current recording source is abnormal, selecting one recording source as the current recording source by the video call terminal according to recording states of all other recording sources of the current recording physical equipment so as to perform required recording by using the selected current recording source.
The video call server comprises a terminal access module, an account management module and a data service module, wherein the terminal access module can receive a terminal login request of the video call terminal, the account management module is connected with the terminal access module, and the account management module stores a terminal account for logging in the video call terminal and corresponding terminal login data; the data service module receives video call data sent by the video call terminal and can send data required by the video call terminal.
The video call terminal comprises a login module, a video recording and sending module, an audio recording and sending module, a video receiving and playing module, an audio receiving and playing module and a recording and sound source abnormity detection and switching module;
the login module can be connected and logged in the video call server; the video recording and sending module is used for sending the recorded video data to the video call server, the audio recording and sending module is used for sending the recorded audio data to the video call server, the video receiving and playing module is used for receiving and playing the video data sent by the video call server, and the audio receiving and playing module is used for receiving and playing the video and audio data sent by the audio call server; the sound recording source abnormity detection and switching module is used for detecting whether the current sound recording source records normally; and if the current recording source is abnormal, detecting other recording sources except the current recording source, and selecting one recording source from the detected recording sources as the current recording source.
The invention has the advantages that: video conversation terminal connection is on video conversation server, be connected with recording physics equipment on the video conversation terminal, to the current recording physics equipment of being connected with video conversation terminal, detect the current recording sound source of current recording physics equipment, when if the current recording source is unusual, video conversation terminal is according to the recording state of all the other recording sound sources of current recording physics equipment, select a recording sound source as current recording sound source, carry out required recording with the current recording sound source that utilizes the selection, thereby switch the recording source that can not record, promote the user experience of video conversation, and the operation is convenient, safety and reliability.
Detailed Description
The invention is further illustrated by the following specific figures and examples.
As shown in fig. 1: in order to switch recording sources of different recordings and improve the user experience of video call, the invention comprises a video call server 101 and a plurality of video call terminals 111 connected with the video call server 101; the video call terminal 111 is connected with a plurality of recording physical devices, a plurality of recording channels are arranged between each recording physical device and the video call terminal 111, and a recording channel corresponding to the recording physical device and the video call terminal 111 form a recording source, so that a plurality of recording sources capable of effectively recording are formed between the video call terminal 111 and the recording physical device;
for the current recording physical device connected with the video call terminal 111, detecting a current recording sound source of the current recording physical device, and if the current recording sound source is abnormal, the video call terminal 111 selects one recording sound source as the current recording sound source according to recording states of all other recording sound sources of the current recording physical device, so as to perform required recording by using the selected current recording sound source.
Specifically, the video call terminal 111 can implement a required video call process through the video call server 101, and the specific process of the video call server 101 implementing the video call of the video call terminal 111 is well known to those skilled in the art and will not be described herein again. The recording physical device includes a microphone or a device with a microphone, and the recording physical device is a necessary condition for recording the video call terminal 111, and generally, the number of the recording physical devices on the video call terminal 111 may be selected and set as needed, which is known to those skilled in the art, and is not described herein again. For the recording physical device connected to the video call terminal 111, there are multiple recording channels, each recording channel corresponds to one form of calling the recording physical device by the video call terminal 111, for example, a form of directly calling the recording physical device or another form of indirectly calling the recording physical device, and a specific configuration relationship between the video call terminal 111 and the recording physical device among multiple recording sources is well known to those skilled in the art and is not described herein again.
As for a plurality of recording sources existing between the recording physical device and the video call terminal 111, only one recording source is used as the current recording source, that is, the recording physical device can be driven to record through the current recording source, and the rest recording sources are used as spare recording sources. When current recording source exists unusually, lead to unable normal recording through recording physics equipment, at this moment, the recording state of video conversation terminal 111 inspection reserve recording source, the purpose of the recording state of inspection reserve recording source is to avoid some reserve recording sources also to have the abnormal conditions, make video conversation terminal 111 find one can carry out the reserve recording source of normal recording as current recording source, thereby utilize the current recording source of selection to carry out required recording, thereby can ensure to carry out normal recording, promote the experience of user's video conversation.
Further, the video call server 101 includes a terminal access module 102, an account management module 103, and a data service module 104, where the terminal access module 102 can receive a terminal login request of the video call terminal 111, the account management module 103 is connected to the terminal access module 102, and the account management module 103 stores a terminal account and corresponding terminal login data of the login video call terminal 111; the data service module 104 receives the video call data sent by the video call terminal 111 and can send the data required to be requested to the video call terminal 111.
In the embodiment of the present invention, specific working processes of the terminal access module 102, the account management module 103, and the data service module 104, and specific matching processes with the video call terminal 111 are well known to those skilled in the art, and are not described herein again.
Further, the video call terminal 111 includes a login module 112, a video recording and sending module 113, an audio recording and sending module 114, a video receiving and playing module 115, an audio receiving and playing module 116, and a recording source abnormality detecting and switching module 117;
a login module 112 capable of connecting and logging in to the video call server 101; the video recording and sending module 113 sends the recorded video data to the video call server 101, the audio recording and sending module 114 sends the recorded audio data to the video call server 101, the video receiving and playing module 115 receives and plays the video data sent by the video call server 101, and the audio receiving and playing module 116 receives and plays the video and audio data sent by the audio call server 101; the sound recording source abnormity detection and switching module 117 is used for checking whether the current sound recording source records normally; and if the current recording source is abnormal, detecting other recording sources except the current recording source, and selecting one recording source from the detected recording sources as the current recording source.
In the embodiment of the present invention, the specific working processes of the login module 112, the video recording and sending module 113, and the audio recording and sending module 114 are well known to those skilled in the art, and are not described herein again. The video recording and sending module 113 and the audio recording and sending module 114 are connected to the data service module 104 in the video call server 101.
As shown in fig. 2, the recording source abnormality detecting and switching module 117 includes a recording initialization module 201, an abnormal recording detecting module 202, a recording source obtaining module 203, a recording source adapting module 204, and a detection setting module 205.
In the embodiment of the present invention, the recording initialization module 201 has an initialization function, and can detect whether recording is normal; the abnormal recording detection module 202 mainly monitors whether current recording data is normal, the recording source acquisition module 203 is mainly used for acquiring a recording source used by current recording physical equipment, and the recording source adaptation module 204 excludes a known abnormal recording source from all the acquired recording sources and selects a proper recording source. The detection setting module 205 is mainly used for the user to modify the configuration of the abnormal recording detection.
According to the system in the video call, the method for switching the recording sound source in the video call is obtained, and specifically: the system comprises a video call server 101 and a plurality of video call terminals 111 connected with the video call server 101; the video call terminal 111 is connected with a plurality of recording physical devices, a plurality of recording channels are arranged between each recording physical device and the video call terminal 111, and a recording channel corresponding to the recording physical device and the video call terminal 111 form a recording source, so that a plurality of recording sources capable of effectively recording are formed between the video call terminal 111 and the recording physical device;
for the current recording physical device connected with the video call terminal 111, detecting a current recording sound source of the current recording physical device, and if the current recording sound source is abnormal, the video call terminal 111 selects one recording sound source as the current recording sound source according to recording states of all other recording sound sources of the current recording physical device, so as to perform required recording by using the selected current recording sound source.
Specifically, the specific coordination relationship between the video call server 101 and the video call terminal 111, and the like can be referred to the above description. The specific workflow is explained in detail below.
As shown in fig. 3, a flowchart for initializing the recording initialization module 201 specifically includes:
step 301, start;
step 302, setting a recording source recording detection mark;
step 303, clearing the detected times;
step 304, clearing the normal mark of the recording source;
305, acquiring a recording source parameter and opening a recording source;
step 306, judging whether the sound recording source is successfully opened; if yes, go to step 307; if not, go to step 311;
step 307, judging whether the sound recording source recording detection mark is detected and whether the detection is finished; if yes, go to step 310; if not, go to step 308;
step 308, acquiring recording data of a recording source to a buffer area;
step 309, calling an abnormal recording detection module, and taking a recording data buffer area as a parameter; turning to step 307;
step 310, judging whether the recording source is normal, and whether the current recording source can record normally; if yes, go to step 314; if not, go to step 311;
step 311, calling a recording source adaptation module, and selecting a different recording source as a parameter for initializing the recording source;
step 312, turning off the original sound recording source;
step 313, judging whether quitting is needed; if yes, go to step 314; if not, go to step 302;
and step 314, ending.
After the initialization is completed, a step of detecting the sound recording source is required, as shown in fig. 4, which specifically includes the following steps:
step 401, start;
step 402, reading a recording data parameter buffer area;
step 403, reading the required detection times in the setting;
and step 404, judging whether the current detected times are more than or equal to the required detection times. If yes, go to step 408; if not, go to step 405;
step 405, adding 1 to the detected times;
step 406, determining whether there is a change in the recording data buffer. If yes, go to step 407; if not, go to step 410;
step 407, setting a recording source normal flag, and turning to step 409;
step 408, clearing the normal mark of the recording source;
step 409, clearing the recording detection mark of the sound source;
and step 410, ending.
As shown in fig. 5, a process of determining to select one alternative sound recording source as a current sound recording source according to a state of the alternative sound recording source by the sound recording source adapting module 204 of the present invention specifically includes the following steps:
step 501, start;
502, acquiring current recording source parameters;
step 503, acquiring a recording source list supported by the terminal;
step 504, deleting the known abnormal sound recording source from the sound recording source list;
step 505, selecting a recording source from available recording sources;
step 506, taking the selected recording source as a current recording source parameter;
and step 507, ending.
For the detection setting module 205, a specific working interface can be shown in fig. 6, wherein "100" in the figure can be changed to other numbers.
As shown in fig. 7, a brief flow of the detection setting for the abnormal recording source of the terminal of the present invention is as follows:
step 701, starting;
step 702, receiving a command of a user for carrying out abnormal recording source detection setting;
step 703, displaying an abnormal recording source detection setting interface, and prompting a user to perform operation;
and step 704, judging whether the user executes the setting operation. If yes, go to step 705; if not, go to step 707;
step 705, determine whether the settings have changed. If yes, go to step 706; if not, go to step 707;
step 706, saving the abnormal recording source detection setting;
step 707, hiding an abnormal recording source detection setting interface;
and step 708, ending.
The video call terminal 111 is connected to the video call server 101, the video call terminal 111 is connected with a recording physical device, the current recording source of the current recording physical device is detected for the current recording physical device connected with the video call terminal 111, if the current recording source is abnormal, the video call terminal 111 selects one recording source as the current recording source according to the recording states of all the other recording sources of the current recording physical device, so that the selected current recording source is utilized to perform required recording, the recording source which can not be recorded is switched, the user experience of video call is improved, and the video call terminal is convenient to operate, safe and reliable.