Communication method and electronic device
By changing the incoming call scene in the terminal from the video color vibration scene to the local ringtone scene, the problem of incoming calls without sound prompts caused by network abnormalities is solved, ensuring that the user can receive incoming call notifications normally.
Patent Information
- Application Number
- CN202311138376.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2043-08-31
AI Technical Summary
When using audio and video on the network side to prompt incoming calls, if the audio and video playback fails due to network abnormalities, the terminal may not be able to play the ringtone, which will affect the user's normal answer to incoming calls.
By determining that the incoming call scene is a video color vibration scene in the terminal, the start operation of the video color vibration scene is performed. If it fails, it will be changed to the local ringtone scene and trigger the incoming call reminder operation of the local ringtone to ensure that the user can use the local ringtone method of the terminal. Received an incoming call notification.
In the event that the video color vibration scene fails to start, ensure that the terminal can play local ringtones, avoid incoming calls due to network abnormalities, and improve user experience.
Smart Images

Figure CN117395345B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a communication method and electronic equipment. Background Art
[0002] At present, with the continuous advancement of terminal technology and equipment, terminals have further developed more diverse functions. For example, when a terminal receives an incoming call, the terminal can play corresponding audio and video on the terminal according to the information sent by the network side to prompt the incoming call.
[0003] However, when using the audio and video on the network side for incoming call notification, if the operation of playing the audio and video at the network layer fails due to some reasons, the terminal will not play the ringtone, affecting the user's normal answering of the call. Summary of the invention
[0004] The present application provides a calling method and an electronic device, which can optimize the problem of abnormal operator network in the video color vibration scenario, solve the problem of no sound in incoming calls, and improve user experience.
[0005] The technical solution is as follows:
[0006] The first aspect of the present application provides a calling method, comprising:
[0007] In response to the call incoming call information received by the terminal, determining that the incoming call scenario is a video color vibration scenario;
[0008] Execute the start operation of the video color vibration scene;
[0009] When it is determined that the result of the start operation of the video color vibration scene is a failure, changing the incoming call scene to the local ring tone scene;
[0010] Execute the start operation of the local ringtone scene;
[0011] When it is determined that the incoming call scene is started by changing the incoming call scene from the video color ringing scene, an incoming call reminder operation of the local ring tone is triggered.
[0012] If the audio and video data packets corresponding to the video color vibration scene fail to play during the execution of the startup operation corresponding to the video color vibration scene, the terminal executes the startup operation of the local ringtone scene; at the same time, during the startup of the local ringtone scene, if it is determined that the current local ringtone scene is obtained by changing / modifying / converting the incoming call scene in the video color vibration scene, the ringtone playback operation is triggered in the terminal. Therefore, after the video color vibration scene is started, if the data packets corresponding to the video color vibration scene fail to play due to various reasons, the terminal can still play the terminal local ringtone, and there will be no situation where the terminal cannot send out the prompt tone when receiving the incoming call, avoiding affecting the user's normal perception and answering of the incoming call.
[0013] In one implementation, the aforementioned start operation includes a start operation of a play operation; and the aforementioned start operation of executing a video color vibration scene includes:
[0014] The type information corresponding to the video color vibration scene is reported to the call management module of the application layer through the driver layer of the terminal. The type information corresponding to the video color vibration scene is used to instruct the application layer of the terminal to start the playback operation in the video color vibration scene.
[0015] For example, in a normal video color ringing scenario, the operator network will report ECPI (Call Progress Information): 1, 7, 3. Among them, 7 and 3 indicate that the current mode is video color ringing. On the terminal side, when the incoming call information arrives, the modem receives ECPI (1, 7, 3) indicating the video color ringing mode as the type information corresponding to the video color ringing scenario, and reports the type information corresponding to the video color ringing scenario from the driver layer modem to the application layer layer by layer.
[0016] In one implementation, the above-mentioned reporting of type information corresponding to the video color vibration scenario to the call management module of the application framework layer through the driver layer of the terminal includes:
[0017] According to the type information corresponding to the video color vibration scene, the value of the target data object of the terminal system is updated.
[0018] In the terminal system, the target data object is a global variable, for example, a bundle object, and the bundle object includes an Extras value. According to the type information corresponding to the video color vibration scene, the value of the target data object of the terminal system is updated, and part of the value of the type information corresponding to the video color vibration scene can be used as the value of the target data object. For example, "3" in ECPI (1, 7, 3) is used as the value of Extras in the bundle. Each layer of the terminal includes this target data object. When the type information is reported layer by layer, each layer updates the value of the target data object according to the type information reported layer by layer.
[0019] In one implementation, the above-mentioned reporting of type information corresponding to the video color vibration scenario to the call management module of the application framework layer through the driver layer of the terminal includes:
[0020] According to the type information corresponding to the video color vibration scene, the value of the target data object of the terminal system is updated.
[0021] The type information is obtained based on the ECPI reported to the terminal by the operator network. The operator network reports ECPI: 1, 7, 3, where 7 and 3 indicate that the current mode is color vibration mode.
[0022] In one implementation, the aforementioned operation of starting the local ringtone scene includes:
[0023] Report the type information corresponding to the local ringtone scene to the call management module of the application layer through the driver layer of the terminal;
[0024] Using the type information corresponding to the local ringtone scene as the current type information;
[0025] Determine historical type information according to the value in the target data object;
[0026] According to the current type information and the historical type information, it is determined that the local ring tone scene is started by changing the incoming call scene from the video color vibration scene.
[0027] In some abnormal networks, the operator network first reports ECPI:1,7,3, but the operator network does not send voice data packets, so a video without sound is played, which may cause the user to not be able to perceive that the terminal has received an incoming call. The modem on the terminal side will set a timer. If no voice data packet is detected within 3 seconds, ECPI:1,7,0 will be reported as the type information corresponding to the local ringtone scene. Through ECPI:1,7,0, as in the process of reporting ECPI:1,7,3, the application layer is informed layer by layer that it is not a video color ring at this time, and the application layer returns to the normal incoming call interface.
[0028] In one implementation, the above-mentioned determining, based on the current type information and the historical type information, that the local ringtone scene is activated by changing the incoming call scene from the video color vibration scene includes:
[0029] Compare the current type information with the historical type information to obtain a comparison result;
[0030] According to the comparison result that the historical type information corresponds to the color ring scene and the current type information corresponds to the local ring scene, it is determined that the local ring scene is started by changing the incoming call scene from the video color ring scene.
[0031] The carrier network reports the ECPI of the terminal. The carrier network reports ECPI: 1, 7, 3, where 3 indicates the current color vibration mode.
[0032] In one implementation, the aforementioned operation of starting the local ringtone scene includes:
[0033] Report the type information corresponding to the local ringtone scene to the call management module of the application framework layer through the driver layer of the terminal;
[0034] Using the type information corresponding to the local ringtone scene as the current type information;
[0035] Determine historical type information according to the value in the target data object;
[0036] According to the current type information and the historical type information, it is determined that the local ring tone scene is started by changing the incoming call scene from the video color vibration scene.
[0037] In some abnormal networks, the operator network first reports ECPI: 1, 7, 3, but the operator network does not send voice data packets, so Figure 2 In the figure (c), a video without sound is playing in the background. The modem on the terminal side sets a timer. If no voice data packet is detected within 3 seconds, ECPI:1,7,0 is reported as the type information corresponding to the local ringtone scene. Through ECPI:1,7,0, the application layer is informed that it is not a video ringtone at this time, and the application layer returns to the normal incoming call interface.
[0038] In one implementation, the above-mentioned determining, based on the current type information and the historical type information, that the local ringtone scene is activated by changing the incoming call scene from the video color vibration scene includes:
[0039] Compare the current type information with the historical type information to obtain a comparison result;
[0040] According to the comparison result that the historical type information corresponds to the color ring scene and the current type information corresponds to the local ring scene, it is determined that the local ring scene is started by changing the incoming call scene from the video color ring scene.
[0041] In this embodiment, if the current type information is different from the historical type information during this call, it means that the historical type information has changed. At the same time, according to the specific content of the historical type information, it is determined that the historical type information is a video color vibration scene, and according to the current type information, it is determined that during this call, the video color vibration scene is changed to a local ringtone scene.
[0042] In one implementation, the above-mentioned updating the value of the target data object of the terminal system according to the type information corresponding to the video color vibration scene includes:
[0043] In the application package data of the chip platform of the terminal, the color vibration type bit in the type information corresponding to the video color vibration scene is used as the updated color vibration type;
[0044] The value corresponding to the updated color vibration type is written into the target data object as the value of the target data object.
[0045] Exemplarily, the color vibration type can be a single-digit value, for example, for ECPI: 1, 7, 3, 3 indicates that the playback data includes video data and audio data, so the digit corresponding to "3" can be the color vibration type bit. In the case that the type information ECPI changes, for example, it changes to ECPI: 1, 7, x, then x is used as the color vibration type bit.
[0046] In one implementation, the above-mentioned reporting of type information corresponding to the video color vibration scenario to the call management module of the application framework layer through the driver layer of the terminal includes:
[0047] Creating a multimedia call in a network module of a chip platform of the terminal, and updating a call session of the multimedia call according to a value of a target data object;
[0048] The telephone communication module at the application framework layer of the terminal updates the incoming call progress according to the updated call session;
[0049] The call service module at the application framework layer of the terminal updates the variables included in the target data object according to the updated incoming call;
[0050] In the call management module of the application framework layer of the terminal, the variables included in the target data object are updated;
[0051] The call management module at the application layer of the terminal stores the variables included in the target data object.
[0052] In this embodiment, based on the variables included in the target data object, the type information corresponding to the current call scenario is reported to the upper layer in the order of chip platform-application framework layer-application layer. During the reporting process, each layer is updated according to the reported content.
[0053] In one embodiment, before determining the historical type information according to the value in the target data object, the method further includes:
[0054] Report the current type information to the application layer through the call management module of the application framework layer;
[0055] The value of the target data object is stored through the call management module of the application layer.
[0056] After updating the current type information, the call management module of the application layer further reports the current type information to other modules of the terminal that need to know the current type information.
[0057] In one implementation, the aforementioned startup operation includes an operation of displaying a call interface; and the startup operation of executing a video color vibration scene includes:
[0058] The driver layer determines that the result of the playback operation corresponding to the video color vibration scene within the set time is playback failure.
[0059] The modem at the driver layer will time the report type information. If the data packet corresponding to the video color vibration scene is not played within the time limit, the modem will judge that the play operation corresponding to the video color vibration scene is a failure, and the user cannot hear the play data and cannot be notified of the incoming call through the play data. By subsequently judging the historical type information and the current type information, the local ringtone is retriggered to play, so that the terminal can play the audible ringtone to notify the user of the incoming call.
[0060] In one implementation, the aforementioned failure of the playback operation corresponding to the video color vibration scene within the set time includes:
[0061] The playback data packet corresponding to the video color vibration scene cannot be obtained within the set time;
[0062] Within the set time, the playback data packet corresponding to the obtained video color vibration scene cannot be played.
[0063] Failure to start the playback operation is also a case of playback operation failure. The playback data packet may include an audio part and a video part. If the video part is played alone, a video without audio is presented on the terminal. The aforementioned inability to obtain the playback data packet corresponding to the video color vibration scene includes: the inability to obtain the complete playback data packet. That is, when only a part of the playback data packet can be obtained, it is also considered that the playback data packet cannot be obtained.
[0064] In the case of abnormal operator network, there is a small probability that a video without sound will be played first when a call comes in, and then the video will disappear. If the normal call interface is returned but there is no ringtone, the terminal user's intuitive experience is that there is no sound prompt for the incoming call, which affects the user experience and normal answering of the call. However, in this case, by triggering the playback operation of the local ringtone, the user can be notified of the incoming call in the way that the user presets in the terminal, such as ringing, vibration or mute.
[0065] In one implementation, the aforementioned startup operation of executing the video color vibration scene includes:
[0066] In response to the incoming call information received by the terminal, notifying the call management module of the application framework layer of the incoming call;
[0067] Start the call interface corresponding to the incoming call information;
[0068] The start operation of the play operation corresponding to the video color vibration scene is executed through the call management module of the application layer.
[0069] During the startup process of the video color ringing scene, on the one hand, starting from the modem, the type information of the video color ringing scene is reported to the upper layer of the terminal layer by layer. On the other hand, the telecom module in the application layer, as a layer in the reporting process, starts the playback operation when it senses an incoming call, and enters the steps of playback preparation and playback start.
[0070] In one implementation, the aforementioned method of starting a call interface corresponding to the incoming call information through the call management module includes:
[0071] Determine the play preparation sub-process to be entered according to the situation that the call management module of the application layer receives the type information corresponding to the video color vibration scene;
[0072] When entering the play preparation sub-process, start the call interface corresponding to the incoming call information.
[0073] When the call management module of the application layer just starts the playback operation, the type information of the video color ringing scene may not be reported to the telecom of the application layer, so the telecom of the application layer may not know what the incoming call scene is at this time. Therefore, according to the judgment result of the type information when the call management module of the application layer just starts the playback operation, different playback preparation sub-processes may be entered.
[0074] In one implementation, the above-mentioned determination of the play preparation sub-process to be entered according to the situation that the call management module of the application layer receives the type information corresponding to the video color vibration scene includes:
[0075] When the call management module of the application layer receives the type information corresponding to the video color vibration scene reported by the bottom layer, it determines to enter the video color vibration playback preparation sub-process;
[0076] When the call management module of the application layer does not receive the type information corresponding to the video color vibration scene reported by the bottom layer, it is determined to enter the local ringtone playing preparation sub-process.
[0077] The telecom of the application layer may determine that the reported type information has not been received or that the reported type information indicates that the current scene is a local ringtone, and then enter the play preparation sub-process corresponding to the local ringtone scene (the play preparation sub-process of the local ringtone). Or it may receive the type information corresponding to the video color vibration scene and enter the play preparation sub-process corresponding to the video color vibration scene (the play preparation sub-process of the video color vibration).
[0078] In one implementation, the aforementioned start operation of executing the playback operation corresponding to the video color vibration scene includes:
[0079] According to the type information corresponding to the video color ringing scene reported by the bottom layer received by the call management module of the application layer, the data packet corresponding to the video color ringing scene is determined to play, so as to complete the start operation of the play operation.
[0080] In order to prevent telecom from failing to enter the video color vibration playback preparation sub-process due to delays in reporting type information, telecom needs to perform another judgment on the type information before playback. At this time, it will receive the type information of the video color vibration scene that is reported with a delay, so that when the data packet of the video color vibration scene can be obtained and played normally, it will enter the playback process of the data packet corresponding to the video color vibration scene and complete the startup operation of the playback operation.
[0081] A second aspect of the present application provides an electronic device, including.
[0082] For example, the processor is used to execute the computer program or instructions stored in the memory, so that the device performs the method in the first aspect.
[0083] A third aspect of the present application provides a computer-readable storage medium on which is stored a computer program (also referred to as instructions or codes) for implementing the method in the first aspect.
[0084] For example, when the computer program is executed by a computer, the computer can perform the method in the first aspect.
[0085] In a fourth aspect, the present application provides a chip, including a processor, wherein the processor is configured to read and execute a computer program stored in a memory to execute the method in the first aspect and any possible implementation thereof.
[0086] Optionally, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.
[0087] In a fifth aspect, the present application provides a chip system, comprising a processor, wherein the processor is configured to read and execute a computer program stored in a memory to execute the method in the first aspect and any possible implementation thereof.
[0088] Optionally, the chip system also includes a memory, and the memory is connected to the processor via circuits or wires.
[0089] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] Figure 1 is a system schematic diagram of the application of the calling method provided in the embodiment of the present application;
[0091] Figure 2 is a schematic diagram of a terminal interface involved in the calling method provided in an embodiment of the present application;
[0092] Figure 3 It is a schematic diagram of the terminal structure involved in the calling method provided in the embodiment of the present application;
[0093] Figure 4A , Figure 4B It is a scenario diagram of the calling method provided in the embodiment of the present application;
[0094] Figure 5 It is a flowchart of a calling method provided in an embodiment of the present application;
[0095] Fig. 6A , Figure 6B It is a schematic diagram of signaling transmission of the call method provided in an embodiment of the present application;
[0096] Figure 7 It is a schematic diagram of sub-processes included in the calling method of the embodiment of the present application;
[0097] Figure 8 is a schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0098] Fig. 9 It is a schematic diagram of the electronic device composition framework provided in an embodiment of the present application.
[0099] The reference numerals in the above drawings are as follows:
[0100] First terminal; 12, second terminal; 13, wireless communication device; 100, electronic device; 110, processor; 120, external memory interface; 121, internal memory; 130, USB interface; 140, charging management module; 141, power management module; 142, battery; 1, antenna; 2, antenna; 150, mobile communication module; 160, wireless communication module; 170, audio module; 170A, speaker; 170B, receiver; 170C, microphone; 170D, headphone jack; 180, sensor module; 190, button; 191, motor; 192, indicator; 193, camera; 194, display; 195, customer identification module card interface; 180, sensor module; 1 80A, pressure sensor; 180B, gyroscope sensor; 180C, air pressure sensor; 180D, magnetic sensor; 180E, acceleration sensor; 180F, distance sensor; 180G, proximity light sensor; 180H, fingerprint sensor; 180J, temperature sensor; 180K, touch sensor; 180L, ambient light sensor; 180M, bone conduction sensor; 500, call method; 801, incoming call scene determination module; 802, video color vibration scene start module; 803, scene change module; 804, local ringtone scene start module; 805, local ringtone trigger module; 901, processor; 902, memory; 903, communication interface; 904, communication line; 905, processor. DETAILED DESCRIPTION
[0101] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0102] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.
[0103] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0104] 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.
[0105] Video color ringback means that when a call comes in to a terminal (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 ringback, when the user turns on the video color ringback 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 ringback 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.
[0106] Calls include voice calls and video calls. Among them, voice calls, also known as voice calls, are usually based on the Internet and mobile Internet (such as 3G, 4G, 5G Internet) terminals, through a real-time transmission of human voice between terminal devices (such as mobile phones). It can usually be achieved through two methods: IP lines or ordinary telephone lines. Video calls, also known as video calls, usually refer to a communication method based on the Internet and mobile Internet (such as 3G, 4G, 5G Internet) terminals, through a real-time transmission of human voice and images (such as the user's bust, photos, objects, etc.) between terminal devices (such as mobile phones). It can usually be achieved through two methods: IP lines or ordinary telephone lines.
[0107] Local ringtones refer to the situation where when a terminal (such as a mobile phone) receives an incoming call, the terminal user is reminded of the incoming call by playing the local ringtone audio of the terminal. In the local ringtone scenario, when the terminal receives an incoming call from another terminal, the terminal pulls up the call interface, displays the caller number and other information of the other terminal in the call interface, and plays the local ringtone audio file of the terminal that has been set in advance. Alternatively, in the local ringtone scenario, the user sets the terminal to vibration mode. When the terminal receives an incoming call from another terminal, the terminal pulls up the call interface, displays the caller number and other information of the other terminal in the call interface, and vibrates through modules such as the built-in motor of the terminal.
[0108] Incoming call scenario refers to the mode used to remind the user of the current incoming call when the terminal receives an incoming call. In different incoming call scenarios, the terminal may use video color vibration to remind the user of the incoming call, or play the local ringtone file of the terminal to remind the user of the incoming call.
[0109] Figure 1 Schematic diagram of a system architecture involved in the calling method provided in the embodiment of the present application. Figure 1 As shown, the system architecture includes a first terminal 11 and a second terminal 12. The first terminal 11 and the second terminal 12 may be mobile communication terminals, such as mobile phones, smart wearable devices, tablet computers with communication functions, laptop computers with communication functions, desktop computers with communication functions, etc. The first terminal 11 and the second terminal 12 may establish and maintain a wireless connection through a communication network provided by a wireless communication device 13, and the second terminal 12 may make a call to the mobile communication number corresponding to the first terminal 11.
[0110] The wireless communication device 13 can provide a network for communication between the first terminal 11 and the second terminal 12. The network is usually a mobile communication network, but can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), the Internet, a wired or wireless network, a private network, or any combination of a virtual private network.
[0111] When the user of the first terminal 11 inserts a SIM (Subscriber Identity Module) card capable of activating video color vibration, when receiving an incoming call, the interface of the first terminal 11 may display a video color vibration screen preset by the operator (the video color vibration screen may also be customized by the user, and the specific content and setting method are not limited), such as Figure 2 As shown in (a) in the figure, at the same time, function buttons 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 choose. The user can enter the voice call process by clicking the "Voice Call" function button, or enter the video call process by clicking the "Video Answer" function button. After the user answers the video call, the user's video screen and the other user's video screen can be displayed on the interface of the terminal device, such as Figure 2 As shown in (b) in the figure, 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 select.
[0112] For the first terminal 11, after receiving an incoming call, the first terminal 11 initiates the video color ring start process. If during the video color ring start process, the video color ring data provided by the network layer cannot be played due to a problem with the playback, the following error message will appear on the first terminal 11: Figure 2 The interface shown in (c) is a common incoming call interface. At this time, the background image of the incoming call is not the video color ringing image, but the common incoming call interface of the first terminal 11. However, since the first terminal 11 originally activated the video color ringing, when the incoming call reminder level is downgraded to the common incoming call category, the local ringtone cannot be played in the normal common incoming call reminder mode.
[0113] In order to prevent the first terminal 11 from being unable to remind the user by playing sound when the incoming call reminder level is downgraded to the ordinary incoming call category, illustratively, when the first terminal 11 receives the incoming call information and determines that the incoming call scene is the video color ringing scene, it performs the startup operation corresponding to the video color ringing scene. If the audio and video data packets corresponding to the video color ringing scene fail to play during the execution of the startup operation corresponding to the video color ringing scene, then Figure 1 In the process of starting the local ringtone scene, the first terminal 11 executes the operation of starting the local ringtone scene; at the same time, during the process of starting the local ringtone scene, if it is determined that the current local ringtone scene is obtained by changing / modifying / converting the incoming call scene in the video color vibration scene, the ringtone playing operation is triggered at the first terminal 11. Therefore, after the video color vibration scene is started, if the data packet corresponding to the video color vibration scene fails to be played due to various reasons, the first terminal 11 can still play the terminal local ringtone, and the situation where the terminal cannot send out the prompt tone when receiving the incoming call will not occur, thereby avoiding affecting the user's normal perception and answering of the incoming call.
[0114] The hardware structure involved in the above implementation environment is introduced below.
[0115] An embodiment of the present application provides an electronic device that can be used as a terminal involved in any embodiment of the present application.
[0116] For example, Figure 3 Schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. Figure 3As shown, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identity module (SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0117] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 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.
[0118] The processor 110 may include one or more processing units, for example, the processor 110 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 (BP), a display processing unit (DPU), and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0119] In some embodiments, the electronic device 100 may also include one or more processors 110. Among them, the processor may be the nerve center and command center of the electronic device 100. The processor may generate an operation control signal based on the instruction opcode and the timing signal to complete the control of fetching and executing instructions. A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data used or recycled by the processor 110. If the processor 110 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 110, and thus improves the efficiency of the electronic device 100.
[0120] The wireless communication function of the electronic device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0121] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier, etc. The mobile communication module 150 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 150 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 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0122] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0123] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The above-mentioned GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou satellite navigation system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0124] The display screen 194 is used to display images, videos, etc. The display screen 194 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 or a quantum dot light-emitting diode (QLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0125] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, data files such as music, photos, and videos are stored in the external memory card.
[0126] The internal memory 121 can be used to store one or more computer programs, which include instructions. The processor 110 can enable the electronic device 100 to perform various functional applications and data processing by running the above instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system; the program storage area can also store one or more applications (such as a gallery, contacts, etc.). The data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 100. In addition, the internal memory 121 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. In some embodiments, the processor 110 can enable the electronic device 100 to perform various functional applications and data processing by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor 110.
[0127] The electronic device or terminal in the embodiment of the present application has the most important function in people's lives, which is calling. The calling module (Telephony) in the Android system is the core module of the calling function. The calling module mainly provides voice, SMS, data link, SIM card management, phone book and other functions.
[0128] The call module adopts a layered architecture design, and its business applications span AP (Application Processor) and BP (Baseband Processor), and AP and BP communicate with each other. Figure 4A This is a layered architecture diagram of a call module applicable to the embodiment of the present application. In this layered architecture, the call module spans the application layer (application layer), application framework layer (application framework layer), and hardware abstraction layer of the Android system, and involves the driver layer of the BP end, including a modem module.
[0129] The application layer is user-oriented and relies on the application framework layer. It presents specific functions to users by accessing the business modules of the application framework layer. The application layer includes the call interface module (IncallUI) and the call management module, which are used to display and update the call interface, query call information, and perform simple logic, such as answering / hanging up, etc. It is also used to start ringtone playback.
[0130] The application framework layer includes the telephone communication module (telephony), the call management module (telecom, i.e. the call management module of the application framework layer), RIL.Jave (RILJ) and the IMS network module (net / ims). Among them, the telephone communication module mainly includes the external interface ImsPhone, the call management center ImsPhoneCallTracker, a certain call ImsPhoneCall, a certain call connection ImsPhoneConnection, etc. The call management module of the application framework layer is used to manage the current calls of the Android system, such as implementing functions such as caller ID, answering calls, and hanging up calls, and acts as a bridge between the telephone communication module and the application layer. For example, when the telephone communication module receives a new incoming call, it will first notify the call management module of the application framework layer, and then the call management module of the application framework layer will notify the application layer of the incoming call information and display the incoming call interface.
[0131] The implementation of the radio interface layer (RIL) includes RILJ and RIL.C / C++ (RILC). Among them, RILJ belongs to the Java (Java Audio Video Encoder, Java multimedia processing package) part in the application framework layer, and RILC belongs to the C / C++ part in the hardware abstraction layer, that is, RIL.demon (RILD). RIL is responsible for transmitting the call control information of the user on the AP side to the modem module on the BP side, and the modem module will also return the relevant processing results to the AP side. When the state of the modem module changes, it will also be actively reported to RIL, and then gradually passed up and finally displayed through the interface.
[0132] The IMS network module mainly includes an IMS manager (IMSManager) that provides an IMS service interface (IMS service API), and an IMS call (IMSCall) created by the IMS manager that is responsible for processing IMS voice call and video call connections.
[0133] The hardware abstraction layer includes the IMS chip platform module (vendor / ims) and RILD. The IMS chip platform module is a module implemented by different chip platforms, that is, different chip platforms have different IMS chip platform modules. The IMS chip platform module is the specific implementation of the public interface of the chip platform to IMS, which is directly connected to RIL and is mainly responsible for functions such as IMS calls. Among them, IMS calls include voice calls or video calls that support voice over long-term evolution (VoLTE). The functions of RILD mainly include passing the messages sent by RILJ to the BP end, and sending the status changes of the BP end to RILJ, and then RILJ sends the status changes to the upper layer.
[0134] The driver layer includes media and modem modules, where the media includes the camera driver. The modem module communicates with the communication network to transmit voice and data, and completes related telephone functions such as calls and text messages.
[0135] Figure 4B The video call scenario schematic diagram of the video call method of the embodiment of the present application is shown. The voice call scenario used in the embodiment of the present application is similar to the video call scenario.
[0136] See also Figure 4B In the a interface, when the user of mobile phone A clicks the icon of the call application, mobile phone A displays the following Figure 4B The interface shown in b is the dialing interface of mobile phone A.
[0137] See also Figure 4B In the b interface, the dialing interface includes one or more contact information. The user of mobile phone A can select a target contact from one or more contacts, for example, Figure 4B In response to the user of mobile phone A selecting the target contact, mobile phone A displays the following Figure 4B The target contact here is the user of mobile phone B.
[0138] See also Figure 4B The c interface in the figure is the details interface of the target contact, including the call records between the user of mobile phone A and the target contact, such as the target contact's phone number, the number of past calls, the call time, the call duration, etc. The interface also includes a "voice" control 01, a "video" control 02, and a "short message" control 03. The embodiment of the present application does not specifically limit the display icons of the "voice" control 01, the "video" control 02, and the "short message" control 03.
[0139] The user of mobile phone A can establish a voice call between mobile phone A and mobile phone B of the target contact by clicking the "Voice" control 01; the user of mobile phone A can also establish a video call between mobile phone A and mobile phone B of the target contact by clicking the "Video" control 02.
[0140] In response to the user of mobile phone A clicking the "Video" control 02, mobile phone A sends a video call request to mobile phone B, inviting the user of mobile phone B to make a video call. After the user of mobile phone B accepts the video call invitation, mobile phone A displays the following Figure 4B The video call interface shown in d in the figure. In the embodiment of the present application, the video call established between mobile phone A and mobile phone B is referred to as a video call.
[0141] See also Figure 4B The d interface in the figure is a video call interface, which includes a first display area and a second display area. The first display area is used to display the local screen, where the local end is mobile phone A, and the local screen is the video screen captured by the camera of mobile phone A. The second display area is used to display the opposite end screen, where the opposite end is mobile phone B, and the opposite end screen is the video screen captured by the camera of mobile phone B. Mobile phone B sends the captured screen to mobile phone A for display on mobile phone A, and correspondingly, mobile phone A also sends the captured video screen to mobile phone B for display on mobile phone B. The embodiment of the present application does not specifically limit the display area of the local screen and the opposite end screen.
[0142] Optionally, in the video call interface of mobile phone A, the first display area can be used as a full-screen display area, and the second display area can be used as a small window display area; or, the first display area can be used as a small window display area, and the second display area can be used as a full-screen display area, which is not limited in the embodiment of the present application. In addition, the embodiment of the present application does not limit the position and size of the first display area and the second display area.
[0143] The user of mobile phone A can switch the display area of the video images captured by mobile phone A and mobile phone B as needed. For example, by clicking on the small window in the first display area, the video image in the small window of the first display area can be switched to full-screen display in the second display area, and the full-screen display of the video image in the second display area can be switched to the small window in the first display area. The specific switching trigger method is not specifically limited.
[0144] See also Figure 4B The interface d in the figure also includes a "front / rear" control 04, which is used to switch the front / rear camera. Figure 4B In the video call interface shown in interface d in the figure, the camera of mobile phone A can be pre-set as the front camera, and the user of mobile phone A can make a video call with the user of mobile phone B through the front camera of mobile phone A. The user of mobile phone A can trigger the camera switching by clicking the "front / rear" control 04, for example, switching the front camera to the rear camera.
[0145] See also Figure 4B The interface d in the figure further includes an "add call" control 05, which is used to add a call. During the video call between the user of mobile phone A and the user of mobile phone B, if the user of mobile phone A wants to make a call with another user, the user of mobile phone A can add a call by selecting the "add call" control 05. The added call can be a voice call or a video call.
[0146] Combination Figure 4B In the a to d interfaces, mobile phone A establishes a video call with mobile phone B of the user of mobile phone B in response to a trigger operation of the user of mobile phone A.
[0147] See also Figure 5 , an embodiment of the present application provides a calling method 500, which is executed on a terminal side. The method 500 includes the following process from step S501 to step S505.
[0148] In step S501, in response to incoming call information received by a terminal, it is determined that the incoming call scenario is a video color vibration scenario.
[0149] exist Figure 5 In the embodiment shown, the terminal may be Figure 3 The terminal shown may be a terminal device with a display interface such as a television, a display, a tablet computer, or a car computer, or a smart display wearable device such as a smart watch or a smart bracelet, or a communication device such as a server, a storage device, a base station, or a smart car, etc. The embodiments of the present application do not impose any special restrictions on the specific forms of the above terminals.
[0150] The incoming call information received by the terminal is the information received by the current terminal when other terminals send a call request to the current terminal by dialing the communication number corresponding to the current terminal.
[0151] In this embodiment, in response to the call incoming call information received by the terminal, determining that the incoming call scenario is a video color ringing scenario may include: determining, according to the software or hardware conditions of the terminal, that the communication number corresponding to the terminal has activated the video color ringing service and that the terminal supports the video color ringing scenario. The communication number corresponding to the terminal has activated the video color ringing service, including that the network provider of the communication number corresponding to the terminal supports the video color ringing service and that the communication number corresponding to the terminal has subscribed to the video color ringing service supported by the network provider.
[0152] Exemplarily, determining that the incoming call scenario is a video color ringing scenario further includes determining, based on a setting of the incoming call number in the terminal, that the terminal supports the video color ringing scenario for the incoming call number, and further determining that the incoming call scenario is a video color ringing scenario.
[0153] Exemplarily, the terminal determines that the current incoming call scenario is a video color vibration scenario according to the information sent by the server.
[0154] In this embodiment, in the video color vibration scenario, the terminal plays the corresponding audio and video data packets provided by the network provider to realize the reminder of the incoming call. Alternatively, the terminal plays the target audio and video data packets selected by the user from the data packets that can be provided by the network provider to realize the reminder of the incoming call. The (audio and video) data packets corresponding to the video color vibration scenario may include any one of the video data packets, audio data packets, and data packets combined with audio and video. The network provider may provide corresponding multiple video color vibration scenario options, and the user may select one of them to realize the terminal's incoming call reminder function in the video color vibration scenario through the audio, video, or video combined with audio provided by the network provider.
[0155] In step S502, a start operation of the video color vibration scene is performed.
[0156] The operation of starting the video color vibration scene may include, in the call module of the terminal, reporting the type information corresponding to the video color vibration scene from the bottom layer to the upper layer, wherein the bottom layer includes the driver layer in the call module of the terminal, and the upper layer includes the application layer / application framework layer in the call module of the terminal.
[0157] In the process of reporting the type information corresponding to the video color vibration scene from the bottom layer to the upper layer, starting from the modem layer of the call module, the report is performed layer by layer to the call management module of the application framework layer. The above-mentioned start operation is the operation of starting to report the type information from the bottom layer to the upper layer.
[0158] In this embodiment, the start operation of the video color vibration scene includes the reporting operation of the type information corresponding to the video color vibration and the start operation of the play operation of the (audio and video) data packet corresponding to the video color vibration scene. When the start operation of the play operation is completed, the data packet corresponding to the video color vibration scene starts to play.
[0159] In step S503, when it is determined that the result of the start-up operation of the video color vibration scene is a failure, the incoming call scene of the terminal is changed to a local ring tone scene.
[0160] As an implementation method, determining that the result of the startup operation of the video color vibration scene is a failure includes the situation where the startup operation of the video color vibration scene cannot be continued due to certain reasons before the data packet corresponding to the video color vibration scene is played; it also includes the situation where the data packet corresponding to the video color vibration scene fails to be played.
[0161] Exemplarily, changing the incoming call scene of the terminal to a local ringtone scene includes: determining that the current incoming call scene is changed from a video color ringtone scene to a local ringtone scene. That is, when the general framework of the incoming call scene is determined as a video color ringtone scene in step S501, it is further determined that the incoming call scene is changed to a local ringtone scene. Thus, the changed incoming call scene can be distinguished from the case where the current scene is directly determined as a local ringtone scene according to various conditions when an incoming call is received.
[0162] In step S504, a local ring tone scene start operation is performed.
[0163] The start-up operation of executing the video color ringing scene may include, in the call module of the terminal, reporting the type information corresponding to the local ringing scene from the bottom layer to the upper layer, and the reporting process is similar to the reporting process of the video color ringing scene. The type information corresponding to the local ringing scene is the type information under the video color ringing scene framework. For example, the type information of the video color ringing scene includes three digits, and the second digit and the third digit both indicate that the current scene is the video color ringing scene. When the incoming call scene is converted to the local ringing scene, the type information of the local ringing scene retains the first digit and the second digit of the video color ringing scene, and changes the third digit.
[0164] Exemplarily, the start operation performed in step S504 is a start operation of a local ringtone scene converted from a video color vibration scene, which is different from the situation where the incoming call scene is directly determined as the local ringtone scene after receiving the incoming call information of other terminals.
[0165] Exemplarily, since the start operation performed in step S504 is a start operation of a local ring tone scene converted from a video color vibration scene, the type information reported during the start operation is type information of a local ring tone scene converted from a video color vibration scene.
[0166] In this embodiment, when the terminal has completed the start-up operation of the play operation, regardless of whether the start-up operation of the play operation is successful, the start-up operation of the play operation is no longer performed in the start-up operation of the local ringtone scene, and only the reporting operation of the type information corresponding to the local ringtone scene is performed.
[0167] In step S505, when it is determined that the incoming call scene is started by changing the incoming call scene from the video color vibration scene, an incoming call reminder operation of the local ring tone is triggered.
[0168] The aforementioned local ringtone call reminder operation includes performing a call reminder according to the call reminder mode and parameters set by the terminal. That is, if the call reminder mode configured by the terminal is silent, the terminal does not play any sound. If the call reminder mode configured by the terminal is vibration, the terminal vibration is started. If the configured call reminder mode is ringtone playback, the local ringtone file for the call reminder is played. Furthermore, the local ringtone call reminder operation may include a silent screen light-up operation, an audio playback operation, an audio playback operation combined with vibration, or a vibration operation.
[0169] In step S505, since the local incoming call ringtone file of the terminal is played when it is determined that the current ringtone scene is the local ringtone scene changed from the video color vibration scene, the incoming call is reminded according to the terminal setting information, which meets the original intention of the terminal user regarding the incoming call reminder method.
[0170] For example, the user terminal sets the ringtone to a silent reminder, and the user subscribes to the video color vibration service. When receiving an incoming call, the audio and video data packets used for the video color vibration cannot be obtained from the provider network, so the audio and video data packets used for the video color vibration cannot be played in the video color vibration mode. When the terminal detects that there is no corresponding audio and video data packet to play in the video color vibration scene, it switches to the local ringtone scene, triggers the call reminder operation of the local ringtone, and reminds the user of the incoming call in the silent mode preset by the terminal. In another example, the aforementioned silent reminder can be replaced by using a set ringtone for reminder.
[0171] When the terminal detects that there is no corresponding audio or video playback in the video color vibration scene, resulting in the failure of the startup operation of the video color vibration scene, after the terminal is converted to the local ringtone scene, since the application layer telecom module of the terminal used to play the ringtone has completed the startup operation of the playback operation in the previous video color vibration scene startup process, the startup operation process of the local ringtone scene no longer includes the startup of the playback operation of the local ringtone, resulting in the inability to play the local ringtone, affecting the normal operation of the function of playing the incoming call reminder ringtone for the user. In the embodiment of the present application, when it is determined that the current incoming call scene of the terminal is the local ringtone scene adopted for conversion from the video color vibration scene, the incoming call reminder operation of the local ringtone is triggered to avoid affecting the normal incoming call reminder in the video color vibration scene due to the failure of the playback operation during the startup operation of the video color vibration scene.
[0172] In one implementation, the aforementioned start operation includes a start operation of a play operation; and the aforementioned start operation of executing a video color vibration scene includes:
[0173] The type information corresponding to the video color vibration scene is reported to the call management module of the application layer through the driver layer of the terminal. The type information corresponding to the video color vibration scene is used to instruct the application layer of the terminal to start the playback operation in the video color vibration scene.
[0174] For example, in a normal video color ringing scenario, the operator network will report ECPI (Call Progress Information): 1, 7, 3. Among them, 7 and 3 indicate that the current mode is video color ringing. On the terminal side, when the incoming call information arrives, the modem receives ECPI (1, 7, 3) indicating the video color ringing mode as the type information corresponding to the video color ringing scenario, and reports the type information corresponding to the video color ringing scenario from the driver layer modem to the application layer layer by layer.
[0175] In one implementation, the above-mentioned reporting of type information corresponding to the video color vibration scenario to the call management module of the application layer through the driver layer of the terminal includes:
[0176] According to the type information corresponding to the video color vibration scene, the value of the target data object of the terminal system is updated.
[0177] In the terminal system, the target data object is a global variable, for example, a bundle object, and the bundle object includes an Extras value. According to the type information corresponding to the video color vibration scene, the value of the target data object of the terminal system is updated, and part of the value of the type information corresponding to the video color vibration scene can be used as the value of the target data object. For example, "3" in ECPI (1, 7, 3) is used as the value of Extras in the bundle. Each layer of the terminal includes this target data object. When the type information is reported layer by layer, each layer updates the value of the target data object according to the type information reported layer by layer.
[0178] In one implementation, the above-mentioned reporting of type information corresponding to the video color vibration scenario to the call management module of the application framework layer through the driver layer of the terminal includes:
[0179] According to the type information corresponding to the video color vibration scene, the value of the target data object of the terminal system is updated.
[0180] For example, the type information is obtained based on the ECPI reported to the terminal on the operator network. The operator network reports ECPI: 1, 7, 3, where 7 and 3 indicate that the current mode is color vibration mode.
[0181] In one implementation, the aforementioned operation of starting the local ringtone scene includes:
[0182] Report the type information corresponding to the local ringtone scene to the call management module of the application layer through the driver layer of the terminal;
[0183] Using the type information corresponding to the local ringtone scene as the current type information;
[0184] Determine historical type information according to the value in the target data object;
[0185] According to the current type information and the historical type information, it is determined that the local ring tone scene is started by changing the incoming call scene from the video color vibration scene.
[0186] In some abnormal networks, the operator network first reports ECPI: 1, 7, 3, but the operator network does not send voice data packets, so Figure 2 In the case shown in (c), a video without sound is played without the background of color ring. A timer is set in the modem on the terminal side. If no voice data packet is detected within 3 seconds, ECPI:1,7,0 is reported as the type information corresponding to the local ringtone scene. Through ECPI:1,7,0, the application layer is informed that it is not a video color ring at this time, and the application layer returns to the normal incoming call interface.
[0187] In one implementation, the above-mentioned determining, based on the current type information and the historical type information, that the local ringtone scene is activated by changing the incoming call scene from the video color vibration scene includes:
[0188] Compare the current type information with the historical type information to obtain a comparison result;
[0189] According to the comparison result that the historical type information corresponds to the color ring scene and the current type information corresponds to the local ring scene, it is determined that the local ring scene is started by changing the incoming call scene from the video color ring scene.
[0190] In this embodiment, if the current type information is different from the historical type information during this call, it means that the historical type information has changed. At the same time, according to the specific content of the historical type information, it is determined that the historical type information is a video color vibration scene, and according to the current type information, it is determined that during this call, the video color vibration scene is changed to a local ringtone scene.
[0191] In one implementation, the above-mentioned updating the value of the target data object of the terminal system according to the type information corresponding to the video color vibration scene includes:
[0192] In the application package data of the chip platform of the terminal, the color vibration type bit in the type information corresponding to the video color vibration scene is used as the updated color vibration type;
[0193] The value corresponding to the updated color vibration type is written into the data container as the value of the target data object.
[0194] Exemplarily, the color vibration type can be a single-digit value, for example, for ECPI: 1, 7, 3, 3 indicates that the playback data includes video data and audio data, so the digit corresponding to "3" can be the color vibration type bit. In the case that the type information ECPI changes, for example, it changes to ECPI: 1, 7, x, then x is used as the color vibration type bit.
[0195] In one implementation, the above-mentioned reporting of type information corresponding to the video color vibration scenario to the call management module of the application framework layer through the driver layer of the terminal includes:
[0196] Creating a multimedia call in a network module of a chip platform of the terminal, and updating the call process of the multimedia call according to the value of the target data object;
[0197] The telephone communication module at the application framework layer of the terminal updates the incoming call progress according to the updated call progress;
[0198] The call service module at the application framework layer of the terminal updates the variables included in the target data object according to the updated incoming call;
[0199] In the call management module of the application framework layer of the terminal, the variables included in the target data object are updated;
[0200] The call management module at the application layer of the terminal stores the variables included in the target data object.
[0201] In this embodiment, based on the variables included in the target data object, the type information corresponding to the current call scenario is reported to the upper layer in the order of chip platform-application framework layer-application layer. During the reporting process, each layer is updated according to the reported content.
[0202] In one embodiment, before determining the historical type information according to the value in the target data object, the method further includes:
[0203] Report the current type information to the application layer through the call management module of the application framework layer;
[0204] The value of the target data object is stored through the call management module of the application layer.
[0205] After updating the current type information, the call management module of the application layer further reports the current type information to other modules in the terminal that need to know the current type information.
[0206] In one implementation, the aforementioned startup operation includes an operation of displaying a call interface; and the startup operation of executing a video color vibration scene includes:
[0207] The driver layer determines that the result of the playback operation corresponding to the video color vibration scene within the set time is playback failure.
[0208] The modem at the driver layer starts timing after reporting the type information. If the data packet corresponding to the video color vibration scene is not played within the timing time, the modem determines that the result of the playback operation corresponding to the video color vibration scene is a failure, and the user cannot hear the playback data and cannot be notified of the incoming call through the playback data.
[0209] In one implementation, the aforementioned failure of the playback operation corresponding to the video color vibration scene within the set time includes:
[0210] The playback data packet corresponding to the video color vibration scene cannot be obtained within the set time;
[0211] Within the set time, the playback data packet corresponding to the obtained video color vibration scene cannot be played.
[0212] Failure to start the playback operation is also a case of playback operation failure. The playback data packet may include an audio part and a video part. If the video part is played alone, a video without audio is presented on the terminal. The aforementioned inability to obtain the playback data packet corresponding to the video color vibration scene includes: the inability to obtain the complete playback data packet. That is, when only a part of the playback data packet can be obtained, it is also considered that the playback data packet cannot be obtained.
[0213] The playback data packet corresponding to the video color vibration scene obtained above cannot be played, including: part of the playback data packet cannot be played and all of the playback data packet cannot be played.
[0214] In the case of abnormal operator network, there is a small probability that a video without sound will be played first when a call comes in, and then the video will disappear. If the normal call interface is returned but there is no ringtone, the terminal user's intuitive experience is that there is no sound prompt for the incoming call, which affects the user experience and normal answering of the call. However, in this case, by triggering the call reminder operation of the local ringtone, the user can be notified of the incoming call in the way that the user presets in the terminal, such as ringing, vibration or mute.
[0215] In one implementation, the aforementioned startup operation of executing the video color vibration scene includes:
[0216] In response to the incoming call information received by the terminal, notifying the call management module of the application layer of the incoming call;
[0217] Start the call interface corresponding to the incoming call information;
[0218] The start operation of the play operation corresponding to the video color vibration scene is executed through the call management module of the application layer.
[0219] In this embodiment, before or during the process of the call management module of the application layer executing the start-up operation of the playback operation corresponding to the video color vibration scene, the terminal can pull up the call interface. During the process of the call management module of the application layer executing the start-up operation of the playback operation corresponding to the video color vibration scene, the pulling-up status of the call interface is monitored, and the start-up operation is continued according to the monitoring result.
[0220] During the startup process of the video color ringing scene, on the one hand, starting from the modem, the type information of the video color ringing scene is reported to the upper layer of the terminal layer by layer. On the other hand, the telecom of the application layer, as a layer in the reporting process, starts the playback operation when it senses that there is an incoming call, and enters the steps of playback preparation and playback start.
[0221] Since the application layer telecom module has completed the startup of the display interface when executing the start-up operation of the playback operation while reporting the type information corresponding to the video color ringing scene for the first time after the call comes in, therefore, in the subsequent case where the playback of the data packet corresponding to the video color ringing scene fails and is switched to the local ringtone scene, the telecom module will no longer execute the operation of starting the call interface, nor will it execute the above-mentioned "execution of the playback operation corresponding to the video color ringing scene".
[0222] In one embodiment, the call interface corresponding to the call incoming call information mentioned above includes:
[0223] Determine the play preparation sub-process to be entered according to the situation that the call management module of the application layer receives the type information corresponding to the video color vibration scene;
[0224] When entering the play preparation sub-process, start the call interface corresponding to the incoming call information.
[0225] When the call management module of the application layer just starts the playback operation, the type information of the video color ringing scene may not be reported to the telecom of the application layer, so the telecom of the application layer may not know what the incoming call scene is at this time. Therefore, according to the judgment result of the type information when the call management module of the application layer just starts the playback operation, different playback preparation sub-processes may be entered.
[0226] In one implementation, the above-mentioned determination of the play preparation sub-process to be entered according to the situation that the call management module of the application layer receives the type information corresponding to the video color vibration scene includes:
[0227] When the call management module of the application layer receives the type information corresponding to the video color vibration scene reported by the bottom layer, it determines to enter the video color vibration playback preparation sub-process;
[0228] When the call management module of the application layer does not receive the type information corresponding to the video color vibration scene reported by the bottom layer, it is determined to enter the local ringtone playing preparation sub-process.
[0229] In this embodiment, the telecom of the application layer may determine that the reported type information has not been received or that the reported type information indicates that the current scene is a local ringtone, and then enter the play preparation sub-process corresponding to the local ringtone scene (the play preparation sub-process of the local ringtone). Or it may receive the type information corresponding to the video color vibration scene and enter the play preparation sub-process corresponding to the video color vibration scene (the play preparation sub-process of the video color vibration).
[0230] In one implementation, the aforementioned start operation of executing the playback operation corresponding to the video color vibration scene includes:
[0231] According to the type information corresponding to the video color ringing scene reported by the bottom layer received by the call management module of the application layer, the data packet corresponding to the video color ringing scene is determined to play, so as to complete the start operation of the play operation.
[0232] In order to prevent the application layer telecom from not entering the video color vibration playback preparation sub-process due to the delay in reporting type information, before playback, the application layer telecom needs to perform another judgment on the type information. At this time, it will receive the type information of the video color vibration scene reported with a delay, and thus enter the playback operation of the data packet corresponding to the video color vibration scene.
[0233] Fig. 6A , 6B 600 is a schematic flow chart of a call method 600 provided in an embodiment of the present application. The embodiments of the present application are applicable to scenarios such as Figure 4A , 4B As shown, mobile phone B initiates a call request to mobile phone A, and the operator network forwards the call request of mobile phone B to mobile phone A. The process described in the call method 600 includes the internal implementation process of mobile phone A in the above scenario, involving the interaction between the application framework layer, hardware abstraction layer, and driver layer of mobile phone A. In the call method 600, the application layer executes relevant steps through the call service module and the call management module, and the hardware abstraction layer executes relevant steps through the IMS APK module and the net / IMS module. The driver layer includes a modem module. The call method 600 includes S601 to S620, and the specific steps are as follows.
[0234] The operator detects that a SIM card with video color ringing enabled is inserted into a terminal that supports video, and there are incoming calls from other terminals. When a user inserts a SIM card with video color ringing enabled into a terminal that supports video, the operator network can detect that the SIM card with video color ringing enabled has been inserted into a terminal that supports video, and can detect incoming calls from other terminals on the terminal.
[0235] Step S601: the operator network reports EPCI to the protocol layer (modem of the protocol layer): 1, 7, 3. EPCI is type information, and 1, 7, 3 are EPCI values.
[0236] When the operator network detects that a SIM card with video color vibration enabled is inserted into a terminal that supports video and there is an incoming call from another terminal, and if the network communication capability can be guaranteed, it can report to the protocol layer (modem) that the SIM card has the video color vibration capability and send the type information corresponding to the video color vibration scenario.
[0237] Step S602: the modem receives EPCI: 1, 7, 3.
[0238] After receiving the type information corresponding to the video color vibration scenario reported by the operator network, the modem further reports the type information corresponding to the video color vibration scenario to the upper layer.
[0239] Step S603: the modem reports ECPI: 1, 7, 3 to the Radio Interface Layer (RIL).
[0240] Step S604: RIL reports EPCI: 1, 7, 3 to ims apk.
[0241] The modem reports type information corresponding to the video color vibration scene to the ims (IP Multimedia System, IP Multimedia Subsystem) apk (Android application package, Android application package) of the (hardware abstraction layer) chip platform.
[0242] Among them, the ims apk of the hardware abstraction layer can mainly include the implementation class of ImsService, which is used to provide ims-related services. It is responsible for data interaction with modems and media. This functional module is usually customized by various chip manufacturers. Although the implementation methods of various chip manufacturers may be different, there will always be a class that implements ImsService.
[0243] Step S605: ims apk receives EPCI reported by modem: 1, 7, 3, writes crsType to 3, and writes its corresponding value 3 into the object bundle.
[0244] The Bundle object is a collection of key-value pairs, where the key is a string type and the value can be any type of data. You can store data in the Bundle through the put method of the Bundle object, or get data through the get method. When passing data between different components, you can pass the Bundle object as a parameter.
[0245] In this embodiment, the ims apk writes "3" in EPCI: 1, 7, 3 into the bundle. As an example, "3" can be written into the bundle of ims call. Among them, ims call is responsible for handling the connection of IMS voice and video calls, which is usually created by ImsManager (Ims management module). ImsManager can provide IMS services API.
[0246] The specific expression form of the numerical value corresponding to the video color vibration capability is not limited, and EXTRA_CRS_TYPE can be used to indicate the video color vibration capability, that is, the ims call can write the value of EXTRA_CRS_TYPE of the type information corresponding to the video color vibration scene into the ims call.
[0247] Step S606: fw (framework) ims / net module updates callsession. Callsession is a call session. A call is also called a call, which is a process or behavior initiated by a call initiator and attended by the invitee. Session is used for media stream transmission. When one party sends a request, the other party or multiple parties accept the request and successfully establish it through signaling interaction.
[0248] Step S607: ims / Net of firmware reports type information corresponding to the video color ringing scenario to telephony of framework. First, the telephone communication module (telephony) of framework receives type information corresponding to the video color ringing scenario.
[0249] Step S608: Update the answer list (oncall) in the framework's telephony.
[0250] The answer list is a list that the current terminal should process. The oncall update operation is performed in the teleservice module of the framework.
[0251] Step S609: Update Extras (onExtraschanged) in the call management module (telecom) of the framework.
[0252] Extras is updated according to the current ECPI. Extras is used to represent the type information of the current scene, that is, according to EPCI: 1, 7, 3, the value of Extras is updated to 3. In the Android system, some constants are defined using Extras, and constants can be used as keys.
[0253] Step S610: Store Extras in telecom of the application layer (putExtras).
[0254] In the application layer telecom (corresponding to Fig. 6A , Figure 6BThe value corresponding to the video color ringing scene EXTRA_CRS_TYPE is written into the telecom in the application layer. The telecom function of the application layer may include but is not limited to obtaining the color ringing capability of the terminal and the call status.
[0255] After updating and storing Extras, the application layer telecom reports Extras to the application layer and other modules, so that other related modules update Extras according to the reported information.
[0256] After executing step S601, the telecom module of the application layer further executes another process, namely: the telecom of the application layer triggers the incoming call reminder operation of the video color ringing scene. During the execution of the incoming call reminder operation of the video color ringing scene, the audio, video or video combined with audio corresponding to the video color ringing scene is played.
[0257] When the type information corresponding to the video color ringing scenario is reported to the upper layer of the terminal, a separate playback operation is started inside the telecom module of the application layer, so that the terminal rings or plays a video to remind the user that a call is received. When the playback operation is started inside the telecom module of the application layer, the telecom module of the application layer may have received the type information corresponding to the video color ringing scenario, or the telecom module of the application layer may not have received the type information corresponding to the video color ringing scenario when the playback operation was started due to a delay in the reporting step. For this, the playback operation implementation process executed in the telecom of the application layer refers to Figure 7 As shown, steps S71-S76 are included.
[0258] Step S71: When the terminal receives notification information of an incoming call, it determines whether the current incoming call scene is a video color vibration scene. If so, it proceeds to step S72, otherwise it proceeds to step S73.
[0259] Step S72: Enter the playback focus of the local ringtone.
[0260] Step S73: Enter the playback focus of the video.
[0261] In this embodiment, the play focus may be a determined path, corresponding to a sub-process, namely, the play preparation sub-process in the aforementioned embodiment.
[0262] Step S74: Set a timer. If the call interface is successfully started within the time set by the timer, go to step S75; if not, repeat the start and also go to step S75.
[0263] Step S76: Determine again whether the current incoming call scene is a video color ring scene, if so, play the data packet of the video color ring on the network; otherwise, play the local ring tone file.
[0264] The local ringtone playback process is when a call comes in. The order of reporting incoming call messages is: from ril->ims apk->net / ims->framework telephony->application layer call management module Telecomm. When Telecomm adds a call, it will monitor the call interface and trigger the incoming call reminder operation of the local ringtone.
[0265] If in the video color ring scenario, the modem of the driver layer first reports the type information of video color ring (ECPI:1,7,3), when the call interface is pulled up, it will enter the process of triggering the playback of the data packet of the video color ring scenario, but because it is already in color ring mode, the network video will be played, and the local ringtone will not be played. When the modem report falls back to voice (ECPI:1,7,0), the playback operation of the local ringtone cannot be triggered at this time.
[0266] Since telecom has configured response plans for both receiving type information and not receiving type information, Fig. 6A , Figure 7 The process shown can be performed simultaneously. At the same time, in the hierarchical structure of the call module of the terminal, when the execution condition is met, the execution Figure 6B Steps S611-S620 are shown.
[0267] S611: The modem detects that the terminal does not play the data packet corresponding to the video color ring scene within the set time, and determines to change the current call scene to the local ring tone scene.
[0268] When the modem determines to change the current call scene to the local ring tone scene, it reports the type information of the local ring tone scene obtained by converting the video color vibration scene to the upper layer.
[0269] Exemplarily, the type information corresponding to the local ringtone scene obtained by converting the video color vibration scene is different from the type information corresponding to when the current call scene is directly determined to be the local ringtone scene after receiving an incoming call.
[0270] Step S612: the modem reports EPCI: 1, 7, 0 to the RIL.
[0271] Step S613: ims apk reports EPCI: 1, 7, 0. EPCI: 1, 7, 0 is the type information corresponding to the local ringtone scene obtained by converting the video color vibration scene.
[0272] Step S614: ims apk receives EPCI: 1, 7, 0 reported by the modem, writes crsType to 0, and writes its corresponding value 0 into the container bundle.
[0273] Step S615: the fwims / Net module updates callsession.
[0274] Step S616: Report EPCI: 1, 7, 0 to the framework's telephony.
[0275] Step S617: Update the answer list (oncall) in the framework's telephony.
[0276] Step S618: Update Extras (OnExtraschanged) in the teleservice module of the framework.
[0277] Step S619: Store Extras in telecom of the application layer (putExtras).
[0278] Step S620: the telecom of the application layer reports Extras to other modules.
[0279] Step S621: Compare the new Extras with the historical Extras, determine that the incoming call scene is changed from the video color ring scene to the local ring tone scene, and trigger the local ring tone to play.
[0280] In this embodiment, after the telecom module reports Extras to other modules that need to receive local ringtone scenarios, it performs a comparison operation between the new Extras and the old (historical) Extras, and triggers the incoming call reminder operation of the local ringtone based on the comparison operation, including audible playback of the local ringtone, silent playback of the local ringtone, terminal vibration, and a combination of audible playback and vibration of the local ringtone.
[0281] In one implementation of the present application, the process of updating the bundle according to the new ECPI includes:
[0282] By synchronizing the public variable bundle, the old Extras value is obtained;
[0283] Store the value of Extras: If the Extras value is empty, return;
[0284] Otherwise, assign the value of the new Extras to the value of the old Extras and return.
[0285] In one implementation of the present application, the process of updating Extras includes:
[0286] Determine whether the current source is not equal to the call source connection service, if not return;
[0287] If yes: the handle points to the call technology variable;
[0288] The handle points to the child address variable;
[0289] Update added calls;
[0290] Determine whether the obtained status is not equal to the ringing status, if not, return;
[0291] No Yes: Get the old Extras value; if the old Extras value is not equal to the new Extras value, re-enter the ringing process.
[0292] In one embodiment of the present application, the process of re-entering the ringing includes:
[0293] The process of entering the local ringtone playback through the answer list.
[0294] The present application also provides a communication device, such as Figure 8 As shown, including:
[0295] The incoming call scene determination module 801 is used to determine the incoming call scene as a video color vibration scene in response to the incoming call information received by the terminal;
[0296] The video color vibration scene starting module 802 is used to execute the starting operation of the video color vibration scene;
[0297] The scene changing module 803 is used to change the incoming call scene to the local ring tone scene when it is determined that the result of the start operation of the video color ring scene is a failure;
[0298] A local ringtone scene starting module 804, used to execute a local ringtone scene starting operation;
[0299] The local ring tone triggering module 805 is used to trigger the incoming call reminder operation of the local ring tone when it is determined that the incoming call scene is started by changing the incoming call scene from the video color ring scene.
[0300] In one implementation, the start operation includes a start operation of a play operation; and the video color vibration scene start module includes:
[0301] The type information unit is used to report the type information corresponding to the video color vibration scene to the call management module of the application layer through the terminal driver layer. The type information corresponding to the video color vibration scene is used to instruct the application layer of the terminal to start the playback operation in the video color vibration scene.
[0302] In one implementation, the type information unit is further configured to:
[0303] According to the type information corresponding to the video color vibration scene, the value of the target data object of the terminal system is updated.
[0304] In one implementation, the local ringtone scene activation module includes:
[0305] A ringtone type reporting unit, used to report type information corresponding to the local ringtone scene to the call management module of the application layer through the driver layer of the terminal;
[0306] A current type unit, used to use type information corresponding to the local ringtone scene as current type information;
[0307] A history type information unit, used to determine the history type information according to the value in the target data object;
[0308] The comparison unit is used to determine, based on the current type information and the historical type information, that the local ring tone scene is started by changing the incoming call scene from the video color vibration scene.
[0309] In one embodiment, the aforementioned comparison unit is further configured to:
[0310] Compare the current type information with the historical type information to obtain a comparison result;
[0311] According to the comparison result that the historical type information corresponds to the color ring scene and the current type information corresponds to the local ring scene, it is determined that the incoming call scene is started by changing the incoming call scene from the video color ring scene.
[0312] In one implementation, the type information unit is further configured to:
[0313] In the application package data of the chip platform of the terminal, the color vibration type bit in the type information corresponding to the video color vibration scene is used as the updated color vibration type;
[0314] The value corresponding to the updated color vibration type is written into the data container as the value of the target data object.
[0315] In one implementation, the type information unit is further configured to:
[0316] Creating a multimedia call in a network module of a chip platform of the terminal, and updating the call session according to the value of the target data object;
[0317] The telephone communication module at the application framework layer of the terminal updates the incoming call progress according to the updated call session;
[0318] The call service module at the application framework layer of the terminal updates the variables included in the target data object according to the updated incoming call;
[0319] In the call management module of the application framework layer of the terminal, the variables included in the target data object are updated;
[0320] The call management module at the application layer of the terminal stores the variables included in the target data object.
[0321] In one implementation, the local ringtone scene activation module includes:
[0322] A current type information reporting unit, used to report the current type information to the application layer through the call management of the application framework layer;
[0323] The value of the target data object is stored through the call management module of the application layer.
[0324] In one implementation, the startup operation includes an operation of displaying a call interface; the video color vibration scene startup module includes:
[0325] The play failure determination unit is used to determine through the driving layer that the result of the play operation corresponding to the video color vibration scene within a set time is a play failure.
[0326] In one implementation, the above-mentioned playback failure determination unit is further configured to:
[0327] The playback data packet corresponding to the video color vibration scene cannot be obtained within the set time;
[0328] Within the set time, the playback data packet corresponding to the obtained video color vibration scene cannot be played.
[0329] In one implementation, the video color vibration scene activation module includes:
[0330] The call interface starts a notification unit for notifying the call management module of the application layer of the incoming call in response to the call incoming call information received by the terminal;
[0331] A call interface activation unit, used to activate the call interface corresponding to the incoming call information;
[0332] The playing unit is used to execute the start operation of the playing operation corresponding to the video color vibration scene.
[0333] In one embodiment, the call interface activation unit is further configured to:
[0334] Determine the play preparation sub-process to be entered according to the situation that the call management module of the application layer receives the type information corresponding to the video color vibration scene;
[0335] When entering the play preparation sub-process, start the call interface corresponding to the incoming call information.
[0336] In one embodiment, the call interface activation unit is further configured to:
[0337] When the call management module of the application layer receives the type information corresponding to the video color vibration scene reported by the bottom layer, it determines to enter the video color vibration playback preparation sub-process;
[0338] When the call management module of the application layer does not receive the type information corresponding to the video color vibration scene reported by the bottom layer, it is determined to enter the local ringtone playing preparation sub-process.
[0339] In one embodiment, the call interface activation unit is further configured to:
[0340] According to the type information corresponding to the video color ringing scene reported by the bottom layer received by the call management module of the application layer, the data packet corresponding to the video color ringing scene is determined to play, so as to complete the playing operation.
[0341] Fig. 9 A schematic diagram of the hardware structure of another electronic device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the electronic device includes a processor 901, a communication line 904 and at least one communication interface ( Fig. 9 The communication interface 903 is used as an example for explanation).
[0342] The processor 901 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0343] Communications link 904 may include circuitry to transmit information between the above-described components.
[0344] The communication interface 903 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
[0345] Possibly, the electronic device may further include a memory 902 .
[0346] The memory 902 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a communication line 904. The memory may also be integrated with the processor.
[0347] The memory 902 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 901. The processor 901 is used to execute the computer-executable instructions stored in the memory 902, thereby implementing the method provided by the embodiment of the present application.
[0348] Possibly, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, and the embodiments of the present application do not specifically limit this.
[0349] In a specific implementation, as an embodiment, the processor 901 may include one or more CPUs, such as Fig. 9 CPU0 and CPU1 in.
[0350] In a specific implementation, as an embodiment, the electronic device may include multiple processors, such as Fig. 9 901 and processor 905 in the embodiment of the present invention. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0351] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium can include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0352] The present application also provides a computer program product including instructions. The computer program product may be a software or program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the method provided in any of the above embodiments.
[0353] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the method provided in any of the above embodiments.
[0354] Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. Storage media may be any target media that can be accessed by a computer.
[0355] In one possible implementation, a computer-readable medium may include random access memory (RAM), read-only memory (ROM), compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disk and optical disk as used herein include optical disk, laser disk, optical disk, digital versatile disk (DVD), floppy disk and Blu-ray disk, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.
[0356] The embodiment of the present application further provides a chip, including a processor. The processor is used to read and execute a computer program stored in a memory to execute a call method provided by any embodiment of the present application.
[0357] Optionally, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.
[0358] The embodiment of the present application further provides a chip system, including a processor. The processor is used to read and execute a computer program stored in a memory to execute a call method provided by any embodiment of the present application.
[0359] Optionally, the chip system also includes a memory, and the memory is connected to the processor via circuits or wires.
[0360] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0361] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0362] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such 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, and should all be included in the protection scope of the present application.
Claims
1. A method for making a call, characterized in that: include: In response to the call incoming call information received by the terminal, determining that the incoming call scenario is a video color vibration scenario; Execute the start operation of the video color vibration scene; When it is determined that the result of the start-up operation of the video color ringing scene is a failure, changing the incoming call scene to: converting the video color ringing scene to a local ringing scene; Execute a start operation of converting the video color vibration scene into a local ring tone scene; In the case where it is determined that the incoming call scene is started by changing the incoming call scene from the video color vibration scene, triggering an incoming call reminder operation of a local ringtone; After the start-up operation of the video color vibration scene is executed, the method further includes: updating the value of the target data object of the terminal system according to the type information corresponding to the video color vibration scene; the type information corresponding to the video color vibration scene is used to instruct the application layer of the terminal to start the playback operation in the video color vibration scene; The starting operation of converting the video color vibration scene into the local ring tone scene includes: Reporting type information corresponding to the local ringtone scene to the call management module of the application layer through the driver layer of the terminal; Using the type information corresponding to the local ringtone scene as current type information; Determining historical type information according to a value in the target data object; The current type information and the historical type information are used to determine that the local ring tone scene is started by changing the incoming call scene from the video color vibration scene.
2. The method according to claim 1, characterized in that The start operation includes a start operation of a play operation; the start operation of executing the video color vibration scene includes: The type information corresponding to the video color vibration scene is reported to the application layer through the driver layer of the terminal.
3. The method according to claim 1, characterized in that The determining, according to the current type information and the historical type information, that the incoming call scene is initiated by changing the incoming call scene from the video color ringing scene includes: Comparing the current type information with the historical type information to obtain a comparison result; According to the comparison result that the historical type information corresponds to the color ring scene and the current type information corresponds to the local ring scene, it is determined that the incoming call scene is started by changing the incoming call scene from the video color ring scene.
4. The method according to claim 1, characterized in that The updating of the value of the target data object of the terminal system according to the type information corresponding to the video color vibration scene includes: In the application package data of the chip platform of the terminal, the color vibration type bit in the type information corresponding to the video color vibration scene is used as the updated color vibration type; The value corresponding to the updated color ring type is written into the data container of the terminal as the value of the target data object.
5. The method according to claim 2, characterized in that The reporting of type information corresponding to the video color vibration scene to the application layer through the driver layer of the terminal includes: Creating a multimedia call in a network module of a chip platform of the terminal, and updating a call session of the multimedia call according to a value of the target data object; A telephone communication module at the application framework layer of the terminal updates the incoming call progress according to the updated call session; In the call service module of the application framework layer of the terminal, the variables included in the target data object are updated according to the updated incoming call; In a call management module of the application framework layer of the terminal, updating variables included in the target data object; In a call management module of the application layer of the terminal, the variables included in the target data object are stored.
6. The method according to claim 1, characterized in that Before determining the historical type information according to the value in the target data object, the method further includes: Reporting the current type information to the application layer through a call management module of the application framework layer of the terminal; The value of the target data object is stored through the call management module of the application layer.
7. The method according to any one of claims 1 to 6, characterized in that: The startup operation includes an operation of displaying a call interface; The starting operation of executing the video color vibration scene includes: The driver layer of the terminal determines that the result of the play operation corresponding to the video color vibration scene within the set time is a play failure.
8. The method according to claim 7, characterized in that The result of the playback operation corresponding to the video color vibration scene within the set time is playback failure, including: The playback data packet corresponding to the video color vibration scene cannot be obtained within the set time; Within the set time, the playback data packet corresponding to the obtained video color vibration scene cannot be played.
9. The method according to claim 7, characterized in that The startup operation of executing the video color vibration scene includes: In response to the incoming call information received by the terminal, notifying the call management module of the application layer of the incoming call; Starting a call interface corresponding to the incoming call information; Execute the start operation of the play operation corresponding to the video color vibration scene.
10. The method according to claim 9, characterized in that The starting of the call interface corresponding to the incoming call information includes: Determine the play preparation sub-process to be entered according to the situation that the call management module of the application layer receives the type information corresponding to the video color vibration scene; When entering the play preparation sub-process, a call interface corresponding to the incoming call information is started.
11. The method according to claim 10, characterized in that The step of determining the play preparation sub-process to be entered according to the situation that the call management module of the application layer receives the type information corresponding to the video color vibration scene includes: When the call management module of the application layer receives the type information corresponding to the video color vibration scene reported by the bottom layer, determining to enter the video color vibration playback preparation sub-process; When the call management module of the application layer does not receive the type information corresponding to the video color vibration scene reported by the bottom layer, it is determined to enter the local ringtone playing preparation sub-process.
12. The method according to claim 9, characterized in that The start operation of executing the playback operation corresponding to the video color vibration scene includes: According to the type information corresponding to the video color ringing scene reported by the bottom layer received by the call management module of the application layer, a data packet corresponding to the video color ringing scene is determined to play, so as to complete the start operation of the play operation.
13. An electronic device, characterized in that: The electronic device comprises a processor coupled to a memory, wherein the processor is configured to execute a computer program or instruction stored in the memory, so that the electronic device implements the method according to any one of claims 1 to 12.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Incoming call prompting method and mobile terminal
CN109379503A
Incoming call reminding method and device, electronic equipment and readable storage medium
CN114979377A
Video polyphonic ringtone playing method and device, video polyphonic ringtone transmission method and device and communication equipment
CN115086491A
Method and device for receiving incoming call
CN116346988A
