Video call optimization method, electronic device and storage medium

By determining the call status of the terminal device and issuing instructions to resume the video stream, the problem of the video screen disappearing during the video call is solved, the user experience is improved, and the continuity and stability of the video call are achieved.

CN117041465BActive Publication Date: 2024-09-27HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310887032.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-18
Publication Date
2024-09-27
Estimated Expiration
2043-07-18

AI Technical Summary

Technical Problem

During a video call, when the user exits the call interface to the desktop and then returns, the peer user's video screen will disappear, affecting the user's video call experience.

Method used

By determining whether the call status of the terminal device is an incoming call, if not, an instruction to resume the video stream is issued to restore the video call screen of the peer user on the screen and avoid directly reading the video in the framework telecom call. The color vibration capability value ensures the normal recovery of the video stream.

Benefits of technology

It effectively avoids the disappearance of the video screen, improves the user's video call experience, and ensures the continuity and stability of the video call.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117041465B
    Figure CN117041465B
Patent Text Reader

Abstract

The present application provides a method for optimizing video calls, an electronic device, and a storage medium, and relates to the field of terminal technology. The method includes: first, after the first terminal device of the first user receives an incoming call from the second terminal device of the second user, a video call between the first user and the second user is established; and the video call screens corresponding to the first user and the second user are displayed on the screen interface of the first terminal device; then, when the first user exits the video call interface to the desktop and then returns to the video call interface, the call status of the current first terminal device is obtained; and it is determined whether the call status is an incoming call state; if not, an instruction to restore the video stream is issued to obtain the video call screens corresponding to the current first user and the second user based on the instruction, and the two are displayed on the screen interface of the first terminal device, so as to avoid the loss of the video screen of the second user and improve the video call experience of the first user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a method for optimizing video calls, an electronic device, and a storage medium. Background Art

[0002] With the continuous breakthroughs in artificial intelligence technology and the increasing popularity of various terminal devices, mobile communications play an important role in people's daily work and life. People can make more video calls through terminal devices.

[0003] However, currently, when a user receives a video call through a terminal device, the video ring screen is usually played first. Then, after answering the video call, when the user exits the call interface to the desktop and then returns to the call interface, the video screen of the other user on the video call with the user will disappear, affecting the user's video call experience. Summary of the invention

[0004] In order to solve the above problems, the present application provides a video call optimization method, electronic device and storage medium, the purpose of which is to avoid the situation where the video screen disappears when the user is making a video call, so as to improve the user's video call experience.

[0005] In the first aspect, the present application provides a method for optimizing video calls, the method comprising: first, after the first terminal device of the first user receives an incoming call from the second terminal device of the second user, a video call is established between the first user and the second user; and the video call screens corresponding to the first user and the second user are displayed on the screen interface of the first terminal device; then when the first user exits the video call interface to the desktop (to check the weather or text messages, etc.), and then returns to the video call interface, the call status of the current first terminal device is obtained; and it is determined whether the call status is an incoming call status, such as whether the call status is ringing; if not, it indicates that the first terminal device is in a non-video color vibration mode at this time, and an instruction to restore the video stream can be issued to obtain the video call screens corresponding to the current first user and the second user based on the instruction, and the obtained video call screens corresponding to the current first user and the second user are displayed on the screen interface of the first terminal device.

[0006] It can be seen that in the above-mentioned video call optimization method, when the first user exits the video call interface to the desktop (to check the weather or text messages, etc.), and then returns to the video call interface, this embodiment no longer directly reads the value corresponding to the video color vibration capability (EXTRA_CRS_TYPE) in the framework telecomcall, but first obtains the current call status of the first electronic device from the framework telecom call, and when it is determined that the call status is not an incoming call (such as not ringing), sends an instruction to restore the video stream to the underlying modem, so as to restore the video call screen of the second user on the other end on the screen interface of the first electronic device, thereby avoiding the disappearance of the video screen of the second user, thereby improving the video call experience of the first user.

[0007] In a possible implementation, both the first terminal device and the second terminal device are equipped with SIM cards with a video color ringing function enabled, so that both can realize video color ringing when a call comes in.

[0008] In a possible implementation, after the first terminal device of the first user receives an incoming call from the second terminal device of the second user, the method further includes: reporting to the protocol layer modem of the first terminal device through the operator network that the SIM card carried by the first terminal device has the video color ringing capability; and then reporting to the application side of the first terminal device through the modem layer by layer that the SIM card carried by the first terminal device has the video color ringing capability, so as to implement the video color ringing of the first terminal device when a call is incoming.

[0009] In one possible implementation, after the first user exits the video call interface to the desktop, the method also includes: issuing an instruction to pause the video stream, so as to stop the transmission of the video streams of the video calls corresponding to the first user and the second user respectively based on the pause instruction, thereby ensuring that the video call screens corresponding to the first user and the second user respectively are not displayed on the screen interface of the first terminal device at this time, thereby not affecting other operations performed by the first user after exiting the video call interface to the desktop (such as replying to text messages, etc.), thereby improving the operating experience of the first user.

[0010] In a possible implementation, the incoming call status may be a ringing state; and the incoming call status may be used to indicate that the first terminal device is in a video color vibration mode.

[0011] On this basis, in a possible implementation method, determining whether the call status is an incoming call status may include: determining whether the call status of the first terminal device is a ringing state; if not, it indicates that the first terminal device is not in a video color vibration mode; if so, it indicates that the first terminal device is in a video color vibration mode, and corresponding video stream processing instructions may be issued respectively to optimize the video call effect.

[0012] In one possible implementation, an instruction to restore the video stream is issued to obtain the video call screens corresponding to the current first user and the second user respectively based on the instruction, and the video call screens corresponding to the current first user and the second user respectively are displayed on the screen interface of the first terminal device, including: through the functional module incallui of the application layer (whose main function is to display and update the content of the call interface on the interface of the electronic device, etc.), an instruction to restore the video stream is issued to the underlying modem layer by layer, so as to obtain the video call screens corresponding to the current first user and the second user respectively through information interaction with the operator network through the modem, and display the obtained video call screens corresponding to the current first user and the second user respectively on the screen interface of the first terminal device, so that the video call screen of the second user on the other end can be restored on the screen interface of the first electronic device, thereby optimizing the video call effect between the first user and the second user.

[0013] In one possible implementation, an instruction to pause the video stream is issued to stop the transmission of the video stream of the video call corresponding to the first user and the second user respectively based on the instruction, and the video call screen corresponding to the first user and the second user respectively is not displayed on the screen interface of the first terminal device, including: issuing an instruction to pause the video stream to the underlying modem layer by layer through the functional module incallui of the application layer, so as to stop the transmission of the video stream of the video call corresponding to the first user and the second user respectively through information interaction with the operator network through the modem, and the video call screen corresponding to the first user and the second user respectively is not displayed on the screen interface of the first terminal device, so as to ensure that other operations performed by the first user when exiting the video call interface to the desktop are not affected.

[0014] In a second aspect, the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, the processor being used to call and execute the computer program to implement the video call optimization method described in any one of the first aspects above.

[0015] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor of an electronic device, is used to implement the video call optimization method described in any one of the first aspects above.

[0016] In a fourth aspect, the present application provides a computer program product. When the computer program product is executed on a computer, the computer executes the video call optimization method as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 One of the scenario diagrams provided in the embodiment of the present application;

[0018] Figure 2 A schematic diagram of an electronic device provided in an embodiment of the present application;

[0019] Figure 3 A software structure block diagram of an electronic device provided in an embodiment of the present application;

[0020] Figure 4 The second schematic diagram of the scenario provided for the embodiment of the present application;

[0021] Figure 5 A signaling diagram of a method for optimizing incoming calls for video calls provided in an embodiment of the present application;

[0022] Figure 6 A signaling diagram after a video call provided in an embodiment of the present application;

[0023] Figure 7 A signaling diagram of a method for optimizing video calls provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0025] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0026] The multiple involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0027] Before introducing the embodiments of the present application, some terms or concepts involved in the embodiments of the present application are first explained. It should be understood that the present application does not specifically limit the naming of the following terms. The following terms may have other names. The renamed terms still meet the following related term explanations.

[0028] 1) Video color ringing means that when a call comes in to a terminal device (such as a mobile phone), not only will there be a ringtone and / or vibration, but a video or animation will also be displayed on the device interface as the caller ID. This makes the caller ID more vivid and interesting. That is, after the operator's network and the user's terminal device are able to support video color ringing, when the user turns on the video color ringing function, after an incoming call, the user's terminal device will play a video or animation screen pre-set by the operator. The video or animation screen (i.e., the video color ringing screen) can also be customized by the user, and the specific content and setting method are not limited. Generally speaking, the terminal device system usually has some pre-built-in video ringback tones and animations for users to choose from.

[0029] 2) Video call, also known as video phone, usually refers to a communication method based on the Internet and mobile Internet (such as 3G, 4G, 5G Internet), which transmits people's voice and images (such as the user's bust, photos, objects, etc.) in real time between terminal devices (such as mobile phones). It can usually be achieved through IP lines or ordinary telephone lines.

[0030] In order to enable those skilled in the art to more clearly understand the solution of the present application, the application scenario of the technical solution of the present application is first explained below.

[0031] See also Figure 1 , which shows a scenario schematic diagram provided in an embodiment of the present application.

[0032] In this example scenario, when a user's terminal device is inserted with a SIM card that can turn on video color vibration, when a video call is received, the interface of the terminal device can display the video color vibration screen preset by the operator (the video color vibration screen can also be customized by the user, and the specific content and setting method are not limited), such as Figure 1As shown in (a), at the same time, function icons such as "SMS", "Voice Call", "Reminder", "Hang Up", and "Video Answer" can also be displayed on the interface of the terminal device for the user to select. Then, after the user answers the video call, the user's video screen and the other party's video screen can be displayed on the interface of the terminal device, such as Figure 1 As shown in (b), at the same time, function icons such as "turn off my video", "mute", "switch to voice call", "hang up", and "speaker" can also be displayed on the interface of the terminal device for the user to choose.

[0033] Then, when the user exits the call interface and returns to the desktop, Figure 1 As shown in (c), the duration of the video call between the user and the other user can be displayed in the upper left corner of the terminal device interface, and the user can perform other operations on the desktop, such as checking the weather and information. When the user clicks the "video call duration" icon displayed in the upper left corner of the interface, the user can return to the video call interface with the other user, such as Figure 1 As shown in (d), at this time, only the user's own video screen can be displayed on the interface of the user's terminal device, and the video screen of the other user who is having a video call with the user will disappear, affecting the user's video call experience.

[0034] In order to overcome the above technical problems, the present application provides a video call optimization method, electronic device and storage medium, which can avoid the situation where the video screen of the other end user disappears when the user is making a video call, thereby improving the user's video call experience.

[0035] The video call optimization method provided in the embodiment of the present application can be applicable to electronic devices such as mobile phones, tablet computers, personal digital assistants (PDAs), desktops, laptops, notebook computers, ultra-mobile personal computers (UMPCs), handheld computers, netbooks, and wearable devices.

[0036] In order to enable persons skilled in the art to more clearly understand the video call optimization method provided by the present application, the hardware architecture and software system architecture of the electronic device are first introduced in detail below.

[0037] See also Figure 2 , which shows a schematic diagram of an electronic device provided in an embodiment of the present application.

[0038] like Figure 2As shown, the electronic device 200 may include a processor 210, a mobile communication module 220, a wireless communication module 230, a sensor module 240, an internal memory 241, a SIM card interface 242, an external memory interface 243, a motor 244, a button 245, a power management module 246, a battery 247, a charging management module 248, a universal serial bus (USB) interface 249, an indicator 250, a camera 251, a display screen 252, an audio module 253, a speaker 253A, a receiver 253B, a microphone 253C, an earphone interface 253D, an antenna group 1 and an antenna group 2.

[0039] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0040] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0041] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0042] In some embodiments, the processor 210 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0043] The internal memory 241 can be used to store computer executable program codes, which include instructions. The internal memory 241 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 241 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the electronic device 200 by running instructions stored in the internal memory 241 and / or instructions stored in a memory provided in the processor.

[0044] The SIM card interface 242 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 200 by inserting it into the SIM card interface 242 or pulling it out from the SIM card interface 242. The electronic device 200 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 242 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 242 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 242 can also be compatible with different types of SIM cards. The SIM card interface 242 can also be compatible with external memory cards. The electronic device 200 interacts with the network through a SIM card with video color vibration turned on to realize data communication functions such as video calls. In some embodiments, the electronic device 200 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 200 and cannot be separated from the electronic device 200.

[0045] The external memory interface 243 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200. The external memory card communicates with the processor 210 through the external memory interface 243 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0046] Motor 244 can generate vibration prompts. Motor 244 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0047] The key 245 includes a power key, a volume key, etc. The key 245 can be a mechanical key or a touch key. The electronic device 200 can receive key input and generate key signal input related to user settings and function control of the electronic device 200.

[0048] The USB interface 249 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 249 can be used to connect a charger to charge the electronic device 200, and can also be used to transmit data between the electronic device 200 and a peripheral device. It can also be used to connect headphones to play the audio of a video call through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0049] The charging management module 248 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 248 may receive charging input from a wired charger through a USB interface 249. In some wireless charging embodiments, the charging management module 248 may receive wireless charging input through a wireless charging coil of the electronic device 200. While the charging management module 248 is charging the battery 247, it may also power the electronic device 200 through the power management module 246.

[0050] The power management module 246 is used to connect the battery 247, the charging management module 248 and the processor 210. The power management module 246 receives input from the battery 247 and / or the charging management module 248, and provides power to the processor 210, the internal memory 241, the display screen 252, the camera 251, and the wireless communication module 230. The power management module 246 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 246 can also be set in the processor 210. In other embodiments, the power management module 246 and the charging management module 248 can also be set in the same device.

[0051] The display screen 252 is used to display images, videos, etc. For example, when a call comes in, it can be used to display the video color vibration screen preset by the operator. The display screen 252 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 200 may include 1 or N display screens 252, where N is a positive integer greater than 1.

[0052] The camera 251 is used to capture still images or videos, such as taking a video of the user during a video call. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 200 may include 1 or N cameras 251, where N is a positive integer greater than 1.

[0053] The electronic device 200 implements the display function through a GPU, a display screen 252, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 252 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.

[0054] The electronic device 200 can implement audio functions such as music playback, recording, and voice input and output during video calls through the audio module 253, the speaker 253A, the receiver 253B, the microphone 253C, the headphone jack 253D, and the application processor.

[0055] The audio module 253 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 253 can also be used to encode and decode audio signals. In some embodiments, the audio module 253 can be arranged in the processor 210, or some functional modules of the audio module 253 can be arranged in the processor 210.

[0056] The speaker 253A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 200 can listen to music or listen to a hands-free call through the speaker 253A.

[0057] The receiver 253B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 200 receives a call or voice message, the voice can be received by placing the receiver 253B close to the human ear.

[0058] Microphone 253C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 253C to input the sound signal into microphone 253C. The electronic device 200 can be provided with at least one microphone 253C. In other embodiments, the electronic device 200 can be provided with two microphones 253C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 200 can also be provided with three, four or more microphones 253C to realize the collection of sound signals, noise reduction, identification of sound sources, realization of directional recording function, etc.

[0059] The earphone interface 253D is used to connect a wired earphone and can be a USB interface 249 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0060] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0061] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 220, the wireless communication module 230, the modem processor and the baseband processor.

[0062] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0063] The mobile communication module 220 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 200. The mobile communication module 220 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 220 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 220 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 220 can be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 220 can be set in the same device as at least some of the modules of the processor 210.

[0064] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 253A, a receiver 253B, etc.), or displays an image or video through a display screen 252. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 220 or other functional modules.

[0065] The wireless communication module 230 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 200. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 230 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 210. The wireless communication module 230 can also receive the signal to be sent from the processor 210, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0066] In some embodiments, the antenna 1 of the electronic device 200 is coupled to the mobile communication module 220, and the antenna 2 is coupled to the wireless communication module 230, so that the electronic device 200 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0067] In addition, on top of the above components, the electronic device 200 runs an operating system, such as an iOS operating system, an Android operating system, a Windows operating system, etc. Application programs can be installed and run on the operating system.

[0068] See also Figure 3 , which shows a schematic diagram of the software structure of the electronic device provided in an embodiment of the present application.

[0069] The software system of the electronic device 200 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 200.

[0070] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0071] The application layer can include a series of application packages. Figure 3 As shown, the application package may include applications such as camera, call, text message, music, video, WLAN, Bluetooth, etc.

[0072] The application framework layer (framework layer) provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 3 As shown, the application framework layer may include a window manager, a notification manager, a phone manager, a resource manager, a view system, and the like.

[0073] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0074] The phone manager is used to provide communication functions of the electronic device 200. For example, the management of call status (including connecting and disconnecting video calls, etc.) may include modules such as framework telecom call that provide various call functions. The functions of the telecom call may include but are not limited to obtaining the video color ringing capability and call status of the electronic device.

[0075] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0076] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0077] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0078] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0079] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0080] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0081] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0082] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0083] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0084] A 2D graphics engine is a drawing engine for 2D drawings.

[0085] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0086] The technical solutions involved in the following embodiments can all be implemented in electronic devices having the above-mentioned hardware architecture and software architecture.

[0087] Next, the implementation process of the video call optimization method provided by this application will be introduced in detail:

[0088] In some embodiments, to address the Figure 1 The problem of the disappearance of the video screen of the other end user caused by the conflict between the video color vibration and the video call function shown in FIG. 1 is often encountered in the process of optimizing the video call. Figure 4That is, when the mobile phone 2 (such as 157XXXXXXXX) held by user 2 is inserted with a SIM card that can turn on video color vibration, when it receives a call from the mobile phone 1 (such as 139XXXXXXXX) held by user 1 and answers the call, mobile phone 1 will receive the following message: Figure 4 The video shows an invitation to upgrade the video call, but in fact, mobile phone 2 did not initiate the upgrade invitation. This is because mobile phone 2 has video color vibration turned on. When it receives an incoming call, it will be in color vibration mode, so it will enter the process of creating a surface for the display of the video color vibration screen. In this process, an instruction to restore the video stream will be issued, resulting in the upgrade of the voice call to a video call, and the upgrade invitation of the video call is sent to mobile phone 1. But in fact, user 2 did not want to initiate the upgrade invitation to mobile phone 1 to have a video call with user 1 through mobile phone 2, which may affect the calling experience of the two.

[0089] Therefore, in order to solve the above problem, in order to avoid mobile phone 1 receiving such Figure 4 The example of the embodiment of the present application provides a method for optimizing incoming calls of video calls, so that when it is determined that the mode is the video color vibration mode, the instruction to restore the video stream will not be issued. Figure 5 As shown, the specific implementation process of the incoming call optimization method for video calls may include the following steps S501-S509:

[0090] S501: The operator detects that a SIM card with video color vibration enabled is inserted into an electronic device supporting video, and that there is an incoming call from another electronic device.

[0091] In this embodiment, when the user inserts a SIM card capable of activating video color vibration into an electronic device that supports video, the operator network can detect that the SIM card capable of activating video color vibration has been inserted into the electronic device that supports video, and can detect incoming calls to other electronic devices on the electronic device.

[0092] S502: The operator network reports to the protocol layer (modem) that the SIM card has the video color vibration capability.

[0093] When the operator network detects that a SIM card with video color vibration enabled is inserted into an electronic device that supports video and there is an incoming call from another electronic device, the operator network can report to the protocol layer (modem) that the SIM card has the video color vibration capability when the network communication capability can be guaranteed.

[0094] S503: The modem receives the video color vibration capability of the SIM card reported by the operator network.

[0095] S504: the modem reports the video color vibration capability of the SIM card to the IP Multimedia Subsystem (ims) Android application package (apk) (or the vendor layer of other system platforms) on the application side.

[0096] Among them, the vendor or ims apk can mainly include the implementation class of ImsService to provide ims-related services. It is responsible for data interaction with modem and media. This functional module is usually customized by each chip manufacturer. Although the implementation methods of each chip manufacturer may be different, there will be a class that implements ImsService.

[0097] S505: The vendor or ims apk receives the video color vibration capability reported by the modem, and writes the corresponding value into the ims call.

[0098] Among them, ims call is responsible for handling the connection of IMS voice and video calls, which is usually created by ImsManager. ImsManager can provide IMS services API.

[0099] The specific form of the numerical value corresponding to the video color vibration capability is not limited, and EXTRA_CRS_TYPE can be used to represent the video color vibration capability, that is, the ims call can write the value of the video color vibration capability EXTRA_CRS_TYPE into the ims call.

[0100] S506: The vendor or ims apk reports the video color vibration capability of the SIM card to the framework telecomcall.

[0101] S507: Write the value corresponding to the video color vibration capability EXTRA_CRS_TYPE in the framework telecom call.

[0102] The telecom call function of the framework layer may include but is not limited to obtaining the color ring capability of the electronic device and the call status.

[0103] S508: Framework telecom call reports the video color vibration capability to the incallui of the application layer.

[0104] S509: incallui reads the value corresponding to the video color vibration capability EXTRA_CRS_TYPE in the framework telecom call to determine whether the current state is color vibration. If so, the instruction to restore the video stream will not be issued.

[0105] Among them, incallui apk is located in the application layer, and its main function can be but not limited to displaying and updating the content of the call interface on the interface of the electronic device (such as displaying a video color vibration screen on the interface of the electronic device, etc.).

[0106] In this way, when the user turns on the video color vibration function of the electronic device, the operator network can report to the modem that the SIM card equipped with the electronic device has the video color vibration capability when the electronic device receives an incoming call. By executing the above steps S501-S509, incallui will not issue an instruction to restore the video stream after determining that video color vibration occurs.

[0107] Furthermore, after the video call is answered, although it is no longer in the video color ring mode but in the video call mode, the operator network or system platform will not report to the modem that it is no longer in the video color ring mode. Therefore, the modem and the framework layer and application layer above it (such as vendor or ims apk, framework telecom call and incallui, etc.) cannot perceive the change and think that it is still in the video color ring mode. In this way, after the video call is answered, when incallui exits the call interface to the desktop, it will send an instruction to pause the video stream. When returning to the call interface, it will send an instruction to resume the video stream. However, at this time, because the aforementioned operator network has not reported that it is no longer in the video color ring mode, incallui still determines that it is in the video color ring mode, and will not send an instruction to resume the video stream, resulting in the following. Figure 1 The video screen of the other end user shown in (d) disappears, such as Figure 6 As shown, the specific implementation process after the video call may include the following steps S601-S618:

[0108] S601: After establishing a video call, when the incallui exits the call interface to the desktop, a command to pause the video stream is issued.

[0109] S602: incallui sends an instruction to framework telecom call to pause the video stream.

[0110] S603: Framework telecom call receives the instruction to pause the video stream sent by incallui.

[0111] S604: Framework telecom call sends a command to the vendor or ims apk to pause the video stream.

[0112] S605: The vendor or ims apk receives the instruction to pause the video stream sent by the framework telecom call.

[0113] S606: The vendor or the ims apk sends an instruction to the modem to pause the video stream.

[0114] S607: The modem receives the instruction to pause the video stream sent by the vendor or the ims apk.

[0115] S608: The modem sends an instruction to the operator network to pause the video stream.

[0116] S609: The operator network receives the instruction to pause the video stream sent by the modem to stop the transmission of the video stream and not display the video call screen on the electronic device interface.

[0117] S610: When returning to the call interface, incallui will issue an instruction to resume the video stream in the hope of resuming the display of the video call screen on the electronic device interface.

[0118] S611: incallui sends an instruction to restore the video stream to framework telecom call.

[0119] S612: Framework telecom call receives an instruction to resume the video stream, but after reading the value corresponding to the video color vibration capability (EXTRA_CRS_TYPE) in the framework telecom call based on the instruction, it will still be determined that it is video color vibration, and will not issue an instruction to resume the video stream, that is, the instruction issued is still an instruction to pause the video stream.

[0120] S613: Framework telecom call sends a command to the vendor or ims apk to pause the video stream.

[0121] S614: The vendor or ims apk receives the instruction to pause the video stream sent by the framework telecom call.

[0122] S615: The vendor or the ims apk sends a command to the modem to pause the video stream.

[0123] S616: The modem receives the instruction to pause the video stream sent by the vendor or the ims apk.

[0124] S617: The modem sends an instruction to the operator network to pause the video stream.

[0125] S618: When the operator network receives the instruction to pause the video stream sent by the modem, the transmission of the video stream will still be stopped, and the video call screen of the other user cannot be restored on the electronic device interface.

[0126] In order to solve the problem that the video screen of the opposite user cannot be restored to display, in some embodiments, the embodiments of the present application provide a method for optimizing video calls. The method fully takes into account that video color vibration is only a scenario when a call is incoming. Since after the call is answered, the operator network or system platform cannot report to the modem and its upper layer that the current mode is no longer video color vibration mode, the application side can spontaneously judge based on the call status. If the call status is an incoming call, it may be a color vibration. If it is not an incoming call, it will not be a video color vibration mode. Therefore, after the call is answered, it can be determined by judging the call status that the current mode is no longer video color vibration mode, so that the instruction to restore the video stream can be sent to the underlying modem to restore the display of the video call screen of the opposite user on the electronic device interface. Figure 7 As shown, the specific implementation process of the video call optimization method may include the following steps S701-S718:

[0127] S701: After establishing a video call, when incallui exits the call interface to the desktop, a command to pause the video stream is issued.

[0128] S702: incallui sends an instruction to framework telecom call to pause the video stream.

[0129] S703: Framework telecom call receives the instruction to pause the video stream sent by incallui.

[0130] S704: Framework telecom call sends a command to the vendor or ims apk to pause the video stream.

[0131] S705: The vendor or ims apk receives the instruction to pause the video stream sent by the framework telecom call.

[0132] S706: The vendor or the ims apk sends a command to the modem to pause the video stream.

[0133] S707: The modem receives an instruction to pause the video stream sent by the vendor or the ims apk.

[0134] S708: The modem sends an instruction to the operator network to pause the video stream.

[0135] S709: The operator network receives the instruction to pause the video stream sent by the modem to stop the transmission of the video stream and not display the video call screen on the electronic device interface.

[0136] It should be noted that the implementation process of steps S701-S709 is similar to the implementation process of the above steps S601-S609. For specific content, please refer to the above steps S601-S609, which will not be repeated here.

[0137] S710: When returning to the call interface, incallui will issue an instruction to resume the video stream in the hope of resuming the display of the video call screen on the electronic device interface.

[0138] S711: incallui sends an instruction to framework telecom call to restore the video stream.

[0139] S712: After receiving the instruction to resume the video stream, the framework telecom call no longer reads the value corresponding to the video color vibration capability (EXTRA_CRS_TYPE) in the framework telecom call, but obtains the call state (State) of the current electronic device from the framework telecom call based on the instruction, and when it is determined that the call state is not ringing (i.e., not an incoming call), issues an instruction to resume the video stream.

[0140] S713: Framework telecom call sends an instruction to the vendor or ims apk to restore the video stream.

[0141] S714: The vendor or ims apk receives an instruction to resume the video stream sent by the framework telecom call.

[0142] S715: The vendor or ims apk sends a command to the modem to restore the video stream.

[0143] S716: The modem receives the instruction for resuming the video stream sent by the vendor or the ims apk.

[0144] S717: The modem sends an instruction to the operator network to restore the video stream.

[0145] S718: The operator network receives the instruction to resume the video stream sent by the modem to resume the transmission of the video stream and resume displaying the video call screen of the other user on the electronic device interface.

[0146] In addition, the present application also provides an electronic device. For the hardware structure and software framework of the electronic device, please refer to Figure 2 and Figure 3 The electronic device includes a memory and a processor, the memory stores a computer program, and the processor is used to call and execute the computer program to implement the video call optimization method provided in the above description.

[0147] The present application also provides a computer-readable storage medium in an embodiment, on which a computer program is stored. When the computer program is executed by a processor of a terminal device, it is used to implement the video call optimization method provided in the above description.

[0148] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for optimizing video calls, characterized in that: The method comprises: After the first terminal device of the first user receives an incoming call from the second terminal device of the second user, a video call is established between the first user and the second user; and the video call screens corresponding to the first user and the second user are displayed on the screen interface of the first terminal device; the first terminal device and the second terminal device are both equipped with SIM cards with a video color vibration function enabled; When the first user exits the video call interface to the desktop and then returns to the video call interface, the current call status of the first terminal device is obtained; and whether the call status is an incoming call state; If not, issuing an instruction to resume the video stream, so as to obtain the video call screens corresponding to the current first user and the second user respectively based on the instruction, and displaying the video call screens corresponding to the current first user and the second user respectively on the screen interface of the first terminal device; After the first terminal device of the first user receives an incoming call from the second terminal device of the second user, the method further includes: Reporting to the protocol layer modem of the first terminal device through the operator network that the SIM card carried by the first terminal device has the video color vibration capability; Through the modem, the application side of the first terminal device is informed that the SIM card carried by the first terminal device has the video color vibration capability, so as to implement the video color vibration of the first terminal device.

2. The method according to claim 1, characterized in that After the first user exits the video call interface and returns to the desktop, the method further includes: An instruction to pause the video stream is issued to stop the transmission of the video stream of the video call corresponding to the first user and the second user respectively based on the instruction, and the video call screen corresponding to the first user and the second user respectively is not displayed on the screen interface of the first terminal device.

3. The method according to any one of claims 1 to 2, characterized in that: The incoming call status is a ringing state; the incoming call status is used to indicate that the first terminal device is in a video color vibration mode.

4. The method according to claim 3, characterized in that: The determining whether the call state is an incoming call state includes: Determine whether the call state is a ringing state; if not, it indicates that the first terminal device is not in a video color vibration mode; if so, it indicates that the first terminal device is in a video color vibration mode.

5. The method according to claim 1, characterized in that The issuing of the instruction to resume the video stream, obtaining the video call screens corresponding to the current first user and the second user respectively based on the instruction, and displaying the video call screens corresponding to the current first user and the second user respectively on the screen interface of the first terminal device, includes: The function module incallui of the application layer sends instructions for restoring the video stream to the modem layer by layer, so as to obtain the video call pictures corresponding to the current first user and the second user respectively through information interaction between the modem and the operator network, and display the video call pictures corresponding to the current first user and the second user respectively on the screen interface of the first terminal device.

6. The method according to claim 2, characterized in that The issuing of the instruction to pause the video stream, so as to stop the transmission of the video stream of the video call corresponding to the first user and the second user respectively based on the instruction, and not displaying the video call screen corresponding to the first user and the second user respectively on the screen interface of the first terminal device, includes: The function module incallui of the application layer sends instructions for pausing the video stream to the modem layer by layer, so as to stop the transmission of the video stream of the video call corresponding to the first user and the second user respectively through information interaction between the modem and the operator network, and not display the video call screen corresponding to the first user and the second user respectively on the screen interface of the first terminal device.

7. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor is used to call and execute the computer program to implement the method according to any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by an electronic device, the method according to any one of claims 1 to 6 is implemented.