CN112422878A - Video interruption method, device, terminal and computer readable storage medium - Google Patents

Video interruption method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN112422878A
CN112422878A CN202011169348.5A CN202011169348A CN112422878A CN 112422878 A CN112422878 A CN 112422878A CN 202011169348 A CN202011169348 A CN 202011169348A CN 112422878 A CN112422878 A CN 112422878A
Authority
CN
China
Prior art keywords
video
state value
current terminal
value
module
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.)
Pending
Application number
CN202011169348.5A
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011169348.5A priority Critical patent/CN112422878A/en
Publication of CN112422878A publication Critical patent/CN112422878A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/142Constructional details of the terminal equipment, e.g. arrangements of the camera and the display
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a video interruption method, which comprises the following steps: 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 is in video call with the slave equipment; if so, sending an interruption command for interrupting the video chat to the slave equipment so that the slave equipment can close the video conversation and switch to play the video program. The invention also discloses a video interruption device, a terminal and a computer readable storage medium. If the terminal is in a video call with the slave equipment when the call is received, in order to avoid the problem that the slave equipment is blocked or has a black screen after the terminal receives the call, the interrupt command is sent to the slave equipment in time, so that the slave equipment can respond quickly, and the intelligent interrupt of the video is realized.

Description

Video interruption method, device, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a video interruption method, apparatus, terminal, and computer-readable storage medium.
Background
Along with the improvement of life quality and the continuous change of living environment, the application of household electrical appliances is more and more common, and household electrical appliances in the market are more and more, especially smart television, along with the powerful of function, the frequency that people used smart television improves greatly, if use smart television to carry out video conversation.
However, in the prior art, when the smart television is in a call with the mobile phone terminal and the mobile phone terminal suddenly receives a call, the mobile phone terminal can select to continue to display a video or select to answer the call, but the smart television may get stuck or black screen when the mobile phone terminal selects to answer the call, which is because the mobile phone terminal does not send a video interrupt command to the smart television in time when answering the call, so that the smart television cannot interrupt a video picture in time, and because one end of the mobile phone terminal has switched a call interface, a camera of the mobile phone terminal does not acquire the video picture, that is, no video picture is transmitted to the smart television, so that the smart television is stuck or black screen.
Therefore, an intelligent video interruption method is needed to prevent the smart tv from getting stuck or being blacked due to a sudden incoming call from the mobile phone terminal.
Disclosure of Invention
The invention mainly aims to provide a video interruption method, a video interruption device, a video interruption terminal and a computer readable storage medium, and aims to realize intelligent interruption of videos.
To achieve the above object, the present invention provides a video interruption method, including 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 is in video call with the slave equipment;
if so, sending an interruption command for interrupting the video chat to the slave equipment so that the slave equipment can close the video conversation and switch to play the video program.
Preferably, before the step of determining whether there is an incoming call at the current terminal based on the resonance state value if the resonance state value of the antenna resonance module is detected in the first storage area, the video interruption method further includes:
detecting the change condition of the inductive current of the antenna resonance module, and determining the resonance state value of the antenna resonance module based on the change condition;
storing the resonance state value in the first storage area, wherein the resonance state value includes a first target value corresponding to an incoming call.
Preferably, the step of detecting a change of an inductive 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 subtracting the first inductance current value from 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 so, determining the resonance state value of the antenna resonance module as a first target value;
and if not, determining that the resonance state value of the antenna resonance module is 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 region 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 step of obtaining 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 comprises at least one color pixel.
Preferably, the step of obtaining the audio data of the audio data buffer 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 region of a current terminal video application, wherein the number of the audio data at least comprises two;
and the audio data are subjected to subtraction to obtain an audio difference value, and a second state value corresponding to the current terminal audio module is determined based on the audio difference value.
Preferably, the step of transmitting an interruption command for interrupting the video chat to the slave device includes:
acquiring an online state value of a second storage area of a traversing server corresponding to the current terminal, and determining whether the slave device is online based on the online state value;
and if the slave equipment is not online, sending the interrupt command to a video application server so that the video application server sends the interrupt command to the slave equipment.
In addition, to achieve the above object, the present invention also provides a video interruption device, including:
the first determining module is used for determining whether the incoming call exists in the current terminal 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 has a video call with the slave equipment or not if the current terminal has the video call with the slave equipment;
and if so, 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, the video interruption device comprises a detection module, and the detection module is configured to:
detecting the change condition of the inductive current of the antenna resonance module, and determining the resonance state value of the antenna resonance module based on the change condition;
storing the resonance state value in the first storage area, wherein the resonance state value includes a first target value corresponding 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 subtracting the first inductance current value from 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 so, determining the resonance state value of the antenna resonance module as a first target value;
and if not, determining that the resonance state value of the antenna resonance module is 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 region 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 comprises at least one color pixel.
Preferably, the second determining module is further configured to:
acquiring audio data of an audio data cache region of a current terminal video application, wherein the number of the audio data at least comprises two;
and the audio data are subjected to subtraction to obtain an audio difference value, and a second state value corresponding to the current terminal audio module is determined based on the audio difference value.
Preferably, the sending module is further configured to:
acquiring an online state value of a second storage area of a traversing server corresponding to the current terminal, and determining whether the slave device is online based on the online state value;
and if the slave equipment is not online, sending the interrupt command to a video application server so that the video application server sends the interrupt command to the slave equipment.
In addition, to achieve the above object, the present invention also provides a terminal, including: a memory, a processor and a video interrupt program stored on the memory and executable on the processor, the video interrupt program when executed by the processor implementing the steps of the video interrupt method as described above.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having a video interrupt program stored thereon, which when executed by a processor implements the steps of the video interrupt method as described above.
According to the video interruption method, if the resonance state value of the antenna resonance module is detected in the first storage area, whether incoming call exists in the current terminal or not is determined based on the resonance state value; if yes, determining whether the current terminal is in video call with the slave equipment; if so, sending an interruption command for interrupting the video chat to the slave equipment so that the slave equipment can close the video conversation and switch to play the video program. If the terminal is in a video call with the slave equipment when the call is received, in order to avoid the problem that the slave equipment is blocked or has a black screen after the terminal receives the call, the interrupt command is sent to the slave equipment in time, so that the slave equipment can respond quickly, and the intelligent interrupt of the video is realized.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a video interruption method according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of 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 a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also 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 non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a video interrupt program.
The operating system is a program for managing and controlling the terminal and software resources, and supports the running of a network communication module, a user interface module, a video interrupt program and other programs or software; the network communication module is used for managing and controlling 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 interruption program stored in the memory 1005 through the processor 1001 and performs operations in various embodiments of the video interruption method described below.
Based on the hardware structure, the embodiment of the video interruption method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a video interruption method according to a first embodiment of 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 the incoming call exists in the current terminal based on the resonance state value;
step S20, if yes, determining whether the current terminal has a video call with the slave device;
step S30, if yes, sending an interrupt command for interrupting the video chat to the slave device, so that the slave device closes the video call and switches to play the video program.
The video interruption method of the embodiment is applied to a terminal, which may 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 described by taking a smart phone as an example, and the terminal is described by taking a mobile phone as an example.
In the prior art, when a user uses a mobile phone to perform video with a smart television, if an incoming call is encountered, the mobile phone automatically disconnects a video call and switches to a call interface or receives an instruction that the user selects to answer, but the smart television in communication with the mobile phone does not receive the interrupt instruction, so that a screen is blocked or a black screen phenomenon occurs.
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 momentarily close the video call and switch to play the video interface according to the interrupt command, and the display interface of the slave device does not have a black screen or a stuck screen.
The respective steps will be described in detail below:
in step S10, if the resonance state value of the antenna resonance module is detected in the first storage area, it is determined whether there is an incoming call at the current terminal based on the resonance state value.
In this embodiment, the terminal detects a resonance state value of the antenna resonance module in real time or at a regular time in the first storage area, and then determines whether there is an incoming call at the current terminal according to the resonance state value, and in the specific implementation, a time interval of 1ms may be used as a detection frequency, and the resonance state value includes 1 and 0, where 1 represents that there is a call dial-in from the outside, that is, there is an incoming call at the current terminal, and 0 represents that there is no call dial-in from the outside, that is, 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 resonance state value of the antenna.
In an embodiment, before step S10, the method further includes:
step a1, detecting the change situation of the inductive current of the antenna resonance module, and determining the resonance state value of the antenna resonance module based on the change situation;
in an embodiment, the terminal determines the resonant state value of the antenna resonance module by detecting a change of an inductive current of the antenna resonance module, and it can be understood that when a phone call is dialed from the outside, the antenna resonance module of the terminal changes the inductive current due to receiving a call signal, and therefore, in an embodiment, the change of the inductive current of the antenna resonance module can be used as a basis for measuring the resonant state value of the antenna resonance module.
Specifically, step a1 includes:
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 subtracting 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), and then performs a difference between the two moments to obtain a difference result of the inductance currents, where the difference result is an absolute difference result, and it should be noted that the first moment and the second moment are close to but not equal to each other, and in a specific implementation, the interval time between the first moment and the second moment may be 0.1ms, and the like.
Step a12, judging whether the difference result is larger than a first preset threshold value;
step a13, if yes, determining the resonance state value of the antenna resonance module as a first target value;
step a14, if not, determining the resonance state value of the antenna resonance module as a second target value.
Then, it is determined whether a difference result of the inductor current at two moments is greater than a first preset threshold, where the first preset threshold may be set according to an actual situation, and the embodiment is preferably 1.
If the terminal obtains that the inductance current value of the antenna resonance module at the first time (time t1) is 1.01A, that is, C _ Electric current (time t1) is 1.01, and the inductance current value at the second time (time t2) is 2.09A, that is, C _ Electric current (time t2) is 2.09, the difference result is Dif _ Electric (x) | C _ Electric current (time t2) -C _ Electric current (time t1) | 1.08, that is, the absolute value of the difference result between the inductance current values at the two times is greater than 1, at this time, it can be considered that the terminal has an incoming call.
In order to facilitate the terminal to recognize the resonance state value, the resonance state value of which difference result is greater than a first preset value is set as a first target value, such as 1; the resonance state value for which the difference result is less than or equal to the first preset value is set as a second target value, such as 0.
Step a2, storing the resonance state value in the first storage area, wherein the resonance state value includes a first target value corresponding 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 an incoming call, and the second target value corresponds to no incoming call.
And step S20, if yes, determining whether the current terminal is in video call with the slave equipment.
In this embodiment, if the terminal determines that there is an incoming call from the outside, it further determines whether the current terminal is currently performing a video call with the slave device, and it can be understood that, if the current terminal is not currently 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 currently performing a video call with the slave device, the subsequent steps need to be executed.
Further, in an embodiment, the step of determining whether the current terminal is in a video call with the slave device includes:
step b1, acquiring the data state of the media window cache of the current terminal video application, and determining a first state value corresponding to the current terminal video module based on the data state;
in an embodiment, in the process of determining whether a video call is currently performed with a slave device, a terminal specifically acquires a data state of a media window buffer of a current terminal video application, where the data state includes an output color pixel and a non-output color pixel. And determining a first state value of a 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 sleep state.
Specifically, in one embodiment, step b1 includes:
step b11, detecting whether the media window of the current terminal video application outputs color pixels;
in an embodiment, the terminal detects whether a media window of a video application in the terminal outputs color pixels, such as whether color pixels are output in a buffer of the media window of a WeChat application.
Step 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, where the color pixel includes at least one.
If so, calculating a color gain value of the color pixel, wherein the color pixel includes at least one, preferably one, in this embodiment, that is, whether the video module of the terminal is working can be quickly judged by one pixel point.
Specifically, the red gain value, the blue gain value and the green gain value of the color pixel are calculated in sequence, 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 (x1) ═ 0x1// any pixel red gain value 0x80 of the Media window representing the terminal video application.
Media _ BGainData (x1) ═ 0x20// Media window any pixel blue gain value 0x90 representing the end video application.
Media _ GGainData (x1) ═ 0x300// represents the Media window of the end video application any pixel green gain value 0x 80.
Color _ Work (x1) | Media _ RGainData (x1) & Media _ BGainData (x1) & Media _ G gaindia (x1) | 0x321// represents the Color gain value of the Media window of the terminal video application.
The video module can be quickly judged to be working through one pixel point.
E.g., Media _ RGainData (x2) ═ 0x0// Media window any pixel red gain value 0x0 representing the end video application.
Media _ BGainData (x2) ═ 0x0// Media window any pixel blue gain value 0x0 representing the end video application.
Media _ GGainData (x2) ═ 0x0// represents the Media window's end video application any pixel green gain value 0x 0.
Color _ Work (x1) ═ Media _ RGainData (x1) & Media _ BGainData (x1) & Media _ G gaindia (x1) | 0x0// represents the Color gain value of the Media window for the terminal video application.
The video module can be quickly judged to be not working through one pixel point.
Step b2, acquiring the audio data of the 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 audio data in an audio data buffer 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 sleep state.
Specifically, in one embodiment, step b2 includes:
step b21, acquiring 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 working by acquiring the change condition of the audio data in the audio data buffer in the video application, and therefore, at least two audio data are required.
And b22, subtracting 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, two audio data are subjected to difference so as to obtain an audio difference value; or the more than three audio data are subtracted in pairs to obtain at least two audio difference values, and then the second state value corresponding to the audio module is determined according to the audio difference values.
In one embodiment, the audio data in the two audio data cache regions are selected at will, difference calculation is carried out, whether the obtained difference result is 0 or not is judged, and if the difference result is not zero, the current audio module is determined to work; if the value is 0, the current audio module is determined to be dormant.
If Audio _ pro (x1) ═ 0x10// denotes the x1 th corresponding value 0x10 of the Audio data,
audio _ pro (x2) ═ 0x20// denotes the x2 th corresponding value of 0x20 of the Audio data,
diff _ Audio (z1) ═ Audio _ pro (x2) -Audio _ pro (x1) ═ 0x10// denotes the difference between the two.
And if the difference is not 0, quickly judging that the current audio module works.
It should be noted that, in another embodiment, the terminal may first determine whether the audio module works, 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 at the same time.
B3, if the first state value and the second state value both meet a second preset threshold, determining that the current terminal and the slave device are in video call;
in an embodiment, if the first state value and the second state value both satisfy the second preset threshold, if the second preset threshold is 1, it is determined that the current terminal and the slave device are performing a video call.
And 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 are 0, judging that the current terminal and the slave equipment do not carry out video call.
Step S30, if yes, sending an interrupt command for interrupting the video chat to the slave device, so that the slave device closes the video call and switches to play the video program.
In this embodiment, if it is determined that there is an incoming call at 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 a video program, thereby preventing the incoming call at the terminal from causing a display interface of the slave device to be jammed or a screen to be blacked.
Further, in an embodiment, if the slave device detects the interrupt command, the slave device acquires incoming call display information of the terminal, and displays the incoming call display information on a display interface of the slave device, so that a user at the slave device knows who the user at the terminal has a call with 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 incoming call information is displayed on a display interface of the slave device. And if the answering instruction of the user at one end of the slave equipment based on the caller identification information is detected, sending the answering instruction to the terminal so that the terminal can answer. That is, in one embodiment, when the terminal receives an incoming call during a video call, the permission of whether to answer the call is controlled by the slave device at the other end of the video call.
In this embodiment, if the 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 is in video call with the slave equipment; if so, sending an interruption command for interrupting the video chat to the slave equipment so that the slave equipment can close the video conversation 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 from the slave device according to the interrupt command and switch to play a video program, the problem of blocking or black screen of the slave device is avoided, and the intelligent interrupt of the video is realized.
Further, based on the first embodiment of the video interruption method of the present invention, a second embodiment of the video interruption method of the present invention is provided.
The second embodiment of the video interruption method differs from the first embodiment of the video interruption method in that the step of sending an interruption command to interrupt the video chat to the slave device comprises:
step c, acquiring an online state value of a second storage area of a traversing server corresponding to the current terminal, and determining whether the slave device is online based on the online state value;
and d, if the slave equipment is not on line, sending the interrupt command to a video application server so that the video application server can send the interrupt command to the slave equipment.
In the process of sending the interrupt command to the slave device, the embodiment first determines whether the slave device is connected to the pass-through server, and if not, sends the interrupt command through the video application server.
The respective steps will be described in detail below:
and c, acquiring an online state value of a 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 commands can be exchanged between the terminal and the slave device, such as:
get _ Phone _ averepip (x) { "192.168,0.8:4000 — 6.7,8.9:8000" }// IP of the local area network of the terminal.
Get _ Phone _ NAT _ IP (x) { "1.2,3.4:62000- - -6.7,8.9:8000" }// IP of the wide area network of the terminal.
Get _ Phone _ Server _ IP (x) { "6.7,8.9:8000" }// IP where the terminal traverses the Server.
Get _ slave _ averaip (x) { "192.168,1.8:4000- - -6.7,8.9:8000" }// IP of the local area network of the slave.
Get _ slave _ NAT _ IP (x) { "1.2,3.5:1000- - -6.7,8.9:8000" }// IP of the slave's wide area network.
Get _ slave _ Server _ IP (x) { "6.7,8.9:8000" }// IP where the slave traverses the Server.
The terminal, the slave device and the traversal server can exchange commands according to the IP address, namely the terminal and the slave device realize signal traversal, and in addition, a second storage area is created in the traversal server and used for storing the online state value of the slave device.
Therefore, the terminal can acquire the online state value in the second storage area traversing the server so as to judge whether the slave device is online, and in the specific implementation, the online state value comprises 1 and 0, wherein 1 represents online and 0 represents offline.
And d, if the slave equipment is not on line, sending the interrupt command to a video application server so that the video application server can send the interrupt command to the slave equipment.
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, the interrupt command is sent to a video application server, such as a wechat 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 is connected to the pass through server, the pass through server sends the interrupt command directly to the slave device.
For example, TV _ Cancel _ cmd (x) { "eventName": Cancel "," to ": 2", "data": { }// means that the slave device receives a terminal Cancel chat command, i.e., an interrupt command, parses from the device side to Cancel the chat, closes the chat window, and switches to display the video program so that the display interface of the slave device is not jammed or black.
In the process of sending the interrupt command to the slave device, the embodiment first judges whether the slave device is connected to the pass-through server, and if not, the interrupt command is sent through the video application server, so that the interrupt command is sent to the slave device in time, the slave device can quickly respond to the interrupt command, and the situation that the interrupt command is not timely and a display interface of the slave device is blocked for a long time or is blocked for a black screen when the interrupt command is not timely is avoided.
The invention also provides a video interruption device. The video interruption device of the present invention comprises:
the first determining module is used for determining whether the incoming call exists in the current terminal 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 has a video call with the slave equipment or not if the current terminal has the video call with the slave equipment;
and if so, 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, the video interruption device comprises a detection module, and the detection module is configured to:
detecting the change condition of the inductive current of the antenna resonance module, and determining the resonance state value of the antenna resonance module based on the change condition;
storing the resonance state value in the first storage area, wherein the resonance state value includes a first target value corresponding 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 subtracting the first inductance current value from 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 so, determining the resonance state value of the antenna resonance module as a first target value;
and if not, determining that the resonance state value of the antenna resonance module is 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 region 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 comprises at least one color pixel.
Preferably, the second determining module is further configured to:
acquiring audio data of an audio data cache region of a current terminal video application, wherein the number of the audio data at least comprises two;
and the audio data are subjected to subtraction to obtain an audio difference value, and a second state value corresponding to the current terminal audio module is determined based on the audio difference value.
Preferably, the sending module is further configured to:
acquiring an online state value of a second storage area of a traversing server corresponding to the current terminal, and determining whether the slave device is online based on the online state value;
and if the slave equipment is not online, sending the interrupt command to a video application server so that the video application server sends the interrupt command to the slave equipment.
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 each embodiment of the video interrupt method of the present invention, and details thereof are not repeated herein.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A video interruption method, characterized in that the video interruption method comprises 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 is in video call with the slave equipment;
if so, sending an interruption command for interrupting the video chat to the slave equipment so that the slave equipment can close the video conversation and switch to play the video program.
2. The video interruption method according to claim 1, wherein, before the step of determining whether there is an incoming call at the current terminal based on the resonance state value if the resonance state value of the antenna resonance module is detected in the first storage area, the video interruption method further comprises:
detecting the change condition of the inductive current of the antenna resonance module, and determining the resonance state value of the antenna resonance module based on the change condition;
storing the resonance state value in the first storage area, wherein the resonance state value includes a first target value corresponding to an incoming call.
3. The video interruption method of claim 2, wherein the step of detecting a change in the inductor current of the antenna resonating module and determining the value of the resonance state of the antenna resonating module based on the change comprises:
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 subtracting the first inductance current value from 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 so, determining the resonance state value of the antenna resonance module as a first target value;
and if not, determining that the resonance state value of the antenna resonance module is a second target value.
4. The video interrupt method of claim 1, wherein 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 region 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.
5. The video interrupt method of claim 4, wherein the data state includes whether to output a color pixel, and the step of obtaining 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 comprises:
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 comprises at least one color pixel.
6. The video interruption method according to claim 4, wherein the step of obtaining the audio data of the audio data buffer of the current terminal video application and determining the second state value corresponding to the current terminal audio module based on the audio data comprises:
acquiring audio data of an audio data cache region of a current terminal video application, wherein the number of the audio data at least comprises two;
and the audio data are subjected to subtraction to obtain an audio difference value, and a second state value corresponding to the current terminal audio module is determined based on the audio difference value.
7. The video conferencing method of any of claims 1-6, wherein the step of sending an interrupt command to the slave device to interrupt the video chat comprises:
acquiring an online state value of a second storage area of a traversing server corresponding to the current terminal, and determining whether the slave device is online based on the online state value;
and if the slave equipment is not online, sending the interrupt command to a video application server so that the video application server sends the interrupt command to the slave equipment.
8. A video interruption device, the video interruption device comprising:
the first determining module is used for determining whether the incoming call exists in the current terminal 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 has a video call with the slave equipment or not if the current terminal has the video call with the slave equipment;
and if so, 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.
9. A terminal, characterized in that the terminal comprises a memory, a processor and a video interrupt program stored on the memory and executable on the processor, the video interrupt program, when executed by the processor, implementing the steps of the video interrupt method according to any one of claims 1 to 7.
10. 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 of any one of claims 1 to 7.
CN202011169348.5A 2020-10-27 2020-10-27 Video interruption method, device, terminal and computer readable storage medium Pending CN112422878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011169348.5A CN112422878A (en) 2020-10-27 2020-10-27 Video interruption method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011169348.5A CN112422878A (en) 2020-10-27 2020-10-27 Video interruption method, device, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112422878A true CN112422878A (en) 2021-02-26

Family

ID=74841854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011169348.5A Pending CN112422878A (en) 2020-10-27 2020-10-27 Video interruption method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112422878A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102915A (en) * 2022-06-21 2022-09-23 元心信息科技集团有限公司 Information interaction method and device, electronic equipment and computer readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070098351A1 (en) * 2005-10-31 2007-05-03 Sony Ericsson Mobile Communication Ab Methods and computer program products for playing audio/video programs on a portable electronic device
CN1992871A (en) * 2005-12-31 2007-07-04 英保达股份有限公司 System and method for auto pausing and replaying video program based on calling signal
KR20090095061A (en) * 2008-03-04 2009-09-09 주식회사 케이티 Method and System for Automatically Connecting a Call
CN102696224A (en) * 2010-01-05 2012-09-26 Lg电子株式会社 Method for connecting video communication to other device, video communication apparatus and display apparatus thereof
CN202979090U (en) * 2012-12-13 2013-06-05 内蒙古科技大学 Pulse stimulation type super-distance call sensor of mobile phone
US20140111598A1 (en) * 2012-10-18 2014-04-24 Garry M. Paxinos Method and apparatus for coviewing video
US9204093B1 (en) * 2014-10-14 2015-12-01 Palmwin Information Technology (Shanghai) Co. Ltd. Interactive combination of game data and call setup
CN105306727A (en) * 2015-11-10 2016-02-03 Tcl集团股份有限公司 Method and system for mobile terminal to answer call
WO2017088437A1 (en) * 2015-11-25 2017-06-01 深圳Tcl数字技术有限公司 Method and device for controlling switching of cameras of terminal by means of smart television
CN107241656A (en) * 2017-06-30 2017-10-10 广东欧珀移动通信有限公司 A kind of call processing method, device, storage medium and terminal
CN107257413A (en) * 2017-06-30 2017-10-17 深圳天珑无线科技有限公司 Call processing method, electronic equipment and the device with store function

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070098351A1 (en) * 2005-10-31 2007-05-03 Sony Ericsson Mobile Communication Ab Methods and computer program products for playing audio/video programs on a portable electronic device
CN1992871A (en) * 2005-12-31 2007-07-04 英保达股份有限公司 System and method for auto pausing and replaying video program based on calling signal
KR20090095061A (en) * 2008-03-04 2009-09-09 주식회사 케이티 Method and System for Automatically Connecting a Call
CN102696224A (en) * 2010-01-05 2012-09-26 Lg电子株式会社 Method for connecting video communication to other device, video communication apparatus and display apparatus thereof
US20140111598A1 (en) * 2012-10-18 2014-04-24 Garry M. Paxinos Method and apparatus for coviewing video
CN202979090U (en) * 2012-12-13 2013-06-05 内蒙古科技大学 Pulse stimulation type super-distance call sensor of mobile phone
US9204093B1 (en) * 2014-10-14 2015-12-01 Palmwin Information Technology (Shanghai) Co. Ltd. Interactive combination of game data and call setup
CN105306727A (en) * 2015-11-10 2016-02-03 Tcl集团股份有限公司 Method and system for mobile terminal to answer call
WO2017088437A1 (en) * 2015-11-25 2017-06-01 深圳Tcl数字技术有限公司 Method and device for controlling switching of cameras of terminal by means of smart television
CN107241656A (en) * 2017-06-30 2017-10-10 广东欧珀移动通信有限公司 A kind of call processing method, device, storage medium and terminal
CN107257413A (en) * 2017-06-30 2017-10-17 深圳天珑无线科技有限公司 Call processing method, electronic equipment and the device with store function

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
石硕;李久仲;郭庚麒;李洛;陈建国;: "基于DSP的二网融合的可视电话系统", 电视技术, no. 08, 17 August 2009 (2009-08-17) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102915A (en) * 2022-06-21 2022-09-23 元心信息科技集团有限公司 Information interaction method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108881779B (en) Method, system and server for answering and transferring video calls between intelligent devices
US10701435B2 (en) Television video interception method and device
CN110708559B (en) Image processing method, device and storage medium
US20080170058A1 (en) Display apparatus and method for implementing screen saver for the same
CN104735419B (en) The display methods and system of vision signal
JP7008762B2 (en) Data transmission methods, devices and storage media based on mobile networks
US20110242267A1 (en) Apparatus and method for remote control between mobile communication terminals
CN103581605A (en) Video call multi-screen interaction method and video call transit device
EP1487210B1 (en) Image data processing method of mobile communication terminal
CN112422878A (en) Video interruption method, device, terminal and computer readable storage medium
CN112565204A (en) Control method and device for video data transmission and computer readable storage medium
CN105208315A (en) Application control method and device
CN115209192A (en) Display device, intelligent device and camera sharing method
US11605157B2 (en) Adaptive image processing
CN103413091B (en) The method for supervising of malicious act and device
CN113010135B (en) Data processing method and device, display terminal and storage medium
US9621841B1 (en) Frame rate conversion based on object tracking
US9338745B2 (en) Method and system for network handover
CN112601091A (en) Motion estimation method in frame rate conversion and display equipment
KR102065081B1 (en) Calling Apparatus and Method for Mobile
CN112867171B (en) WIFI connection method and device, storage medium and mobile terminal
CN112333412A (en) Video communication method, device and computer readable storage medium
CN112399242A (en) Mobile network connection method, device, equipment and medium based on television
CN113485667A (en) Method for screen projection display of terminal, terminal and storage medium
US20020080092A1 (en) Method for transmitting information

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