Volume control method and related device
By detecting user input and obtaining decision factors and status in the terminal, the volume playback mode is adaptively determined, which solves the problem of unreasonable audio and video playback volume control in the existing technology, and improves user experience and convenience of volume adjustment.
Patent Information
- Application Number
- PCT/CN2024/082768
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-22
- Filing Date
- 2024-03-20
- Publication Date
- 2024-09-26
AI Technical Summary
The existing technology makes it difficult to reasonably control the volume during audio and video playback, resulting in poor user experience, which may disturb others or cause users to miss important audio and video.
The terminal detects user input operations and obtains the decision factors and current status set by the user, and adaptively determines the volume playback mode, including silent playback mode, media volume playback mode and silent countdown mode, to reasonably control the volume of video playback.
It improves the user experience, avoids the impact of undesirable sudden volume expansion, and reduces the tedious operation of users manually adjusting the volume.
Smart Images

Figure CN2024082768_26092024_PF_FP
Abstract
Description
Volume control method and related device
[0001] This application claims priority to the Chinese patent application with application number 202310319822.5 filed with the State Intellectual Property Office of China on March 22, 2023, and priority to the Chinese patent application with the invention name “A volume control method and related device”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of electronic technology, and in particular to a volume control method and related devices. Background Art
[0003] Currently, in some cases, the phone automatically plays audio or video (such as a video) without detecting an active user input. If the phone plays the audio or video at the current system volume, it may disturb the user and others nearby, resulting in a poor user experience. If the phone plays the audio or video silently, the user may miss the audio or video, and may be required to manually adjust the volume when the user intends to hear the audio or video, which is cumbersome for the user.
[0004] Therefore, how to reasonably control the volume during audio and video playback and improve user experience remains to be studied.
[0005] Summary of the Invention
[0006] This application provides a volume control method and related devices, which can reasonably control the volume during video playback and effectively improve the user experience.
[0007] In a first aspect, the present application provides a volume control method, including: a first application of a terminal detects a first input operation, and the first input operation is used to trigger the first application to play a first video; the terminal obtains at least one decision factor set by the user, and the current state of the terminal; the terminal determines a volume playback mode based on the at least one decision factor and the current state; when the decision result of the volume playback mode indicates a first volume playback mode, the first application plays the first video in a silent countdown mode according to the first volume playback mode; the first volume playback mode includes one of the following modes: silent playback mode, media volume playback mode, and silent countdown mode.
[0008] By implementing the embodiments of the present application, before a terminal plays a video, it can adaptively determine the volume playback mode currently suitable for the video based on the various decision factors in the user settings recorded by the terminal and the current state of the terminal. This volume playback mode is consistent with the user's expectations. In this way, the volume playback mode during video playback can be adaptively controlled, thereby rationally controlling the volume of the video playback and effectively improving the user experience.
[0009] In one implementation, the at least one decision factor is a decision factor involved in the user setting of the volume playback mode, and the user setting indicates the volume playback mode corresponding to different states of the decision factor; the current state of the terminal includes the current state of the at least one decision factor. In implementing the embodiment of the present application, before the terminal plays a video, the volume playback mode of the video playback is adaptively determined based on the volume playback modes corresponding to different states of each decision factor in the user setting recorded by the terminal, as well as the current state of each decision factor of the terminal. This volume playback mode meets user expectations and effectively improves the user experience.
[0010] In one implementation, when the first volume playback mode is the silent playback mode, the first application plays the first video silently; when the first volume playback mode is the media volume playback mode, the first application plays the first video at the media volume; when the first volume playback mode is the silent countdown mode, during the first duration of the first video, the first video is played silently and a countdown prompt is displayed; after the first video is played to the first duration, the first video is played at the media volume. By implementing the embodiment of the present application, using the silent playback mode according to the user settings can avoid the adverse effects caused by the sudden loudspeaker volume in inappropriate scenarios; using the silent countdown mode according to the user settings provides the user with an opportunity to intervene and adjust by delaying the loudspeaker volume, and avoids the tedious operation of requiring the user to manually turn on the media volume compared to direct muting.
[0011] In one implementation, before the terminal obtains at least one decision factor set by the user and the current state of the terminal, it also includes: the terminal detects whether the first video is the first video played by the first application in an active state; the terminal obtains at least one decision factor set by the user and the current state of the terminal, including: when the first video is the above-mentioned first video played, the terminal obtains at least one decision factor set by the user and the current state of the terminal.
[0012] In one implementation, when the first video is not the first video played, the decision result of the volume playback mode indicates the volume playback mode of the last played video of the first application recorded by the terminal.
[0013] When playing a video for the first time, the user may not notice the current volume playback mode and media volume in time. Inappropriate volume playback mode and media volume will lead to a poor user experience. In the implementation of the embodiment of the present application, for the first time a video is played when the application is in an active state, the volume playback mode can be adaptively determined based on the user settings and the current state of each decision factor of the terminal. This volume playback mode fits the user's expectations and effectively improves the user experience. For videos that are not played for the first time, the volume playback mode of the user's previous played video can be used. This volume playback mode is also more in line with the user's current usage habits.
[0014] In one implementation, the first application being in the active state includes: starting the first application, switching the first application from a non-running state to a foreground running state; and switching the first application from a background running state to a foreground running state.
[0015] In one implementation, the at least one decision factor includes a first decision factor, and before a first application of the terminal detects a first input operation, the method further includes: displaying at least one state of the first decision factor on a first interface set by the user, the at least one state including the first state; detecting a second input operation acting on the first state of the first decision factor, the second input operation being used to set the volume playback mode corresponding to the first state to the first volume playback mode; and displaying the first volume playback mode corresponding to the first state of the first decision factor in response to the second input operation. In implementing this embodiment of the present application, a user can set the volume playback mode corresponding to different states of each decision factor.
[0016] In one implementation, the user settings belong to the system settings, and the first interface belongs to the interface for setting the volume playback mode in the system settings; or, the user settings belong to the application settings of the first application, and the first interface belongs to the interface for setting the volume playback mode in the application settings of the first application. In implementing the embodiment of the present application, the user can set the volume playback mode corresponding to each decision factor through the system settings, and can also set the volume playback mode corresponding to each decision factor through application settings on an application-by-application basis.
[0017] In one implementation, a user setting indicates a priority of the at least one decision factor; the terminal determines a volume playback mode based on the at least one decision factor and the current state, including: determining the volume playback mode corresponding to the current state of each decision factor based on the user setting in descending order of priority of each decision factor, until a volume playback mode is determined. In implementing this embodiment of the present application, each decision factor has a priority to avoid conflicts between volume playback modes determined based on different decision factors.
[0018] In one implementation, the at least one decision factor includes a first decision factor, and the user setting indicates that the volume playback mode corresponding to the first state of the first decision factor is the first volume playback mode; the current state of the first decision factor is the first state. In implementing this embodiment of the present application, the user can set the first state of the first decision factor to correspond to the first volume playback mode. In this way, when playing a video when the current state of the first decision factor includes the first state, the terminal can play the video according to the first volume playback mode, which meets user expectations and effectively improves the user experience.
[0019] In one implementation, when the first volume playback mode is a silent countdown mode or a media volume playback mode, the user setting also indicates a preset media volume corresponding to the first state of the first decision factor; the first application plays the first video according to the first volume playback mode, including: when the first volume playback mode is a media volume playback mode, the first application plays the first video according to the preset media volume; when the first volume playback mode is a silent countdown mode, the first video is played silently within a first duration of the playback of the first video; when the first video is played to the first duration, the first video is played according to the preset media volume.
[0020] In one implementation, when the first volume playback mode is a silent countdown mode or a media volume playback mode, the method further includes: detecting a third input operation acting on the first state of the first decision factor; and in response to the third input operation, displaying a preset media volume corresponding to the first state of the first decision factor. When implementing an embodiment of the present application, the user can also set the first state of the first decision factor to correspond to the first volume playback mode. In this way, when playing a video when the current state of the first decision factor includes the first state, the terminal can play the video according to the first volume playback mode and the preset media volume. The media volume meets the user's expectations, effectively improving the user experience.
[0021] In one implementation, the preset media volume is determined by the terminal based on the media volume recorded in first historical playback data, where the first historical playback data is historical playback data of the played video that satisfies the first state of the first decision factor. In implementing this embodiment of the present application, the preset media volume is determined based on the historical playback data, and the media volume is tailored to the user's historical usage habits, effectively improving the user experience.
[0022] In one implementation, the first volume playback mode is a silent countdown mode, and the method further includes: displaying a first control when the first application displays countdown information; detecting a fourth input operation applied to the first control; and, in response to the fourth input operation, stopping displaying the countdown information and playing the first video in silent playback mode. In implementing this embodiment of the present application, the silent countdown mode can be quickly switched to silent playback mode via the first control before the countdown ends, thereby preventing the media volume from being played out loud after the countdown ends.
[0023] In one implementation, the first volume playback mode is a silent countdown mode or a silent playback mode, and the method further includes: when the first application plays the first video silently, displaying a second control; the second control is used to indicate silent video playback; detecting a fifth input operation applied to the second control; in response to the fifth input operation, playing the first video in the media volume playback mode and replacing the second control with a third control; the third control is used to indicate media volume playback. In implementing this embodiment of the present application, the user can quickly switch from silent countdown mode or silent playback mode to media volume playback mode through the second control.
[0024] In one implementation, the method further includes: while the first application is playing the first video at a media volume, displaying a third control; the third control is used to instruct playback of the video at the media volume; detecting a sixth input operation applied to the third control; in response to the sixth input operation, playing the first video in a silent playback mode and replacing the third control with a second control; the second control is used to instruct playback of the video in silent mode. By implementing this embodiment of the present application, a user can quickly switch the media volume playback mode to a silent playback mode via the third control.
[0025] In one implementation, the at least one decision factor includes a strong factor, and the user sets a volume playback mode corresponding to a preset state of the strong factor; the terminal determines the volume playback mode based on the at least one decision factor and the current state, including: the terminal determines whether the current state of the strong factor includes the preset state; if the current state of the strong factor includes the preset state, then the volume playback mode of the first video is determined to be the volume playback mode corresponding to the preset state of the strong factor; if the current state of the strong factor does not include the preset state, the terminal determines the volume playback mode based on the current state of the at least one decision factor other than the preset state. In implementing this embodiment of the present application, the preset state of the strong factor can be set, and the volume playback mode can be determined preferentially based on the preset state of the strong factor.
[0026] In one implementation, the at least one decision factor includes a second decision factor, and the method further includes: detecting a seventh input operation that acts on the second state of the second decision factor; and in response to the second input operation, setting the second decision factor to a strong factor, wherein the preset state of the second decision factor includes the second state. In implementing this embodiment of the present application, a user can set the preset state of the strong factor, so that the volume playback mode better meets the user's expectations.
[0027] In one implementation, when the terminal fails to determine a volume playback mode based on the at least one decision factor and the current state, the decision result of the volume playback mode is used to indicate a default volume playback mode. Implementation of this embodiment of the present application can address situations where the volume playback mode cannot be determined based on user settings.
[0028] In one implementation, the default volume playback mode is a silent countdown mode. Implementation of the present application embodiment can reduce the risk of playing media volume externally.
[0029] In one implementation, before the first application plays the first video in the first volume playback mode, the method further includes: if the terminal fails to determine the volume playback mode based on the at least one decision factor and the current state, the terminal determines the volume playback mode using an intelligent decision model. Implementing this embodiment of the present application can address situations where the volume playback mode cannot be determined based on user settings.
[0030] In one implementation, the terminal utilizes an intelligent decision-making model to determine a volume playback mode, including: obtaining historical statistical data of each decision factor based on the current state of each decision factor involved in the intelligent decision-making model and historical playback data of played videos; and determining the volume playback mode based on the historical statistical data of each decision factor by the intelligent decision-making model. By implementing this embodiment of the present application, the volume playback mode better aligns with the user's historical usage habits, thereby improving the user experience.
[0031] In one implementation, the at least one decision factor includes some or all of the following: time period, media volume, application, external speaker device, working mode, exercise mode, and venue type.
[0032] In one implementation, when the first application is an application with independent volume control, the media volume is the application media volume of the first application; when the first application is not an application with independent volume control, the media volume is the system media volume.
[0033] In one implementation, the terminal records historical playback data of the first video at a first moment, and the historical playback data includes the current state of the at least one decision factor obtained at the first moment; if the first application plays the first video according to the first media volume at the first moment, the historical playback data of the first video also includes the first media volume.
[0034] In one implementation, the first duration is from the start moment of playing the first video to the first moment.
[0035] In a second aspect, the present application provides a terminal device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are configured to store computer program code. The computer program code comprises computer instructions. When the one or more processors execute the computer instructions, the communication device performs the volume control method of any possible implementation of any of the above aspects.
[0036] In a third aspect, an embodiment of the present application provides a computer storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the communication device executes the volume control method in any possible implementation of any of the above aspects.
[0037] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the volume control method in any possible implementation of any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] FIG1A is a schematic diagram of the hardware structure of a terminal provided in an embodiment of the present application;
[0039] Figures 1B-1I are user interfaces related to the active state of an APP provided in an embodiment of the present application;
[0040] 2A-2F are user interfaces related to the media volume playback mode provided in an embodiment of the present application;
[0041] 3A-3J are user interfaces related to the silent playback mode provided in an embodiment of the present application;
[0042] 4A-4H are user interfaces related to the silent countdown mode provided in an embodiment of the present application;
[0043] 5A-5C are user interfaces related to calling up a volume playback mode setting interface according to an embodiment of the present application;
[0044] 5D-5E are user interfaces related to adjusting priority levels according to an embodiment of the present application;
[0045] 6A-6F are user interfaces related to setting a time period according to an embodiment of the present application;
[0046] 7A-7D are user interfaces related to setting decision factors according to an embodiment of the present application;
[0047] 8A-8H are user interfaces related to setting up an external speaker device according to an embodiment of the present application;
[0048] 9A-9E are user interfaces related to setting a venue type according to an embodiment of the present application;
[0049] Figures 10A-10C are user interfaces related to application settings provided in an embodiment of the present application;
[0050] FIG11 is a schematic diagram of the software structure provided in an embodiment of the present application;
[0051] FIG12A is a flow chart of a volume control method provided in an embodiment of the present application;
[0052] FIG12B is a flow chart of a volume control method provided in an embodiment of the present application;
[0053] FIG12C is a flow chart of a volume control method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related 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 the description of the embodiments of the present application, "multiple" means two or more than two.
[0055] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0056] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0057] The hardware structure of the terminal 100 involved in the embodiment of the present application is introduced below.
[0058] FIG1A shows a schematic diagram of the structure of the terminal 100. The terminal 100 may also be referred to as a terminal device, a user device, or an electronic device, which is not specifically limited here. The terminal 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific type of the terminal 100. The terminal 100 may be equipped with iOS, Android, Microsoft, or other operating systems. The embodiments of the present application do not impose any special restrictions on the operating system of the terminal 100.
[0059] The terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (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 194, and a subscriber identification module (SIM) card interface 195, etc. 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.
[0060] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on terminal 100. In other embodiments of the present application, terminal 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0061] 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 processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0062] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0063] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0064] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0065] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the terminal 100.
[0066] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0067] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0068] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0069] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the terminal 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the terminal 100.
[0070] The GPIO interface can be configured via software. It can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0071] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the terminal 100 and to transfer data between the terminal 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0072] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative description and does not constitute a structural limitation on the terminal 100. In other embodiments of the present application, the terminal 100 may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.
[0073] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the terminal 100. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141.
[0074] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0075] The wireless communication function of the terminal 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0076] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0077] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on the terminal 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), 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.
[0078] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0079] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. applied on the terminal 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, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0080] In some embodiments, the antenna 1 of the terminal 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal 100 can communicate with the network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0081] Terminal 100 implements display functions through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0082] Display screen 194 is used to display images, videos, and the like. 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 (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, terminal 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0083] The terminal 100 can realize the shooting function through the ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0084] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise and brightness. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0085] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the terminal 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0086] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the terminal 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0087] Video codecs are used to compress or decompress digital video. Terminal 100 may support one or more video codecs. This allows terminal 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0088] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU enables intelligent cognitive applications in the terminal 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0089] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0090] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.; non-volatile memory may include disk storage devices and flash memory.
[0091] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage cell potential level; universal flash storage (UFS) and embedded multi media card (eMMC) can be divided into UFS and eMMC according to the storage specification.
[0092] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0093] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0094] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the terminal 100. The external non-volatile memory communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory.
[0095] The terminal 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0096] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0097] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The terminal 100 can listen to music or listen to hands-free calls through the speaker 170A.
[0098] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the terminal 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.
[0099] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The terminal 100 can be provided with at least one microphone 170C. In other embodiments, the terminal 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the terminal 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.
[0100] The headphone jack 170D is used to connect a wired headphone.
[0101] The pressure sensor 180A is used to sense pressure signals and convert the pressure signals into electrical signals. When a touch operation is applied to the display screen 194, the terminal 100 detects the intensity of the touch operation based on the pressure sensor 180A.
[0102] The gyroscope sensor 180B can be used to determine the motion posture of the terminal 100. In some embodiments, the angular velocity of the terminal 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the terminal 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the terminal 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0103] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0104] The magnetic sensor 180D includes a Hall sensor.
[0105] Accelerometer 180E can detect the magnitude of acceleration of terminal 100 in all directions (generally three axes). When terminal 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0106] The distance sensor 180F is used to measure distance. The terminal 100 can measure distance by infrared or laser.
[0107] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
[0108] The ambient light sensor 180L is used to sense the brightness of the ambient light.
[0109] The fingerprint sensor 180H is used to collect fingerprints. The terminal 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0110] The temperature sensor 180J is used to detect temperature. In some embodiments, the terminal 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.
[0111] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals of vibrating bones in the human body and receive blood pressure pulse signals.
[0112] Keys 190 include a power button, a volume button, and the like. Keys 190 may be mechanical buttons or touch buttons. Terminal 100 may receive key inputs and generate key signal inputs related to user settings and function control of terminal 100. For example, FIG1B illustrates a volume key of terminal 100. The volume key includes a volume up key and a volume down key; the volume up key is used to increase the volume based on a preset ratio (e.g., 5% of the maximum volume), and the volume down key is used to decrease the volume based on a preset ratio.
[0113] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts and can also be used for touch vibration feedback.
[0114] The SIM card interface 195 is used to connect a SIM card.
[0115] How to reasonably control the external volume of audio and video (such as incoming videos, music, ringtones, message notifications, etc.) when playing to improve the user experience remains to be studied.
[0116] Taking video as an example, users are currently paying more and more attention to video content in various apps. This is not limited to video apps. Video content in information mobile apps (such as browsers and news apps) also accounts for more than 50%. Videos not only have separate video channel pages, but also a large amount of video content is displayed in other channel pages (such as sports channels / technology channels / international news channels, etc.). In order to improve the video playback experience, most video content has an auto-play function enabled. When the user slides the page or switches to the page where the video content is located, the video content automatically plays.
[0117] Some apps use the phone's current system volume when automatically playing video content. If the current system volume is high, the sound may suddenly play in a quiet environment, causing discomfort to the user. Some apps also mute video content when it automatically plays; however, if the user does not want to mute the video, they must manually adjust the volume, which is cumbersome.
[0118] The following embodiments mainly use video as an example to explain in detail how to reasonably control the volume of audio and video speakers to improve user experience. The solution provided in this application can also be applied to other audio and video.
[0119] In the solution provided by the embodiments of the present application, for the audio and video played for the first time by an APP (e.g., APP1) in an active state, the terminal 100 can adaptively decide the volume playback mode currently suitable for the audio and video playback based on the user settings of the volume playback mode and / or the intelligent decision-making model. This volume playback mode meets user expectations and effectively improves the user experience. In some embodiments, for audio and video played for a non-first time by APP1 in an active state, the terminal 100 can play it according to the volume playback mode of the previous audio and video recorded by APP1, or the terminal 100 can play it according to the media volume playback mode.
[0120] The active states of the APP involved in the embodiments of this application include: starting the APP and switching the APP from the background to the foreground. The volume playback modes involved in the embodiments of this application include the following three: media volume playback mode (system media volume playback mode, application media volume playback mode), silent playback mode and silent countdown mode.
[0121] First, the active state of APP1 involved in the embodiment of the present application is exemplified.
[0122] For example, FIG. 1C to FIG. 1I show user interfaces related to the active state of APP1.
[0123] Launching APP1 means switching APP1 from a non-running state to the foreground. The user can launch APP1 through the application icon on the system interface of the terminal 100 (e.g., the main interface, the negative one screen, etc.), or through the application icon or application link of APP1 displayed by another APP. The embodiment of the present application does not limit the method of launching APP.
[0124] Taking a browser as an example, FIG1B and FIG1C illustrate starting the browser through a browser icon.
[0125] Figure 1B shows a main interface 11 on terminal 100 for displaying installed applications (APPs). Main interface 11 may include a status bar, a tray with commonly used application icons, and other application icons 101. Other application icons 101 may display a browser icon 101A, a video icon, and a settings icon 101B.
[0126] As shown in Figures 1B and 1C , upon detecting that a user has clicked on the browser icon 101A, the terminal 100 launches the browser and displays the browser's main interface 12. The browser's main interface 12 can display various types of information in the form of text, images, videos, etc. The user can scroll up and down on the main interface 12 to view more content. When the main interface 12 displays video information, the browser automatically plays the video.
[0127] Taking the short video APP as an example, FIG1D and FIG1E show launching the short video APP through the link of the short video APP.
[0128] Figure 1D shows a chat interface 33 of an instant messaging application. Chat interface 33 includes a video link 103 from a short video app sent by a contact. As shown in Figures 1D and 1E, after detecting that a user has clicked on video link 103, terminal 100 launches the short video app, displays a video playback interface 34 corresponding to video link 103, and automatically plays video 3. In one implementation, after detecting that a user has clicked on video link 103, terminal 100 may first display options for opening the app (e.g., options corresponding to the short video app, options corresponding to a browser, etc.); only after the user selects the option corresponding to the short video app does terminal 100 launch the short video app. In one implementation, the short video app plays video 3 in a continuous video streaming mode; the user can also view more videos by swiping up and down on the video playback interface. It is understood that the user can also launch the short video app through the application icon of the short video app in the system interface (e.g., the main interface).
[0129] After the user exits APP1, the terminal 100 will add APP1 to the tasks running in the background; the user can switch APP1 to the foreground by clicking on the application icon of APP1, the task card of APP1 displayed in the historical task interface, etc. When APP1 is running in the foreground, if the terminal 100 turns off the screen or locks the screen, the terminal 100 can also add the APP to the tasks running in the background, and the user can switch APP1 to the foreground by triggering the terminal 100 to turn on the screen, unlock the screen, etc. The embodiment of the present application does not limit the method of switching the APP from the background to the foreground.
[0130] Taking a browser as an example, FIG. 1F and FIG. 1G illustrate switching the browser from the background to the foreground through the historical task interface.
[0131] FIG1F shows a historical task interface 13. Terminal 100 can display task cards for various applications that the user recently viewed and are still running in the background on historical task interface 13, such as browser task card 102. As shown in FIG1G , after detecting that the user clicks on task card 102, terminal 100 can display the browser application's exit interface, such as the browser's main interface 12.
[0132] Taking the video APP as an example, Figures 1H and 1I show switching the video APP from the background to the foreground by unlocking.
[0133] FIG1H shows a lock screen interface 14, where the user can unlock the screen by using a password, fingerprint recognition, face recognition, etc. As shown in FIG1I , upon detecting the user's unlocking operation, the terminal 100 can display the user interface of the app running in the foreground before the lock screen is locked, such as the video playback interface 15 of a video app, after the unlock verification is passed.
[0134] In some embodiments, if APP1 is playing Video 1 when it switches to the background, APP1 will automatically continue playing Video 1 after switching from the background to the foreground. For example, if a browser is playing a video when it switches to the background, it will automatically continue playing the video when it is switched back to the foreground. For example, if a video app is playing a video on the video playback interface 15 before the terminal 100 is locked, the video app will automatically continue playing the video after the terminal 100 is unlocked.
[0135] The following is an introduction to the three volume playback modes involved in the embodiments of the present application.
[0136] Taking a browser as an example, as shown in Figures 2A and 2B , upon detecting that a user has swiped up the browser's main interface 12, terminal 100 displays more content on main interface 12. As shown in Figures 2B and 2C , upon detecting that main interface 12 displays playback area 201 for video 1, the browser automatically plays video 1 in playback area 201. Before the browser plays video 1, if it determines that video 1 is the first video played by the browser in an active state, terminal 100 can adaptively determine a volume playback mode 1 suitable for video 1 based on user settings and / or an intelligent decision-making model, and play video 1 based on that volume playback mode.
[0137] (1) Media volume playback mode
[0138] Depending on the type of audio or video, the terminal 100 uses some or all of the following volume settings when playing audio or video: media volume, call volume, ringtone volume, alarm volume, and smart voice volume. Media volume refers to the volume used when the terminal 100 plays multimedia files such as music, videos, and game audio using multimedia software. Media volume playback mode means that the terminal 100 outputs audio at the currently recorded media volume.
[0139] In some embodiments, as shown in Figures 2A to 2C, terminal 100 determines that volume playback mode 1 of video 1 is media volume playback mode based on user settings and / or an intelligent decision model. Terminal 100 plays video 1 at the currently recorded media volume and displays a speaker control 202; this control is used to indicate that video 1 is currently in media volume playback mode. The embodiment of the present application does not limit the display position of speaker control 202; speaker control 202 can be displayed within or outside of playback area 201 of video 1.
[0140] In some embodiments, after terminal 100 determines that volume playback mode 1 of video 1 is the media volume playback mode, before playing video 1 at the currently recorded media volume, the currently recorded media volume is modified to a preset media volume, i.e., terminal 100 plays video 1 at the preset media volume. The preset media volume can be preset by the user or terminal 100, or it can be determined by the user setting of the volume playback mode and / or by an intelligent decision model based on historical playback data of videos played by terminal 100 / browser, which is not specifically limited here. How to determine the above-mentioned preset media volume will be described in detail in subsequent embodiments.
[0141] When playing a video, users can switch the media volume playback mode to silent playback mode.
[0142] In some embodiments, as shown in Figures 2C and 2D, an input operation (such as a click operation) acting on the external speaker control 202 is detected; in response to the input operation, the terminal 100 switches the volume playback mode to the silent playback mode, and switches the external speaker control 202 to the silent control 203 indicating the silent playback mode.
[0143] When playing a video in the media volume playback mode, the user can adjust the media volume using the volume key. When the user adjusts the media volume, the terminal 100 can display a volume bar indicating the current media volume.
[0144] In some embodiments, some APPs have independent volume control capabilities, and the media volume can be divided into system media volume and application media volume. The media volume playback mode of an APP with independent volume control capabilities refers to outputting audio according to the application media volume corresponding to the APP; when the APP plays a video, the user can adjust the application media volume of the APP through the volume key. The media volume playback mode of an APP that does not have independent volume control capabilities refers to outputting audio according to the system media volume; when the APP plays a video, the user can adjust the system media volume through the volume key. The application that can perform independent volume control can be the terminal 100, the APP, or the user preset. In one implementation, the browser background service records the browser's application media volume, and the terminal 100's kernel service records the system media volume.
[0145] As shown in FIG2E , the browser is not an app with independent volume control capabilities. In media volume playback mode, upon detecting a user pressing the volume up / down key, terminal 100 displays a volume bar 204 indicating the system media volume and increases / decreases the system media volume based on the user's pressing parameters (e.g., the number of presses / duration). Volume bar 204 includes a system media volume indicator 204A.
[0146] As shown in Figure 2F, the browser is an APP with independent volume control capabilities; in the media volume playback mode, after detecting that the user presses the volume up / down key, the terminal 100 displays a volume bar 205 indicating the browser's application media volume 1, and increases / decreases the browser's application media volume 1 according to the user's pressing parameters (such as the number of presses / duration). The volume bar 205 includes the browser's application identifier 205A. It can be understood that when the user adjusts the browser's application media volume 1, the system media volume and the application media volume of other applications will not change; in this way, the user can independently control different applications to play at different media volumes. It should be noted that the volume bar involved in the drawings of this application is only an example provided in the embodiment of this application. Volume bars in other display forms are also applicable to the embodiment of this application. This application does not specifically limit the volume adjustment operation acting on the volume bar.
[0147] (2) Silent playback mode
[0148] In some embodiments, as shown in Figures 3A, 3B, and 3C, the terminal 100 determines that volume playback mode 1 is a silent playback mode based on user settings and / or an intelligent decision model, and the terminal 100 plays video 1 in silence and displays a mute control 203. It will be understood that in silent playback mode, the audio playback device of the terminal 100 (e.g., a speaker of the terminal 100, a speaker / earpiece of an external device connected to the terminal 100) does not emit the sound of video 1.
[0149] When playing a video, users can switch from silent playback mode to media volume playback mode.
[0150] In some embodiments, as shown in Figures 3C and 3D, in silent playback mode, after detecting an input operation (such as a click operation) acting on the mute control 203, the terminal 100 switches the volume playback mode to the media volume playback mode, and plays video 1 according to the currently recorded media volume (such as application media volume or system media volume).
[0151] In some embodiments, in silent playback mode, after detecting that the user presses the volume up / down key, the terminal 100 switches the silent playback mode to the media volume playback mode, and increases / decreases the media volume according to the user's pressing parameters (such as the number of presses / duration).
[0152] In some embodiments, referring to Figures 3E and 3F , in silent playback mode, upon detecting that a user has pressed the volume-down key, the terminal 100 switches the volume playback mode to the media volume playback mode, decreases the currently recorded application media volume 1 by a preset step size based on the user's press parameter, and displays a volume bar 205 indicating the browser's application media volume. For example, if the browser's application media volume 1 currently recorded by the browser backend service is 80% of the maximum volume and the volume adjustment step size is 5% of the maximum volume, the terminal 100 decreases the application media volume 1 by 5% starting from 80%. Referring to Figures 3G and 3H , in silent playback mode, upon detecting that a user has pressed the volume-up key, the terminal 100 switches the volume playback mode to the media volume playback mode, modifies the browser's application media volume 1 recorded by the kernel to 0, and increases the application media volume 1 from 0 based on the user's press parameter (e.g., press / duration). In this way, in silent playback mode, when the user wants to play Video 1 at a lower volume, the user can switch the silent playback mode to media volume playback mode by pressing the volume up or down key, and the media volume can be quickly adjusted to a lower ideal value while switching the mode, effectively improving the user experience; in silent playback mode, when the user wants to play Video 1 at a higher volume, the user can press the volume down key to view or listen to the current media volume, and then decide whether to continue to increase the media volume.
[0153] In silent play mode, in addition to the mute control 203 and the volume key, the user can also switch the silent play mode to the media volume play mode through other volume adjustment operations. For example, taking the video APP shown in Figures 3I and 3J as an example, according to the user settings and / or the intelligent decision-making model, the terminal 100 determines to play the video 2 in the video play interface 15 in silent play mode; upon detecting the user's upward / downward sliding operation on the right half of the play area of video 2, the terminal 100 switches the silent play mode to the media volume play mode, and increases / decreases the media volume of the video playback according to the sliding parameters of the above sliding operation (such as sliding distance, sliding speed), and can also display the volume bar 206 to indicate the media volume of the video playback.
[0154] (3) Silent countdown mode
[0155] The silent countdown mode means that after starting to play the video, the silent play mode is used within a preset time (for example, 3 seconds), and the media volume play mode is switched when the preset time 1 is reached. The preset time 1 can be preset by the terminal 100, the application, or the user.
[0156] In some embodiments, as shown in Figures 4A, 4B, and 4C, terminal 100 determines that volume playback mode 1 of video 1 is a silent countdown mode based on user settings and / or an intelligent decision-making model. Terminal 100 plays video 1 in silent mode, displays a mute control 203 and a countdown message 207. Countdown message 207 indicates that the video will be played out loud at the media volume in 3 seconds. The countdown message can be displayed in the form of graphics, text, and / or animation. As shown in Figure 4D, after the countdown ends, countdown message 207 is no longer displayed, terminal 100 plays the video at the media volume, and mute control 203 switches to a speaker control 202.
[0157] Referring to Figures 3A to 3J for the relevant description of the silent playback mode, in the silent countdown mode, before the countdown ends (i.e., within the above-mentioned preset duration 1), the user can switch the silent playback mode to the media volume playback mode through the mute control 203, the volume key, or the up and down sliding operation on the right half of the video playback area, so as to play the video out loud in advance according to the media volume.
[0158] In some implementations, before the countdown ends, the terminal 100 may also display a continuous mute control 208. As shown in Figures 4E and 4F, the terminal 100 detects a user input operation (e.g., a click operation) on the continuous mute control 208. In response to this input operation, the terminal 100 stops displaying the countdown information 207 and switches from the silent countdown mode to the silent playback mode. In this way, the user can control the terminal 100 to continuously play the video 1 in silence.
[0159] In some implementations, as shown in FIG4G , before the countdown ends, the terminal 100 may further display a media volume bar 210, through which the user may set the media volume after the countdown ends in advance. For example, as shown in FIG4G , the media volume bar 210 indicates that the currently recorded media volume is 90%; before the countdown ends, the terminal 100 detects a volume adjustment operation (e.g., a left sliding operation) performed by the user on the media volume bar 210; as shown in FIG4H , in response to the volume adjustment operation, the media volume bar 210 is adjusted, and the media volume indicated by the adjusted media volume bar 210 is 30%, and before the countdown ends, video 1 continues to be played silently; after the countdown ends, the terminal plays video 1 at the aforementioned 30% media volume.
[0160] In some embodiments, when a video ends playing on terminal 100, terminal 100 records the volume playback mode 1 of the video. Before the browser plays video 1, if it is determined that video 1 is not the first video played by the browser in an active state, terminal 100 can obtain the volume playback mode 1 of the previous video played by the browser (for example, video 3) and play video 1 according to volume playback mode 1.
[0161] In one implementation, the volume playback mode 1 of video 3 recorded by the browser may be the latest volume playback mode before video 3 ends. In particular, if video 3 is played in silent countdown mode, and terminal 100 stops video 3 before the countdown ends, the latest volume playback mode of video 3 recorded by terminal 100 is silent countdown mode; if video 1 is not the first video played by the browser in an active state, terminal 100 continues to play video 1 in silent countdown mode. In another implementation, the volume playback mode 1 of video 3 recorded by the browser may be the volume playback mode when video 3 is played to a preset duration of 5 (e.g., 10s).
[0162] The following describes in detail how to determine the volume playback mode based on the user's setting of the volume playback mode.
[0163] In some embodiments, the terminal 100 may provide a user setting interface for various decision factors for determining the volume playback mode, through which the user can set the volume playback mode corresponding to different states of the various decision factors. The decision factors involved in the user settings of the embodiment of the present application include some or all of the following: application, time period, working mode, external speaker device, sports mode, and venue type. The external speaker device refers to a device that establishes a communication connection with the terminal 100 and can receive and play the specific audio currently output by the terminal 100 (for example, the audio corresponding to video 1).
[0164] Exemplarily, FIG. 5A to FIG. 9E show relevant user interfaces for setting various decision factors in system settings.
[0165] For example, after detecting that the user clicks the settings icon 101B on the main interface 11, the terminal 100 may display the system settings interface 16 shown in FIG5A . The system settings interface 16 includes a sound and vibration settings bar 209. After detecting that the user clicks the sound and vibration settings bar 209, the terminal 100 may display the sound and vibration settings interface 21 shown in FIG5B .
[0166] The setting interface 21 includes a volume playback mode decision bar 313. The volume playback mode decision bar 313 is mainly used to determine the volume playback mode for the first broadcast video of the APP in the active state. When it is detected that the user clicks on the volume playback mode decision bar 313, the terminal 100 displays the volume playback mode decision interface 22 shown in Figure 5C. The decision interface 22 includes a switch control 301 for the user to set the decision factor. When the switch control 301 is in the on state (ON), it indicates that the terminal 100 can determine the volume playback mode based on the relevant parameters of the decision factor set by the user; on the contrary, when it is in the off state (OFF), it indicates that the terminal 100 cannot determine the volume playback mode based on the relevant parameters of the decision factor set by the user. When the switch control 301 is in the on state (ON), the decision interface 22 includes setting bars for each decision factor that the user can manually set, such as the application setting bar 302, the external speaker setting bar 303, the time period setting bar 304, the working mode setting bar 305, the sports mode setting bar 306, and the location type setting bar 307.
[0167] It should be noted that the switch controls involved in the embodiments of the present application all have an on state (ON) and a off state (OFF). Users can control the switch control to switch between the two states by performing input operations (such as click operations) on the switch control.
[0168] In some embodiments, each decision factor has a priority to avoid conflicts between volume playback modes determined based on different decision factors. The priority of each decision factor can be preset by the terminal 100 or the user. Exemplarily, as shown in Figure 5C, the decision interface 22 includes a priority setting bar 308 for the decision factor. After detecting that the user clicks on the priority setting bar 308, the terminal 100 displays the setting interface 23 for the decision factor priority. The setting interface 23 displays the option boxes of each decision factor from top to bottom according to the priority of the decision factor, and the decision factors at the top have higher priorities. As shown in Figures 5C and 5D, when it is detected that the user drags the option box of the decision factor up / down (for example, the option box 312 of the venue type), the terminal 100 can move the position of the option box 312 according to the user's dragging direction and dragging distance, and then modify the priority of the option box. Figures 5C and 5D are only examples, and the user can also set the priority of each decision factor in other ways.
[0169] In some embodiments, the user determines the volume playback mode of video 1 based on the user setting of the volume playback mode in the system settings, including: obtaining the current state of the i-th decision factor according to the priority of each decision factor from high to low, where i is a positive integer greater than zero; determining the volume playback mode corresponding to the current state of the i-th decision factor according to the parameters of the i-th decision factor set by the user; if the volume playback mode cannot be determined according to the parameters of the i-th decision factor set by the user, obtaining the current state of the i+1 decision factor; then, determining the volume playback mode corresponding to the current state of the i-th decision factor according to the parameters of the i+1 decision factor set by the user; and so on, until the volume playback mode is determined.
[0170] 5C , the decision interface 22 includes a switch control 309 for the intelligent decision model. The switch control 309 is in an on state, indicating that the intelligent decision model is on, and the terminal 100 can determine the volume playback mode based on the intelligent decision model.
[0171] In some embodiments, when switch control 309 is on, decision interface 22 includes options 310 and 311 for the intelligent decision model. One of options 310 and 311 is selected, and the user can modify the selected option. Option 310 indicates that when the user cannot determine the volume playback mode based on the decision factors set by the user, the volume playback mode is determined using the intelligent decision model. Option 310 also indicates that terminal 100 determines the volume playback mode based solely on the intelligent decision model.
[0172] The following uses the time period as an example to illustrate how the user manually sets each decision factor through the decision interface 22 .
[0173] As shown in Figure 6A, after detecting that a user clicks on the time period setting bar 304, the terminal 100 displays the time period setting interface 24. In some embodiments, the time period setting interface 24 includes a switch control 401. When the switch control 401 is in the on state (ON), it indicates that the time period has been factored in by the user setting. When the switch control 401 is in the off state (OFF), it indicates that the time period has not been factored in by the user setting and the terminal 100 does not consider the factor when determining the volume playback mode based on the user setting.
[0174] In some embodiments, as shown in FIG6A , when the switch control 401 is turned on, the time period setting interface 24 includes information bars for zero, one, or more added time periods, such as an information bar 402 for the time period "19:00-21:00." Information bar 402 may include the start and end times 402A of the time period, the volume playback mode 402B corresponding to the time period, and a delete control 402C; the delete control 402C is used to delete the information bar 402 for the time period. In some embodiments, when the volume playback mode 402B is the media volume playback mode or the silent countdown mode, information bar 402 also includes a media volume 402D. Media volume 402D indicates the preset media volume corresponding to the time period, i.e., the video is played at the preset media volume during the time period. Media volume 402D may be set by the user or determined by the terminal 100 based on the media volume (e.g., the average media volume) for the time period in historical playback data of played videos.
[0175] For example, Figures 6A to 6E illustrate an example of adding a time period. As shown in Figure 6A , when the switch control 401 is on, the time period setting interface 24 includes an add control 403 and mode options. The mode options include a silent playback mode option 405, a media volume playback mode option 406, and a silent countdown mode option 407. Users can use the add control 403 to add a time period and set the volume playback mode corresponding to that time period.
[0176] As shown in Figures 6A and 6B , upon detecting that a user clicks on the add control 403 , the terminal 100 displays a time period information bar 404 , which includes input boxes 404A for the start and end times of the time period. As shown in Figures 6C and 6D , information bar 404 is currently selected. After the user enters the start and end times of the time period (e.g., 17:00-19:00) in input boxes 404A, they select a mode option as the volume playback mode for that time period. For example, upon detecting that a user clicks on option 407 for silent countdown mode, the terminal 100 displays music playback mode 404B in information bar 404 for the time period "17:00-19:00," indicating the silent countdown mode corresponding to that time period.
[0177] In some embodiments, as shown in FIG6E , upon detecting that a user has selected a media volume playback mode or a mode option corresponding to a silent countdown, terminal 100 further displays a media volume adjustment bar 408 and a completion control 409 in response to the user clicking on the mode option. Adjustment bar 408 indicates the preset media volume corresponding to the time period, and the user can adjust the media volume through the adjustment bar. As shown in FIG6D and FIG6E , when the media volume indicated by adjustment bar 408 is 65%, upon detecting that the user clicks on completion control 409, terminal 100 displays media volume 404D in information bar 404 for the time period "17:00-19:00," and media volume 404D displays the media volume indicated by adjustment bar 408, i.e., 65%.
[0178] As shown in Figures 6E and 6F, for an added time period, upon detecting that a user has clicked on the information bar corresponding to the time period (e.g., information bar 404), information bar 404 switches from an unselected state to a selected state, and the parameters in information bar 404 (i.e., the start and end times of the time period, the music playback mode, and the preset media volume) become editable. For example, when information bar 404 is selected, the user can modify the start and end times in input box 404A. By clicking on other mode options (e.g., option 405 for silent playback mode and option 406 for media volume playback mode), the user can modify the volume playback mode 404B and media volume 404D corresponding to the time period. For details, please refer to the relevant descriptions of Figures 6B to 6E, which will not be repeated here.
[0179] In one example, the time period switch control 401 is in the on state, and the current state of the time period refers to the time period to which the current time of the terminal 100 belongs in the added time period. Before the browser plays video 1, the terminal 100 can obtain the current time; based on the user settings in the time period setting interface 24, when it is determined that the current time belongs to the added time period "17:00-19:00", the terminal 100 determines that the volume playback mode is the silent countdown mode corresponding to the time period "17:00-19:00", and the preset media volume after the silent countdown ends is 65%. It is understandable that if none of the added time periods include the current time, the terminal 100 cannot determine the volume playback mode based on the time period.
[0180] In some embodiments, as shown in FIG6F , the time period setting interface 24 further includes an apply option 410 and an apply option 411. One of the apply options 410 and 411 is selected, and the user can modify the selected option. Apply option 410 is used to indicate that the time period added in the time period setting interface 24 applies only to weekdays, and apply option 411 is used to indicate that the added time period applies to all date types, i.e., weekdays and holidays.
[0181] In one example, apply option 410 is selected, meaning that the time period added in settings interface 24 applies only to weekdays. Before the browser plays video 1, terminal 100 can obtain the current time and date. Based on the user settings in time period settings interface 24, if the current date is a weekday and the current time falls within the added time period of "17:00-19:00," terminal 100 sets the volume playback mode to the silent countdown mode corresponding to the time period of "17:00-19:00," and the preset media volume after the silent countdown ends is 65%.
[0182] In some embodiments, as shown in FIG7A , after detecting that the user clicks on the setting bar 302 of the application, the terminal 100 displays the setting interface 25 of the application; the setting interface 25 can be used to set the volume playback mode and preset media volume corresponding to the various applications installed by the terminal 100; the current state of the application refers to the application (i.e., the browser) that is currently playing video 1. In one example, the switch control 501 of the application in the setting interface 25 is in the on state; before the browser plays video 1, according to the user settings in the setting interface 25 of the application, the volume playback mode corresponding to the application (e.g., the browser) to be played video 1 is determined to be a silent countdown mode, and the preset media volume after the silent countdown ends is 60%. It can be understood that if the user has not set the volume playback mode corresponding to the browser, the terminal 100 cannot determine the volume playback mode according to the application.
[0183] As shown in FIG7B , after detecting that the user clicks on the working mode setting bar 305 , the terminal 100 displays the working mode setting interface 26 . The setting interface 26 can be used to set the volume playback mode and preset media volume corresponding to various working mode states. The working mode states of the terminal 100 include some or all of the following: do not disturb mode, power saving mode, airplane mode, sleep mode, and game mode. In one example, the working mode switch control 502 in the setting interface 26 is turned on. Before the browser plays video 1, the current working mode of the terminal 100 can be obtained; based on the user setting in the working mode setting interface 26 , the volume playback mode corresponding to the current working mode state (e.g., airplane mode) is determined to be mute. It is understood that if the terminal 100 is not currently in a specific working mode, or the user has not set the volume playback mode corresponding to the current working mode state, the terminal 100 cannot determine the volume playback mode based on the working mode.
[0184] As shown in FIG7C , after detecting that the user clicks on the sports mode setting bar 306 , the terminal 100 displays the sports mode setting interface 27 . The setting interface 27 can be used to set the volume playback mode and preset media volume corresponding to various sports mode states. The above-mentioned sports mode states include some or all of the following: still, walking, running, cycling, car, subway, train, and airplane. In one example, the sports mode switch control 503 in the setting interface 27 is turned on. Before the browser plays video 1, the terminal 100 obtains the current state of the user's sports mode (e.g., still); the terminal 100 determines that the volume playback mode corresponding to the current state is a silent countdown mode based on the user's settings in the sports mode setting interface 25 , and the preset media volume after the silent countdown ends is 50%. It is understood that if the terminal 100 does not detect the current state of the user's sports mode or does not set the volume playback mode corresponding to the current state, the terminal 100 cannot determine the volume playback mode based on the sports mode.
[0185] In an embodiment of the present application, the terminal 100 can determine the user's motion pattern based on part or all of the data detected by the sensor, the notification messages received by the specific application (such as the ticket booking notification sent by the ticket booking application, the notification message of the subway ticket swiping entry sent by the payment application), the information preset by the user in the specific application (such as the train travel time recorded by the user in the calendar schedule), and the devices connected to the terminal 100 by wire or wirelessly (such as the vehicle-mounted device connected to the car).
[0186] The above-mentioned sensors include some or all of the following: motion sensors (such as acceleration sensors, gyroscope sensors, geomagnetic sensors (also known as electronic compass sensors), atmospheric pressure sensors, etc.), positioning sensors (such as GPS sensors), biosensors (such as blood pressure sensors, electrocardiogram sensors, electromyography sensors, body temperature sensors, brain wave sensors, heart rate sensors, skin conduction sensors, etc.), etc. The above-mentioned sensors can be sensors on the terminal 100, or they can be sensors on other devices (such as wearable devices) that establish a communication connection with the terminal 100. Under specific motion modes (such as running, cycling), the motion parameters such as motion speed, motion direction, motion position, biometric information (such as heart rate, brain waves, body temperature, etc.) detected by the device carried by the user (for example) have specific rules. For example, in a stationary state, the user's motion speed is close to or equal to 0, and the heart rate is stable.
[0187] In some embodiments, the terminal 100 pre-stores patterns of the aforementioned motion parameters for each motion mode; the terminal 100 obtains the aforementioned motion parameters based on the data detected by the sensor; if it is determined that the aforementioned motion parameters conform to the patterns of motion mode 1, then it is determined that the user is currently in motion mode 1. The embodiments of the present application do not specifically limit how the motion mode is determined based on the sensor data. In some embodiments, the terminal 100 obtains a booking notification sent by a ticket booking application, where the booking notification indicates a train travel time; if the terminal 100 determines that the current time is within the travel time indicated in the booking notification, and if it is determined based on the sensor data that the aforementioned motion parameters conform to the patterns of a train, then it is determined that the user's current motion mode is a train.
[0188] As shown in FIG7D , after detecting that the user clicks on the settings bar 303 of the external speaker device, the terminal 100 displays the settings interface 28 of the external speaker device. The settings interface 28 can be used to set the volume playback mode and preset media volume corresponding to various states (i.e., device types) of the external speaker device. The device types of the above-mentioned external speaker devices include some or all of the following: headphones, computers, tablets, TVs / smart screens, smart watches, car devices, VR / AR devices, etc. In one example, the switch control 504 of the external speaker device in the settings interface 28 is in the on state. Before the browser plays video 1, the terminal 100 obtains the currently connected external speaker device; based on the user settings in the settings interface 28 of the external speaker device, it determines that the volume playback mode corresponding to the device type of the currently connected external speaker device (e.g., headphones) is the media playback mode, and the preset media volume is 60%. It can be understood that if the terminal 100 is not currently connected to an external speaker device, or the user has not set the volume playback mode corresponding to the device type of the currently connected external speaker device, the terminal 100 cannot determine the volume playback mode based on the external speaker device.
[0189] In some embodiments, the terminal 100 can set a certain state of a certain decision factor as a preset state of a strong factor, and the preset state of the strong factor is used to determine the volume playback mode with one click. Before playing video 1, the terminal 100 first detects whether the current state of the strong factor set by the user includes the preset state; if it does, the volume playback mode is determined to be the volume playback mode corresponding to the preset state of the strong factor; if not, it traverses each decision factor from high to low according to the priority of each decision factor (i.e., application, external speaker, time period, working mode, etc.) until the volume playback mode is determined.
[0190] For example, taking the example of a strong factor being an external speaker and the preset state of the strong factor being headphones, as shown in Figures 7D and 8A , the external speaker device setting interface 28 includes a headphone information bar 505. Upon detecting a user click on information bar 505, the terminal 100 switches information bar 505 to a selected state and displays a strong factor collection control 506 in information bar 505. As shown in Figures 8A and 8B , upon detecting a user click on strong factor collection control 506, the strong factor collection control 506 switches from an unselected state to a selected state, and the terminal 100 displays a prompt message 507. Prompt message 507 indicates that the headphones have been selected as a preset state of the strong factor. As long as the headphones are connected to the terminal 100, the headphones will play according to the volume playback mode (e.g., media volume playback mode) and the preset media volume (e.g., 60%) set by the user for the headphones. In some embodiments, as shown in FIG8B , after detecting that the user clicks on the strong factor collection control 506 , the terminal 100 further displays a viewing control 508 ; as shown in FIG8B and FIG8C , after detecting that the user clicks on the viewing control 508 , the terminal 100 displays an information bar corresponding to the preset status of the collected strong factors, such as an information bar 509 for headphones, on the decision interface 22 of the volume playback mode.
[0191] In some embodiments, as shown in FIG8D , the terminal 100 can collect multiple preset states of a strong factor and / or preset states of different strong factors based on the user's input operation, and set the priority order of the preset states of each collected strong factor. How to set the priority order of each preset state is not specifically limited here. Before playing video 1, the terminal 100 preferentially detects whether the terminal 100 currently has a strong factor, and determines from high to low whether the current state of the strong factor (such as an external speaker) includes preset state 1 (such as headphones) according to the priority order of the preset states; if it exists and includes preset state 1, the volume playback mode is determined to be the volume playback mode corresponding to preset state 1; if it does not exist or is not included, then according to the priority of each decision factor shown in FIG8C , each decision factor is traversed in turn from high to low until the volume playback mode is determined.
[0192] Typically, terminal 100 can simultaneously connect to multiple devices capable of audio output via wired and / or wireless connections. In some embodiments, the devices capable of audio output connected to terminal 100 can only have one external speaker (i.e., a device capable of receiving and playing the audio of video 1 currently output by terminal 100). In some embodiments, the devices capable of audio output can have multiple external speakers.
[0193] In some embodiments, the terminal 100 is connected to multiple external speakers via wired and / or wireless connections, and the volume playback mode of each external speaker determined according to the user settings can be different. For example, as shown in FIG8E , the terminal 100 is currently connected to three external speakers (i.e., headphones, desktop computers, and tablet computers), and the three external speakers can all output audio for the video 1 played by the terminal 100. The desktop computer and tablet computer can also play the picture of video 1 based on the screen projection principle; before the terminal 100 plays video 1, based on the user settings of FIG8B , the headphones are instructed to output the audio of video 1 according to the media volume, the desktop computer is instructed to play video 1 and output the audio of video 1 in silent playback mode, and the tablet computer is instructed to play video 1 and output the audio of video 1 in silent countdown mode. When the terminal 100 outputs the audio of video 1 through the external speaker device, the speaker of the terminal 100 itself may not play the audio of video 1, or may play the audio of video 1, which is not specifically limited in the embodiments of the present application.
[0194] In some embodiments, as shown in FIG8E , when the terminal 100 and at least one of the multiple external speaker devices connected to the terminal 100 output audio in a silent countdown mode, the terminal 100 displays a countdown prompt 601 and a continuous mute control 602. The continuous mute control 602 is used to control the at least one device to switch from the silent countdown mode to the silent playback mode. As shown in FIG8E and FIG8F , when the terminal 100 is connected to multiple external speaker devices, the volume adjustment controls corresponding to the multiple external speaker devices can be called up using the volume key. The volume adjustment controls include a control indicating the volume playback mode, a volume adjustment bar, and a device icon.
[0195] For example, as shown in FIG8G , taking the volume adjustment control 603 of a tablet computer as an example, the volume adjustment control 603 includes an identifier 603A indicating the volume playback mode (i.e., silent countdown mode), a volume adjustment bar 603B, and a device icon 603C of the tablet computer. As shown in FIG8G , when the silent countdown is detected to have ended, when the user clicks the identifier 603A indicating the silent countdown mode, or when the user adjusts the volume via the volume adjustment bar 603B, the terminal 100 instructs the tablet computer to switch the silent countdown mode to the media volume playback mode, and the identifier 603A switches from indicating the silent countdown mode to indicating the media volume playback mode. As shown in FIG8H , taking the volume adjustment control 604 of a desktop computer as an example, the volume adjustment control 604 includes an identifier 604A indicating the volume playback mode (i.e., silent playback mode) and a volume adjustment bar 604B. As shown in Figure 8H , when the user clicks on marker 604A or adjusts the volume via volume adjustment bar 604B, terminal 100 instructs the desktop computer to switch from silent playback mode to media volume playback mode, and marker 604A switches to indicate media volume playback mode. As shown in Figure 8H , taking the volume adjustment control 605 of the headset as an example, volume adjustment control 605 includes marker 605A indicating volume playback mode (i.e., media volume playback mode); when the user clicks on marker 605A, terminal 100 instructs the headset to switch from media volume playback mode to silent playback mode, and marker 605A switches to indicate silent playback mode.
[0196] As shown in FIG9A , after detecting that a user clicks on the location type setting bar 307 , the terminal 100 displays a location type setting interface 29 . This setting interface 29 can be used to set the volume playback mode and preset media volume corresponding to various location type states. The aforementioned location type states include some or all of the following: residence, user office, public quiet place, indoor leisure place, outdoor leisure place, etc. In one example, the location type switch control 701 in the setting interface 29 is turned on. Before the browser plays Video 1 , the terminal 100 obtains the current location type. Based on the user settings in the location type setting interface 29 , the volume playback mode corresponding to the current location type state (e.g., residence) is determined to be the media playback mode, and the preset media volume is 80%. It is understood that if the terminal 100 does not detect the current location type state or does not set the volume playback mode corresponding to the current state, the terminal 100 cannot determine the volume playback mode based on the location type.
[0197] In some embodiments, the terminal 100 can determine the current place type based on some or all of the positioning sensor (such as a GPS sensor), wired or wirelessly connected devices (such as smart home devices in a residence), and connected network signals (such as a local area network signal in an office). In some embodiments, as shown in FIG9A , the information bar of various place types in the setting interface 29 also includes an add control. For example, the information bar of the residence includes an add control 702, and the add control 702 is used to add a place address belonging to the place type. In some embodiments, when the distance between the position detected by the terminal 100 using the positioning sensor and the place address 1 added to the residence is less than a preset value (for example, 20 meters), the terminal 100 determines that the current place type is the residence corresponding to the place address 1.
[0198] For example, as shown in Figures 9A and 9B , after detecting that a user has clicked on the add control 702, the terminal 100 displays the user interface 30 for displaying the added address. As shown in Figures 9B and 9C , the user interface 30 includes an add control 703. After detecting that a user has clicked on the add control 703, the terminal 100 displays the user interface 31 for adding the address. The user interface 31 includes an address search box 705 and a map 704. As shown in Figure 9D , after searching for address 1 entered by the user in the address search box 705, the terminal 100 displays address 1 and the corresponding add control 706. Address 1 may also be indicated on the map 704 using a location marker 707. As shown in Figures 9D and 9E , after detecting that a user has clicked on the add control 706, the terminal 100 displays the added address 1 and the corresponding delete control 708 on the user interface 30. The delete control 708 is used to delete the added address 1.
[0199] In some embodiments, after the user turns on the user-set decision factor, the terminal 100 can automatically set the initial volume playback mode corresponding to different states of some or all of the decision factors. The user can modify the initial volume playback mode automatically set by the terminal 100.
[0200] In some embodiments, the decision factor set by the user also includes the media volume, and the media volume includes the following two states: greater than a first threshold; less than or equal to the first threshold. The first threshold is set by the user or the terminal 100. The first threshold is used to indicate a relatively low media volume, for example, the first threshold is equal to 0 or 10% of the maximum volume. Exemplarily, the volume playback mode corresponding to the state of the media volume "less than or equal to the first threshold" is the media volume playback mode, and the volume playback mode corresponding to the state of the media volume "greater than the first threshold" is the silent playback mode. It can be understood that when the media volume is relatively low, the possibility of disturbing the user is small if the media volume is played out loud.
[0201] In some embodiments, referring to the relevant descriptions of Figures 5A to 9E, the user sets the parameters of each decision factor of the volume playback mode through the system settings, wherein the parameters of the decision factors other than the application (such as sports mode, venue type) are applicable to all applications of the terminal 100. In some embodiments, it is not limited to setting the volume playback mode of each decision factor in different states through system settings, but the parameters of each decision factor can also be set through application settings on an application basis. It is understandable that the parameters of the decision factor set in the application settings of APP1 are generally only applicable to APP1 and not to other apps.
[0202] Exemplarily, taking a browser as an example, Figures 10A to 10C show an example of a setting interface for calling up application settings. As shown in Figures 10A, 10B and 10C, the main interface 12 of the browser includes a menu control 801. After detecting that the user clicks on the menu control 801, the terminal 100 displays the setting control 802 of the existing browser; after detecting that the user clicks on the setting control 802, the terminal 100 displays the application setting interface 32 of the existing browser. The application setting interface 32 includes a volume playback mode decision bar 803. The volume playback mode decision bar 803 is used to set the relevant parameters of the decision factors of the volume playback mode of the browser. Specifically, how to set the volume playback mode corresponding to each decision factor through the application settings of the browser can refer to the relevant description of the volume playback mode in the aforementioned system settings, which will not be repeated here.
[0203] In some embodiments, when the user sets the parameters of each decision factor, it is not necessary to set the media volume or no media volume is set. Before the terminal 100 plays video 1, when the volume playback mode is determined to be the media volume playback mode or the silent countdown mode based on the user setting, the terminal 100 can obtain the current state of each decision factor, determine a historical playback data set in which the state of each decision factor is the same as the current state in the historical playback data, and then obtain the average media volume of each historical playback data in the historical playback data set, and use the average media volume as the preset media volume for video 1.
[0204] It should be noted that Figures 5A to 10C are only examples of the relevant user interfaces for users to set the volume playback mode provided in this application. The above user interfaces may include more or fewer controls, and the above examples should not constitute a limitation on this application.
[0205] The following describes how to determine the volume playback mode based on an intelligent decision-making model.
[0206] In the embodiment of the present application, the decision factors involved in the intelligent decision model and the decision factors involved in the user settings may be the same or different, and are not specifically limited here.
[0207] In some embodiments, before the terminal 100 plays the video 1, the volume playback mode is determined based on the intelligent decision model, including: the intelligent decision model obtains the current state of the decision factor; based on the current state of the decision factor, determines the risk level; the intelligent decision model determines the volume playback mode corresponding to the risk level.
[0208] In some embodiments, as shown in Table 1, the risk levels include low risk, medium risk, and high risk. The volume playback mode corresponding to medium risk is a silent countdown mode. The volume playback mode corresponding to high risk is a silent playback mode. In one implementation, the volume playback mode corresponding to low risk is a media volume playback mode. In another implementation, when the video is not played for the first time, the volume playback mode corresponding to low risk is the volume playback mode of the previous video of the video recorded by the terminal 100; when the video is played for the first time, the volume playback mode corresponding to low risk is a media volume playback mode.
[0209] Table 1
[0210] In some embodiments, the decision factors involved in the intelligent decision model include one or more strong factors, and the volume playback mode is determined based on the intelligent decision model, including: using the intelligent decision model to determine the volume playback mode based on the current state of the strong factors. Specifically, the terminal 100 obtains the current state of the strong factor and inputs it into the intelligent decision model; when the current state of the strong factor includes a preset state, the intelligent decision model determines the risk level corresponding to the preset state, and then determines the volume playback mode corresponding to the risk level. In the embodiment of the present application, the strong factors involved in the intelligent decision model and the strong factors set by the user mentioned above can be the same or different, and are not specifically limited here.
[0211] For example, Table 2 shows three strong factors: first play attribute, media volume, and external speaker device. The first play attribute of a video played by App 1 indicates whether the video is the first time App 1 is active. This means the first play attribute can be either a first play or a non-first play. The default first play attribute is non-first play, and the corresponding risk level for non-first play videos is low risk.
[0212] Table 2
[0213] In some embodiments, the decision factors involved in the intelligent decision model include multiple weak factors, and the volume playback mode is determined based on the intelligent decision model, including: using the intelligent decision model to determine the volume playback mode based on the current state of the weak factors. Specifically, the terminal 100 obtains the current value and / or current state of each weak factor and inputs it into the intelligent decision model; the intelligent decision model obtains the historical statistical data of the weak factors from the historical playback data of the video based on the current value and / or current state of each weak factor; obtains the risk score of the video playback based on the historical statistical data of each weak factor; determines the risk level corresponding to the risk score, and then determines the volume playback mode corresponding to the risk level. The historical playback data of the above-mentioned video may refer to the historical playback data of the video played by the browser, or may refer to the historical playback data of the video played by all APPs of the terminal 100, which is not specifically limited here.
[0214] In some embodiments, the decision factors involved in the intelligent decision model include one or more strong factors and multiple weak factors. The volume playback mode is determined based on the intelligent decision model, including: using the intelligent decision model to determine the volume playback mode based on the current state of the strong factors; if the strong factor is not detected, or the current state of the strong factor does not include the preset state, then using the intelligent decision model to determine the volume playback mode based on the current state of the weak factors.
[0215] The following is an exemplary description of the weak factors, historical playback data, and historical statistical data involved in the embodiments of the present application.
[0216] In some embodiments, a day is divided into multiple consecutive time periods (e.g., 7:00 PM to 8:00 PM and 8:00 PM to 9:00 PM) according to a preset duration (e.g., 1 hour). Weak factors include some or all of the following: time period, date, movement mode, geographic location, location type corresponding to the geographic location, external speaker device, operating mode, and application. The geographic location can be the longitude and latitude obtained by a positioning sensor, or a specific address obtained in conjunction with a positioning system.
[0217] In some embodiments, referring to the historical playback data shown in Table 3, the terminal 100 can record the playback data of a video (e.g., Video 3) during or after playback. As historical playback data, the playback data can include the current value and / or current status of each weak factor, volume playback mode, and media volume during the video playback. The current value of the time period is the time period corresponding to the current time, and the status of the time period (i.e., time period type) includes leisure time, work time, and sleep time. The current value of the date is the current specific date, and the status of the date (i.e., date type) includes weekdays and holidays. The current value of the geographic location is the current latitude and longitude, and the status of the geographic location is the location type to which the geographic location belongs. The status of the external speaker device, how to obtain the location type, the status of the motion mode, and how to obtain the motion mode can be referred to the relevant description of the previous embodiment and will not be repeated here. In one implementation, the recording time of the historical playback data can be the start time of the video playback, the moment when the video playback duration reaches a preset duration of 5 (e.g., 10 seconds), or the moment when the video playback ends; the data such as the motion mode, location type, external speaker device, volume playback mode, and media volume in the historical playback data can be obtained at the above recording time.
[0218] Table 3
[0219] The following introduces the historical statistical data of weak factors using time periods and geographical locations as examples. It can be understood that the historical statistical data of weak factors are used to collect user usage habits based on the weak factors.
[0220] In some embodiments, the intelligent decision-making model can obtain historical statistical data based on the time period from the historical playback data based on the current value of the time period; the historical statistical data includes statistical data of N (for example, 3) statistical periods, and the number of days in the latter period of the N statistical periods is greater than that in the previous period. Exemplarily, the current value of the time period is 08:00-09:00, and Table 4 shows a historical statistical data based on the time period "08:00-09:00"; the historical statistical data includes statistical data of 3 statistical periods, namely the last 3 days (i.e., the last 3 working days), the last 7 days, and the last 15 days. It can be understood that, as shown in Table 4, in the last 7 working days, the number of video playbacks in the historical playback data of the time period of 08:00-09:00 is 7, the number of times the media volume is played outward is 2, and the average media volume is 60%.
[0221] Table 4
[0222] In some embodiments, the intelligent decision-making model can obtain historical statistical data based on the geographic location from the historical playback data based on the current value of the geographic location; similarly, the historical statistical data includes statistical data of N (for example, 3) statistical periods, and the number of days in the latter period of the N statistical periods is greater than that in the previous period. Exemplarily, the current value of the geographic location is longitude and latitude aa, and all locations that are less than a preset distance (for example, 20 meters) from the current value are regarded as the same place. Table 5 shows a historical statistical data based on the geographic location; the historical statistical data includes statistical data of 3 statistical periods, namely the last 3 days, the last 7 days, and the last 15 days. It can be understood that, as shown in Table 5, the number of video playbacks in the historical playback data within 20 meters of longitude and latitude aa is 25, the number of times the media volume is played out is 9, and the average media volume is 65%.
[0223] Table 5
[0224] In some embodiments, N is a positive integer, for example, N is equal to 1, 2, 3, etc. The embodiments of the present application do not specifically limit the number of days in each cycle.
[0225] In some embodiments, historical statistical data based on a weak factor (e.g., geographic location) may also consider one or more other factors. These other factors may be decision factors not used to calculate the risk score (e.g., work mode, etc.). For example, the current geographic location is latitude and longitude aa, and the work mode is Do Not Disturb mode. Table 6 shows a historical statistical data based on geographic location.
[0226] Table 6
[0227] In some embodiments, the intelligent decision model obtains a risk score based on historical statistical data of each weak factor. Specifically, the intelligent decision model uses the historical statistical data of each weak factor to determine the risk score corresponding to each weak factor; and determines the comprehensive risk score of Video 1 based on the risk score corresponding to each weak factor. For example, Table 7 shows an example of determining the risk score corresponding to each weak factor.
[0228] As shown in Table 7, taking the time period as an example, the risk score determined based on the historical statistical data of the time period is equal to the weighted sum of the probabilities of media volume being played out loud corresponding to N statistical periods * the state weight of the current state. Different states of the time period (i.e., time period type) correspond to different state weights; for the risk of playing media volume out loud, the risk during working hours is higher than that during leisure hours, and the risk during leisure hours is higher than that during sleep hours; the higher the risk, the greater the weight. For example, the weight of the working hours is 1, the weight of the leisure hours is 0.3, and the weight of the sleep hours is 0.1. The shorter the statistical period (i.e., the closer the average date is to the current date), the greater the period weight. The probability of playing out loud in a statistical period refers to the probability of playing media volume out loud (i.e., the number of times the media volume is played out loud / the number of times the video is played out loud) within the above-mentioned time period type of the statistical period (e.g., the last 7 days).
[0229] Similarly, the risk scores corresponding to geographic location, date, exercise mode, external speaker device, and work mode can be referred to the relevant descriptions of the above time periods and will not be repeated here.
[0230] Table 7
[0231] In some embodiments, based on the risk scores corresponding to the weak factors, a weighted sum of the risk scores of the weak factors is calculated, and the resulting value is used as the risk score for playing the current video. As shown in Table 8, terminal 100 has preset risk score intervals corresponding to each risk level. Determining the risk level corresponding to the risk score includes: determining the risk score interval corresponding to the risk score of playing the current video; and determining the risk level corresponding to the risk score interval.
[0232] Table 8
[0233] The following is an introduction to the software structure of the terminal 100 involved in the embodiment of the present application.
[0234] The software system of the terminal 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the terminal 100.
[0235] FIG11 is a block diagram of the software structure of the terminal 100 according to an embodiment of the present invention.
[0236] As shown in Figure 11, the layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided from top to bottom into the application layer (Application), the application framework layer (Framework), the hardware abstraction layer (HAL) layer, and the kernel layer (Kernel). Among them:
[0237] The application layer includes a series of application packages, such as browser, video, WLAN, Bluetooth, etc. It can also include applications such as camera, gallery, call, music, etc.
[0238] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0239] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0240] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0241] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0242] The kernel layer is the layer between hardware and software. It can include display drivers, sensor drivers, touch IC drivers, camera drivers, audio drivers, and more. The HAL layer and kernel layer (kernel) respond to functions called by the application framework layer and execute corresponding operations.
[0243] The application framework layer may include: browser UI, browser background services, browser basic services and volume decision services. The kernel layer includes kernel services.
[0244] The browser UI is used to implement the interactive interface of the browser and provide a graphical interface that the user can operate. For example, the countdown prompt information of the mute countdown, the mute control, the continuous mute control and the external speaker control involved in the embodiment of the application are implemented through the browser UI.
[0245] The browser backend service is used to provide background functions for the browser UI. Each function control displayed in the browser UI corresponds to one or more backend service interfaces. For example, the "resuming media volume after a preset period of silent playback" involved in the embodiments of this application is implemented by calling the function interface provided by the browser backend service.
[0246] Browser basic services are used to provide basic browser functions, such as playing videos, adding videos to favorites, and managing comments.
[0247] The volume decision service is used to collect the current required data of decision factors, such as time, date, external speaker device, exercise mode, geographic location, and other information, and comprehensively decide the current volume playback mode based on the collected required data of decision factors.
[0248] The kernel service is used to provide basic services of the operating system of the terminal 100, such as querying time and date, querying sensor data, querying working mode, adjusting working mode, querying system media volume, adjusting system media playback volume, etc.
[0249] Exemplarily, in combination with the above software structure, taking a browser as an example, FIG12A shows a method flow of a volume control method, which includes but is not limited to steps S101 to S110.
[0250] S101 , the browser UI detects a user input operation 1 , and the input operation 1 triggers the playback of video 1 .
[0251] In some embodiments, input operation 1 is applied to video 1 , for example, input operation 1 includes a user clicking a play button / video link of video 1 displayed in a browser.
[0252] In some embodiments, input operation 1 does not act on video 1, and input operation 1 triggers terminal 100 to display the playback area of video 1 in the browser; terminal 100 automatically plays video 1 when displaying the playback area of video 1.
[0253] In some embodiments, input operation 1 may include an operation for launching a browser. After launching the browser, the homepage of the browser displays a playback area for automatically playing video 1. Exemplarily, input operation 1 includes a user clicking an application icon of the browser displayed on a system interface (e.g., a home screen, a negative screen, etc.) of the terminal 100, or a user clicking an application link of the browser displayed by another APP. The embodiments of the present application do not limit the input operation of launching an APP.
[0254] In some embodiments, input operation 1 may include sliding the browser's user interface upward / downward. After sliding the browser's user interface, the user interface displays a playback area for automatically playing video 1. For example, as shown in Figures 2A and 2B, input operation 1 includes a user sliding upward on the browser's main interface 12. In response to input operation 1, the browser displays a playback area 201 for video 1 and automatically plays video 1.
[0255] In some embodiments, when the browser is switched to the background, Video 1 is playing; Input Operation 1 includes switching the browser to the foreground; After the browser is switched from the background to the foreground, the playback area of Video 1 is displayed and Video 1 automatically continues to play. Exemplarily, Input Operation 1 includes a click operation on a task card in the browser in the historical task interface.
[0256] In some embodiments, input operation 1 includes an operation in which a user clicks on a video channel in a browser; the video channel in the browser triggers the playback of video 1 in a video continuous playback stream mode.
[0257] S102 : Based on the above input operation 1 , the browser UI requests the browser background service to play video 1 .
[0258] S103, the browser backend service requests the volume decision service to decide the volume playback mode of video 1.
[0259] S104: The volume decision service requests the browser basic service to detect whether Video 1 is the first video played by the browser in an active state.
[0260] In some embodiments, the browser basic service records the video playback records of the browser in the active state. The browser basic service determines whether the browser has played any videos in the current active state based on the video playback records; if not, the video 1 currently to be played is the first video to be played.
[0261] S105 . The volume decision service obtains the current required data of the decision factor from the core service, including some or all of the following: media volume, time, date, external speaker device, motion data, location information, and working mode.
[0262] In some embodiments, the volume decision service executes S105 only when video 1 is played for the first time. Optionally, if video 1 is not played for the first time, the volume decision service obtains the volume playback mode of the last video played by the browser from the browser background service, and the decision result indicates the volume playback mode. Optionally, the core service records the volume playback mode of the videos played by each APP within a preset time length; if video 1 is not played for the first time, the volume decision service obtains the volume playback mode of the last video played by the terminal 100 from the core service, and the decision result indicates the volume playback mode.
[0263] In some embodiments, the first broadcast attribute of video 1 (ie, whether it is the first time the video is played) is used as a decision factor in user settings and / or intelligent decision models.
[0264] Step S104 is optional. In some embodiments, step S104 does not need to be performed, and step S105 is performed after step S103.
[0265] In one implementation, the app backend service of an app with independent volume control records the application media volume, while the kernel service of terminal 100 records the system media volume. In step S105, if the browser is an application with independent volume control, the volume decision service requests the browser backend service to obtain the application media volume; if the browser is not an application with independent volume control, the volume decision service requests the kernel service to obtain the system media volume.
[0266] In one implementation, the app backend service of each independently volume-controlled app can update the application media volume to the core service in real time, and the core service of the terminal 100 can record the application media volume of all independently volume-controlled apps. In step S105, the volume decision service directly obtains the browser's application media volume or system media volume from the core service.
[0267] In some embodiments, according to user settings and / or decision factors involved in the intelligent decision model, step S105 specifically includes part or all of S105A-S105F.
[0268] S105A: The volume decision service obtains the currently recorded media volume from the core service.
[0269] Specifically, the volume decision service sends a request to the core service, where the request is used to obtain the currently recorded media volume (eg, the system media volume or the browser's application media volume); the core service sends the above media volume to the volume decision service.
[0270] S105B: The volume decision service obtains the external speaker device currently connected to the terminal 100 from the core service.
[0271] S105C: The volume decision service obtains the current time and date from the kernel service.
[0272] S105D: The volume decision service obtains required data on geographic location and / or venue type from the core service.
[0273] S105E: The volume decision service obtains the required data of the motion mode from the core service.
[0274] S105F: The volume decision service obtains the current working mode of the terminal 100 from the core service.
[0275] Similar to step S105A, in the implementation of steps S105B-S105F, the volume decision service first sends a request to the core service; then, based on the request, the core service feeds back the required data to the volume decision service. The specific process is not detailed here. This embodiment of the application does not specifically limit the execution order of steps S105A-S105F.
[0276] For example, referring to the time period setting interface 24 shown in FIG6A , the volume decision service determines the volume playback mode corresponding to the specific state of the time period set by the user based on the user settings in the setting interface 24; therefore, step S105C is executed in step S105 to obtain the current time to determine the current state of the time period.
[0277] It should be noted that the data that the browser can obtain from the kernel service is limited by the browser's permissions. For example, if the user has enabled the browser's permission to obtain the location, the real-time location can be obtained; if the above permission is not enabled, the kernel will record an empty location.
[0278] S106: The volume decision service obtains user settings for deciding the volume play mode. The parameters set by the user indicate the volume play mode of each decision factor in different states.
[0279] The above user settings may come from system settings or from application settings of the browser. In some embodiments, step S106 includes S106A and / or S106B.
[0280] S106A: The volume decision service obtains user settings for deciding the volume playback mode from the core service.
[0281] S106B: The volume decision service obtains user settings for deciding the volume playback mode from the browser's basic service.
[0282] In some embodiments, when a state of a decision factor in the user settings corresponds to a media volume playback mode or a silent countdown mode, the user-set parameter is also used to indicate a preset media volume for video playback. Referring to the aforementioned embodiment, the preset media volume in the user settings can be manually set by the user or an average media volume in that state obtained by terminal 100 based on historical playback data.
[0283] S107. The volume decision service determines the volume playback mode based on the current state of the decision factor and the above-mentioned user settings. The current state of the decision factor is determined by the volume decision service based on the current required data of the decision factor involved in the user settings. If the volume playback mode is determined, execute S111; if it cannot be determined, execute S108.
[0284] Exemplarily, in the intelligent decision-making model, the required data for the weak factor "time period" includes the current time (e.g., 09:08). Referring to Figures 6A to 6F, the user has added one or more time periods in their settings. If the current time falls within one of the one or more time periods (e.g., 09:00-12:00), the current state of the "time period" is that time period (e.g., 09:00-12:00), and the user setting indicates the volume playback mode corresponding to that time period. The required data for the decision factor "sports mode" includes data detected by specific sensors, notification messages received by specific applications, information preset by the user in specific applications, and some or all of the devices to which the terminal 100 is wired or wirelessly connected. The current state of the "time period" can be stationary, walking, running, cycling, driving, subway, train, or airplane, etc.
[0285] Specifically, how to determine the volume playback mode based on the current state of the decision factor and the above-mentioned user settings can be referred to the above embodiment, which will not be repeated here.
[0286] S108. The volume decision service determines the volume playback mode according to the current state of the decision factor using the intelligent decision model. The current state of the decision factor is determined by the volume decision service according to the current required data of the decision factor involved in the intelligent decision model.
[0287] In the embodiment of the present application, the decision factors involved in the user settings and the decision factors involved in the intelligent decision model may be partially the same or completely the same, and no specific limitation is made here.
[0288] In some embodiments, the volume decision service may directly obtain the current state of the decision factor from the core service; the current state of the decision factor is determined by the core service according to the current required data of the decision factor.
[0289] For example, in the intelligent decision-making model, the required data for the weak factor "time period" includes the current time (e.g., 09:08). The current time corresponds to a preset time period (e.g., 09:00-10:00) divided by a preset duration of 2 (e.g., 1 hour). The current value of "time period" is the preset time period, and the current state of "time period" is the time period type of the preset time period, such as working hours. The required data for the decision factor "date" includes the current value of "date", such as August 8, 2022, and the current state of the decision factor "date" is the date type corresponding to the current date, i.e., working day.
[0290] In some embodiments, step S108 includes steps S108A-S108C.
[0291] S108A: When the decision factors include a strong factor, the volume decision service first uses the intelligent decision model to determine the volume playback mode according to the current state of the strong factor; when no strong factor is detected or the current state of the detected strong factor does not include the preset state, execute S108B.
[0292] In some embodiments, the intelligent decision model pre-stores a volume playback mode corresponding to a preset state of a strong factor. When the current state of the strong factor includes a preset state, the intelligent decision model can determine that the volume playback mode of video 1 is the volume playback mode corresponding to the preset state. For example, refer to the correspondence between the preset state and volume playback mode of the strong factor shown in Table 1. For example, when the current state of the external speaker includes headphones, the volume playback mode is the media volume playback mode; when the current state of the media volume is 0, the volume playback mode is the media volume playback mode.
[0293] S108B. The decision factor includes multiple weak factors. Based on the current value and / or current state of each weak factor, the volume decision service obtains historical statistical data of each weak factor from the browser backend service. The current state of the weak factor is determined based on the current required data of the weak factor.
[0294] Specifically, the browser backend service records historical playback data for videos played by the browser. The volume decision service sends the current value and / or current state of the weak factor to the browser backend service. Based on the current value and / or current state of the weak factor, the browser backend service obtains historical statistical data for the weak factor from the historical playback data. The browser backend service then sends the historical statistical data to the volume decision service.
[0295] In some embodiments, the core service of terminal 100 records the historical playback data of all apps. In step S108, the volume decision service may also obtain historical statistical data corresponding to the current state of the weak factor from the core service. Specifically, the volume decision service sends the current value and / or current state of the weak factor to the core service; based on the current value and / or current state of the weak factor, the core service obtains historical statistical data of the weak factor from the recorded historical playback data of all videos; and the browser backend service sends the above historical statistical data to the volume decision service.
[0296] Specifically, how to use the current value and / or current state of the weak factor and the historical playback data to determine the historical statistical data of the weak factor can be referred to the above embodiment and will not be described in detail here.
[0297] S108C. The intelligent decision-making model uses historical statistical data of each weak factor to determine the volume playback mode.
[0298] In some embodiments, before step S108C, the process further includes: removing abnormal data from the historical statistical data. It is understood that due to abnormal hardware, software, and / or user behavior, some data in the historical statistical data (i.e., abnormal data) may be unreliable. Terminal 100 may remove abnormal data in advance.
[0299] Specifically, how the intelligent decision model uses the current state of the decision weak factor and the historical statistical data of the weak factor to determine the volume playback mode can be referred to the above embodiment and will not be repeated here.
[0300] S109. The volume decision service returns the decision result to the browser backend service.
[0301] S110. The browser backend service sets the volume playback mode of video 1 according to the decision result.
[0302] In some embodiments, if the volume decision service determines a volume playback mode, the decision result indicates the volume playback mode, and the browser backend service plays Video 1 according to the volume playback mode. If the volume decision service does not determine a volume playback mode, the decision result indicates that no volume playback mode has been determined or a default volume playback mode has been determined. The browser backend service plays Video 1 according to the default volume playback mode based on the decision result. The default volume playback mode is one of a silent playback mode, a silent countdown mode, and a media playback mode. In one implementation, to avoid the risk of external playback, the default volume playback mode is a silent countdown mode.
[0303] In some embodiments, the decision factors involved in the user settings and the decision factors involved in the intelligent decision model may differ in part or in whole. In step S105, only the current required data for the decision factors involved in the user settings is obtained. In step S107, if the volume playback mode has not been determined based on the user settings, the current required data for the decision factors involved in the intelligent decision model is obtained, and step S108 is executed, i.e., the intelligent decision model is used to determine the volume playback mode based on the current state of the decision factors.
[0304] Steps S106 and S107 are optional. In some embodiments, in step S105, only the current required data of the decision factors involved in the intelligent decision model is obtained; after step S105, the terminal 100 directly executes S108, that is, only using the intelligent decision model to determine the volume playback mode based on the current status of the decision factors.
[0305] Steps S108-S110 are optional. In some embodiments, in step S105, only the current required data of the decision factors involved in the user settings is obtained; after step S107, step S111 is executed (i.e., the decision result is returned), that is, the volume playback mode is determined based solely on the current status of the decision factors set by the user.
[0306] In some embodiments, within a short period of time after playing video 1 according to the decision result, if the user adjusts the volume playback mode and / or media volume of video 1, terminal 100 can record the user's adjustment behavior for use in optimizing the intelligent decision model. In one implementation, as shown in Figure 12B, within the preset duration 3 of playing video 1, the user adjusts the volume playback mode of video 1 through the browser, and steps S111-S115 are also included after step S110.
[0307] S111 . Within a preset duration 3 of playing video 1 , the browser UI detects a user input operation 2 , where the input operation 2 is used to adjust the volume playback mode.
[0308] The preset duration 3 and the mute countdown duration can be the same or different. The preset duration 3 is a shorter duration after playing video 1, for example, the preset duration 3 is equal to 3 seconds.
[0309] S112: Based on input operation 2, the browser UI requests the browser background service to adjust the volume playback mode.
[0310] S113. The browser background service adjusts the volume and playback mode.
[0311] For example, referring to Figures 2C and 2D , video 1 in the browser is played in media volume playback mode, and terminal 100 displays a speaker control 202 corresponding to video 1, which indicates that video 1 is currently in media volume playback mode. Input operation 2 includes an input operation (e.g., a click operation) acting on speaker control 202, and input operation 2 is used to adjust the media volume playback mode to silent playback mode.
[0312] For example, referring to Figures 3C and 3D , video 1 in the browser is played in silent playback mode, and terminal 100 displays a mute control 203 corresponding to video 1, which is used to indicate that video 1 is currently in silent playback mode. Input operation 2 includes an input operation (e.g., a click operation) acting on mute control 203, and input operation 2 is used to adjust the silent playback mode to the media volume playback mode.
[0313] For example, referring to FIG4E , the video 1 of the browser is played in a silent countdown mode, and the terminal 100 displays a mute control 203 corresponding to the video 1. Input operation 2 includes an input operation (e.g., a click operation) acting on the mute control 203, and input operation 2 is used to adjust the silent countdown mode to the media volume playback mode. Referring to FIG4E and FIG4F , the video 1 of the browser is played in a silent countdown mode, and the terminal 100 displays a continuous mute control 208. Input operation 2 includes an input operation (e.g., a click operation) acting on the continuous mute control 208, and input operation 2 is used to adjust the silent countdown mode to the silent playback mode.
[0314] For example, referring to Video 2 of the video app shown in Figures 3I and 3J , Input Operation 2 may also include an upward / downward swipe by the user on the right half of the playback area of Video 1. In silent playback mode / silent countdown mode, Input Operation 2 is used to switch the silent playback mode / silent countdown mode to media volume playback mode, and increase / decrease the media volume of the video playback according to the sliding parameters of the above sliding operation (e.g., sliding distance, sliding speed).
[0315] S114: The browser UI notifies the volume decision service of the user's behavior of adjusting the volume playback mode.
[0316] S115. The volume decision service records the user's adjustment behavior and optimizes the intelligent decision model.
[0317] In some embodiments, the volume decision service collects the user's adjustment behavior and regularly optimizes the state weight of each decision factor based on the user's adjustment behavior. In one implementation, the volume decision service records the previous state of each decision factor when the user's adjustment behavior occurs; the volume decision service determines N adjustment behaviors to adjust volume adjustment mode 1 to volume adjustment mode 2, and the states of each decision factor corresponding to the N adjustment behaviors. Determine whether the probability of occurrence of each state of each decision factor in the N adjustment behaviors is greater than probability threshold 1. Taking state 1 of decision factor 1 as an example, if the probability of occurrence of state 1 of decision factor 1 is greater than probability threshold 1, the state weight of state 1 is adjusted.
[0318] In one implementation, adjusting the state weight of state 1 includes: if the risk level corresponding to volume adjustment mode 1 is higher than the risk level corresponding to volume adjustment mode 2, reducing the state weight of state 1; if the risk level corresponding to volume adjustment mode 1 is lower than the risk level corresponding to volume adjustment mode 2, increasing the state weight of state 1. In one implementation, reducing / increasing the state weight of state 1 includes: reducing / increasing the state weight of state 1 according to a preset step size (e.g., 0.1).
[0319] In one implementation, as shown in FIG12B , during the preset duration 4 of playing the video 1 , the user adjusts the media volume of the video 1 through the input operation 3 , and steps S116 - S119 are further included after step S110 .
[0320] S116 : Within the preset duration 4 of playing the video 1 , the kernel service adjusts the media volume.
[0321] The preset duration 4 and the preset duration 3 may be the same or different, and are not specifically limited here. The preset duration 4 is a shorter duration after playing the video 1, for example, the preset duration 4 is equal to 5 seconds.
[0322] In some embodiments, during a preset duration 4 of playing video 1, a user input operation 3 triggers the kernel service to adjust the media volume. Input operation 3 includes pressing a volume key, adjusting a volume bar in a system interface (e.g., a control center), and the like. This embodiment of the present application does not specifically limit the input operation that triggers the kernel service to adjust the media volume.
[0323] In some embodiments, if the browser is an application with independent volume control, the kernel service adjusts the application media volume based on input operation 3; if the browser is not an application with independent volume control, the kernel service adjusts the system media volume based on input operation 3.
[0324] S117: The browser basic service detects that the media volume is reduced to zero or increased from zero within the preset duration 4.
[0325] In some embodiments, the browser basic service periodically obtains the media volume from the kernel service and monitors whether the media volume changes.
[0326] S118: The browser basic service notifies the volume decision service of the user's action of adjusting the media volume.
[0327] S119. Record the user's adjustment behavior and optimize the intelligent decision-making model.
[0328] In some embodiments, the volume decision service collects the user's adjustment behavior and regularly optimizes the state weight of each decision factor based on the user's adjustment behavior. In one implementation, the volume decision service records the previous state of each decision factor when the user's adjustment behavior occurs; the volume decision service determines N adjustment behaviors of reducing the volume to zero or increasing the volume from zero, and the states of each decision factor corresponding to the N adjustment behaviors. Determine whether the probability of occurrence of each state of each decision factor in the N adjustment behaviors is greater than the probability threshold 1. Taking state 1 of decision factor 1 as an example, if the probability of occurrence of state 1 of decision factor 1 is greater than the probability threshold 1, the state weight of state 1 is adjusted.
[0329] In one implementation, adjusting the state weight of state 1 includes: if the user's adjustment behavior is to reduce the volume to zero, increasing the state weight of state 1; if the user's adjustment behavior is to increase the volume from zero, decreasing the state weight of state 1. In one implementation, decreasing / increasing the state weight of state 1 includes: decreasing / increasing the state weight of state 1 according to a preset step size (e.g., 0.1).
[0330] In some embodiments, as shown in FIG12B , step S110 is followed by step S120 .
[0331] S120: Record the historical playback data of the video 1.
[0332] In some embodiments, when the duration of playing video 1 reaches a preset duration 5, the historical playback data of video 1 is recorded. For example, the preset duration 5 is 10 seconds.
[0333] Exemplarily, FIG12C shows a method flow of a volume control method, which includes but is not limited to steps S201 to S210.
[0334] S201: A first application of a terminal detects a first input operation, where the first input operation is used to trigger the first application to play a first video.
[0335] The first input operation includes the aforementioned input operation 1. The first application is an application that can play videos, for example, the first application can be a video app, an information app, a social app, etc. The embodiment of this application does not specifically limit the first application. For example, the first video played by the first application is Video 1 played by the aforementioned browser, Video 2 played by a video app, Video 3 played by a short video app, etc.
[0336] S202. In response to the first input operation, the terminal detects whether the first video is the first video played by the first application in an active state; if it is not the first video played, execute S203; if it is the first video played, execute S204.
[0337] S203: The terminal determines the decision result of the volume play mode, indicating: the volume play mode of the last played video of the first application recorded by the terminal.
[0338] S204: The terminal obtains at least one decision factor set by the user and the current state of the terminal.
[0339] In some embodiments, the at least one decision factor is a decision factor involved in the user setting of the volume playback mode, and the user setting indicates the volume playback mode corresponding to different states of the decision factor; the current state of the terminal includes the current state of the at least one decision factor.
[0340] For example, referring to the descriptions of Figures 5A to 9E , the decision factors involved in user settings include some or all of the following: time period, media volume, application, external speaker, work mode, exercise mode, and location type. The user can set the volume playback mode corresponding to one or more states of each decision factor in the system settings / application settings. The current state of the terminal in step S204 refers to the current state of each decision factor obtained by the terminal, such as the external speaker currently connected to the terminal, the location type, and so on.
[0341] Steps S202-S203 are optional. In some embodiments, it is not necessary to detect whether the first video is the first video to be played; in response to the first input operation, the terminal can directly execute S204.
[0342] S205: The terminal determines a volume playback mode according to the at least one decision factor and the current state.
[0343] S206. When the decision result of the volume playback mode indicates the first volume playback mode, the first application plays the first video according to the first volume playback mode; the first volume playback mode includes one of the following modes: silent playback mode, media volume playback mode, and silent countdown mode.
[0344] In some embodiments, when the first volume playback mode is a silent playback mode, the first application plays the first video silently; when the first volume playback mode is a media volume playback mode, the first application plays the first video at the media volume; when the first volume playback mode is a silent countdown mode, during the first duration of the playback of the first video, the first video is played silently and a countdown prompt message is displayed; after playing the first video for the first duration, the first video is played at the media volume.
[0345] The first duration may include the aforementioned preset duration 1, such as 3s.
[0346] For example, Figures 2A-2F illustrate implementations of a user interface for playing a video when the first volume playback mode is the media volume playback mode. For example, Figures 3A-3J illustrate implementations of a user interface for playing a video when the first volume playback mode is the silent playback mode. For example, Figures 4A-4H illustrate implementations of a user interface for playing a video when the first volume playback mode is the silent countdown mode.
[0347] In some embodiments, the at least one decision factor includes a first decision factor, and before the first application of the terminal detects the first input operation, the method further includes: displaying at least one state of the first decision factor on a first interface set by the user, the at least one state including the first state; detecting a second input operation acting on the first state of the first decision factor, the second input operation being used to set the volume playback mode corresponding to the first state to the first volume playback mode; and displaying the first volume playback mode corresponding to the first state of the first decision factor in response to the second input operation.
[0348] Exemplarily, the at least one decision set by the user includes various decision factors displayed on the decision interface 22, such as time period, application, external speaker device, work mode, exercise mode and location type.
[0349] The first interface is the settings interface corresponding to the first decision factor. Exemplarily, the first interface is a time period settings interface 24, the first state is a user-added time period (e.g., 17:00-19:00), and the second input operation includes a user operation (e.g., a click operation) on option 407 for silent countdown mode. Exemplarily, the first interface is an application settings interface 25, a work mode settings interface 26, a sports mode settings interface 27, a speaker device settings interface 28, or a venue type settings interface 29.
[0350] In some embodiments, the user settings belong to system settings, and the first interface belongs to the interface for setting the volume playback mode in the system settings; or, the user settings belong to application settings of a first application, and the first interface belongs to the interface for setting the volume playback mode in the application settings of the first application. For example, referring to the relevant descriptions of Figures 5A to 9E, the user can set the volume playback mode through the system settings. For example, referring to the relevant descriptions of Figures 10A to 10C, the user can set the volume playback mode through the application settings.
[0351] In some embodiments, the user setting indicates a priority of the at least one decision factor; the terminal determines the volume playback mode based on the at least one decision factor and the current state, including: determining the volume playback mode corresponding to the current state of each decision factor according to the user setting in descending order of priority of each decision factor, until the volume playback mode is determined. For example, referring to the relevant description of Figures 5D to 5E, each decision factor has a priority, and the user can set the priority of each decision factor.
[0352] In some embodiments, the at least one decision factor includes a first decision factor, and the user setting indicates that the first state of the first decision factor corresponds to the first volume playback mode; the current state of the first decision factor is the first state. For example, referring to the description of Figures 6A to 6E , the first state of the first decision factor is "5:00 PM - 7:00 PM," and the corresponding first volume playback mode is a countdown mode.
[0353] In some embodiments, when the first volume playback mode is a silent countdown mode or a media volume playback mode, the user setting further indicates a preset media volume corresponding to the first state of the first decision factor; the first application plays the first video according to the first volume playback mode, including: when the first volume playback mode is the media volume playback mode, the first application plays the first video at the preset media volume; when the first volume playback mode is a silent countdown mode, the first video is played silently during a first duration of the first video; when the first video is played for the first duration, the first video is played at the preset media volume. For example, referring to the relevant description of Figures 6A to 6E, the first state of the first decision factor is "17:00-19:00", and the corresponding preset media volume is 65%.
[0354] In some embodiments, when the first volume playback mode is a silent countdown mode or a media volume playback mode, the method further includes: detecting a third input operation acting on the first state of the first decision factor; and in response to the third input operation, displaying a preset media volume corresponding to the first state of the first decision factor. For example, referring to the description of Figures 6A to 6E , the user can manually set the preset media volume.
[0355] In some embodiments, the preset media volume is determined by the terminal based on the media volume recorded in first historical playback data, where the first historical playback data is historical playback data of the played video that satisfies the first state of the first decision factor. For example, the preset media volume corresponding to the time period "17:00-19:00" is determined by the terminal based on the media volume recorded in first historical playback data. The first historical playback data includes historical playback data recorded within the time period "17:00-19:00." The preset media volume is the average media volume corresponding to the first historical playback data.
[0356] In some embodiments, the first volume playback mode is a silent countdown mode, and the method further includes: when the first application displays countdown information, displaying the first control; detecting a fourth input operation acting on the first control; in response to the fourth input operation, stopping displaying the countdown information, and playing the first video in silent playback mode. In implementing the embodiment of the present application, through the first control, before the countdown ends, the silent countdown mode can be quickly switched to the silent playback mode to avoid the media volume being played outward after the countdown ends. For example, referring to the relevant description of Figures 4A-4H, the first control can be a continuous mute control 208, and the fourth input operation includes an operation acting on the continuous mute control 208 (such as a click operation).
[0357] In some embodiments, the first volume playback mode is a silent countdown mode or a silent playback mode, and the method further includes: when the first application plays the first video silently, a second control is displayed; the second control is used to indicate silent playback of the video; a fifth input operation acting on the second control is detected; in response to the fifth input operation, the first video is played according to the media volume playback mode, and the second control is replaced by a third control; the third control is used to indicate playback of the video according to the media volume.
[0358] In some embodiments, the method also includes: when the first application plays the first video at the media volume, displaying a third control; the third control is used to indicate that the video is played at the media volume; detecting a sixth input operation acting on the third control; in response to the sixth input operation, playing the first video in silent playback mode, and replacing the third control with a second control; the second control is used to indicate silent playback of the video.
[0359] For example, referring to the relevant descriptions of Figures 3A-4H, the second control can be the mute control 203, the third control can be the speaker control 202, the fifth input operation includes an operation acting on the mute control 203 (for example, a click operation), and the sixth input operation includes an operation acting on the speaker control 202 (for example, a click operation).
[0360] In some embodiments, the at least one decision factor includes a strong factor, and the user setting indicates the volume playback mode corresponding to the preset state of the strong factor; the terminal determines the volume playback mode based on the at least one decision factor and the current state, including: the terminal determines whether the current state of the strong factor includes the preset state; if the current state of the strong factor includes the preset state, then the volume playback mode of the first video is determined to be the volume playback mode corresponding to the preset state of the strong factor; if the current state of the strong factor does not include the preset state, the terminal determines the volume playback mode based on the current state of the at least one decision factor other than the preset state.
[0361] In some embodiments, the at least one decision factor includes a second decision factor, and the method further includes: detecting a seventh input operation acting on a second state of the second decision factor; in response to the second input operation, setting the second decision factor to a strong factor, and the preset state of the second decision factor includes the second state.
[0362] 8A-8D , the user can set the volume playback mode corresponding to the preset state of the strong factor. For example, the second state of the second decision factor includes the earphone corresponding to the external speaker.
[0363] In some embodiments, when the terminal fails to determine the volume playback mode according to the at least one decision factor and the current state, the decision result of the volume playback mode is used to indicate a default volume playback mode.
[0364] In some embodiments, the default volume playback mode is a silent countdown mode. Implementation of the present application embodiment can reduce the risk of external media volume.
[0365] In some embodiments, before the first application plays the first video in the first volume playback mode, the method further includes: when the terminal does not determine the volume playback mode based on the at least one decision factor and the current state, the terminal determines the volume playback mode using an intelligent decision model.
[0366] In some embodiments, the above-mentioned terminal uses an intelligent decision-making model to determine the volume playback mode, including: based on the current status of each decision factor involved in the intelligent decision-making model and the historical playback data of the played video, the terminal obtains historical statistical data of each decision factor; the intelligent decision model determines the volume playback mode based on the historical statistical data of each decision factor.
[0367] In some embodiments, the at least one decision factor includes some or all of the following: time period, date, media volume, application, external speaker, work mode, exercise mode, and venue type.
[0368] In some embodiments, when the first application is an application with independent volume control, the media volume is the application media volume of the first application; when the first application is not an application with independent volume control, the media volume is the system media volume.
[0369] In some embodiments, the terminal records historical playback data of the first video at a first moment, and the historical playback data includes the current state of the at least one decision factor obtained at the first moment; if the first application plays the first video according to the first media volume at the first moment, the historical playback data of the first video also includes the first media volume.
[0370] In some embodiments, the time from the start of playing the first video to the first time is a first duration (eg, the aforementioned preset duration 5).
[0371] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.
[0372] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may 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 drive (SSD)).
[0373] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0374] In short, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection of the present invention.
Claims
1. A volume control method, characterized in that: include: A first application of the terminal detects a first input operation, where the first input operation is used to trigger the first application to play a first video; The terminal acquires at least one decision factor set by a user and a current state of the terminal; The terminal determines a volume playback mode according to the at least one decision factor and the current state; When the decision result of the volume play mode indicates a first volume play mode, the first application plays the first video according to the first volume play mode; The first volume play mode includes one of the following modes: a silent play mode, a media volume play mode, and a silent countdown mode.
2. The method according to claim 1, characterized in that The at least one decision factor is a decision factor involved in a user setting of a volume play mode, and the user setting indicates a volume play mode corresponding to different states of the decision factor; and the current state of the terminal includes the current state of the at least one decision factor.
3. The method according to claim 1, characterized in that When the first volume playback mode is the silent playback mode, the first application plays the first video silently; When the first volume playback mode is the media volume playback mode, the first application plays the first video according to the media volume; When the first volume playback mode is the silent countdown mode, the first video is played silently during the first duration of playing the first video, and a countdown prompt message is displayed; after playing the first video to the first duration, the first video is played at the media volume.
4. The method according to claim 1, characterized in that: Before the terminal acquires at least one decision factor set by a user and the current state of the terminal, the method further includes: The terminal detects whether the first video is a first-time played video of the first application in an active state; The terminal acquires at least one decision factor set by a user and a current state of the terminal, including: In a case where the first video is the first-time played video, the terminal obtains at least one decision factor set by the user and a current state of the terminal.
5. The method according to claim 4, characterized in that When the first video is not the first played video, the decision result of the volume playback mode indicates the volume playback mode of the last played video of the first application recorded by the terminal.
6. The method according to claim 4, characterized in that The first application being in the active state includes: starting the first application, switching the first application from a non-running state to a foreground running state; and switching the first application from a background running state to a foreground running state.
7. The method according to claim 1, characterized in that The at least one decision factor includes a first decision factor, and before the first application of the terminal detects the first input operation, the method further includes: Displaying at least one state of the first decision factor on the first interface set by the user, wherein the at least one state includes a first state; detecting a second input operation acting on the first state of the first decision factor, the second input operation being used to set a volume playback mode corresponding to the first state to a first volume playback mode; In response to the second input operation, a first volume playback mode corresponding to the first state of the first decision factor is displayed.
8. The method according to claim 7, characterized in that The user setting belongs to the system setting, and the first interface belongs to the interface for setting the volume playback mode in the system setting; or, the user setting belongs to the application setting of the first application, and the first interface belongs to the interface for setting the volume playback mode in the application setting of the first application.
9. The method according to claim 1, characterized in that: The user setting indicates a priority of the at least one decision factor; The terminal determines the volume playback mode according to the at least one decision factor and the current state, including: According to the priority order of each decision factor from high to low, the volume play mode corresponding to the current state of each decision factor is determined according to the user setting until the volume play mode is determined.
10. The method according to claim 1, 7 or 9, characterized in that The at least one decision factor includes the first decision factor, and the user setting indicates that the volume playback mode corresponding to the first state of the first decision factor is the first volume playback mode; The current state of the first decision factor is the first state.
11. The method according to claim 10, characterized in that When the first volume playback mode is a silent countdown mode or a media volume playback mode, the user setting further indicates a preset media volume corresponding to the first state of the first decision factor; The first application plays the first video according to the first volume playback mode, including: When the first volume playback mode is a media volume playback mode, the first application plays the first video at a preset media volume; When the first volume playback mode is a silent countdown mode, the first video is played silently during the first duration of playing the first video; when the first video is played to the first duration, the first video is played according to the preset media volume.
12. The method according to claim 11, characterized in that When the first volume play mode is a silent countdown mode or a media volume play mode, the method further includes: detecting a third input operation acting on the first state of the first decision factor; In response to the third input operation, a preset media volume corresponding to the first state of the first decision factor is displayed.
13. The method according to claim 11, characterized in that The preset media volume is determined by the terminal according to the media volume recorded in the first historical playback data, where the first historical playback data is historical playback data of the played video that satisfies the first state of the first decision factor.
14. The method according to claim 1, characterized in that The first volume playback mode is a silent countdown mode, and the method further includes: When the first application displays countdown information, a first control is displayed; detecting a fourth input operation acting on the first control; In response to the fourth input operation, the countdown information is stopped from being displayed, and the first video is played in a silent playback mode.
15. The method according to claim 1, characterized in that The first volume play mode is a silent countdown mode or a silent play mode, and the method further includes: When the first application plays the first video silently, a second control is displayed; the second control is used to indicate silent video playback; detecting a fifth input operation acting on the second control; In response to the fifth input operation, the first video is played according to the media volume playback mode, and the second control is replaced by a third control; the third control is used to indicate that the video is played according to the media volume.
16. The method according to claim 1, characterized in that The method further comprises: When the first application plays the first video at the media volume, a third control is displayed; the third control is used to instruct to play the video at the media volume; detecting a sixth input operation acting on the third control; In response to the sixth input operation, the first video is played in silent playback mode, and the third control is replaced by a second control; the second control is used to indicate silent playback of the video.
17. The method according to claim 1, characterized in that The at least one decision factor includes a strong factor, and the user setting indicates a volume playback mode corresponding to a preset state of the strong factor; The terminal determines the volume playback mode according to the at least one decision factor and the current state, including: The terminal determines whether the current state of the strong factor includes a preset state; If the current state of the strong factor includes the preset state, determining the volume play mode of the first video to be the volume play mode corresponding to the preset state of the strong factor; If the current state of the strong factor does not include a preset state, the terminal determines the volume play mode according to the current state of the at least one decision factor except the preset state.
18. The method according to claim 17, characterized in that The at least one decision factor includes a second decision factor, the method further comprising: detecting a seventh input operation acting on a second state of the second decision factor; In response to the second input operation, the second decision factor is set as a strong factor, and a preset state of the second decision factor includes the second state.
19. The method according to claim 1, characterized in that When the terminal fails to determine a volume play mode according to the at least one decision factor and the current state, the decision result of the volume play mode is used to indicate a default volume play mode.
20. The method according to claim 19, characterized in that The default volume playback mode is a silent countdown mode.
21. The method according to claim 1, characterized in that Before the first application plays the first video in the first volume playback mode, the method further includes: When the terminal fails to determine the volume playback mode according to the at least one decision factor and the current state, the terminal determines the volume playback mode using an intelligent decision model.
22. The method according to claim 21, characterized in that The terminal determines the volume playback mode using an intelligent decision model, including: According to the current state of each decision factor involved in the intelligent decision model and the historical playback data of the played video, the terminal obtains the historical statistical data of each decision factor; The intelligent decision model determines the volume playback mode according to the historical statistical data of each decision factor.
23. The method according to claim 1, characterized in that The at least one decision factor includes some or all of the following: time period, media volume, application, external speaker, working mode, exercise mode and venue type.
24. The method according to claim 1, characterized in that When the first application is an application with independent volume control, the media volume is the application media volume of the first application; when the first application is not an application with independent volume control, the media volume is the system media volume.
25. The method according to claim 13 or 22, characterized in that The terminal records historical playback data of the first video at a first moment, and the historical playback data includes a current state of the at least one decision factor obtained at the first moment; if the first application plays the first video at a first media volume at the first moment, the historical playback data of the first video also includes the first media volume.
26. The method according to claim 22, characterized in that The first duration is from the start time of playing the first video to the first time.
27. A terminal comprising a memory, one or more processors, and one or more programs; wherein: The one or more programs are stored in the memory; it is characterized in that when the one or more processors execute the one or more programs, the access device implements the method as described in any one of claims 1 to 26.
28. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, enable the terminal to implement the method according to any one of claims 1 to 26.
Citation Information
Patent Citations
Method and system for automatically adjusting multimedia volume according to different scene modes
CN104135705A
Volume adjusting system and method
CN104427075A
Muting method according to use scenes and terminal device
CN105872746A
Method for switching sound mode, and electronic device
WO2023024565A1
