Volume adjusting method and device and terminal equipment
By obtaining the historical reference volume and current volume when the application is started, the terminal device can adjust the volume flexibly and accurately, solving the problem of insufficient volume adjustment flexibility in the prior art, and achieving more efficient volume settings.
Patent Information
- Application Number
- CN202410010987.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, the volume adjustment flexibility of terminal devices is low and cannot be flexibly adjusted according to different scenarios and user needs.
When the application starts, the terminal device obtains the historical reference volume for multiple periods, and combines the current moment and volume to determine the volume when the device is started. By matching the historical reference volume and the current volume, flexible and accurate volume adjustment can be achieved.
Improve the flexibility and accuracy of the volume adjustment of terminal equipment, ensuring that the volume settings are more in line with user needs and environmental conditions.
Smart Images

Figure CN120255839A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the technical field of audio processing, and in particular, to a volume adjustment method, apparatus, and terminal device. Background Art
[0002] After a terminal device starts a video or audio application, the terminal device can play audio based on a speaker.
[0003] Currently, the terminal device can determine the device volume when starting the application this time as the device volume when exiting the application last time. If the device volume is large, the device volume can be adjusted to a fixed volume. For example, if the device volume when the terminal device exited the application last time was 100%, the device volume when starting the application this time is 100%. However, since the volume of 100% is large, the terminal device can determine that the device volume when starting the application this time is 80% (a preset fixed volume). However, in the above method, the flexibility of volume adjustment of the terminal device is low. Summary of the Invention
[0004] The present disclosure provides a volume adjustment method, apparatus, and terminal device, which are used to solve the technical problem of low flexibility of volume adjustment of a terminal device in the prior art.
[0005] In a first aspect, the present disclosure provides a volume adjustment method, and the method includes:
[0006] When an application is started, obtain historical reference volumes of the application in multiple time periods, where the historical reference volumes are determined based on historical volume information of the application;
[0007] Obtain the current time and the current volume;
[0008] Determine the device volume when the application is started according to the historical reference volumes in the multiple time periods, the current time, and the current volume.
[0009] In a second aspect, the present disclosure provides a volume adjustment apparatus, and the volume adjustment apparatus includes a first acquisition module, a second acquisition module, and a determination module, where:
[0010] The first acquisition module is configured to, when an application is started, obtain historical reference volumes of the application in multiple time periods, where the historical reference volumes are determined based on historical volume information of the application;
[0011] The second acquisition module is configured to obtain the current time and the current volume;
[0012] The determining module is configured to determine the device volume when the application is launched according to the historical reference volumes of the multiple time periods, the current moment, and the current volume.
[0013] In a third aspect, an embodiment of the present disclosure provides a terminal device, including: a processor and a memory;
[0014] The memory stores computer-executable instructions;
[0015] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the volume adjustment method as described in the first aspect above and various possible aspects related to the first aspect.
[0016] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When the processor executes the computer-executable instructions, the volume adjustment method as described in the first aspect above and various possible aspects related to the first aspect are implemented.
[0017] The present disclosure provides a volume adjustment method, device, and terminal device. The terminal device can obtain the historical reference volumes of the application in multiple time periods when the application is launched, where the historical reference volumes are determined based on the historical volume information of the application. The terminal device can obtain the current moment and the current volume, and determine the device volume when the application is launched according to the historical reference volumes of the multiple time periods, the current moment, and the current volume. In the above method, since the historical reference volumes are determined based on the historical volume information of the application, the terminal device can accurately adjust the device volume of the terminal device according to the historical reference volumes. Moreover, the terminal device can flexibly adjust the device volume of the terminal device by combining the historical reference volumes of multiple time periods, the current moment, and the current volume, thereby improving the flexibility of the volume adjustment of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0019] Figure 1 FIG. is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0020] Figure 2 FIG. is a schematic flowchart of a volume adjustment method provided by an embodiment of the present disclosure;
[0021] Figure 3A schematic diagram of a historical reference volume provided by an embodiment of the present disclosure;
[0022] Figure 4 A schematic diagram of a process for determining the volume of a device provided by an embodiment of the present disclosure;
[0023] Figure 5 Another schematic diagram of a process for determining the volume of a device provided by an embodiment of the present disclosure;
[0024] Figure 6 A schematic diagram of a method for determining a historical reference volume provided by an embodiment of the present disclosure;
[0025] Figure 7 A schematic diagram of a method for updating a historical reference volume provided by an embodiment of the present disclosure;
[0026] Figure 8 A schematic diagram of a volume coverage process provided by an embodiment of the present disclosure;
[0027] Figure 9 A schematic diagram of the structure of a volume adjustment device provided by an embodiment of the present disclosure;
[0028] Figure 10 Another schematic diagram of the structure of a volume adjustment device provided by an embodiment of the present disclosure;
[0029] Figure 11 A schematic diagram of the structure of a terminal device provided by an embodiment of the present disclosure. Detailed implementation manners
[0030] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0031] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0032] For example, when responding to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as a terminal device, an application program, a server, or a storage medium that performs the operations of the technical solutions of the present disclosure according to the prompt message.
[0033] As an optional but non-limiting implementation, in response to receiving an active request from a user, the way to send a prompt message to the user can be, for example, in the form of a pop-up window, and the prompt message can be presented in text in the pop-up window. In addition, the pop-up window can also carry selection controls for the user to choose "agree" or "disagree" to provide personal information to the terminal device.
[0034] It can be understood that the above notification and the process of obtaining user authorization are only illustrative and do not constitute a limitation on the implementation manners of the present disclosure. Other manners that comply with relevant laws and regulations can also be applied to the implementation manners of the present disclosure.
[0035] For the convenience of understanding, the concepts related to the embodiments of the present disclosure will be described below.
[0036] Terminal device: It is a device with wireless transceiver functions. The terminal device can be deployed on land, including indoor or outdoor, handheld, wearable or vehicle-mounted. The terminal device can be a mobile phone, a tablet computer (Pad), a computer with wireless transceiver functions, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a vehicle-mounted terminal device, a wireless terminal in self-driving, a wireless terminal device in remote medical, a wireless terminal device in smart grid, a wireless terminal device in transportation safety, a wireless terminal device in smart city, a wireless terminal device in smart home, a wearable terminal device, etc. The terminal device involved in the embodiments of the present disclosure can also be referred to as a terminal, a user equipment (UE), an access terminal device, a vehicle-mounted terminal, an industrial control terminal, a UE unit, a UE station, a mobile station, a mobile unit, a remote station, a remote terminal device, a mobile device, a UE terminal device, a wireless communication device, a UE agent or a UE device, etc. The terminal device can also be fixed or mobile.
[0037] In the related art, after a terminal device starts a video or audio application, the terminal device can play audio through a speaker. For example, after the terminal device starts a video application, the application can start playing a video, and the audio of the video can be played based on the speaker of the terminal device. Currently, in order to intelligently set the volume of the terminal device, the terminal device can determine the volume when the application is started this time as the volume when the application was exited last time. For example, if the volume when the terminal device exited the application last time was 40%, then the volume when the terminal device starts the application this time can also be 40%. When the volume is relatively large, the terminal device can adjust the volume to a preset fixed volume. For example, if the device volume when the terminal device starts the application is 100%, and this device volume is greater than the preset fixed volume (volume 80%), therefore, the terminal device can adjust the device volume from 100% to 80%. In this way, not only can the user experience be improved, but also the volume noise caused by a large volume can be avoided. However, the terminal device can only adjust the volume to a fixed volume or the volume when the application was exited last time, thereby resulting in a relatively low flexibility in volume adjustment of the terminal device.
[0038] To solve the technical problems in the related art, an embodiment of the present disclosure provides a volume adjustment method. When an application is started, the terminal device can obtain the historical reference volumes of the application at multiple time periods, and obtain the current time and the current volume. The terminal device can determine the target time period in which the current time is located among the multiple time periods, and determine the device volume when the application is started according to the historical reference volume and the current volume of the target time period. In this way, since the historical reference volume is determined based on the historical volume information of the application, the accuracy of the device volume determined by the terminal device when the application is started is relatively high. Moreover, the terminal device can flexibly adjust the device volume when the application is started according to the historical reference volume and the current volume. Therefore, the flexibility of volume adjustment of the terminal device can be improved.
[0039] Next, in combination with Figure 1 , the application scenario of the embodiment of the present disclosure will be described.
[0040] Figure 1 FIG. is a schematic diagram of an application scenario provided by an embodiment of the present disclosure. Please refer to Figure 1, including: a terminal device. Among them, the display page of the terminal device may include a video application. The current device volume of the terminal device is 70% of the volume. When the terminal device starts the video application, the terminal device can obtain the historical reference volume of the corresponding time period at the current moment, and adjust the volume of the terminal device from 70% to 30% according to the current volume and the historical reference volume. After the terminal device starts the video application, the terminal device can play the video in the video application, and the volume of the video is 30% of the volume. In this way, the terminal device can flexibly and accurately determine the device volume when starting the application program according to the historical volume information of the application program, improving the flexibility and accuracy of the volume adjustment of the terminal device.
[0041] The following uses specific embodiments to elaborate in detail on the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems. These several specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The following will describe the embodiments of the present disclosure in conjunction with the accompanying drawings.
[0042] Figure 2 It is a schematic flowchart of a volume adjustment method provided by an embodiment of the present disclosure. Please refer to Figure 2 , the method may include:
[0043] S201. When the application program starts, obtain the historical reference volume of the application program in multiple time periods.
[0044] The execution subject of the embodiment of the present disclosure may be a terminal device or a volume adjustment device provided in the terminal device. Among them, the volume adjustment device may be implemented according to software, or the volume adjustment device may be implemented by a combination of software and hardware. The embodiment of the present disclosure does not limit this.
[0045] Among them, the application program may be any program with audio playback. For example, the application program may be a music application program, a video application program, etc. The embodiment of the present disclosure does not limit this.
[0046] Among them, the multiple time periods may be multiple time periods within a day. For example, the multiple time periods may include the time period from 0:00 to 1:00, the time period from 1:00 to 2:00, the time period from 2:00 to 3:00,..., the time period from 23:00 to 0:00. For example, the multiple time periods may include the time period from 0:00 to 6:00, the time period from 6:00 to 12:00, the time period from 12:00 to 18:00, and the time period from 18:00 to 0:00.
[0047] It should be noted that the multiple time periods may also be any time periods. The embodiment of the present disclosure does not limit this.
[0048] Among them, the historical reference volume is determined based on the historical volume information of the application. For example, the historical reference volume for time period 1 can be determined based on the volume information of the application during the historical time period 1, and the historical reference volume for time period 2 can be determined based on the volume information of the application during the historical time period 2. For example, if time period 1 is the time period from 11:00 to 12:00 and time period 2 is the time period from 12:00 to 13:00, then the historical reference volume for time period 1 can be determined based on the volume information when the terminal device uses the application during the time period from 11:00 to 12:00 every day within the past 14 days, and the historical reference volume for time period 2 can be determined based on the volume information when the terminal device uses the application during the time period from 12:00 to 13:00 every day within the past 14 days.
[0049] It should be noted that the historical reference volume can also be determined based on the historical volume information of the past 21 days, the past 28 days, and the past two months. The embodiments of the present disclosure do not limit this.
[0050] Optionally, the historical volume information may include the number of videos played by the application and the volume of each video played by the application. For example, if the terminal device plays 100 videos during the time period from 11:00 to 12:00 in the past 1 day, and the playing volume of each video is 50%, then the historical volume information may include: the video playback volume of 100 and the average playing volume of 50%.
[0051] It should be noted that the terminal device can obtain the historical volume information according to any feasible implementation manner, and the embodiments of the present disclosure do not limit this.
[0052] Next, in combination with Figure 3 , the historical reference volume will be described.
[0053] Figure 3 FIG. is a schematic diagram of a historical reference volume provided by an embodiment of the present disclosure. Please refer to Figure 3 , including: time period A, time period B, time period C, and time period D. Among them, the historical number of video plays in time period A is 100, and the historical reference volume is 0.3 (the average playing volume of 100 videos); the historical number of video plays in time period B is 20, and the historical reference volume is 0.4 (the average playing volume of 20 videos); the historical number of video plays in time period C is 0, and the historical reference volume is -1 (no volume information); the historical number of video plays in time period D is 60, and the historical reference volume is 0.7 (the average playing volume of 60 videos).
[0054] S202. Obtain the current time and the current volume.
[0055] Among them, the current moment can be the moment when the user performs a touch operation on the application. For example, if the user clicks on the application in the terminal device at moment 1, the terminal device can determine that the current moment is moment 1. If the user clicks on the application in the terminal device at moment 2, the terminal device can determine that the current moment is moment 2.
[0056] It should be noted that the terminal device can obtain the current moment according to any feasible implementation manner, and the embodiments of the present disclosure do not limit this.
[0057] Among them, the current volume can be the device volume of the terminal device at present. For example, if the device volume of the terminal device is 50% when the application is started, the terminal device can determine that the current volume is 50%. If the device volume of the terminal device is 70% when the application is started, the terminal device can determine that the current volume is 70%.
[0058] It should be noted that the terminal device can obtain the current volume according to any feasible implementation manner, and the embodiments of the present disclosure do not limit this.
[0059] S203. Determine the device volume when the application is started according to the historical reference volumes of multiple time periods, the current moment, and the current volume.
[0060] Among them, the terminal device can determine the device volume when the application is started according to the following feasible implementation manner: determine the target time period where the current moment is located among multiple time periods, and determine the device volume when the application is started according to the historical reference volume and the current volume of the target time period. In this way, the terminal device can adjust the current volume of the terminal device according to the historical reference volume of this time period, improving the flexibility of the volume adjustment of the terminal device. And since the historical reference volume of this time period is determined according to the historical volume information of this time period, the accuracy of the historical reference volume is relatively high, and the terminal device can accurately adjust the volume, improving the accuracy of the volume adjustment.
[0061] Among them, the target time period can be the time period where the current moment is located. For example, multiple time periods include the time period from 0:00 to 6:00, the time period from 6:00 to 12:00, the time period from 12:00 to 18:00, and the time period from 18:00 to 0:00. If the current moment is 11:00, the terminal device can determine that the target time period is the time period from 6:00 to 12:00. If the current moment is 14:00, the terminal device can determine that the target time period is the time period from 12:00 to 18:00.
[0062] Among them, when the terminal device determines the device volume when the application is started according to the historical reference volume and the current volume of the target time period, there are the following two situations:
[0063] Situation 1: The historical reference volume of the target time period is less than the current volume.
[0064] If the historical reference volume in the target period is less than the current volume, the terminal device can determine the historical reference volume as the device volume when the application is launched. For example, if the historical reference volume in the target period is less than the current volume, it means that during this period of the historical period, the volume at which the terminal device launches the application is smaller than the current volume. Therefore, the terminal device can adjust the current volume to the historical reference volume, so that the device volume can match the historical volume information, improving the accuracy of volume adjustment and enhancing the user experience.
[0065] Next, in combination with Figure 4 , the process of determining the device volume when the application is launched in this case will be described.
[0066] Figure 4 FIG. is a schematic diagram of a process for determining the device volume provided by an embodiment of the present disclosure. Please refer to Figure 4 , including: a terminal device. Among them, the display page of the terminal device may include a video application. The current volume of the terminal device is 70% of the volume. When the terminal device launches the video application, the terminal device can determine that the historical reference volume in the period where the current moment is located is 50%. Since the historical reference volume is less than the current volume, the terminal device can determine that the device volume when the video application is launched is 50%. After the video application is launched, the terminal device can play the video according to the volume of 50%. In this way, the accuracy of volume adjustment can be improved.
[0067] Case 2: The historical reference volume in the target period is greater than or equal to the current volume.
[0068] If the historical reference volume in the target period is greater than or equal to the current volume, the terminal device can determine the current volume as the device volume when the application is launched. For example, if the historical reference volume in the target period is greater than or equal to the current volume, it means that during this period of the historical period, the volume at which the terminal device launches the application is greater than the current volume. However, since the terminal device cannot determine the current environmental information, the terminal device can maintain the current device volume. In this way, the user can adjust the volume of the terminal device according to the environmental information in real time, improving the flexibility of volume adjustment.
[0069] Next, in combination with Figure 5 , the process of determining the device volume when the application is launched in this case will be described.
[0070] Figure 5 FIG. is another schematic diagram of a process for determining the device volume provided by an embodiment of the present disclosure. Please refer to Figure 5, including: a terminal device. Among them, the display page of the terminal device may include a video application. The current volume of the terminal device is 30% of the volume. When the terminal device starts the video application, the terminal device can determine that the historical reference volume of the period where the current moment is located is 70%. Since the historical reference volume is greater than the current volume, the terminal device can determine that the device volume when the video application starts is 30%. After the video application starts, the terminal device can play the video according to the volume of 30%.
[0071] It should be noted that, in the actual application process, when the historical reference volume of the target period is greater than the current volume, the terminal device may also determine the historical reference volume as the device volume when the application starts. The embodiments of the present disclosure do not limit this.
[0072] Optionally, after the terminal device determines the device volume when the application starts, the above method further includes: playing the video in the application according to the device volume when the application starts. In this way, in the cold start phase of the application, the terminal device can accurately and flexibly determine the device volume when the application starts, and then play the video in the application according to the device volume.
[0073] The embodiments of the present disclosure provide a volume adjustment method. When the terminal device starts an application, the terminal device can obtain the historical reference volumes of the application in multiple periods, and obtain the current moment and the current volume. The terminal device can determine the target period where the current moment is located among the multiple periods. If the historical reference volume of the target period is less than the current volume, the historical reference volume is determined as the device volume when the application starts. If the historical reference volume of the target period is greater than or equal to the current volume, the current volume is determined as the device volume when the application starts. In this way, since the historical reference volume is determined based on the historical volume information of the application, the terminal device can accurately determine the device volume when the application starts, and the terminal device can flexibly adjust the device volume when the terminal device starts the application according to the historical reference volume and the current volume. Therefore, the flexibility of the volume adjustment of the terminal device can be improved.
[0074] In Figure 2 Based on the embodiments shown, before obtaining the historical reference volumes of the application in multiple periods, the above volume adjustment method further includes a method for determining the historical reference volume. Next, in combination with Figure 6 , the method for determining the historical reference volume will be described.
[0075] Figure 6 It is a schematic diagram of a method for determining the historical reference volume provided by the embodiments of the present disclosure. Please refer to Figure 6 , the method flow includes:
[0076] S601. Obtain the number of valid videos played by the application in each time period within a preset historical time period and the volume of each valid video.
[0077] Optionally, the preset historical time period can be the past 14 days, the past 28 days, etc., and the embodiments of the present disclosure do not limit this.
[0078] Among them, the valid videos include at least one of the following: videos with a viewing duration greater than a preset threshold, videos with the device volume not adjusted during video playback, and videos with audio played based on the speaker.
[0079] For example, the preset threshold can be 2 seconds (the embodiments of the present disclosure do not limit this). If the viewing duration of a video is 10 seconds, the terminal device can determine that the video is a valid video. If the viewing duration of a video is 0.5 seconds, the terminal device can determine that the video is an invalid video.
[0080] For example, if the device volume of the terminal device does not change during video playback, the terminal device can determine that the video is a valid video. If the device volume of the terminal device changes during video playback, the terminal device can determine that the video is an invalid video.
[0081] For example, if the audio of the video is played based on the speaker of the terminal device during video playback, the terminal device can determine that the video is a valid video. If the audio of the video is played based on a non-speaker (e.g., based on headphones) during video playback, the terminal device can determine that the video is an invalid video.
[0082] It should be noted that the terminal device can also determine valid videos according to any feasible implementation manner, and the embodiments of the present disclosure do not limit this.
[0083] Optionally, the terminal device may obtain the number of valid videos played by the application program in each time period and the volume of each valid video within a preset historical time period. For example, the preset historical time period is 2 days, and the multiple time periods include the time period from 0:00 to 8:00, the time period from 8:00 to 16:00, and the time period from 16:00 to 0:00. If within the first day in the past, in the time period from 0:00 to 8:00, the application program plays 0 valid videos, in the time period from 8:00 to 16:00, the application program plays 100 valid videos, and the volume of each valid video is 70%, in the time period from 16:00 to 0:00, the application program plays 40 valid videos, and the volume of each valid video is 30%, and within the second day in the past, in the time period from 0:00 to 8:00, the application program plays 10 valid videos, and the volume of each valid video is 20%, in the time period from 8:00 to 16:00, the application program plays 70 valid videos, and the volume of each valid video is 70%, in the time period from 16:00 to 0:00, the application program plays 60 valid videos, and the volume of each valid video is 30%, then the terminal device may determine that within the preset historical time period, in the time period from 0:00 to 8:00, the application program plays 10 valid videos, and the volume of each valid video is 20%, in the time period from 8:00 to 16:00, the application program plays 170 valid videos, and the volume of each valid video is 70%, in the time period from 16:00 to 0:00, the application program plays 100 valid videos, and the volume of each valid video is 30%.
[0084] It should be noted that the terminal device may obtain the number of valid videos played by the application program in each time period and the volume of each valid video from the database. The embodiments of the present disclosure do not limit this.
[0085] S602. For any one time period, determine the historical reference volume of the time period according to the number of valid videos and the volume of each valid video.
[0086] Among them, after the terminal device obtains the number of valid videos in the time period and the volume of each valid video, it may calculate the average volume of the valid videos in the time period, and then determine the average volume as the historical reference volume of the time period. For example, the terminal device determines that the time period includes 100 valid videos, among which, the volume of 30 valid videos is 40%, and the volume of 70 valid videos is 70%, then the terminal device may determine that the average volume of the valid videos is 61%, and the terminal device may determine that the historical reference volume corresponding to the time period is 61%.
[0087] It should be noted that the terminal device can also store the number of valid videos corresponding to this time period. In this way, the terminal device can store the historical reference volumes of multiple time periods and the number of valid videos corresponding to each time period. When the application is started, the terminal device can quickly obtain the multiple historical reference volumes corresponding to multiple time periods, and then can quickly determine the device volume when the application is started. Moreover, the terminal device can update the historical reference volume according to the video information during the use of the application this time.
[0088] An embodiment of the present disclosure provides a method for determining a historical reference volume, which includes obtaining the number of valid videos played by an application in each time period within a preset historical time period and the volume of each valid video. For any time period, according to the number of valid videos and the volume of each valid video, the historical reference volume of the time period is determined. In this way, the terminal device can store the historical reference volume corresponding to each time period. During the cold start phase of the application, the terminal device can quickly obtain the historical reference volume, and then can quickly determine the device volume when the application is started, improving the adjustment efficiency of the device volume.
[0089] Based on any of the above embodiments, the historical reference volume may include a first historical reference volume and a second historical reference volume. After the terminal device determines the device volume when the application is started, the above method further includes a method for updating the first historical reference volume and the second historical reference volume of the target time period. Next, in combination with Figure 7 , the method for the terminal device to update the historical reference volume will be described.
[0090] Figure 7 It is a schematic diagram of a method for updating a historical reference volume provided by an embodiment of the present disclosure. Please refer to Figure 7 , including:
[0091] S701. When the application is closed, obtain the first number of valid videos played during the use of the application this time and the first volume of each valid video.
[0092] Among them, the first number may be the number of valid videos played during the use of the application this time. After the terminal device starts the application, the terminal device plays 100 valid videos, among which the volume of 30 valid videos is 50%, and the volume of 70 valid videos is 70%. After the terminal device closes the application, the first number of valid videos is 100, among which the first volume of 30 valid videos is 50%, and the first volume of 70 valid videos is 70%.
[0093] It should be noted that the terminal device can determine the first number and the first volume according to any feasible implementation manner, and the embodiments of the present disclosure do not limit this.
[0094] S702. Obtain the target duration between the current moment and the target moment.
[0095] Among them, the historical reference volume may include a first historical reference volume and a second historical reference volume.
[0096] Optionally, the first historical reference volume is determined based on the historical volume information of the application program within the first historical period. For example, the first historical reference volume is the historical reference volume determined based on the number of valid videos in each period and the volume of each valid video within the first historical period. For example, for the target period, if the first historical period is 28 days, the first historical reference volume may be the average volume calculated based on the number of valid videos corresponding to the target period within 28 days and the volume of each valid video.
[0097] Optionally, the second historical reference volume is determined based on the historical volume information of the application program within the second historical period. For example, the second historical reference volume is the historical reference volume determined based on the number of valid videos in each period and the volume of each valid video within the second historical period. For example, for the target period, if the second historical period is 14 days, the second historical reference volume may be the average volume calculated based on the number of valid videos corresponding to the target period within 14 days and the volume of each valid video.
[0098] Among them, the first historical period is longer than the second historical period. For example, the first historical period may be 28 days, and the second historical period may be 14 days. It should be noted that the first historical period and the second historical period may also be of any duration, and the embodiments of the present disclosure do not limit this. In this way, the second historical reference volume is determined based on the historical volume information within a relatively short historical duration, and the first historical reference volume is determined based on the historical volume information within a relatively long historical duration. Therefore, the terminal device can periodically overwrite the first historical reference volume with the second historical reference volume, so as to ensure the accuracy of the first historical reference volume.
[0099] It should be noted that the terminal device can determine the device volume when the application program is started according to the first historical reference volume and the current volume.
[0100] Among them, the target moment is the moment when the second historical reference volume last overwrote the first historical reference volume. For example, if the second historical reference volume overwrote the first historical reference volume 14 days ago, the terminal device can determine that the target moment is 14 days ago. If the second historical reference volume overwrote the first historical reference volume 28 days ago, the terminal device can determine that the target moment is 28 days ago.
[0101] Among them, the target duration can be the duration between the current moment and the target moment. For example, if the target moment is 14 days ago, the terminal device can determine that the target duration is 14 days; if the target moment is 28 days ago, the terminal device can determine that the target duration is 28 days.
[0102] Next, in conjunction with Figure 8 , the process of the second historical reference volume covering the first historical reference volume will be described.
[0103] Figure 8 FIG. is a schematic diagram of a volume coverage process provided by an embodiment of the present disclosure. Please refer to Figure 8 , including: a timeline. Among them, the timeline includes a first historical reference volume, a second historical reference volume, and the current moment. Among them, the first historical reference volume is determined according to the historical volume information within a relatively long historical period, and the second historical reference volume is determined according to the historical volume information within a relatively short historical period.
[0104] Please refer to Figure 8 , when the historical period corresponding to the first historical reference volume is greater than a preset threshold, the terminal device ( Figure 8 not shown) can cover the statistically obtained second historical reference volume with the first historical reference volume, re - count the second historical reference volume, and update the first historical reference volume to the historical reference volume determined based on the most recent historical volume information. In this way, since the second historical reference volume can be stored in the terminal device, the validity of the first historical reference volume (periodically updated to the latest data) can be ensured, thereby improving the accuracy of volume adjustment.
[0105] S703. Update the first historical reference volume and the second historical reference volume of the target period according to the target duration, the first quantity, and the first volume.
[0106] Optionally, when the terminal device updates the first historical reference volume and the second historical reference volume of the target period according to the target duration, the first quantity, and the first volume, there are the following three situations:
[0107] Situation 1: The target duration is less than the first threshold.
[0108] If the target duration is less than the first threshold, the terminal device can update the first historical reference volume according to the first quantity and the first volume. For example, if the target duration is less than the first threshold, it means that the data of the first historical reference volume is relatively new. The terminal device does not need to cover the first historical reference volume, and the terminal device also does not need to count the second historical reference volume. The terminal device can update the first historical reference volume according to the first quantity, the first volume, as well as the number of videos and the average volume corresponding to the first historical reference volume.
[0109] For example, the first historical reference volume for the target period is: number of valid videos: 1000, historical reference volume: 40%. If the first quantity is 50 and the first volume for each video is 70%, then the terminal device can update the first reference volume to: number of valid videos: 1050, historical reference volume: 41.4%.
[0110] Case 2: The target duration is greater than or equal to the first threshold and less than the second threshold.
[0111] If the target duration is greater than or equal to the first threshold and less than the second threshold, then the terminal device can update the first historical reference volume and update the second historical reference volume according to the first quantity and the first volume. For example, if the target duration is greater than or equal to the first threshold and less than the second threshold, it means that the data of the first reference volume is still relatively new. However, the terminal device needs to start counting the data of the second reference volume in order to overwrite the data of the first reference volume. Therefore, the terminal device can update the first historical reference volume according to the first quantity and the first volume, as well as the number of videos and the average volume corresponding to the first historical reference volume, and update the second historical reference volume according to the first quantity and the first volume, as well as the number of videos and the average volume corresponding to the second historical reference volume.
[0112] For example, the first historical reference volume for the target period is: number of valid videos: 1000, historical reference volume: 40%, and the second historical reference volume is: number of valid videos 700, historical reference volume: 50%. If the first quantity is 100 and the first volume for each video is 90%, then the terminal device can update the first reference volume to: number of valid videos: 1100, historical reference volume: 44.5%, and the terminal device can update the second reference volume to: number of valid videos: 800, historical reference volume: 55%.
[0113] Case 3: The target duration is greater than or equal to the second threshold.
[0114] If the target duration is greater than or equal to the second threshold, then the terminal device can update the second historical reference volume and overwrite the first historical reference volume with the second historical reference volume. For example, if the target duration is greater than or equal to the second threshold, it means that the data reliability of the first historical reference volume is relatively low (too long time). Therefore, the terminal device can update the second historical reference volume according to the first quantity and the first volume, and overwrite the first historical reference volume with the second historical reference volume, thereby ensuring the reliability of the first historical reference volume.
[0115] For example, the first historical reference volume in the target period is: the number of valid videos: 1500, the historical reference volume: 40%, and the second historical reference volume is: the number of valid videos 900, the historical reference volume: 50%. If the first quantity is 100 and the first volume of each video is 90%, the terminal device can update the second reference volume to: the number of valid videos: 1000, the historical reference volume: 54%, and then determine the new first historical reference volume to be: the number of valid videos: 1000, the historical reference volume: 54% (the currently counted second historical reference volume can be deleted and a new second historical reference volume can be counted).
[0116] It should be noted that in the actual application process, the terminal device can create a file for the application program. This file contains four arrays, and the length of the arrays can be 24 (24 periods). Among them, array 1 can store the number of valid videos in the first stage (within the first historical period), array 2 can store the average volume (historical reference volume) in the first stage, array 3 can store the number of valid videos in the second stage (within the second historical period), and array 4 can store the average volume (historical reference volume) in the second stage. In this way, the terminal device only needs to update the data in the arrays to update the first historical reference volume and the second historical reference volume, improving the processing efficiency.
[0117] The embodiment of the present disclosure provides a method for updating the historical reference volume. When the application program is closed, the terminal device obtains the first quantity of the valid videos played during the current use of the application program and the first volume of each valid video, and obtains the target duration between the current moment and the target moment. If the target duration is less than the first threshold, the terminal device can update the first historical reference volume according to the first quantity and the first volume. If the target duration is greater than or equal to the first threshold and less than the second threshold, the terminal device can update the first historical reference volume and update the second historical reference volume according to the first quantity and the first volume. If the target duration is greater than or equal to the second threshold, the terminal device can update the second historical reference volume and overwrite the first historical reference volume with the second historical reference volume. In this way, since the second historical reference volume can periodically overwrite the first historical reference volume, the reliability of the first historical reference volume is relatively high, and thus the accuracy of the volume adjustment of the terminal device can be improved.
[0118] Figure 9 This is a schematic structural diagram of a volume adjustment device provided by an embodiment of the present disclosure. Please refer to Figure 9 , the volume adjustment device 900 includes a first acquisition module 901, a second acquisition module 902, and a determination module 903, where:
[0119] The first acquisition module 901 is configured to acquire the historical reference volumes of the application at multiple time periods when the application is started, where the historical reference volumes are determined based on the historical volume information of the application;
[0120] The second acquisition module 902 is configured to acquire the current time and the current volume;
[0121] The determination module 903 is configured to determine the device volume when the application is started according to the historical reference volumes of the multiple time periods, the current time, and the current volume.
[0122] According to one or more embodiments of the present disclosure, the determination module 903 is specifically configured to:
[0123] Determine the target time period in which the current time is located among the multiple time periods;
[0124] Determine the device volume when the application is started according to the historical reference volume of the target time period and the current volume.
[0125] According to one or more embodiments of the present disclosure, the determination module 903 is specifically configured to:
[0126] If the historical reference volume of the target time period is less than the current volume, determine the historical reference volume as the device volume when the application is started;
[0127] If the historical reference volume of the target time period is greater than or equal to the current volume, determine the current volume as the device volume when the application is started.
[0128] The volume adjustment device provided by the embodiments of the present disclosure can be used to execute the technical solutions of the above method embodiments, and its implementation principles and technical effects are similar, which will not be elaborated herein.
[0129] Figure 10 For another structural schematic diagram of the volume adjustment device provided by the embodiments of the present disclosure. Please refer to Figure 10 , the volume adjustment device 900 further includes a third acquisition module 904, where the third acquisition module 904 is configured to:
[0130] Acquire the number of valid videos played by the application in each time period within a preset historical time period and the volume of each valid video;
[0131] For any one time period, determine the historical reference volume of the time period according to the number of valid videos and the volume of each valid video.
[0132] According to one or more embodiments of the present disclosure, the volume adjustment device 900 further includes a fourth acquisition module 905, and the fourth acquisition module 905 is configured to:
[0133] When the application is closed, obtain a first quantity of valid videos played during the current use of the application and a first volume of each valid video;
[0134] Obtain a target duration between the current moment and a target moment, where the target moment is the moment when the second historical reference volume last covered the first historical reference volume, the first historical reference volume is determined based on the historical volume information of the application within a first historical period, the second historical reference volume is determined based on the historical volume information of the application within a second historical period, and the first historical period is greater than the second historical period;
[0135] Update the first historical reference volume and the second historical reference volume of the target period according to the target duration, the first quantity, and the first volume.
[0136] According to one or more embodiments of the present disclosure, the fourth acquisition module 905 is specifically configured to:
[0137] If the target duration is less than a first threshold, update the first historical reference volume according to the first quantity and the first volume;
[0138] If the target duration is greater than or equal to the first threshold and less than a second threshold, update the first historical reference volume and the second historical reference volume according to the first quantity and the first volume;
[0139] If the target duration is greater than or equal to the second threshold, update the second historical reference volume and cover the first historical reference volume with the second historical reference volume.
[0140] According to one or more embodiments of the present disclosure, the valid videos include at least one of the following:
[0141] Videos with a viewing duration greater than a preset threshold;
[0142] Videos for which the device volume was not adjusted during video playback;
[0143] Videos with audio played through the speaker.
[0144] According to one or more embodiments of the present disclosure, the volume adjustment device 900 further includes a playback module 906, and the playback module 906 is configured to:
[0145] Play the video in the application according to the device volume when the application is launched.
[0146] The volume adjustment device provided by the embodiments of the present disclosure can be used to execute the technical solutions of the above method embodiments, and its implementation principles and technical effects are similar, which will not be elaborated here in this embodiment.
[0147] Figure 11 It is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure. Please refer to Figure 11 , which shows a schematic structural diagram of a terminal device 1100 suitable for implementing the embodiments of the present disclosure. Among them, the terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable media players (PMPs), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 11 The terminal device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.
[0148] As Figure 11 shown, the terminal device 1100 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 1101, which may execute various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage device 1108 into the random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the terminal device 1100 are also stored. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other through a bus 1104. The input / output (I / O) interface 1105 is also connected to the bus 1104.
[0149] Generally, the following devices may be connected to the I / O interface 1105: an input device 1106 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1109. The communication device 1109 may allow the terminal device 1100 to communicate with other devices wirelessly or wiredly to exchange data. AlthoughFigure 11 The terminal device 1100 is shown with various devices, but it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.
[0150] In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present disclosure includes a computer program product that includes a computer program carried on a computer-readable medium, and the computer program includes program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication device 1109, or installed from the storage device 1108, or installed from the ROM 1102. When the computer program is executed by the processing device 1101, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
[0151] It should be noted that the above-mentioned computer-readable medium in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. And in the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0152] The above-mentioned computer-readable medium can be included in the above-mentioned terminal device; or it can exist separately without being assembled into the terminal device.
[0153] The above computer-readable medium carries one or more programs, which, when executed by the terminal device, cause the terminal device to execute the method shown in the above embodiments.
[0154] An embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the methods that may be involved in the above embodiments are implemented.
[0155] An embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the methods that may be involved in the above embodiments.
[0156] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The above programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0157] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
[0158] The units involved in the embodiments of the present disclosure can be implemented in software or in hardware. Among them, the name of the unit does not constitute a limitation to the unit itself in some cases. For example, the first acquisition unit can also be described as "the unit for acquiring at least two Internet protocol addresses".
[0159] The functions described above in this article can be performed at least in part by one or more hardware logic components. For example, without limitation, the exemplary types of hardware logic components that can be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), and so on.
[0160] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0161] It should be noted that the modifiers "a" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly specified in the context, it should be understood as "one or more".
[0162] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.
[0163] It can be understood that the data involved in the technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the corresponding laws, regulations and related provisions. Data can include information, parameters, messages, etc., such as cut flow indication information.
[0164] In a first aspect, an embodiment of the present disclosure provides a volume adjustment method, and the volume adjustment method includes:
[0165] When the application starts, obtain the historical reference volume of the application in multiple time periods, where the historical reference volume is determined based on the historical volume information of the application;
[0166] Obtain the current time and the current volume;
[0167] Based on the historical reference volume of the multiple time periods, the current time, and the current volume, determine the device volume when the application starts.
[0168] According to one or more embodiments of the present disclosure, the determining the device volume when the application starts based on the historical reference volume of the multiple time periods, the current time, and the current volume includes:
[0169] Determine the target time period in the multiple time periods where the current time is located;
[0170] Based on the historical reference volume of the target time period and the current volume, determine the device volume when the application starts.
[0171] According to one or more embodiments of the present disclosure, the determining the device volume when the application starts based on the historical reference volume of the target time period and the current volume includes:
[0172] If the historical reference volume of the target time period is less than the current volume, then determine the historical reference volume as the device volume when the application starts;
[0173] If the historical reference volume of the target time period is greater than or equal to the current volume, then determine the current volume as the device volume when the application starts.
[0174] According to one or more embodiments of the present disclosure, before obtaining the historical reference volume of the application in multiple time periods, the method further includes:
[0175] Obtain the number of valid videos played by the application in each time period within a preset historical time period and the volume of each valid video;
[0176] For any one time period, based on the number of valid videos and the volume of each valid video, determine the historical reference volume of the time period.
[0177] According to one or more embodiments of the present disclosure, the historical reference volume includes a first historical reference volume and a second historical reference volume; after determining the device volume when the application starts, the method further includes:
[0178] When the application is closed, obtain the first quantity of valid videos played during the current use of the application and the first volume of each valid video;
[0179] Obtain the target duration between the current moment and the target moment, where the target moment is the moment when the second historical reference volume last covered the first historical reference volume. The first historical reference volume is determined based on the historical volume information of the application within the first historical period, and the second historical reference volume is determined based on the historical volume information of the application within the second historical period. The first historical period is greater than the second historical period;
[0180] Update the first historical reference volume and the second historical reference volume of the target period according to the target duration, the first quantity, and the first volume.
[0181] According to one or more embodiments of the present disclosure, the updating the first historical reference volume and the second historical reference volume of the target period according to the target duration, the first quantity, and the first volume includes:
[0182] If the target duration is less than the first threshold, update the first historical reference volume according to the first quantity and the first volume;
[0183] If the target duration is greater than or equal to the first threshold and less than the second threshold, update the first historical reference volume and the second historical reference volume according to the first quantity and the first volume;
[0184] If the target duration is greater than or equal to the second threshold, update the second historical reference volume and cover the first historical reference volume with the second historical reference volume.
[0185] According to one or more embodiments of the present disclosure, the valid videos include at least one of the following:
[0186] Videos with a viewing duration greater than a preset threshold;
[0187] Videos whose device volume is not adjusted during video playback;
[0188] Videos with audio played based on a speaker.
[0189] According to one or more embodiments of the present disclosure, after determining the device volume when the application is started, the method further includes:
[0190] Play the videos in the application according to the device volume when the application is started.
[0191] Second aspect, embodiments of the present disclosure provide a volume adjustment device, which includes a first acquisition module, a second acquisition module, and a determination module, where:
[0192] The first acquisition module is configured to, when an application starts, acquire historical reference volumes of the application in multiple time periods, where the historical reference volumes are determined based on historical volume information of the application;
[0193] The second acquisition module is configured to acquire the current time and the current volume;
[0194] The determination module is configured to determine the device volume when the application starts according to the historical reference volumes in the multiple time periods, the current time, and the current volume.
[0195] According to one or more embodiments of the present disclosure, the determination module is specifically configured to:
[0196] Determine a target time period in the multiple time periods where the current time is located;
[0197] Determine the device volume when the application starts according to the historical reference volume of the target time period and the current volume.
[0198] According to one or more embodiments of the present disclosure, the determination module is specifically configured to:
[0199] If the historical reference volume of the target time period is less than the current volume, determine the historical reference volume as the device volume when the application starts;
[0200] If the historical reference volume of the target time period is greater than or equal to the current volume, determine the current volume as the device volume when the application starts.
[0201] According to one or more embodiments of the present disclosure, the volume adjustment device further includes a third acquisition module, where the third acquisition module is configured to:
[0202] Acquire the number of valid videos played by the application in each time period within a preset historical time period and the volume of each valid video;
[0203] For any one time period, determine the historical reference volume of the time period according to the number of valid videos and the volume of each valid video.
[0204] According to one or more embodiments of the present disclosure, the volume adjustment device further includes a fourth acquisition module, and the fourth acquisition module is configured to:
[0205] When the application is closed, obtain a first quantity of valid videos played during the current use of the application and a first volume of each valid video;
[0206] Obtain a target duration between the current moment and a target moment, where the target moment is the moment when the second historical reference volume last covered the first historical reference volume, the first historical reference volume is determined based on historical volume information of the application during a first historical period, the second historical reference volume is determined based on historical volume information of the application during a second historical period, and the first historical period is greater than the second historical period;
[0207] Update the first historical reference volume and the second historical reference volume of the target period according to the target duration, the first quantity, and the first volume.
[0208] According to one or more embodiments of the present disclosure, the fourth acquisition module is specifically configured to:
[0209] If the target duration is less than a first threshold, update the first historical reference volume according to the first quantity and the first volume;
[0210] If the target duration is greater than or equal to the first threshold and less than a second threshold, update the first historical reference volume and the second historical reference volume according to the first quantity and the first volume;
[0211] If the target duration is greater than or equal to the second threshold, update the second historical reference volume and cover the first historical reference volume with the second historical reference volume.
[0212] According to one or more embodiments of the present disclosure, the valid video includes at least one of the following:
[0213] A video with a viewing duration greater than a preset threshold;
[0214] A video in which the device volume is not adjusted during video playback;
[0215] A video with audio played through a speaker.
[0216] According to one or more embodiments of the present disclosure, the volume adjustment device further includes a playback module, and the playback module is used to:
[0217] Play a video in the application according to the device volume when the application is started.
[0218] In a third aspect, an embodiment of the present disclosure provides a terminal device including: a processor and a memory;
[0219] The memory stores computer-executable instructions;
[0220] The processor executes the computer-executable instructions stored in the memory, such that the at least one processor executes the volume adjustment method as described in the first aspect above and various possible aspects related to the first aspect.
[0221] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the volume adjustment method as described in the first aspect above and various possible aspects related to the first aspect.
[0222] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.
[0223] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although a number of specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments. Although the subject matter has been described in language specific to structural features and / or methodological acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A volume adjustment method, characterized in that, Including: When the application starts, obtain the historical reference volumes of the application at multiple time periods, where the historical reference volumes are determined based on the historical volume information of the application; Obtain the current time and the current volume; Determine the device volume when the application starts according to the historical reference volumes of the multiple time periods, the current time, and the current volume.
2. The method according to claim 1, characterized in that, The determining the device volume when the application starts according to the historical reference volumes of the multiple time periods, the current time, and the current volume includes: Determine the target time period in the multiple time periods where the current time is located; Determine the device volume when the application starts according to the historical reference volume of the target time period and the current volume.
3. The method according to claim 2, wherein The determining the device volume when the application starts according to the historical reference volume of the target time period and the current volume includes: If the historical reference volume of the target time period is less than the current volume, determine the historical reference volume as the device volume when the application starts; If the historical reference volume of the target time period is greater than or equal to the current volume, determine the current volume as the device volume when the application starts.
4. The method according to any one of claims 1-3, characterized in that, Before obtaining the historical reference volumes of the application at multiple time periods, the method further includes: Obtain the number of valid videos played by the application in each time period within a preset historical time period and the volume of each valid video; For any one time period, determine the historical reference volume of the time period according to the number of valid videos and the volume of each valid video.
5. The method according to claim 4, characterized in that The historical reference volume includes a first historical reference volume and a second historical reference volume; after determining the device volume when the application starts, the method further includes: When the application is closed, obtain the first number of valid videos played during the current use of the application and the first volume of each valid video; Obtain the target duration between the current time and the target time, where the target time is the time when the second historical reference volume last covered the first historical reference volume, the first historical reference volume is determined based on the historical volume information of the application within the first historical time period, the second historical reference volume is determined based on the historical volume information of the application within the second historical time period, and the first historical time period is greater than the second historical time period; Update the first historical reference volume and the second historical reference volume of the target time period according to the target duration, the first number, and the first volume.
6. The method according to claim 5, wherein The updating the first historical reference volume and the second historical reference volume of the target time period according to the target duration, the first number, and the first volume includes: If the target duration is less than the first threshold, update the first historical reference volume according to the first number and the first volume; If the target duration is greater than or equal to the first threshold and less than the second threshold, update the first historical reference volume and update the second historical reference volume according to the first number and the first volume; If the target duration is greater than or equal to the second threshold, update the second historical reference volume and overwrite the first historical reference volume with the second historical reference volume.
7. The method according to claim 4, wherein The valid videos include at least one of the following: Videos with a viewing duration greater than a preset threshold; Videos in which the device volume is not adjusted during video playback; Videos with audio played through speakers.
8. The method according to any one of claims 1-4, characterized in that, After determining the device volume when the application is launched, the method further includes: Play the video in the application according to the device volume when the application is launched.
9. A volume adjustment device, characterized in that, It includes a first acquisition module, a second acquisition module and a determination module, wherein: The first acquisition module is configured to acquire the historical reference volumes of the application at multiple time periods when the application is launched, and the historical reference volumes are determined based on the historical volume information of the application; The second acquisition module is configured to acquire the current time and the current volume; The determination module is configured to determine the device volume when the application is launched according to the historical reference volumes at the multiple time periods, the current time and the current volume.
10. A terminal device, characterized in that, It includes: A processor and a memory; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory, so that the processor executes the volume adjustment method according to any one of claims 1-8.
11. A computer-readable storage medium, characterized in that, Computer execution instructions are stored in the computer-readable storage medium, and when the processor executes the computer execution instructions, the volume adjustment method according to any one of claims 1-8 is implemented.