Disclosure of Invention
The invention mainly aims to provide a video interruption method, a video interruption device, a terminal and a computer readable storage medium, aiming at realizing intelligent interruption of video.
In order to achieve the above object, the present invention provides a video interruption method, which includes the steps of:
If the resonance state value of the antenna resonance module is detected in the first storage area, determining whether an incoming call exists in the current terminal or not based on the resonance state value;
If yes, determining whether the current terminal performs video call with the slave device;
If yes, sending an interruption command for interrupting the video chat to the slave equipment so that the slave equipment can close the video call and switch to play the video program.
Preferably, if the resonance state value of the antenna resonance module is detected in the first storage area, before the step of determining whether the current terminal has an incoming call or not based on the resonance state value, the video interrupt method further includes:
Detecting the change condition of the inductance current of the antenna resonance module, and determining the resonance state value of the antenna resonance module based on the change condition;
And storing the resonance state value in the first storage area, wherein the resonance state value comprises a first target value, and the first target value corresponds to an incoming call.
Preferably, the step of detecting a change in inductance current of the antenna resonance module and determining a resonance state value of the antenna resonance module based on the change includes:
respectively obtaining a first inductance current value and a second inductance current value of the antenna resonance module at a first moment and a second moment, and making a difference between the first inductance current value and the second inductance current value to obtain a difference result;
judging whether the difference result is larger than a first preset threshold value or not;
If yes, determining a resonance state value of the antenna resonance module as a first target value;
if not, determining the resonance state value of the antenna resonance module as a second target value.
Preferably, the step of determining whether the current terminal has a video call with the slave device comprises:
Acquiring a data state of a media window cache of a current terminal video application, and determining a first state value corresponding to a current terminal video module based on the data state;
Acquiring audio data of an audio data cache area of a current terminal video application, and determining a second state value corresponding to a current terminal audio module based on the audio data;
And if the first state value and the second state value both meet a second preset threshold value, determining that the current terminal and the slave device carry out video call.
Preferably, the data state includes whether to output color pixels, and the step of acquiring the data state of the media window buffer of the current terminal video application and determining the first state value corresponding to the current terminal video module based on the data state includes:
Detecting whether a media window of a current terminal video application outputs color pixels or not;
If yes, calculating a color gain value of the color pixel, and determining a first state value corresponding to the current terminal video module based on the color gain value, wherein the color pixel at least comprises one.
Preferably, the step of obtaining the audio data of the audio data buffer area of the current terminal video application and determining the second state value corresponding to the current terminal audio module based on the audio data includes:
Acquiring audio data of an audio data cache area of a current terminal video application, wherein the number of the audio data at least comprises two;
And differencing the audio data to obtain an audio difference value, and determining a second state value corresponding to the current terminal audio module based on the audio difference value.
Preferably, the step of transmitting an interrupt command to interrupt the video chat to the slave device includes:
Acquiring an online state value corresponding to the current terminal and traversing a second storage area of the server, and determining whether the slave device is online or not based on the online state value;
and if the slave device is not online, sending the interrupt command to a video application server so that the video application server can send the interrupt command to the slave device.
In addition, to achieve the above object, the present invention also provides a video interrupt device including:
the first determining module is used for determining whether the current terminal has an incoming call or not based on the resonance state value if the resonance state value of the antenna resonance module is detected in the first storage area;
the second determining module is used for determining whether the current terminal performs video call with the slave equipment or not if the current terminal exists;
And the sending module is used for sending an interruption command for interrupting the video chat to the slave equipment if the video chat is interrupted, so that the slave equipment can close the video call and switch and play the video program.
Preferably, the video interrupt device comprises a detection module, and the detection module is used for:
Detecting the change condition of the inductance current of the antenna resonance module, and determining the resonance state value of the antenna resonance module based on the change condition;
And storing the resonance state value in the first storage area, wherein the resonance state value comprises a first target value, and the first target value corresponds to an incoming call.
Preferably, the detection module is further configured to:
respectively obtaining a first inductance current value and a second inductance current value of the antenna resonance module at a first moment and a second moment, and making a difference between the first inductance current value and the second inductance current value to obtain a difference result;
judging whether the difference result is larger than a first preset threshold value or not;
If yes, determining a resonance state value of the antenna resonance module as a first target value;
if not, determining the resonance state value of the antenna resonance module as a second target value.
Preferably, the second determining module is further configured to:
Acquiring a data state of a media window cache of a current terminal video application, and determining a first state value corresponding to a current terminal video module based on the data state;
Acquiring audio data of an audio data cache area of a current terminal video application, and determining a second state value corresponding to a current terminal audio module based on the audio data;
And if the first state value and the second state value both meet a second preset threshold value, determining that the current terminal and the slave device carry out video call.
Preferably, the second determining module is further configured to:
Detecting whether a media window of a current terminal video application outputs color pixels or not;
If yes, calculating a color gain value of the color pixel, and determining a first state value corresponding to the current terminal video module based on the color gain value, wherein the color pixel at least comprises one.
Preferably, the second determining module is further configured to:
Acquiring audio data of an audio data cache area of a current terminal video application, wherein the number of the audio data at least comprises two;
And differencing the audio data to obtain an audio difference value, and determining a second state value corresponding to the current terminal audio module based on the audio difference value.
Preferably, the sending module is further configured to:
Acquiring an online state value corresponding to the current terminal and traversing a second storage area of the server, and determining whether the slave device is online or not based on the online state value;
and if the slave device is not online, sending the interrupt command to a video application server so that the video application server can send the interrupt command to the slave device.
In addition, to achieve the above object, the present invention also provides a terminal including: the video interrupt device comprises a memory, a processor and a video interrupt program stored on the memory and capable of running on the processor, wherein the video interrupt program realizes the steps of the video interrupt method when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a video interrupt program which, when executed by a processor, implements the steps of the video interrupt method as described above.
According to the video interruption method provided by the invention, if the resonance state value of the antenna resonance module is detected in the first storage area, whether the incoming call exists in the current terminal is determined based on the resonance state value; if yes, determining whether the current terminal performs video call with the slave device; if yes, sending an interruption command for interrupting the video chat to the slave equipment so that the slave equipment can close the video call and switch to play the video program. If the terminal of the invention is in video call with the slave device when the call is received, the terminal can quickly respond to the slave device by sending the interrupt command to the slave device in time so as to avoid the problem of blocking or blacking the screen after the slave device receives the call, thereby realizing intelligent interrupt of the video.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
The terminal provided by the embodiment of the invention comprises a fixed terminal or a mobile terminal.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a video interrupt program may be included in a memory 1005, which is a type of computer storage medium.
The operating system is a program for managing and controlling terminal and software resources and supports the operation of a network communication module, a user interface module, a video interrupt program and other programs or software; the network communication module is used to manage and control the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the terminal shown in fig. 1, the terminal calls a video interrupt program stored in a memory 1005 through a processor 1001 and performs operations in various embodiments of the video interrupt method described below.
Based on the hardware structure, the embodiment of the video interrupt method is provided.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a video interrupt method according to the present invention, where the method includes:
step S10, if the resonance state value of the antenna resonance module is detected in the first storage area, determining whether an incoming call exists in the current terminal or not based on the resonance state value;
Step S20, if yes, determining whether the current terminal performs video call with the slave device;
And step S30, if yes, sending an interruption command for interrupting the video chat to the slave equipment so that the slave equipment can close the video call and switch to play the video program.
The video interruption method of the embodiment is applied to a terminal, and the terminal can be a fixed terminal, such as a fixed computer, or a mobile terminal, such as a mobile phone. The terminal may perform a video call with a slave device, where the slave device may be a mobile terminal or a fixed terminal, and in this embodiment, the slave device is illustrated by taking smart electricity as an example, and the terminal is illustrated by taking a mobile phone as an example.
In the prior art, when a user uses a mobile phone and an intelligent television to carry out video, if an incoming call is received, the mobile phone automatically or when receiving an instruction of selecting to answer by the user, the video call is disconnected and is switched to a call interface, but the intelligent television which carries out the call with the mobile phone can cause a picture to be blocked or a black screen phenomenon to occur because the interrupt instruction is not received.
Therefore, in this embodiment, the terminal selectively sends the interrupt command to the slave device by determining the incoming call condition and the video call condition, so that the slave device can close the video call from the container and switch the video interface for playing according to the interrupt command, so that the display interface of the slave device will not appear a phenomenon of black screen or a phenomenon of blocking.
The following will explain each step in detail:
Step S10, if the resonance state value of the antenna resonance module is detected in the first storage area, whether the current terminal has an incoming call or not is determined based on the resonance state value.
In this embodiment, the terminal detects the resonance state value of the antenna resonance module in real time or in a first storage area at regular time, and determines whether there is an incoming call at the current terminal according to the resonance state value, and in a specific implementation, a time interval of 1ms may be used as the detection frequency, where the resonance state value includes 1 and 0, where 1 represents that there is an incoming call from the outside, i.e., there is an incoming call at the current terminal, and 0 represents that there is no incoming call from the outside, i.e., there is no incoming call at the current terminal, and the first storage area is a storage area created by the terminal for storing the antenna resonance state value.
In one embodiment, before step S10, the method further includes:
step a1, detecting the change condition of the inductance current of the antenna resonance module, and determining the resonance state value of the antenna resonance module based on the change condition;
in an embodiment, the terminal determines the resonance state value of the antenna resonance module by detecting the change condition of the inductance current of the antenna resonance module, and it can be understood that when a telephone call is dialed out from the outside, the antenna resonance module of the terminal will cause the change of the inductance current due to receiving a call signal, so in an embodiment, the change condition of the inductance current of the antenna resonance module can be used as a basis for measuring the resonance state value of the antenna resonance module.
Specifically, step a1 includes:
Step a11, respectively obtaining a first inductance current value and a second inductance current value of the antenna resonance module at a first moment and a second moment, and making a difference between the first inductance current value and the second inductance current value to obtain a difference result;
That is, the terminal obtains the inductance current values (the first inductance current value and the second inductance current value) of the antenna resonance module at two moments (the first moment and the second moment) respectively, and then makes a difference between the two inductance current values, so as to obtain a difference result of the inductance current, wherein the difference result is an absolute difference result, and it is to be noted that the first moment and the second moment are close but not equal, and when the antenna resonance module is implemented, the interval time between the first moment and the second moment can be 0.1ms or the like.
Step a12, judging whether the difference result is larger than a first preset threshold value;
step a13, if yes, determining a resonance state value of the antenna resonance module as a first target value;
and a step a14, if not, determining the resonance state value of the antenna resonance module as a second target value.
Then, whether the difference result of the inductance current at two moments is larger than a first preset threshold value is judged, wherein the first preset threshold value can be set according to actual conditions, and the embodiment is preferably 1.
If the terminal obtains that the inductance current value of the antenna resonance module at the first time (t 1 time) is 1.01A, that is, the inductance current value of c_electric current (t 1) =1.01, and the inductance current value at the second time (t 2 time) is 2.09A, that is, the inductance current value of c_electric current (t 2) =2.09, the difference result is dif_electric (x) = |c_electric current (t 2) -c_electric current (t 1) |=1.08, that is, the absolute value of the difference result of the inductance current values at the two times is greater than 1, at this time, the terminal can be considered to have an incoming call.
In order to facilitate the terminal to identify the resonance state value, setting the resonance state value with the difference result larger than a first preset value as a first target value, such as 1; and setting the resonance state value of which the difference result is smaller than or equal to the first preset value as a second target value, such as 0.
And a step a2 of storing the resonance state value in the first storage area, wherein the resonance state value comprises a first target value, and the first target value corresponds to an incoming call.
And finally, storing the resonance state value in a first storage area so that the terminal can acquire the resonance state value of the antenna resonance module in the first storage area, wherein the resonance state value comprises a first target value and a second target value, the first target value corresponds to incoming call, and the second target value corresponds to no incoming call.
Step S20, if so, determining whether the current terminal is in video call with the slave device.
In this embodiment, if the terminal determines that there is an incoming call from the outside, it is further determined whether the current terminal is performing a video call with the slave device, and it can be understood that if the current terminal is not performing a video call with the slave device, the terminal only needs to answer the incoming call normally, and only if the current terminal is performing a video call with the slave device, the subsequent steps need to be performed.
Further, in an embodiment, the step of determining whether the current terminal is in video call with the slave device includes:
step b1, acquiring a data state of a media window cache of a current terminal video application, and determining a first state value corresponding to a current terminal video module based on the data state;
In an embodiment, in the process of judging whether the terminal is currently performing a video call with the slave device, specifically, firstly, acquiring a data state of a media window buffer of a video application of the current terminal, wherein the data state comprises an output color pixel and a non-output color pixel. And determining a first state value of the video module in the current terminal according to the data state, wherein the first state value comprises 1 and 0, wherein 1 represents a working state and 0 represents a dormant state.
Specifically, in one embodiment, step b1 includes:
Step b11, detecting whether a media window of the current terminal video application outputs color pixels;
In an embodiment, the terminal detects whether the media window of the video application in the terminal outputs color pixels, for example, detects whether the buffer of the media window of the WeChat application outputs color pixels.
And b12, if yes, calculating a color gain value of the color pixel, and determining a first state value corresponding to the current terminal video module based on the color gain value, wherein the color pixel at least comprises one.
If so, calculating a color gain value of the color pixel, wherein the color pixel at least comprises one, preferably one, in the embodiment, that is, whether the video module of the terminal is working or not can be rapidly judged through one pixel point.
Specifically, the red gain value, the blue gain value and the green gain value of the color pixel are sequentially calculated, and then the color gain value of the color pixel is calculated through the red gain value, the blue gain value and the green gain value, for example, media_ RGAINDATA (x 1) =0x1// represents any pixel red gain value 0x80 of the Media window of the terminal video application.
Media_ BGainData (x 1) =0x20// represents any one pixel blue gain value 0x90 for the Media window of the terminal video application.
Media_ GGAINDATA (x 1) =0x300// represents the Media window of the terminal video application any pixel green gain value 0x80.
Color_work (x 1) = |media_ RGAINDATA (x 1) & media_ BGainData (x 1) & media_ G GAINDATA (x 1) |=0x321// represents the Color gain value of the Media window of the terminal video application.
The video module can be rapidly judged to work through one pixel point.
E.g., media_ RGAINDATA (x 2) =0x0// represents the Media window of the terminal video application, any pixel red gain value 0x0.
Media_ BGainData (x 2) =0x0// represents any one pixel blue gain value 0x0 of the Media window of the terminal video application.
Media_ GGAINDATA (x 2) =0x0// represents the Media window of the terminal video application any pixel green gain value 0x0.
Color_work (x 1) = |media_ RGAINDATA (x 1) & media_ BGainData (x 1) & media_ G GAINDATA (x 1) |=0x0// represents the Color gain value of the Media window of the terminal video application.
The video module can be rapidly judged to be not working through one pixel point.
Step b2, acquiring audio data of an audio data buffer area of the current terminal video application, and determining a second state value corresponding to the current terminal audio module based on the audio data;
In an embodiment, the terminal continues to acquire the audio data in the audio data buffer area of the video application, and determines a second state value corresponding to the audio module according to a change condition of the audio data, where the second state value includes 1 and 0, where 1 represents a working state and 0 represents a dormant state.
Specifically, in one embodiment, step b2 includes:
step b21, obtaining audio data of an audio data buffer area of the current terminal video application, wherein the number of the audio data at least comprises two;
In an embodiment, the terminal determines whether the audio module is operating by acquiring the change condition of the audio data in the audio data buffer area in the video application, and therefore, at least two audio data are required.
And step b22, differencing the audio data to obtain an audio difference value, and determining a second state value corresponding to the current terminal audio module based on the audio difference value.
Specifically, the two audio data are subjected to difference so as to obtain an audio difference value; or making difference between more than three audio data to obtain at least two audio difference values, and determining a second state value corresponding to the audio module according to the audio difference values.
In an embodiment, audio data in two audio data buffer areas are selected at will, difference calculation is performed, whether the obtained difference result is 0 is judged, and if not, the current audio module is determined to work; if the current audio module is 0, determining that the current audio module is dormant.
If Audio _ pro (x 1) =0x10// represents the x1 st corresponding value of 0x10 of the Audio data,
Audio_pro (x 2) =0x20// represents the x 2-th corresponding value of 0x20 of the Audio data,
Dif_audio (z 1) =audio_pro (x 2) -audio_pro (x 1) =0x10// means that the two are differenced.
And the difference value is not 0, and the current audio module is judged to be working rapidly.
It should be noted that, in another embodiment, the terminal may determine whether the audio module works first, and then determine whether the video module works; or the terminal establishes an asynchronous thread, and asynchronously judges whether the audio module and the video module work or not.
Step b3, if the first state value and the second state value both meet a second preset threshold value, determining that the current terminal and the slave device carry out video call;
In an embodiment, if the first state value and the second state value both meet a second preset threshold, for example, the second preset threshold is 1, it is determined that the current terminal and the slave device are in video call.
If the first state value and/or the second state value do not meet the second preset threshold value, if the first state value and/or the second state value is 0, the current terminal and the slave device are judged to have no video call.
And step S30, if yes, sending an interruption command for interrupting the video chat to the slave equipment so that the slave equipment can close the video call and switch to play the video program.
In this embodiment, if it is determined that there is an incoming call in the current terminal and a video call is being performed with the slave device, an interrupt command for interrupting the video chat is sent to the slave device, so that the slave device closes the video call according to the interrupt command and switches to play the video program, thereby avoiding that the display interface of the slave device is blocked or black due to the incoming call of the terminal.
Further, in an embodiment, if the slave device detects the interrupt command, the slave device acquires the caller identification information of the terminal, and displays the caller identification information on the display interface of the slave device, so that the user at one end of the slave device knows who to talk with the user at one end of the terminal after the video call is disconnected.
Further, in an embodiment, if the slave device detects the interrupt command, the slave device acquires the video program before the video call, and switches to play the video program before the video call while closing the video call according to the interrupt command.
Further, in an embodiment, if the slave device detects the interrupt command, the slave device displays the incoming call information on the display interface of the slave device. If detecting the answering instruction of the user at one end of the slave device based on the caller ID display information, sending the answering instruction to the terminal so as to be answered by the terminal. That is, in an embodiment, if the terminal receives a call during the video call, the authority of answering is controlled by the slave device at the other end of the video call.
In this embodiment, if a resonance state value of the antenna resonance module is detected in the first storage area, whether an incoming call exists in the current terminal is determined based on the resonance state value; if yes, determining whether the current terminal performs video call with the slave device; if yes, sending an interruption command for interrupting the video chat to the slave equipment so that the slave equipment can close the video call and switch to play the video program. In the video call process, if an incoming call is detected, an interrupt command is sent to the slave device, so that the slave device can close the video call according to the interrupt command, switch and play video programs, avoid the problem that the slave device is blocked or black, and realize intelligent interruption of video.
Further, based on the first embodiment of the video interrupt method of the present invention, a second embodiment of the video interrupt method of the present invention is provided.
The second embodiment of the video interrupt method differs from the first embodiment of the video interrupt method in that the step of transmitting an interrupt command to interrupt the video chat to the slave device comprises:
step c, acquiring an online state value corresponding to the current terminal and crossing a second storage area of the server, and determining whether the slave device is online or not based on the online state value;
And d, if the interrupt command is not online, sending the interrupt command to a video application server so that the video application server can send the interrupt command to the slave device.
In the process of sending the interrupt command to the slave device, the embodiment firstly judges whether the slave device is connected with the traversing server, and if not, the interrupt command is sent through the video application server.
The following will explain each step in detail:
And c, acquiring an online state value of the second storage area of the traversing server corresponding to the current terminal, and determining whether the slave equipment is online or not based on the online state value.
In this embodiment, the IP addresses of the terminal and the slave device are sent to the traversal server in advance, so that the terminal and the slave device can exchange commands, for example:
get_phone_aeroip (x) = { "192.168,0.8:4000- - -6.7,8.9:8000" }// IP of local area network of terminal.
Get_phone_nat_ip (x) = { "1.2,3.4:62000- - -6.7,8.9:8000" }// IP of the wide area network of terminals.
Get_phone_server_ip (x) = { "6.7,8.9:8000" }// IP of terminal traversing Server.
Get_slave_aeroip (x) = { "192.168,1.8:4000- - -6.7,8.9:8000" }// slave's local area network IP.
Get_slave_nat_ip (x) = { "1.2,3.5:1000- - -6.7,8.9:8000" }// slave's wide area network IP.
Get_slave_server_ip (x) = { "6.7,8.9:8000" }// slave crosses the Server's IP.
The terminal, the slave device and the traversing server can exchange commands according to the IP address, namely the terminal and the slave device realize signal traversing, and in addition, a second storage area is created in the traversing server and used for storing the online state value of the slave device.
Therefore, the terminal can acquire the presence value in the second storage area of the traversing server, so as to judge whether the slave device is online, and the presence value comprises 1 and 0 in the specific implementation, wherein 1 represents online and 0 represents offline.
And d, if the interrupt command is not online, sending the interrupt command to a video application server so that the video application server can send the interrupt command to the slave device.
In one embodiment, if it is determined that the slave device is not online, i.e., the slave device is not connected to the traversal server, an interrupt command is sent to a video application server, such as a micro-message server, and the video application server forwards the interrupt command to the slave device.
In one embodiment, if it is determined that the slave device is online, i.e., the slave device connects to the traversal server, then the interrupt command is sent directly to the slave device by the traversal server.
For example, tv_cancel_cmd (x) = { "EVENTNAME": "Cancel", "to": "2", "data": { }// indicates that the slave device receives a terminal Cancel chat command, that is, an interrupt command, parses from the device terminal to Cancel chat, closes a chat window, and switches to display video programs, so that the display interface of the slave device will not be blocked or blocked.
In the process of sending the interrupt command to the slave device, the embodiment firstly judges whether the slave device is connected with the traversing server, if not, the interrupt command is sent to the slave device in time through the video application server, so that the slave device can quickly respond to the interrupt command, and the phenomenon that the interrupt command is not in time, and the display interface of the slave device is blocked or black screen for a long time is avoided.
The invention also provides a video interrupt device. The video interrupt device of the present invention includes:
the first determining module is used for determining whether the current terminal has an incoming call or not based on the resonance state value if the resonance state value of the antenna resonance module is detected in the first storage area;
the second determining module is used for determining whether the current terminal performs video call with the slave equipment or not if the current terminal exists;
And the sending module is used for sending an interruption command for interrupting the video chat to the slave equipment if the video chat is interrupted, so that the slave equipment can close the video call and switch and play the video program.
Preferably, the video interrupt device comprises a detection module, and the detection module is used for:
Detecting the change condition of the inductance current of the antenna resonance module, and determining the resonance state value of the antenna resonance module based on the change condition;
And storing the resonance state value in the first storage area, wherein the resonance state value comprises a first target value, and the first target value corresponds to an incoming call.
Preferably, the detection module is further configured to:
respectively obtaining a first inductance current value and a second inductance current value of the antenna resonance module at a first moment and a second moment, and making a difference between the first inductance current value and the second inductance current value to obtain a difference result;
judging whether the difference result is larger than a first preset threshold value or not;
If yes, determining a resonance state value of the antenna resonance module as a first target value;
if not, determining the resonance state value of the antenna resonance module as a second target value.
Preferably, the second determining module is further configured to:
Acquiring a data state of a media window cache of a current terminal video application, and determining a first state value corresponding to a current terminal video module based on the data state;
Acquiring audio data of an audio data cache area of a current terminal video application, and determining a second state value corresponding to a current terminal audio module based on the audio data;
And if the first state value and the second state value both meet a second preset threshold value, determining that the current terminal and the slave device carry out video call.
Preferably, the second determining module is further configured to:
Detecting whether a media window of a current terminal video application outputs color pixels or not;
If yes, calculating a color gain value of the color pixel, and determining a first state value corresponding to the current terminal video module based on the color gain value, wherein the color pixel at least comprises one.
Preferably, the second determining module is further configured to:
Acquiring audio data of an audio data cache area of a current terminal video application, wherein the number of the audio data at least comprises two;
And differencing the audio data to obtain an audio difference value, and determining a second state value corresponding to the current terminal audio module based on the audio difference value.
Preferably, the sending module is further configured to:
Acquiring an online state value corresponding to the current terminal and traversing a second storage area of the server, and determining whether the slave device is online or not based on the online state value;
and if the slave device is not online, sending the interrupt command to a video application server so that the video application server can send the interrupt command to the slave device.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention has stored thereon a video interrupt program which, when executed by a processor, implements the steps of the video interrupt method as described above.
The method implemented when the video interrupt program running on the processor is executed may refer to various embodiments of the video interrupt method of the present invention, which are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein, or any application, directly or indirectly, in the field of other related technology.