WO-2026092512-A1 - DISPLAY METHOD, ELECTRONIC DEVICE AND COMPUTER STORAGE MEDIUM
Abstract
Provided in the present application are a display method, an electronic device and a computer storage medium. When a first application runs in the background, if the first application needs to continue to play audio in the background, an electronic device can acquire the audio type of first audio played in the first application; if the audio type of the first audio indicates first-type audio, the electronic device can display a play control card of the first application; and if the audio type of the first audio indicates second-type audio, the electronic device can display a first control, wherein the second-type audio is different from the first-type audio. In this way, the electronic device can display different identifiers, so as to indicate different types of audio played in the background, thereby improving the display effect of the electronic device.
Inventors
- GAO, Yuntao
- LIAO, Qian
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260507
- Application Date
- 20251029
- Priority Date
- 20241101
Claims (18)
- A display method, characterized in that the method includes: The electronic device plays the first audio file in the first application. The electronic device receives the user's first operation. In response to the first operation, the first application switches from foreground to background operation. When the first application is running in the background, the electronic device continues to play the first audio. After the first application runs in the background, the electronic device displays a first interface, which includes a first playback control card and a first control. The first control is used to instruct the first audio to play in the background, and the first playback control card is used to display the second audio played by the second application.
- According to the method of claim 1, the electronic device includes an audio/video broadcast control service module; before the electronic device displays the first interface, the method further includes: The audio and video broadcast control service module obtains the audio information of the first audio and the audio information of the second audio. The electronic device displays a first interface, specifically including: The audio and video playback control service module displays the first playback control card and the first control on the first interface based on the audio information of the first audio and the audio information of the second audio.
- According to the method of claim 2, the audio information of the first audio includes the audio type of the first audio, and the audio information of the second audio includes the audio type of the second audio and the playback control information of the second audio. Wherein, the audio type of the first audio is the second type of audio, the audio type of the second audio is the first type of audio, and the playback control information of the second audio includes any one or more of the following: pause/continue playback option information, switch to play other audio option information.
- The method according to claim 1 or 2 is characterized in that, when the electronic device displays the first playback control card, the electronic device is playing the second audio, or has stopped playing the second audio.
- The method according to any one of claims 1-4 is characterized in that the first playback control card includes options for controlling the audio played by the first application, and the options may include any one or more of the following: pause playback/continue playback options, switch to play other audio options.
- The method according to any one of claims 1-5, wherein the first interface includes a control center interface, or a volume adjustment interface, or a message notification interface, or a lock screen interface.
- The method according to claim 3, wherein the first type of audio includes any one of the following: music audio, video audio, and e-book audio; The second type of audio includes any of the following: navigation audio, live broadcast audio, call audio, news playback audio, and game audio.
- The method according to any one of claims 1-7, characterized in that, after the electronic device displays the first control, the method further includes: The electronic device receives a second operation from the user on the first control. In response to the second operation, the electronic device displays the identifier of the first application.
- The method according to claim 8, characterized in that the method further comprises: Upon receiving the second operation, the electronic device displays the first option of the first application; The electronic device receives a third operation from the user for the first option; In response to the third operation, the electronic device stops playing the first audio.
- The method according to claim 9, characterized in that the method further comprises: In response to the third operation, the electronic device closes the process of the first application.
- The method according to claim 9 or 10, characterized in that the method further comprises: After the electronic device stops playing the first audio, the electronic device stops displaying the first control.
- The method according to claim 9, characterized in that the method further comprises: After the electronic device stops playing the first audio, the electronic device receives a fourth operation; In response to the fourth operation, the first application switches from the background to the foreground. When the first application is running in the foreground, the electronic device continues to play the first audio.
- The method according to claim 8, characterized in that the method further comprises: The electronic device receives a fifth operation from the user targeting the identifier of the first application. In response to the fifth operation, the electronic device displays the second interface of the first application.
- According to the method of claim 13, the second interface is the homepage of the first application, or the second interface is an interface related to the second audio in the first application, or the second interface is an interface displayed in the foreground before the first application switches to background operation.
- The method according to any one of claims 1-7, characterized in that, after the electronic device displays the first interface, the method further includes: The electronic device plays a third audio from a third application; The electronic device receives the user's sixth operation; In response to the sixth operation, the third application switches from foreground to background operation; The electronic device receives a seventh operation from the user on the first control; In response to the seventh operation, the electronic device displays the identifier of the first application and the identifier of the third application.
- An electronic device, characterized in that the electronic device includes a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to invoke the computer program to cause the electronic device to perform the method according to any one of claims 1-15.
- A computationally readable storage medium includes instructions, characterized in that, when the instructions are executed on an electronic device, the electronic device performs the method of any one of claims 1-15.
- A computer program product, characterized in that the computer program product includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of any one of claims 1-15.
Description
A display method, an electronic device, and a computer storage medium This application claims priority to Chinese Patent Application No. 202411555915.9, filed on November 1, 2024, with the invention entitled "A Display Method, Electronic Device and Computer Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field This application relates to the field of terminal technology, and in particular to a display method, electronic device and computer storage medium. Background Technology With the development of terminal technology, the number of applications installed on electronic devices is increasing. Users can use these applications to play videos, navigate, play music, read e-books, and more, greatly improving the user experience. Applications can emit sounds in the foreground or background. When an application emits sounds in the background, if multiple applications are running in the background, the user cannot tell which application is emitting the sound. If the user needs to pause the application emitting the sound, the processes of multiple applications need to be cleared. However, this may mistakenly clear the processes of other applications. How to quickly locate the application emitting sounds in the background requires further research. Summary of the Invention The application provides a display method, an electronic device, and a computer storage medium. The electronic device can display different icons to indicate different audio being played in the background, improving the display effect of the electronic device. In a first aspect, this application provides a display method, the method comprising: an electronic device playing a first audio in a first application; the electronic device receiving a first operation from a user; in response to the first operation, the first application switching from foreground to background operation, the electronic device continuing to play the first audio while the first application is running in the background; and after the first application is running in the background, the electronic device displaying a first interface, the first interface including a first playback control card and a first control, the first control being used to indicate that the first audio is playing in the background, and the first playback control card being used to display a second audio played by a second application. Both the first playback control card and the first control are used to instruct the first and second audio to play in the background. This method allows electronic devices to display different icons to indicate different audio being played in the background, thus improving the display effect of the electronic device. For example, the first application may be a map application, the first audio may be navigation route information, and the first control may be control 4101 shown in Figures 5C-5E. For example, the second application can be a music application, the second audio can be music, and the first broadcast control card can be broadcast control card 3101 or broadcast control card 3102 shown in Figures 5C-5E. In conjunction with the first aspect, in one possible implementation, the electronic device includes an audio/video broadcast control service module; before the electronic device displays the first interface, the method further includes: the audio/video broadcast control service module acquiring audio information of a first audio and audio information of a second audio; the electronic device displaying the first interface specifically includes: the audio/video broadcast control service module displaying a first broadcast control card and a first control on the first interface based on the audio information of the first audio and the audio information of the second audio. Optionally, the audio information of the first audio file may be sent to the audio/video playback control service module when the first application starts or when the first audio file is played. Similarly, the audio information of the second audio file may be sent to the audio/video playback control service module when the second application starts or when the second audio file is played. In conjunction with the first aspect, in one possible implementation, the audio information of the first audio includes the audio type of the first audio, and the audio information of the second audio includes the audio type of the second audio and the playback control information of the second audio; wherein, the audio type of the first audio is the second type of audio, the audio type of the second audio is the first type of audio, and the playback control information of the second audio includes any one or more of the following: pause/continue playback option information, switch to play other audio option information. If the first audio is of the second type, the audio information of the first audio may include the second type of audio. Optionally, the audio information