CN-121996329-A - Display method, electronic equipment and computer storage medium
Abstract
The application provides a display method, electronic equipment and a computer storage medium. When the first application runs in the background, if the first application needs to continue sounding in the background, the electronic device can acquire the audio type of the first audio played by the first application. If the audio type of the first audio is the first type audio, the electronic device may display a playing card of the first application. If the audio type of the first audio is a second type of audio, the electronic device may display the first control, the second type of audio being different from the first type of audio. Thus, the electronic equipment can display different identifications to indicate different audios which are applied to the background to play, and the display effect of the electronic equipment is improved.
Inventors
- GAO YUNTAO
- LIAO QIAN
Assignees
- 华为终端有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241101
Claims (18)
- 1.A display method, the method comprising: the electronic equipment plays first audio in a first application; the electronic equipment receives a first operation of a user; Responding to the first operation, switching the first application from a foreground to a background operation, and continuously playing the first audio by the electronic equipment when the first application is operated in the background; After the first application runs in the background, the electronic device displays a first interface, wherein the first interface comprises a first playing control card and a first control, the first control is used for indicating that the first audio is played in the background, and the first playing control card is used for displaying second audio played by a second application.
- 2. The method of claim 1, wherein the electronic device comprises an audio video playback control service module, and wherein prior to the electronic device displaying the first interface, the method further comprises: The audio and video playing control service module acquires the audio information of the first audio and the audio information of the second audio; The electronic equipment displays a first interface, and specifically comprises: and the audio and video playing control service module displays the first playing control card and the first control in the first interface according to the audio information of the first audio and the audio information of the second audio.
- 3. The method of claim 2, wherein the audio information of the first audio comprises an audio type of the first audio and the audio information of the second audio comprises an audio type of the second audio and playback control information of the second audio; the audio type of the first audio is second type audio, the audio type of the second audio is first type audio, and the play control information of the second audio comprises any one or more of pause play/continue play option information and switch play of other audio option information.
- 4. The method of claim 1 or 2, wherein the electronic device is playing the second audio or stopping playing the second audio while the electronic device is displaying the first play control card.
- 5. The method of any of claims 1-4, wherein the first playing card includes an option for controlling audio played by the first application, the option including any one or more of pause/resume play options, switch play options for other audio.
- 6. The method of any of claims 1-5, wherein the first interface comprises a control center interface, or a volume adjustment interface, or a message notification interface, or a lock screen interface.
- 7. The method of claim 3, wherein the first type of audio comprises any one of music-based audio, video-based audio, electronic book-based audio; The second type of audio includes any one of navigation audio, live audio, conversation audio, news playing audio, and game audio.
- 8. The method of any of claims 1-7, wherein after the electronic device displays the first control, the method further comprises: the electronic device receives a second operation of a user for the first control, In response to the second operation, the electronic device displays an identification of the first application.
- 9. The method of claim 8, wherein the method further comprises: after receiving the second operation, the electronic device displays a first option of the first application; the electronic equipment receives a third operation of a user aiming at the first option; And responding to the third operation, and stopping playing the first audio by the electronic equipment.
- 10. The method according to claim 9, wherein the method further comprises: and responding to the third operation, and closing the process of the first application by the electronic equipment.
- 11. The method according to claim 9 or 10, characterized in that the method further comprises: And after the electronic equipment stops playing the first audio, the electronic equipment stops displaying the first control.
- 12. The method according to claim 9, wherein the method further comprises: After the electronic equipment stops playing the first audio, the electronic equipment receives a fourth operation; in response to the fourth operation, the first application is switched from background to foreground operation; And when the first application runs in the foreground, the electronic equipment continues to play the first audio.
- 13. The method of claim 8, wherein the method further comprises: The electronic device receives a fifth operation of a user for identification of the first application, In response to the fifth operation, the electronic device displays a second interface in the first application.
- 14. The method of claim 13, wherein the second interface is a home page 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 the background operation.
- 15. The method of any of claims 1-7, wherein after the electronic device displays the first interface, the method further comprises: the electronic equipment plays third audio in a third application; the electronic equipment receives a sixth operation of a user; in response to the sixth operation, the third application is switched from the foreground to the background operation; The electronic equipment receives a seventh operation of a user for the first control; In response to the seventh operation, the electronic device displays an identification of the first application and an identification of a third application.
- 16. An electronic device comprising a memory and a processor, wherein the memory is configured to store a computer program, and the processor is configured to invoke the computer program to cause the electronic device to perform the method of any of claims 1-15.
- 17. A computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1-15.
- 18. A computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-15.
Description
Display method, electronic equipment and computer storage medium Technical Field The present application relates to the field of terminal technologies, and in particular, to a display method, an electronic device, and a computer storage medium. Background With the development of terminal technology, the number of applications installed on electronic devices is increasing, and users can play videos, navigate, play music, play electronic books and the like through the applications installed on the electronic devices, so that the use experience of people is greatly improved. The application can sound in the foreground or in the background. When an application sounds in the background, if a plurality of applications are running in the background, a user cannot perceive which application is sounding, and if the user needs to pause the sounding application, the user needs to clear the processes of the plurality of applications to stop sounding the application. But this can misclear the progress of other applications. How to quickly locate the application of sounding in the background is yet to be further studied. Disclosure of Invention The application provides a display method, electronic equipment and a computer storage medium. The electronic equipment can display different identifications to indicate different audios played by the application in the background, so that the display effect of the electronic equipment is improved. In a first aspect, the application provides a display method, which comprises the steps that an electronic device plays first audio in a first application, the electronic device receives first operation of a user, the first application is switched to background operation from a foreground in response to the first operation, the electronic device continues to play the first audio when the first application operates in the background, after the first application operates in the background, the electronic device displays a first interface, the first interface comprises a first playing control card and a first control, the first control is used for indicating the first audio to play in the background, and the first playing control card is used for displaying second audio played by a second application. The first playing control card and the first control are used for indicating that the first audio and the second audio are played in the background. By the method, the electronic equipment can display different identifications to indicate different audios which are applied to the background and played, so that the display effect of the electronic equipment is improved. By way of 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 fig. 5C-5E. Illustratively, the second application may be a music application, the second audio may be music, and the first playing card may be the playing card 3101 or the playing card 3102 shown in fig. 5C-5E. In combination with the first aspect, in one possible implementation manner, the electronic device comprises an audio/video playing control service module, before the electronic device displays the first interface, the method further comprises the step that the audio/video playing control service module obtains audio information of the first audio and audio information of the second audio, and the electronic device displays the first interface, and specifically comprises the step that the audio/video playing control service module displays a first playing control card and a first control in the first interface according to the audio information of the first audio and the audio information of the second audio. Alternatively, the audio information of the first audio may be sent to the av playback service module when the first application is started or when the first audio is played. The audio information of the second audio may also be sent to the av playback service module when the second application is started or when the second audio is played. With reference to the first aspect, in one possible implementation manner, the audio information of the first audio includes an audio type of the first audio, the audio information of the second audio includes an audio type of the second audio and play 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 play control information of the second audio includes any one or more of pause play/continue play option information and switch play of other audio option information. In the case where the first audio is the second type audio, the audio information of the first audio may include the second type audio. Optionally, the audio information of the first audio may further comprise an identification of the first application. In the case where the second audio is the first type audio, the au