[go: up one dir, main page]

CN112422878B - 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
CN112422878B
CN112422878B CN202011169348.5A CN202011169348A CN112422878B CN 112422878 B CN112422878 B CN 112422878B CN 202011169348 A CN202011169348 A CN 202011169348A CN 112422878 B CN112422878 B CN 112422878B
Authority
CN
China
Prior art keywords
video
state value
current terminal
slave device
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.)
Active
Application number
CN202011169348.5A
Other languages
Chinese (zh)
Other versions
CN112422878A (en
Inventor
赖祖宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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/CN112422878B/en
Publication of CN112422878A publication Critical patent/CN112422878A/en
Application granted granted Critical
Publication of CN112422878B publication Critical patent/CN112422878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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 present invention discloses a video interruption method, comprising: if the resonance state value of the antenna resonance module is detected in the first storage area, then based on the resonance state value, determining whether there is an incoming call at the current terminal; if so, determining whether the current terminal is making a video call with a slave device; if so, sending an interruption command for interrupting the video chat to the slave device, so that the slave device can close the video call and switch to playing the video program. The present invention also discloses a video interruption device, a terminal, and a computer-readable storage medium. If the terminal of the present invention is making a video call with a slave device when a call comes in, in order to avoid the problem of freezing or black screen of the slave device after the terminal answers the call, an interruption command is sent to the slave device in time so that the slave device can respond quickly, thereby realizing intelligent interruption of the video.

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
With the improvement of life quality and the continuous change of life environment, the application of household appliances is more and more common, and household appliances on the market are more and more, especially intelligent televisions, and with the powerful functions, the frequency of people using the intelligent televisions is greatly improved, such as video call using the intelligent televisions.
However, in the prior art, when the smart television and the mobile phone terminal are in communication, and the mobile phone terminal suddenly calls, the mobile phone terminal can select to continue video or select to answer the call, but the smart television is stuck or black screen when the mobile phone terminal selects to answer the call, which is because the mobile phone terminal does not timely send a video interrupt command to the smart television when answering the call, so that the smart television cannot interrupt video pictures in time, and because one end of the mobile phone terminal has switched a communication interface, the camera of the mobile phone terminal does not acquire video pictures, namely, no video pictures are transmitted to the smart television, so that the smart television is stuck or black screen.
Therefore, a more intelligent video interrupt mode is needed, so that the smart television cannot get stuck or black screen due to sudden incoming call of the mobile phone terminal.
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.
Drawings
FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
Fig. 2 is a flowchart of a video interrupt method according to a first embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
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.

Claims (9)

1. A video interruption method, characterized in that it 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 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;
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.
2. The video interruption method of claim 1, wherein if the resonance state value of the antenna resonance module is detected in the first storage area, the video interruption method further comprises, before the step of determining whether there is an incoming call at the current terminal based on the resonance state value:
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.
3. The video interrupt method of claim 2, wherein the step of detecting a change in an inductance current of the antenna resonating module and determining a resonating state value 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 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.
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 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.
5. The video interrupt method of claim 4, wherein the data state includes whether to output color pixels, 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 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.
6. The video interrupt method of claim 4, wherein the step of obtaining audio data of an 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 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.
7. A video interrupt device, the video interrupt device comprising:
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;
The sending module is used for sending an interrupt command for interrupting the video chat to the slave equipment if the video chat is in the preset state, so that the slave equipment can close the video call and switch to play the video program; 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.
8. A terminal comprising a memory, a processor and a video interrupt program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the video interrupt method according to any one of claims 1 to 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a video interrupt program, which when executed by a processor, implements the steps of the video interrupt method according to any of claims 1 to 6.
CN202011169348.5A 2020-10-27 2020-10-27 Video interruption method, device, terminal and computer-readable storage medium Active CN112422878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011169348.5A CN112422878B (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 CN112422878B (en) 2020-10-27 2020-10-27 Video interruption method, device, terminal and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN112422878A CN112422878A (en) 2021-02-26
CN112422878B true CN112422878B (en) 2024-09-17

Family

ID=74841854

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN112422878B (en)

Families Citing this family (1)

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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257413A (en) * 2017-06-30 2017-10-17 深圳天珑无线科技有限公司 Call processing method, electronic equipment and the device with store function

Family Cites Families (10)

* 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 automatically pausing and replaying video programs according to incoming calls
KR20090095061A (en) * 2008-03-04 2009-09-09 주식회사 케이티 Method and System for Automatically Connecting a Call
KR101728911B1 (en) * 2010-01-05 2017-04-20 엘지전자 주식회사 Method for connecting video communication to other device, video communication apparatus and display apparatus thereof
US9148611B2 (en) * 2012-10-18 2015-09-29 Mettalk.Com, Inc. 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
CN105430522B (en) * 2015-11-25 2019-02-26 深圳Tcl数字技术有限公司 Smart TV control terminal camera switching method and device
CN107241656A (en) * 2017-06-30 2017-10-10 广东欧珀移动通信有限公司 Incoming call processing method and device, storage medium and terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257413A (en) * 2017-06-30 2017-10-17 深圳天珑无线科技有限公司 Call processing method, electronic equipment and the device with store function

Also Published As

Publication number Publication date
CN112422878A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN104270668B (en) A kind of video content continuous playing method and system
CN112492252A (en) Call method and intelligent device
US9210371B2 (en) Transmission terminal, transmission system and program
US10701435B2 (en) Television video interception method and device
CN101227582A (en) Display device and method for realizing screen saver
US11556489B2 (en) Signal channel switching method, display terminal and computer-readable storage medium
US12483750B2 (en) Display device and control method therefor
CN106210797A (en) Live network broadcast method and device
CN112422878B (en) Video interruption method, device, terminal and computer-readable storage medium
US7382396B2 (en) Image data processing system and method of mobile communication terminal
KR100641138B1 (en) Call processing method of mobile communication terminal
CN103634659A (en) Method and device for reading resources of smart television
WO2017215100A1 (en) Method and device for video call data processing
CN105208315A (en) Application control method and device
CN112565204A (en) Control method and device for video data transmission and computer readable storage medium
CN114143586B (en) Split screen display sharing method, system, storage medium and intelligent screen
CN111614901A (en) Image shooting method and device, storage medium and terminal
CN101998570B (en) Network switching method and system
CN112995565B (en) Camera adjustment method of display device, display device and storage medium
CN110225395B (en) Program content display method, set top box terminal and program management system
CN112399242A (en) Mobile network connection method, device, equipment and medium based on television
CN113038240B (en) Television channel display optimization processing method and device, terminal equipment and storage medium
US7864671B2 (en) Connection control apparatus, connection control method, and program
CN114327313A (en) Screen projection method, device and medium
CN112333412A (en) Video communication method, device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant