Volume control method and related device
Through the terminal to detect user input and obtain decision factors, the volume playback mode is adaptively determined, solving the problem of volume control during audio and video playback, and improving the rationality of user experience and volume management.
Patent Information
- Application Number
- CN202310319822.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2024-09-24
AI Technical Summary
The existing technology makes it difficult to reasonably control the volume during audio and video playback, resulting in poor user experience and may disturb others or cause users to miss important audio and video information.
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 sudden loudness of the volume in inappropriate scenes, reduces the tedious operation of users to manually adjust the volume, and ensures that users can pay attention to audio and video information in a timely manner.
Smart Images

Figure CN118694848A
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a volume control method and related devices. Background Art
[0002] Currently, in some cases, the phone will automatically play audio and video (such as video) without detecting the user's active playback operation on the audio and video. If the phone plays the audio and video at the current system volume, it may disturb the user and other people around, resulting in a poor user experience; if the phone plays the audio and video silently, the user may miss the audio and video, and when the user intends to hear the audio and video, the user needs to manually adjust the volume, resulting in cumbersome user operations.
[0003] Therefore, how to reasonably control the volume during audio and video playback and improve user experience remains to be studied. Summary of the invention
[0004] The present application provides a volume control method and related devices, which can reasonably control the volume during video playback and effectively improve the user experience.
[0005] 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 a user, and a 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.
[0006] By implementing the embodiment of the present application, before the terminal plays a video, it can adaptively decide the volume playback mode currently suitable for the video playback based on the decision factors in the user settings recorded by the terminal and the current state of the terminal, and the volume playback mode fits the user's expectations. In this way, the volume playback mode during video playback can be adaptively controlled, thereby reasonably controlling the volume of the video playback, effectively improving the user experience.
[0007] 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 the implementation of 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, and the current state of each decision factor of the terminal. The volume playback mode meets the user's expectations and effectively improves the user experience.
[0008] 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 message 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, the silent playback mode is used according to the user's settings to avoid the adverse effects caused by the sudden loudspeaker volume in inappropriate scenes; the silent countdown mode is used according to the user's settings to provide the user with an opportunity to intervene and adjust by delaying the loudspeaker volume, and compared with direct muting, the tedious operation of requiring the user to manually turn on the media volume is avoided.
[0009] 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 first video played as mentioned above, the terminal obtains at least one decision factor set by the user and the current state of the terminal.
[0010] 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.
[0011] 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 poor user experience. In the implementation of the embodiment of the present application, for the first video played when the application is in an active state, the volume playback mode can be adaptively determined based on the current state of the user settings and the decision factors 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 last played video can be used. This volume playback mode is also more in line with the user's current usage habits.
[0012] In one implementation, the first application being in an 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.
[0013] In one implementation, the at least one decision factor includes a first decision factor, and before the 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 the embodiment of the present application, the user can set the volume playback mode corresponding to different states of each decision factor.
[0014] In one implementation, 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. In implementing the embodiment of the present application, the user can set the volume playback mode corresponding to each decision factor through the system setting, and can also set the volume playback mode corresponding to each decision factor through the application setting in units of applications.
[0015] In one implementation, the user setting indicates the 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: determining the volume playback mode corresponding to the current state of each decision factor according to the user setting in order of the priority of each decision factor from high to low, until the volume playback mode is determined. In the implementation of the embodiment of the present application, each decision factor has a priority to avoid conflicts between volume playback modes determined based on different decision factors.
[0016] 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 the 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 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 the user's expectations and effectively improves the user experience.
[0017] 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 playing the first video; when the first video is played to a first duration, the first video is played according to the preset media volume.
[0018] 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; in response to the third input operation, displaying a preset media volume corresponding to the first state of the first decision factor. When implementing the 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 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 and effectively improves the user experience.
[0019] In one implementation, the preset media volume is determined by the terminal according to the media volume recorded in the first historical playback data, and the first historical playback data is the historical playback data of the played video that satisfies the first state of the first decision factor. In the implementation of the embodiment of the present application, the preset media volume is determined according to the historical playback data, and the media volume fits the user's historical usage habits, effectively improving the user experience.
[0020] In one implementation, the first volume playback mode is a silent countdown mode, and the method further includes: when the first application displays countdown information, displaying a 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 the implementation of the present application, the silent countdown mode can be quickly switched to the silent playback mode through the first control before the countdown ends, so as to avoid the media volume being played outward after the countdown ends.
[0021] 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 playback of the video; detecting a fifth input operation acting on 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 playback of the video in the media volume. In implementing the embodiment of the present application, through the second control, the user can quickly switch the silent countdown mode or the silent playback mode to the media volume playback mode.
[0022] In one implementation, the method further 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 at a silent playback mode, and replacing the third control with a second control; the second control is used to indicate that the video is played silently. By implementing the embodiment of the present application, through the third control, the user can quickly switch the media volume playback mode to the silent playback mode.
[0023] 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 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 a preset state, 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 a preset state, the terminal determines the volume playback mode according to the current state of the at least one decision factor other than the preset state. In implementing the embodiment of the present application, the preset state of the strong factor can be set, and the volume playback mode is preferentially determined according to the preset state of the strong factor.
[0024] In one implementation, 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. By implementing the embodiment of the present application, the user can set the preset state of the strong factor, so that the volume playback mode is more in line with the user's expectations.
[0025] In one implementation, when the terminal fails to determine the 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 the default volume play mode. The implementation of the present application embodiment can cope with the situation where the volume play mode cannot be determined according to the user setting.
[0026] In one implementation, the default volume playback mode is a silent countdown mode. By implementing the embodiment of the present application, the risk of external playing of the media volume can be reduced.
[0027] In one implementation, 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. The implementation of the present application embodiment can cope with the situation where the volume playback mode cannot be determined according to the user setting.
[0028] In one implementation, the terminal uses an intelligent decision model to determine the volume playback mode, 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. By implementing the embodiment of the present application, the volume playback mode is more in line with the user's historical usage habits, improving the user's usage experience.
[0029] In one implementation, the at least one decision factor includes some or all of the following: time period, media volume, application, external speaker, working mode, motion mode, and venue type.
[0030] 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.
[0031] 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 at the first media volume at the first moment, the historical playback data of the first video also includes the first media volume.
[0032] In one implementation, the first duration is from the start time of playing the first video to the first time.
[0033] In a second aspect, the present application provides a terminal device, including 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 used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the communication device executes the volume control method in any possible implementation of any of the above aspects.
[0034] In a third aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, which, when executed on an electronic device, enables a communication device to execute a volume control method in any possible implementation of any of the above aspects.
[0035] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer, the computer executes the volume control method in any possible implementation of any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1A A schematic diagram of the hardware structure of a terminal provided in an embodiment of the present application;
[0037] Figure 1B-Figure 1I A user interface related to the active status of the APP provided in the embodiment of the present application;
[0038] Figure 2A-2F A user interface related to the media volume playback mode provided in an embodiment of the present application;
[0039] Figure 3A-3J A user interface related to the silent playback mode provided in an embodiment of the present application;
[0040] Figure 4A-4H A user interface related to the silent countdown mode provided in an embodiment of the present application;
[0041] Figure 5A-Figure 5C A user interface related to the volume playback mode setting interface provided in the embodiment of the present application;
[0042] Figure 5D-5E A user interface related to adjusting priority provided in an embodiment of the present application;
[0043] Figure 6A-6F A user interface for setting a time period provided in an embodiment of the present application;
[0044] Figure 7A-7D A user interface for setting decision factors provided in an embodiment of the present application;
[0045] Figure 8A-8H A user interface for setting up an external speaker provided in an embodiment of the present application;
[0046] Figure 9A-9E A user interface for setting a location type provided in an embodiment of the present application;
[0047] Figure 10A-10C A user interface related to the application settings provided in the embodiments of the present application;
[0048] Fig.11A schematic diagram of the software structure provided for the embodiment of the present application;
[0049] Fig. 12A A flow chart of a volume control method provided in an embodiment of the present application;
[0050] Fig. 12B A flow chart of a volume control method provided in an embodiment of the present application;
[0051] Fig. 12C This is a flow chart of a volume control method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present application will be described clearly and in detail below 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 of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0053] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0054] The term "user interface (UI)" in the following embodiments of the present 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 can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation 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.
[0055] The hardware structure of the terminal 100 involved in the embodiment of the present application is introduced below.
[0056] Figure 1A The schematic diagram of the structure of the terminal 100 is shown. 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, a vehicle-mounted device, a smart home device, and / or a smart city device. The embodiment of the present application does 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, and the embodiment of the present application does not impose any special restrictions on the operating system of the terminal 100.
[0057] 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 screen 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.
[0058] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal 100. In other embodiments of the present application, the terminal 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0059] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0060] 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.
[0061] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0062] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0063] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the terminal 100.
[0064] 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 achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0065] 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 to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0066] The UART interface is a universal serial data bus for asynchronous communication. The 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 generally 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 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0067] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting 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.
[0068] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the 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.
[0069] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal 100, and can also be used to transmit data between the terminal 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0070] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the terminal 100. In other embodiments of the present application, the terminal 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0071] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0072] 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 supplies power to the processor 110, the internal memory 121, the display screen 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 number, battery health status (leakage, impedance), etc. 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.
[0073] 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.
[0074] 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 the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0075] 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.
[0076] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a 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.
[0077] 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., which are applied to 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, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0078] 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 technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0079] The terminal 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0080] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0081] The terminal 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
[0082] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0083] 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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.
[0084] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the terminal 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0085] Video codecs are used to compress or decompress digital videos. Terminal 100 may support one or more video codecs. Thus, terminal 100 may play or record videos in various coding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0086] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the terminal 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0087] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0088] 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.
[0089] 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 unit potential level; universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.
[0090] 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.
[0091] 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 .
[0092] 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 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0093] The terminal 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
[0094] 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 arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0095] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The terminal 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0096] 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 voice message, the voice can be received by placing the receiver 170B close to the ear.
[0097] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by putting his mouth close to microphone 170C to input the sound signal into microphone 170C. Terminal 100 may be provided with at least one microphone 170C. In other embodiments, terminal 100 may be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, terminal 100 may also be provided with three, four or more microphones 170C to realize collection of sound signals, noise reduction, identification of sound source, realization of directional recording function, etc.
[0098] The earphone jack 170D is used to connect a wired earphone.
[0099] The pressure sensor 180A is used to sense pressure signals and can convert 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 according to the pressure sensor 180A.
[0100] 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. Exemplarily, 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.
[0101] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0102] The magnetic sensor 180D includes a Hall sensor.
[0103] The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal 100 in various directions (generally three axes). When the terminal 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0104] The distance sensor 180F is used to measure the distance. The terminal 100 can measure the distance by infrared or laser.
[0105] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
[0106] The ambient light sensor 180L is used to sense the brightness of ambient light.
[0107] 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.
[0108] 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.
[0109] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of a human body and receive a blood pressure pulse signal.
[0110] The key 190 includes a power button, a volume button, etc. The key 190 may be a mechanical key or a touch key. The terminal 100 may receive key input and generate key signal input related to user settings and function control of the terminal 100. For example, Figure 1B A volume key of the terminal 100 is shown, which 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 (eg, 5% of the maximum volume), and the volume down key is used to reduce the volume based on a preset ratio.
[0111] 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.
[0112] The SIM card interface 195 is used to connect a SIM card.
[0113] How to reasonably control the external volume of audio and video (such as incoming videos, music, ringtones, message notifications, etc.) when playing to improve user experience remains to be studied.
[0114] Taking video as an example, at present, users pay more and more attention to video content in various APPs, 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 have a large amount of video content 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 enabled the autoplay function. When the user slides the page or switches the page to the area where the video content is located, the video content automatically plays.
[0115] Some apps will use the current system media volume of the phone when the video content is automatically played. If the current system media volume is relatively high, the sound may suddenly be played in a quiet environment, causing discomfort to the user. Some apps will set silent playback when the video content is automatically played; however, if the user does not want silent playback, the user must manually adjust the volume, which is cumbersome for the user to operate.
[0116] The following embodiments mainly take video as an example to introduce in detail how to reasonably control the external volume of audio and video to improve user experience. The solution provided in this application can also be applied to other audio and video.
[0117] In the solution provided by the embodiment 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 according to the user settings of the volume playback mode and / or the intelligent decision model, and the volume playback mode fits the user's expectations and effectively improves the user experience. In some embodiments, for the audio and video that is not played for the 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.
[0118] The active state of the APP involved in the embodiment of the present application includes: starting the APP, switching the APP from the background to the foreground. The volume playback mode involved in the embodiment of the present application includes the following three: media volume playback mode (system media volume playback mode, application media volume playback mode), silent playback mode and silent countdown mode.
[0119] First, the active state of APP1 involved in the embodiment of the present application is exemplarily described.
[0120] For example, Figure 1C to Figure 1I The relevant user interface of the active state of APP1 is shown.
[0121] Start APP1, that is, switch APP1 from the non-running state to the foreground running. The user can start APP1 through the application icon of the system interface of the terminal 100 (such as the main interface, the negative one screen, etc.), or start APP1 through the application icon or application link of APP1 displayed by another APP. The embodiment of the application does not limit the way to start APP.
[0122] Take the browser as an example. Figure 1B and Figure 1C Launching the browser via the browser icon is shown.
[0123] Figure 1BThe main interface 11 for displaying installed applications (APP) on the terminal 100 is shown. The main interface 11 may include: a status bar, a tray with common application icons, and other application icons 101. The other application icons 101 may display: a browser icon 101A, a video icon, and a setting icon 101B.
[0124] like Figure 1B and Figure 1C As shown, after detecting that the user clicks the browser icon 101A, the terminal 100 starts 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, pictures, videos, etc. The user can slide up and down on the main interface 12 to view more content of the main interface 12. When the main interface 12 displays video information, the browser will automatically play the video.
[0125] Take short video APP as an example. Figure 1D and Figure 1E It shows that the short video APP is launched through the link of the short video APP.
[0126] Figure 1D The chat interface 33 of the instant messaging application is shown. The chat interface 33 includes a video link 103 of the short video APP sent by the contact. Figure 1D and Figure 1E As shown, after detecting that the user clicks on the video link 103, the terminal 100 starts the short video APP, displays the video playback interface 34 corresponding to the video link 103, and automatically plays the video 3. In one implementation, after detecting that the user clicks on the video link 103, the terminal 100 may first display the options for opening (such as the options corresponding to the short video APP, the options corresponding to the browser, etc.); after the user selects the option corresponding to the short video APP, the terminal 100 starts the short video APP. In one implementation, the short video APP plays video 3 in a continuous video playback stream mode; the user can also view more videos by sliding the video playback interface up and down. It can be understood that the user can also start the short video APP through the application icon of the short video APP in the system interface (such as the main interface).
[0127] 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 light up 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.
[0128] Take the browser as an example. Figure 1F and Figure 1G It shows that the browser is switched from the background to the foreground through the historical task interface.
[0129] Figure 1F A historical task interface 13 is shown, and the terminal 100 can display task cards of various applications that the user has recently viewed and are still running in the background in the historical task interface 13, such as a task card 102 of a browser. Figure 1G As shown, after detecting that the user clicks on the task card 102 , the terminal 100 may display an exit interface of the browser application, such as the main interface 12 of the browser.
[0130] Take the video APP as an example. Figure 1H and Fig. 1I It shows that the video APP is switched from the background to the foreground by unlocking.
[0131] Figure 1H A lock screen interface 14 is shown, and the user can unlock the screen by means of password, fingerprint recognition, face recognition, etc. Fig. 1I As shown, after detecting the user's operation of unlocking the screen, the terminal 100 can display the user interface displayed by the APP running in the foreground before the screen is locked, such as the video playback interface 15 of the video APP, after the unlocking verification is passed.
[0132] In some embodiments, when APP1 switches to the background, APP1 is playing video 1. After APP1 switches from the background to the foreground, APP1 will automatically continue to play video 1. For example, when the browser switches to the background and is playing a video, the browser will automatically continue to play the video when it is switched back to the foreground. For example, before the terminal 100 is locked, the video APP is playing a video on the video playback interface 15. After unlocking, the video APP will automatically continue to play the video.
[0133] The following is an introduction to the three volume playback modes involved in the embodiments of the present application.
[0134] Take the browser as an example, Figure 2A and Figure 2B As shown, it is detected that the user slides up the main interface 12 of the browser, and the terminal 100 displays more content of the main interface 12. Figure 2B and Figure 2CAs shown, when it is detected that the main interface 12 displays the playback area 201 of video 1, the browser automatically plays video 1 in the playback area 201. Before the browser plays video 1, if it is determined that video 1 is the first video played by the browser in an active state, the terminal 100 can adaptively determine a volume playback mode 1 suitable for video 1 according to user settings and / or an intelligent decision model, and play video 1 based on the volume playback mode.
[0135] (1) Media volume playback mode
[0136] According to different types of audio and video, the volume used by the terminal 100 to play audio and video includes some or all of the following: media volume, call volume, ringtone volume, alarm volume, and smart voice volume. Among them, the media volume refers to the volume used by the terminal 100 when playing multimedia files such as music, video, and game audio in multimedia software. The media volume playback mode means that the terminal 100 outputs audio according to the media volume currently recorded by the terminal 100.
[0137] In some embodiments, FIG. 2A to FIG. 2C As shown, the terminal 100 determines that the volume playback mode 1 of the video 1 is the media volume playback mode according to the user setting and / or the intelligent decision model, and the terminal 100 plays the video 1 according to the currently recorded media volume, and displays the external speaker control 202; the control is used to indicate that the video 1 currently adopts the media volume playback mode. The embodiment of the present application does not limit the display position of the external speaker control 202, and the external speaker control 202 can be displayed in the playback area 201 of the video 1, or outside the playback area 201.
[0138] In some embodiments, after the terminal 100 determines that the volume playback mode 1 of the video 1 is the media volume playback mode, before playing the video 1 according to the currently recorded media volume, the currently recorded media volume is modified to the preset media volume, that is, the terminal 100 plays the video 1 according to the preset media volume. The preset media volume can be preset by the user or the terminal 100, or it can be determined by the user setting of the volume playback mode and / or the intelligent decision model based on the historical playback data of the video played by the 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.
[0139] When playing a video, users can switch the media volume playback mode to silent playback mode.
[0140] In some embodiments, Figure 2C and Figure 2D As shown, 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.
[0141] When playing a video in the media volume play mode, the user can adjust the media volume through the volume key. When the user adjusts the media volume, the terminal 100 can display a volume bar for indicating the current media volume.
[0142] 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 application media volume of the browser, and the kernel service of the terminal 100 records the system media volume.
[0143] like Figure 2E As shown, the browser is not an APP with independent volume control capability; in the media volume playback mode, after detecting that the user presses the volume up key / down key, the terminal 100 displays a volume bar 204 indicating the system media volume, and increases / decreases the system media volume according to the user's pressing parameters (e.g., the number of presses / duration). The volume bar 204 includes a system media volume indicator 204A.
[0144] like Figure 2F As shown, the browser is an APP with independent volume control capability; 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 application media volume 1 of the browser, and increases / decreases the application media volume 1 of the browser according to the user's pressing parameters (such as the number of presses / duration). The volume bar 205 includes an application identifier 205A of the browser. It can be understood that when the user adjusts the application media volume 1 of the browser, 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 the present application is only an example provided in the embodiments of the present application, and volume bars in other forms of presentation are also applicable to the embodiments of the present application. The present application does not specifically limit the volume adjustment operation acting on the volume bar.
[0145] (2) Silent playback mode
[0146] In some embodiments, Figure 3A , Figure 3B and Figure 3CAs shown, the terminal 100 determines that the volume playback mode 1 is the silent playback mode according to the user setting and / or the intelligent decision model, the terminal 100 plays the video 1 silently, and displays the mute control 203. It can be understood that in the silent playback mode, the audio playback device of the terminal 100 (for example, the speaker of the terminal 100, the speaker / earpiece of the external device connected to the terminal 100) does not emit the sound of the video 1.
[0147] When playing a video, users can switch from silent playback mode to media volume playback mode.
[0148] In some embodiments, Figure 3C and Figure 3D As shown, in the silent playback mode, after detecting an input operation (such as a click operation) acting on the silent 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 the application media volume or the system media volume).
[0149] 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 (e.g., number of presses / duration).
[0150] In some embodiments, reference Figure 3E and Figure 3F In silent playback mode, after detecting that the user presses the volume down button, the terminal 100 switches the volume playback mode to the media volume playback mode, and starts to reduce the currently recorded application media volume 1 by a preset step size according to the user's pressing parameter, and displays a volume bar 205 indicating the application media volume of the browser. For example, the application media volume 1 of the browser currently recorded by the browser background service is 80% of the maximum volume, and the volume adjustment step size is 5% of the maximum volume. The terminal 100 reduces the application media volume 1 from 80% by 5% as a step size. Reference Figure 3G and Figure 3H In silent playback mode, after detecting that the user presses the volume up key, the volume playback mode is switched to the media volume playback mode, the application media volume 1 of the browser recorded by the kernel is modified to 0, and the application media volume 1 is increased from 0 according to the user's pressing parameters (such as pressing / duration). In this way, in silent playback mode, when the user wants to play video 1 at a lower volume, the silent playback mode can be switched to the 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 current media volume can be viewed or listened to by pressing the volume down key, and then decide whether to continue to increase the media volume.
[0151] In the 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. Fig. 3I and Figure 3J Taking the video APP shown 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 playback interface 15 in the silent playback mode; upon detecting the user's upward / downward sliding operation on the right half of the playback area of the video 2, the terminal 100 switches the silent playback mode to the media volume playback 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.
[0152] (3) Silent countdown mode
[0153] 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.
[0154] In some embodiments, Figure 4A , Figure 4B and Figure 4C As shown, the terminal 100 determines that the volume playback mode 1 of the video 1 is the silent countdown mode according to the user setting and / or the intelligent decision model; the terminal 100 plays the video 1 silently, and displays the silent control 203 and the countdown information 207; the countdown information 207 is used to indicate that the video will be played outward according to the media volume after 3 seconds, and the countdown information can be displayed in the form of graphics, text and / or animation. Figure 4D As shown, after the countdown ends, the countdown information 207 stops being displayed, the terminal 100 plays the video according to the media volume, and the mute control 203 is switched to the external speaker control 202.
[0155] refer to FIG. 3A to FIG. 3J 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 externally in advance at the media volume.
[0156] In some implementations, the terminal 100 may also display a continuous mute control 208 before the countdown ends. Figure 4E and Figure 4FAs shown, the terminal 100 detects an input operation (e.g., a click operation) of the user on the continuous mute control 208; in response to the input operation, the terminal 100 stops displaying the countdown information 207 and switches the silent countdown mode to the silent play mode. In this way, the user can control the terminal 100 to continuously play the video 1 in silence.
[0157] In some implementations, such as Figure 4G As shown, before the countdown ends, the terminal 100 may also display a media volume bar 210, and the user may set the media volume after the countdown ends in advance through the media volume bar 210. Figure 4G As shown, 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 (eg, a left sliding operation) performed by the user on the media volume bar 210; Figure 4H As shown, in response to the volume adjustment operation, the media volume bar 210 is adjusted, 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 above 30% media volume.
[0158] In some embodiments, when a video on the terminal 100 ends playing, the terminal 100 records the volume play 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, the terminal 100 can obtain the volume play mode 1 of the last video played by the browser (for example, video 3), and play video 1 according to the volume play mode 1.
[0159] 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 5 (e.g., 10s).
[0160] The following is a detailed description of determining the volume playback mode based on the user setting of the volume playback mode.
[0161] In some embodiments, the terminal 100 may provide a user setting interface for determining various decision factors of the volume playback mode, through which the user may 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, sports mode, and venue type. The external speaker refers to a device that establishes a communication connection with the terminal 100 and can receive and play a specific audio currently output by the terminal 100 (e.g., the audio corresponding to video 1).
[0162] For example, FIG. 5A to FIG. 9E The relevant user interface for setting various decision factors in the system settings is shown.
[0163] For example, after detecting that the user clicks the setting icon 101B on the main interface 11, the terminal 100 may display Figure 5A The system setting interface 16 shown in FIG. 1 includes a sound and vibration setting bar 209. After detecting that the user clicks the sound and vibration setting bar 209, the terminal 100 may display Figure 5B The sound and vibration setting interface 21 is shown.
[0164] The volume play mode decision bar 313 of the setting interface 21 is mainly used to decide the volume play mode for the first broadcast video of the APP in the active state. When it is detected that the user clicks the volume play mode decision bar 313, the terminal 100 displays Figure 5C The decision interface 22 of the volume playback mode shown. The decision interface 22 includes a switch control 301 for the user to set the decision factor. The switch control 301 is in the on state (ON) indicating 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, it is in the off state (OFF) indicating 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 can be manually set by the user, for example, a setting bar 302 for the application, a setting bar 303 for the external speaker, a setting bar 304 for the time period, a setting bar 305 for the working mode, a setting bar 306 for the sports mode, and a setting bar 307 for the venue type.
[0165] 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), and the user can control the switch control to switch between the two states by performing input operations (such as click operations) on the switch control.
[0166] 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. For example, Figure 5C As shown, the decision interface 22 includes a priority setting bar 308 for decision factors. After detecting that the user clicks the priority setting bar 308, the terminal 100 displays the setting interface 23 for the priority of the decision factors. 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. Figure 5C and Figure 5D As shown, when it is detected that the user drags the option box of the decision factor (such as the option box 312 of the venue type) upward / downward, 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. Figure 5C and Figure 5D This is only an example, and the user may also set the priority of each decision factor in other ways.
[0167] 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 setting, including: obtaining the current state of the i-th decision factor according to the order of 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.
[0168] In some embodiments, Figure 5C As shown, the decision interface 22 includes a switch control 309 of the intelligent decision model. The switch control 309 is in an on state, indicating that the intelligent decision model is turned on, and the terminal 100 can determine the volume playback mode in combination with the intelligent decision model.
[0169] In some embodiments, when the switch control 309 is in the on state, the decision interface 22 includes options 310 and 311 of the intelligent decision model, and one of the options 310 and 311 is in the selected state, 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 factor set by the user, the volume playback mode is determined using the intelligent decision model; option 310 indicates that the terminal 100 determines the volume playback mode only based on the intelligent decision model.
[0170] The following uses the time period as an example to exemplify how the user manually sets each decision factor through the decision interface 22 .
[0171] like Fig. 6A As shown, after detecting that the user clicks on the setting bar 304 of the time period, the terminal 100 displays the setting interface 24 of the time period. In some embodiments, the setting interface 24 of the time period includes a switch control 401; the switch control 401 is in the on state (ON), indicating that the time period has added a decision factor set by the user; the switch control 401 is in the off state (OFF), indicating that the time period has not added a decision factor set by the user, and the terminal 100 does not consider the decision factor when determining the volume playback mode based on the user setting.
[0172] In some embodiments, Fig. 6A As shown, when the switch control 401 is in the on state, the time period setting interface 24 includes an information bar of zero, one or more time periods that have been added, such as an information bar 402 of the time period "19:00-21:00", and the information bar 402 may include the start and end time 402A of the time period, the volume play mode 402B corresponding to the time period, and a delete control 402C; the delete control 402C is used to delete the information bar 402 of the time period. In some embodiments, when the volume play mode 402B is the media volume play mode or the silent countdown mode, the information bar 402 also includes a media volume 402D, and the media volume 402D is used to indicate the preset media volume corresponding to the time period, that is, the video is played according to the preset media volume in the time period. The media volume 402D can be set by the user, or it can be determined by the terminal 100 according to the media volume (e.g., average media volume) of the time period in the historical play data of the played video.
[0173] For example, FIG. 6A to FIG. 6E An example of adding a time period is shown. Fig. 6A As shown, when the switch control 401 is in the on state, the time period setting interface 24 includes an add control 403 and mode options. The mode options include a silent play mode option 405, a media volume play mode option 406, and a silent countdown mode option 407. The user can add a time period through the add control 403 and set the volume play mode corresponding to the time period.
[0174] like Fig. 6A and Figure 6B As shown, when it is detected that the user clicks on the add control 403, the terminal 100 displays an information bar 404 for a time period, and the information bar 404 includes an input box 404A for the start and end time of the time period. Figure 6C and Fig.6DAs shown, the information bar 404 is currently in a selected state. After the user enters the start and end time of the time period (e.g., 17:00-19:00) in the input box 404A, a mode option is selected as the volume play mode for the time period. For example, if it is detected that the user clicks the option 407 of the silent countdown mode, the terminal 100 displays the music play mode 404B in the information bar 404 of the time period "17:00-19:00" to indicate the silent countdown mode corresponding to the time period.
[0175] In some embodiments, Fig. 6E As shown, it is detected that the user selects the media volume play mode or the mode option corresponding to the mute countdown. In response to the user's click operation to select the mode option, the terminal 100 also displays a media volume adjustment bar 408 and a completion control 409. The 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. Fig.6D and Fig. 6E As shown, when the media volume indicated by the adjustment bar 408 is 65%, after detecting that the user clicks the completion control 409, the terminal 100 displays the media volume 404D in the information bar 404 of the time period "17:00-19:00", and the media volume 404D displays the media volume indicated by the adjustment bar 408, that is, 65%.
[0176] like Fig. 6E and Fig. 6F As shown, for the added time period, after detecting that the user clicks on the information bar corresponding to the time period (e.g., information bar 404), the information bar 404 switches from an unselected state to a selected state, and the parameters in the information bar 404 (i.e., the start and end time of the time period, the music playback mode, and the preset media volume) enter an editable state. For example, when the information bar 404 is selected, the user can modify the start and end time in the input box 404A, and the user can modify the volume playback mode 404B and the media volume 404D corresponding to the time period by clicking on other mode options (e.g., option 405 for the silent playback mode, option 406 for the media volume playback mode). For details, please refer to FIG. 6B to FIG. 6E The relevant description will not be repeated here.
[0177] In one example, the switch control 401 of the time period 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 the video 1, the terminal 100 can obtain the current time; according to 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 can be understood that when none of the added time periods include the current time, the terminal 100 cannot determine the volume playback mode according to the time period.
[0178] In some embodiments, Fig. 6F As shown, the time period setting interface 24 also includes an application option 410 and an application option 411. One of the application options 410 and 411 is in a selected state, and the user can modify the selected option. The application option 410 is used to indicate that the time period added in the time period setting interface 24 is only applied to weekdays, and the application option 411 is used to indicate that the above-mentioned added time period is applied to all date types, that is, weekdays and holidays.
[0179] In one example, the application option 410 is in a selected state, that is, the time period added in the setting interface 24 is only applied to weekdays. Before the browser plays the video 1, the terminal 100 can obtain the current time and the current date; according to the user setting in the time period setting interface 24, when it is determined that the current date is a weekday and 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%.
[0180] In some embodiments, Fig. 7A As shown, 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 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 the 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 the video 1, according to the user settings in the setting interface 25 of the application, it is determined that the volume playback mode corresponding to the application (e.g., the browser) to play the video 1 is the silent countdown mode, and the preset media volume after the silent countdown ends is 60%. It can be understood that if the user does not set the volume playback mode corresponding to the browser, the terminal 100 cannot determine the volume playback mode according to the application.
[0181] like Figure 7B As shown, after detecting that the user clicks the setting bar 305 of the working mode, the terminal 100 displays the setting interface 26 of the working mode. The setting interface 26 can be used to set the volume playback mode and preset media volume corresponding to various states of the working mode. The state of the working mode of the terminal 100 includes some or all of the following: do not disturb mode, power saving mode, flight mode, sleep mode and game mode, etc. In one example, the switch control 502 of the working mode in the setting interface 26 is in the on state. Before the browser plays the video 1, the current working mode of the terminal 100 can be obtained; according to the user setting in the setting interface 26 of the working mode, the volume playback mode corresponding to the current state of the working mode (such as flight mode) is determined to be mute. It can be 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 state of the working mode, the terminal 100 cannot determine the volume playback mode according to the working mode.
[0182] like Figure 7C As shown, after detecting that the user clicks the setting bar 306 of the sports mode, the terminal 100 displays the setting interface 27 of the sports mode. The setting interface 27 can be used to set the volume playback mode and the preset media volume corresponding to various states of the sports mode. The states of the above-mentioned sports modes include some or all of the following: still, walking, running, cycling, car, subway, train and airplane, etc. In one example, the switch control 503 of the sports mode in the setting interface 27 is in the on state. Before the browser plays the video 1, the terminal 100 obtains the current state of the user's sports mode (for example, still); the terminal 100 determines that the volume playback mode corresponding to the current state is the silent countdown mode according to the user setting in the setting interface 25 of the sports mode, and the preset media volume after the silent countdown ends is 50%. It can be 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 according to the sports mode.
[0183] 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 on-board device connected to the car).
[0184] The above 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 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. In a specific motion mode (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.
[0185] In some embodiments, the terminal 100 pre-stores the rules of the above motion parameters in each motion mode; the terminal 100 obtains the above motion parameters based on the data detected by the sensor; if it is determined that the above motion parameters conform to the rules of motion mode 1, it is determined that the user is currently in motion mode 1. The embodiments of the present application do not specifically limit how to determine the motion mode based on sensor data. In some embodiments, the terminal 100 obtains a booking notification sent by a ticket booking application, and the booking notification indicates the travel time of the train; if the terminal 100 determines that the current time is within the travel time indicated by the booking notification, and based on the sensor data, it is determined that the above motion parameters conform to the rules of the train, then the user's current motion mode is determined to be the train.
[0186] like Fig.7D As shown, after detecting that the user clicks on the setting bar 303 of the external speaker device, the terminal 100 displays the setting interface 28 of the external speaker device. The setting 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 setting interface 28 is in the on state. Before the browser plays video 1, the terminal 100 obtains the currently connected external speaker device; according to the user settings in the setting interface 28 of the external speaker device, it is determined that the volume playback mode corresponding to the device type (e.g., headphones) of the currently connected external speaker device is the media playback mode, and the preset media volume is 60%. It can be understood that the terminal 100 is not currently connected to the 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, and the terminal 100 cannot determine the volume playback mode according to the external speaker device.
[0187] 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 make a one-key decision on the volume playback mode. Before playing video 1, the terminal 100 preferentially 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 it does not, then according to the priority of each decision factor (i.e., application, external speaker, time period, working mode, etc.), each decision factor is traversed from high to low in turn until the volume playback mode is determined.
[0188] For example, the strong factor is an external speaker, and the preset state of the strong factor is headphones. Fig.7D and Fig. 8A As shown, the setting interface 28 of the external speaker device includes an information bar 505 of the headset; after detecting that the user clicks the information bar 505, the terminal 100 switches the information bar 505 to a selected state and displays a strong factor collection control 506 in the information bar 505; Fig. 8A and Figure 8B As shown, it is detected that the user clicks on the strong factor collection control 506, and the strong factor collection control 506 is switched from an unselected state to a selected state, and the terminal 100 displays a prompt message 507; the prompt message 507 is used to prompt that the headset is collected as a preset state of a strong factor; as long as the terminal 100 is connected to the headset, the headset plays according to the volume playback mode (e.g., media volume playback mode) and the preset media volume (e.g., 60%) corresponding to the headset set by the user. In some embodiments, as Figure 8B As shown, after detecting that the user clicks on the strong factor collection control 506, the terminal 100 also displays a view control 508; Figure 8B and Figure 8C As shown, after detecting that the user clicks on the view control 508 , the terminal 100 displays an information bar corresponding to the preset state of the collected strong factors, such as an information bar 509 for headphones, in the decision interface 22 of the volume play mode.
[0189] In some embodiments, Fig.8D As shown, 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 according to the priority order of the preset states whether the current state of the strong factor (such as an external speaker) includes preset state 1 (such as headphones); 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 it is determined according to Figure 8CThe priorities of the decision factors shown are traversed from high to low in sequence until the volume playback mode is determined.
[0190] Typically, the terminal 100 can simultaneously connect to multiple devices capable of audio output via wires and / or wirelessly. In some embodiments, there can be only one external speaker device (i.e., a device that can receive and play the audio of the video 1 currently output by the terminal 100) among the devices capable of audio output connected to the terminal 100. In some embodiments, there can be multiple external speakers among the above-mentioned devices capable of audio output.
[0191] In some embodiments, the terminal 100 is connected to multiple external speakers via wired and / or wireless connections, and the volume playback modes of each external speaker determined by user settings may be different. Fig. 8E As shown, the terminal 100 is currently connected to three external speakers (i.e., headphones, a desktop computer, and a tablet computer). The three external speakers can output the audio of the video 1 played by the terminal 100. The desktop computer and the tablet computer can also play the screen of the video 1 based on the screen projection principle. Before the terminal 100 plays the video 1, based on Figure 8B The user setting of the terminal 100 instructs the headset to output the audio of video 1 according to the media volume, instructs the desktop computer to play video 1 and output the audio of video 1 in silent playback mode, and instructs the tablet computer 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 an external speaker, 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.
[0192] In some embodiments, Fig. 8E As shown, when the terminal 100 and at least one of the multiple external speakers connected to the terminal 100 output audio in the silent countdown mode, the terminal 100 displays countdown prompt information 601 and a continuous mute control 602. The continuous mute control 602 is used to control the at least one device to switch the silent countdown mode to the silent playback mode. Fig. 8E and Fig.8F As shown, when the terminal 100 is connected to multiple external speakers, the volume adjustment controls corresponding to the multiple external speakers can be called out through the volume key. The volume adjustment controls include a control indicating the volume playback mode, a volume adjustment bar and a device icon.
[0193] For example, Figure 8G As shown, taking the volume adjustment control 603 of a tablet computer as an example, the volume adjustment control 603 includes a mark 603A indicating the volume play mode (i.e., the silent countdown mode), a volume adjustment bar 603B, and a device icon 603C of the tablet computer. Figure 8GAs shown, when the end of the silent countdown is detected, when the user clicks on the mark 603A indicating the silent countdown mode, or when the user adjusts the volume through 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 mark 603A switches from indicating the silent countdown mode to indicating the media volume playback mode. Figure 8H As shown, taking the volume adjustment control 604 of a desktop computer as an example, the volume adjustment control 604 includes a mark 604A indicating the volume play mode (i.e., the silent play mode) and a volume adjustment bar 604B. Figure 8H As shown, when it is detected that the user clicks on the mark 604A or detects that the user adjusts the volume through the volume adjustment bar 604B, the terminal 100 instructs the desktop computer to switch the silent playback mode to the media volume playback mode, and the mark 604A switches to indicate the media volume playback mode. Figure 8H As shown, taking the volume adjustment control 605 of the headset as an example, the volume adjustment control 605 includes an identifier 605A indicating the volume playback mode (i.e., the media volume playback mode); when it is detected that the user clicks the identifier 605A, the terminal 100 instructs the headset to switch the media volume playback mode to the silent playback mode, and the identifier 605A is switched to indicate the silent playback mode.
[0194] like Fig. 9A As shown, after detecting that the user clicks on the setting bar 307 of the place type, the terminal 100 displays the setting interface 29 of the place type. The setting interface 29 can be used to set the volume play mode and preset media volume corresponding to various states of the place type. The above-mentioned place 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 switch control 701 of the place type in the setting interface 29 is in the on state; before the browser plays the video 1, the terminal 100 obtains the current place type; according to the user setting in the setting interface 29 of the place type, it is determined that the volume play mode corresponding to the current state of the place type (for example, residence) is the media play mode, and the preset media volume is 80%. It can be understood that if the terminal 100 does not detect the current state of the place type or does not set the volume play mode corresponding to the current state, the terminal 100 cannot determine the volume play mode according to the place type.
[0195] In some embodiments, the terminal 100 can determine the type of the current location based on some or all of the positioning sensors (e.g., GPS sensors), wired or wireless connected devices (e.g., smart home devices in residences), and connected network signals (e.g., local area network signals in offices). Fig. 9AAs shown, 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.
[0196] For example, Fig. 9A and Fig. 9B As shown, after detecting that the user clicks the add control 702, the terminal 100 displays a user interface 30 for displaying the added residential address. Fig. 9B and Fig. 9C As shown, the user interface 30 includes an add control 703. After detecting that the user clicks the add control 703, the terminal 100 displays a user interface 31 for adding a residence address. The user interface 31 includes: an address search box 705 and a map 704. Fig.9D As shown, after the terminal 100 searches for the address 1 entered by the user in the address search box 705, the address 1 and the add control 706 corresponding to the address 1 are displayed, and the address 1 can also be indicated by the positioning mark 707 in the map 704. Fig.9D and Fig.9E As shown, after detecting that the user clicks the add control 706 , the terminal 100 displays the added address 1 and the delete control 708 corresponding to the address 1 in the user interface 30 . The delete control 708 is used to delete the added address 1 .
[0197] In some embodiments, after the user turns on the user setting decision factors, the terminal 100 can automatically set the initial volume playback mode corresponding to different states of some or all of the decision factors, and the user can modify the initial volume playback mode automatically set by the terminal 100.
[0198] 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 small 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 small, the possibility of disturbing the user is relatively small when the media volume is played outward.
[0199] In some embodiments, reference FIG. 5A to FIG. 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 the system settings, but also possible to set the parameters of each decision factor through the application settings in units of applications. It can be understood that the parameters of the decision factors set in the application settings of APP1 are usually only applicable to APP1 and not to other APPs.
[0200] For example, taking a browser as an example, FIG. 10A to FIG. 10C An example of a setting interface for calling application settings is shown. Fig. 10A , Fig. 10B and Fig. 10C As shown, the main interface 12 of the browser includes a menu control 801. After detecting that the user clicks the menu control 801, the terminal 100 has a setting control 802 for the existing browser; after detecting that the user clicks the setting control 802, the terminal 100 has an application setting interface 32 for the existing browser. The application setting interface 32 includes a volume play mode decision bar 803, and the volume play mode decision bar 803 is used to set the relevant parameters of the decision factor of the volume play mode of the browser. Specifically, how to set the volume play mode corresponding to each decision factor through the application setting of the browser can refer to the relevant description of the volume play mode in the aforementioned system setting, which will not be repeated here.
[0201] In some embodiments, when the user sets the parameters of each decision factor, it is not necessary to set the media volume or the media volume is not set. Before the terminal 100 plays the 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 the historical playback data set in which the state of each decision factor in the historical playback data is the same as the current state; then obtain the media volume average value of each historical playback data in the historical playback data set, and use the media volume average value as the preset media volume of the video 1.
[0202] It should be noted that FIG. 5A to FIG. 10C It is only an example of the user interface related to the user setting volume playback mode provided by the present application. The above user interface may include more or fewer controls, and the above example should not constitute a limitation on the present application.
[0203] The following is an introduction to determining the volume playback mode based on the intelligent decision-making model.
[0204] 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.
[0205] 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.
[0206] 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 the medium risk is the silent countdown mode. The volume playback mode corresponding to the high risk is the silent playback mode. In one implementation, the volume playback mode corresponding to the low risk is the media volume playback mode. In another implementation, when the video is not played for the first time, the volume playback mode corresponding to the 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 the low risk is the media volume playback mode.
[0207]
[0208] Table 1
[0209] 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 aforementioned user may be the same or different, and no specific limitation is made here.
[0210] For example, Table 2 shows three strong factors, namely, first broadcast attribute, media volume and external speaker. The first broadcast attribute of the video played by APP1 is used to indicate whether the video is the first broadcast video of APP1 in the active state, that is, the state of the first attribute includes first broadcast video and non-first broadcast video; the preset state of the first broadcast attribute is non-first broadcast video, and the risk level corresponding to the non-first broadcast video is low risk.
[0211]
[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 factor. 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 factor 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 a 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 a plurality of continuous time periods (e.g., 19:00-20:00 and 20:00-21:00) according to a preset duration 2 (e.g., 1 hour). Weak factors include some or all of the following: time period, date, motion mode, geographic location, location type corresponding to the geographic location, external speaker, working mode, and application. The geographic location can be the longitude and latitude obtained by the positioning sensor, or it can be a specific address obtained in combination with the 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) when or after the video is played. As the historical playback data, the playback data may include the current value and / or current state of each weak factor, the volume playback mode, and the media volume when the video is played. The current value of the time period is the time period corresponding to the current time, and the state of the time period (i.e., the time period type) includes the leisure time period, the working time period, and the sleeping time period. The current value of the date is the current specific date, and the state of the date (i.e., the date type) includes working days and holidays. The current value of the geographic location is the current longitude and latitude, and the state of the geographic location is the type of place to which the geographic location belongs. The state of the external speaker device, how to obtain the place type, the state of the motion mode, and how to obtain the motion mode can refer to the relevant description of the aforementioned embodiment, which 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, or the moment when the video playback duration reaches a preset duration of 5 (e.g., 10s), or the moment when the video playback ends; the motion mode, place type, external speaker device, volume playback mode, media volume, and other data in the historical playback data can be obtained at the above-mentioned recording time.
[0218]
[0219] Table 3
[0220] The historical statistical data of weak factors are introduced below by taking time periods and geographical locations as examples. It can be understood that the historical statistical data of weak factors are used to collect the user's usage habits based on the weak factors.
[0221] In some embodiments, the intelligent decision 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%.
[0222]
[0223]
[0224] Table 4
[0225] In some embodiments, the intelligent decision 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 of the geographic location 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%.
[0226]
[0227] Table 5
[0228] 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.
[0229] In some embodiments, historical statistical data based on a weak factor (such as geographic location) may also consider one or more other factors, which may be decision factors that are not used to calculate the risk score (such as work mode, etc.). For example, the current geographic location is longitude and latitude aa, and the work mode is do not disturb mode. Table 6 shows a historical statistical data based on geographic location.
[0230]
[0231] Table 6
[0232] In some embodiments, the intelligent decision model obtains the risk score based on the historical statistical data of each weak factor, specifically including: the intelligent decision model uses the historical statistical data of each weak factor to determine the risk score corresponding to each weak factor; according to the risk score corresponding to each weak factor, determine the comprehensive risk score of video 1. Exemplarily, Table 7 shows an example of determining the risk score corresponding to each weak factor.
[0233] 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 probability of playing the media volume out loud corresponding to each of the 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 the media volume out loud, the risk of the working period is higher than that of the leisure period, and the risk of the leisure period is higher than that of the sleeping period; the higher the risk, the greater the weight. For example, the weight of the working period is 1, the weight of the leisure period is 0.3, and the weight of the sleeping period 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 the media volume out loud in a statistical period refers to the probability of playing the 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) within the above-mentioned time period type of the statistical period (e.g., the last 7 days).
[0234] Similarly, the risk scores corresponding to geographic location, date, exercise mode, external speaker device, and work mode can refer to the relevant descriptions of the above time periods and will not be repeated here.
[0235]
[0236]
[0237] Table 7
[0238] In some embodiments, according to the risk score corresponding to each weak factor, the risk score of each weak factor is weighted and summed, and the obtained value is used as the risk score of playing the current video. As shown in Table 8, the terminal 100 is preset with risk score intervals corresponding to each risk level, and the aforementioned determination of the risk level corresponding to the risk score includes: determining the risk score interval corresponding to the risk score of playing the current video; determining the risk level corresponding to the risk score interval.
[0239] Risk Score Decision results 0 ≤ x < preset value 1 (e.g., 0 - 3) Low risk Preset value 1 ≤ x < preset value 2 (e.g. 3-6) Medium risk Preset value 2 ≤ x < preset value 3 (e.g. 6-9) High risk
[0240] Table 8
[0241] The following is an introduction to the software structure of the terminal 100 involved in the embodiment of the present application.
[0242] The software system of the terminal 100 may 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 of the layered architecture is taken as an example to exemplify the software structure of the terminal 100.
[0243] Fig.11 It is a software structure block diagram of the terminal 100 according to an embodiment of the present invention.
[0244] like Fig.11As shown, the layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system 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:
[0245] 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.
[0246] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0247] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0248] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0249] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0250] The kernel layer is the layer between hardware and software. The kernel layer can include display drivers, sensor drivers, touch IC drivers, camera drivers, audio drivers, etc. The HAL layer and the kernel layer (kernel) can respond to the functions called by the application framework layer and perform corresponding operations.
[0251] The application framework layer may include: browser UI, browser background service, browser basic service and volume decision service. The kernel layer includes kernel service.
[0252] The browser UI is used to implement the interactive interface of the browser and provide a graphical interface that can be operated by the user. For example, the countdown prompt information, mute control, continuous mute control and external speaker control of the mute countdown involved in the embodiment of the present application are implemented through the browser UI.
[0253] The browser backend service is used to provide the backend functions of the browser UI. Each function control displayed in the browser UI corresponds to one or more backend service interfaces. For example, the "resuming the media volume after a preset period of silent playback" involved in the embodiment of the present application is implemented by calling the function interface provided by the browser backend service.
[0254] Browser basic services are used to provide basic browser functions, such as playing videos, adding videos to favorites, and managing comments.
[0255] The volume decision service is used to collect the current required data of the decision factors, such as time, date, external speaker device, sports mode, geographic location and other information, and comprehensively decide the current volume playback mode based on the collected required data of the decision factors.
[0256] Kernel services are 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.
[0257] Exemplarily, in combination with the above software structure, taking a browser as an example, Fig. 12A A method flow of a volume control method is shown, and the method includes but is not limited to steps S101 to S110.
[0258] S101 , the browser UI detects the user's input operation 1 , and the input operation 1 triggers the playing of video 1 .
[0259] In some embodiments, input operation 1 acts on video 1 , for example, input operation 1 includes a user clicking a play button / video link of video 1 displayed in a browser.
[0260] 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.
[0261] In some embodiments, input operation 1 may include an operation for starting a browser, and after starting the browser, the homepage of the browser displays a playback area of video 1 that can be automatically played. Exemplarily, input operation 1 includes a user clicking an application icon of the browser displayed on a system interface (e.g., a main interface, a negative first screen, etc.) of the terminal 100, or a user clicking an application link of the browser displayed by another APP. The embodiment of the present application does not limit the input operation of starting an APP.
[0262] In some embodiments, input operation 1 may include an operation of sliding the user interface of the browser upward / downward, and after sliding the user interface of the browser, the user interface displays a play area of video 1 that can be automatically played. Figure 2A and Figure 2B As shown, input operation 1 includes an upward sliding operation performed by a user on the main interface 12 of the browser; in response to input operation 1, the browser displays a playback area 201 of video 1 and automatically plays video 1.
[0263] In some embodiments, when the browser is switched to the background, video 1 is being played; input operation 1 includes an operation of 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 is automatically continued to be played. Exemplarily, input operation 1 includes a click operation on a task card of the browser in the historical task interface.
[0264] 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 playing of video 1 in a video continuous play stream mode.
[0265] S102 . Based on the above input operation 1 , the browser UI requests the browser background service to play video 1 .
[0266] S103, the browser background service requests the volume decision service to decide the volume playback mode of video 1.
[0267] 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.
[0268] 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 video in the current active state based on the video playback records; if not, the video 1 currently to be played is the first played video.
[0269] S105. The volume decision service obtains the current required data of the decision factor from the kernel service, including part or all of the following: media volume, time, date, external speaker device, motion data, location information, and working mode.
[0270] 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 of the browser recorded 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.
[0271] 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 of the user setting and / or the intelligent decision model.
[0272] Step S104 is optional. In some embodiments, step S104 does not need to be performed, and step S105 is performed after step S103.
[0273] In one implementation, the APP background service of the APP with independent volume control records the application media volume, and the kernel service of the 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 background 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.
[0274] In one implementation, the APP background service of each independently volume-controlled APP can update the application media volume to the kernel service in real time, and the kernel 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 application media volume or system media volume of the browser from the kernel service.
[0275] 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.
[0276] S105A: The volume decision service obtains the currently recorded media volume from the core service.
[0277] Specifically, the volume decision service sends a request to the kernel service, where the request is used to obtain the currently recorded media volume (eg, the system media volume or the application media volume of the browser); the kernel service sends the above media volume to the volume decision service.
[0278] S105B: The volume decision service obtains the external speaker device currently connected to the terminal 100 from the core service.
[0279] S105C: The volume decision service obtains the current time and date from the kernel service.
[0280] S105D: The volume decision service obtains required data on geographic location and / or venue type from the core service.
[0281] S105E: The volume decision service obtains the required data of the motion mode from the kernel service.
[0282] S105F: The volume decision service obtains the current working mode of the terminal 100 from the core service.
[0283] Similar to step S105A, in the implementation of steps S105B-S105F, the volume decision service first sends a request to the kernel service; then the kernel service feeds back the required data to the volume decision service based on the request, and the specific process is not repeated here. The embodiment of the present application does not specifically limit the execution order of steps S105A-S105F.
[0284] For example, see Fig. 6A In the setting interface 24 of the time period shown, the volume decision service determines the volume playback mode corresponding to the specific state of the time period set by the user according to the user settings in the setting interface 24; therefore, S105C is executed in step S105 to obtain the current time to determine the current state of the time period.
[0285] 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, taking geographic location as an example, if the user has enabled the browser's permission to obtain geographic location, the real-time geographic location can be obtained; if the above permission is not enabled, the geographic location record fed back by the kernel record is empty.
[0286] 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.
[0287] 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.
[0288] S106A: The volume decision service obtains user settings for deciding the volume playback mode from the kernel service.
[0289] S106B: The volume decision service obtains user settings for deciding the volume playback mode from the browser's basic service.
[0290] In some embodiments, when a state of a decision factor in the user setting 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 setting may be manually set by the user, or may be an average media volume in this state obtained by the terminal 100 based on historical playback data.
[0291] S107, the volume decision service determines the volume playback mode according to 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 according to 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.
[0292] For example, in the intelligent decision-making model, the required data of the weak factor "time period" includes the current time (e.g., 09:08), 6A to 6F , one or more time periods are added in the user settings. If the current time belongs to one of the one or more time periods (e.g. 09:00-12:00), the current state of the "time period" is the time period (e.g. 09:00-12:00), and the user setting indicates the volume playback mode corresponding to the time period. The required data of the decision factor "sports mode" includes data detected by a specific sensor, notification messages received by a specific application, information preset by the user in a specific application, and part or all of the devices connected to the terminal 100 by wire or wireless. The current state of the "time period" is still, walking, running, cycling, car, subway, train or airplane, etc.
[0293] 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-mentioned embodiment, which will not be repeated here.
[0294] 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.
[0295] 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.
[0296] In some embodiments, the volume decision service may directly obtain the current state of the decision factor from the kernel service; the current state of the decision factor is determined by the kernel service according to the current required data of the decision factor.
[0297] Exemplarily, in the intelligent decision model, the required data of the weak factor "time period" includes the current time (e.g., 09:08), which corresponds to a preset time period (e.g., 09:00-10:00) divided according to a preset duration 2 (e.g., 1 hour) in a day, 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 a working time period. The required data of 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., a working day.
[0298] In some embodiments, step S108 includes steps S108A-S108C.
[0299] 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 the strong factor is not detected or the current state of the detected strong factor does not include a preset state, execute S108B.
[0300] 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. Exemplarily, refer to the correspondence between the preset state and the volume playback mode of the strong factor shown in Table 1. For example, when the current state of the external speaker device 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.
[0301] S108B, the decision factor includes multiple weak factors; according to the current value and / or current state of each weak factor, the volume decision service obtains the historical statistical data of each weak factor from the browser background service; the current state of the weak factor is determined according to the current required data of the weak factor.
[0302] Specifically, the browser backend service records the historical playback data of the 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; according to the current value and / or current state of the weak factor, the browser backend service obtains the historical statistical data of the weak factor from the historical playback data; the browser backend service sends the above historical statistical data to the volume decision service.
[0303] In some embodiments, the kernel service of the terminal 100 records the historical playback data of all APPs, and the volume decision service in step S108 can also obtain the historical statistical data corresponding to the current state of the weak factor from the kernel service. Specifically, the volume decision service sends the current value and / or current state of the weak factor to the kernel service; according to the current value and / or current state of the weak factor, the kernel service obtains the historical statistical data of the weak factor from the historical playback data of all recorded videos; the browser background service sends the above historical statistical data to the volume decision service.
[0304] 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, which will not be described in detail here.
[0305] S108C, the intelligent decision-making model uses historical statistical data of each weak factor to determine the volume playback mode.
[0306] In some embodiments, before step S108C, the process further includes: removing abnormal data from historical statistical data. It is understood that due to abnormal hardware, software and / or user behavior, some data (i.e., abnormal data) in historical statistical data may not be of reference value, and the terminal 100 may remove the abnormal data in advance.
[0307] 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 aforementioned embodiment and will not be repeated here.
[0308] S109: The volume decision service returns the decision result to the browser background service.
[0309] S110. The browser background service sets the volume playback mode of video 1 according to the decision result.
[0310] In some embodiments, if the volume decision service determines a volume play mode, the decision result indicates the volume play mode, and the browser background service plays video 1 according to the volume play mode; if the volume decision service does not determine a volume play mode, the decision result indicates that the volume play mode is not determined or the default volume play mode; the browser background service plays video 1 according to the default volume play mode according to the decision result. The default volume play mode is one of a silent play mode, a silent countdown mode, and a media play mode. In one implementation, to avoid the risk of external speaker, the default volume play mode is a silent countdown mode.
[0311] In some embodiments, the decision factors involved in the user settings and the decision factors involved in the intelligent decision model are partially or completely different. In step S105, only the current required data of the decision factors involved in the user settings are obtained; in step S107, if the volume playback mode is not determined according to the user settings, the current required data of the decision factors involved in the intelligent decision model are obtained, and S108 is executed, that is, the volume playback mode is determined based on the current state of the decision factors using the intelligent decision model.
[0312] 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 are obtained; after step S105, the terminal 100 directly executes S108, that is, only the intelligent decision model is used to determine the volume playback mode based on the current state of the decision factors.
[0313] Steps S108-S110 are optional. In some embodiments, in step S105, only the current required data of the decision factors involved in the user setting is obtained; after step S107, S111 is executed (i.e., the decision result is returned), that is, the volume playback mode is determined based on the current state of the decision factors only using the user setting.
[0314] 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 optimizing the intelligent decision model. Fig. 12B As shown, within the preset duration 3 of playing the video 1, the user adjusts the volume playback mode of the video 1 through the browser, and steps S111-S115 are also included after step S110.
[0315] S111. Within a preset duration 3 of playing video 1, the browser UI detects an input operation 2 of the user, where the input operation 2 is used to adjust the volume playback mode.
[0316] The preset duration 3 and the duration of the mute countdown may be the same or different. The preset duration 3 is a shorter duration after playing the video 1, for example, the preset duration 3 is equal to 3 seconds.
[0317] S112: Based on input operation 2, the browser UI requests the browser background service to adjust the volume playback mode.
[0318] S113. The browser background service adjusts the volume playback mode.
[0319] Exemplary, reference Figure 2C and Figure 2D, the video 1 of the browser is played in the media volume play mode, and the terminal 100 displays the external speaker control 202 corresponding to the video 1, which is used to indicate that the video 1 currently adopts the media volume play mode. The input operation 2 includes an input operation (such as a click operation) acting on the external speaker control 202, and the input operation 2 is used to adjust the media volume play mode to the silent play mode.
[0320] Exemplary, reference Figure 3C and Figure 3D , the video 1 of the browser is played in the silent play mode, and the terminal 100 displays a mute control 203 corresponding to the video 1, which is used to indicate that the video 1 is currently in the silent play mode. The input operation 2 includes an input operation (such as a click operation) acting on the mute control 203, and the input operation 2 is used to adjust the silent play mode to the media volume play mode.
[0321] Exemplary, reference Figure 4E , the video 1 of the browser is played in the silent countdown mode, and the terminal 100 displays the silent control 203 corresponding to the video 1. The input operation 2 includes an input operation (such as a click operation) acting on the silent control 203, and the input operation 2 is used to adjust the silent countdown mode to the media volume playback mode. Figure 4E and Figure 4F The video 1 of the browser is played in the silent countdown mode, and the terminal 100 displays a continuous silent control 208. The input operation 2 includes an input operation (such as a click operation) acting on the continuous silent control 208, and the input operation 2 is used to adjust the silent countdown mode to the silent play mode.
[0322] Exemplary, reference Fig. 3I and Figure 3J In the video 2 of the video APP shown, input operation 2 may also include an upward / downward sliding operation 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 the media volume playback mode, and increase / decrease the media volume of the video playback according to the sliding parameters (e.g., sliding distance, sliding speed) of the above sliding operation.
[0323] S114: The browser UI notifies the volume decision service user of the behavior of adjusting the volume playback mode.
[0324] S115. The volume decision service records the user's adjustment behavior and optimizes the intelligent decision model.
[0325] 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 the 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.
[0326] 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).
[0327] In one implementation, Fig. 12B As shown, within 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 also included after step S110.
[0328] S116. Within the preset duration 4 of playing the video 1, the kernel service adjusts the media volume.
[0329] 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.
[0330] In some embodiments, during the preset duration 4 of playing the video 1, the user's input operation 3 triggers the kernel service to adjust the media volume. The input operation 3 includes pressing a volume key, adjusting a volume bar set in a system interface (e.g., a control center), etc. The embodiment of the present application does not specifically limit the input operation that triggers the kernel service to adjust the media volume.
[0331] 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.
[0332] S117: The browser basic service detects that the media volume is reduced to zero or increased from zero within the preset duration 4.
[0333] In some embodiments, the browser basic service periodically obtains the media volume from the kernel service and monitors whether the media volume changes.
[0334] S118. The browser basic service notifies the volume decision service of the user's action of adjusting the media volume.
[0335] S119. Record the user's adjustment behavior and optimize the intelligent decision-making model.
[0336] In some embodiments, the volume decision service collects the user's adjustment behavior, and periodically 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 that reduce the volume to zero or increase 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 probability threshold 1, the state weight of state 1 is adjusted.
[0337] In one implementation, adjusting the state weight of state 1 includes: if the user's adjustment behavior is used to reduce the volume to zero, then increasing the state weight of state 1; if the user's adjustment behavior is used to increase the volume from zero, then reducing 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).
[0338] In some embodiments, Fig. 12B As shown, step S110 further includes step S120.
[0339] S120, recording the historical playback data of the video 1.
[0340] 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.
[0341] For example, Fig. 12C A method flow of a volume control method is shown, and the method includes but is not limited to steps S201 to S210.
[0342] 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.
[0343] 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., and the first application is not specifically limited in the embodiment of the present application. Exemplarily, the first video played by the first application is the aforementioned video 1 played by the browser, the video 2 played by the video APP, the video 3 played by the short video APP, etc.
[0344] 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.
[0345] S203: The terminal determines the decision result indication of the volume play mode: the volume play mode of the last played video of the first application recorded by the terminal.
[0346] S204: The terminal obtains at least one decision factor set by the user and the current state of the terminal.
[0347] 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.
[0348] Exemplary, reference FIG. 5A to FIG. 9E , the decision factors involved in the user settings include some or all of the following: time period, media volume, application, external speaker, working mode, sports mode and venue 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, for example, the external speaker currently connected to the terminal, the venue type currently located by the terminal, etc.
[0349] Steps S202-S203 are optional. In some embodiments, it is not necessary to detect whether the first video is the first-time-played video; in response to the first input operation, the terminal can directly execute S204.
[0350] S205: The terminal determines a volume playback mode according to the at least one decision factor and the current state.
[0351] 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.
[0352] 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 a first duration of playing 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.
[0353] The first duration may include the aforementioned preset duration 1, such as 3s.
[0354] For example, Figure 2A-2F The following shows the interface implementation of the user interface for playing a video when the first volume playback mode is the media volume playback mode. Figure 3A-3J The following figure shows the interface implementation of the user interface for playing a video when the first volume playback mode is the silent playback mode. Figure 4A-4H The interface implementation of the user interface for playing a video when the first volume playback mode is a silent countdown mode is shown.
[0355] In some embodiments, the at least one decision factor includes a first decision factor, and before the first application of the terminal detects a first input operation, the method also 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.
[0356] Exemplarily, 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 venue type.
[0357] Among them, the first interface is the setting interface corresponding to the first decision factor. Exemplarily, the first interface is the setting interface 24 of the time period, the first state is the time period added by the user (for example, 17:00-19:00), and the second input operation includes the user's operation on the option 407 of the silent countdown mode (for example, a click operation). Exemplarily, the first interface is the setting interface 25 of the application, the setting interface 26 of the working mode, the setting interface 27 of the sports mode, the setting interface 28 of the external speaker device, or the setting interface 29 of the venue type, etc.
[0358] In some embodiments, 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. FIG. 5A to FIG. 9E For example, see FIG. 10A to FIG. 10C , users can set the volume playback mode through application settings.
[0359] In some embodiments, the user setting indicates the priority of the at least one decision factor; the terminal determines the volume play mode according to the at least one decision factor and the current state, including: determining the volume play mode corresponding to the current state of each decision factor according to the user setting in order of the priority of each decision factor from high to low, until the volume play mode is determined. For example, see FIG. 5D to FIG. 5E Each decision factor has a priority, and the user can set the priority of each decision factor.
[0360] In some embodiments, the at least one decision factor includes a first decision factor, 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. FIG. 6A to FIG. 6E According to the relevant description, the first state of the first decision factor is "17:00-19:00", and the corresponding first volume playback mode is the audio countdown mode.
[0361] 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 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 first video; when the first video is played to the first duration, the first video is played according to the preset media volume. For example, see FIG. 6A to FIG. 6E According to the relevant description, the first state of the first decision factor is "17:00-19:00", and the corresponding preset media volume is 65%.
[0362] 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. FIG. 6A to FIG. 6E, users can manually set the preset media volume.
[0363] In some embodiments, the preset media volume is determined by the terminal according to the media volume recorded in the first historical playback data, and the first historical playback data is the historical playback data of the played video that satisfies the first state of the first decision factor. Exemplarily, the preset media volume corresponding to the time period "17:00-19:00", the first historical playback data includes the historical playback data whose recording time belongs to the time period "17:00-19:00", and the preset media volume is the average media volume corresponding to the first historical playback data.
[0364] 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 a 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 out loud after the countdown ends. For example, see Figure 4A-4H As described above, the first control may be the continuous mute control 208, and the fourth input operation includes an operation acting on the continuous mute control 208 (eg, a click operation).
[0365] 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 silently plays the first video, 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.
[0366] 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.
[0367] For example, see Figures 3A-4H According to the relevant description, the second control may be the mute control 203, the third control may be the speaker control 202, the fifth input operation includes an operation acting on the mute control 203 (such as a click operation), and the sixth input operation includes an operation acting on the speaker control 202 (such as a click operation).
[0368] In some embodiments, 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 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 the preset state; if the current state of the strong factor includes the preset state, determining the volume playback mode of the first video 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 according to the current state of the at least one decision factor other than the preset state.
[0369] 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 as a strong factor, and the preset state of the second decision factor includes the second state.
[0370] For example, see Figure 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.
[0371] 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.
[0372] In some embodiments, the default volume playback mode is a silent countdown mode. By implementing the embodiments of the present application, the risk of external playback of the media volume can be reduced.
[0373] In some embodiments, 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.
[0374] In some embodiments, the above-mentioned terminal uses an intelligent decision model to determine the volume playback mode, including: according to the current status 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.
[0375] 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.
[0376] 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.
[0377] 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 at the first media volume at the first moment, the historical playback data of the first video also includes the first media volume.
[0378] In some embodiments, the time from the start time of playing the first video to the first time is a first duration (eg, the aforementioned preset duration 5).
[0379] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0380] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part 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, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can 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. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0381] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0382] In short, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope 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.
