Method and apparatus for displaying playback interface and device and readable storage medium thereof
Patent Information
- Application Number
- MYPI2025002235
- Authority / Receiving Office
- MY · MY
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2022-10-11
- Publication Date
- 2024-04-11
AI Technical Summary
Existing multimedia playback applications have low human-computer interaction efficiency during music playback, and insufficient changes in interface display information, resulting in poor user experience.
Display the 2D cover image of the target audio in the audio playback interface, and simulate the animation of the 2D disc element sliding out from the edge of the cover image when switching playback states to enhance the interface interaction effect.
Through animation effects, the interactivity and attractiveness of the audio playback interface are improved, the user operating experience and interface expressiveness are improved, and the efficiency of human-computer interaction is enhanced.
Smart Images

Figure PI2025002235_DRAWING_001 
Figure PI2025002235_DRAWING_002 
Figure PI2025002235_DRAWING_003
Abstract
Description
A method, device, equipment and readable storage medium for displaying a playback interface Technical Field
[0001] The present application relates to the field of multimedia data processing, and in particular to a method, device, equipment and readable storage medium for displaying a playback interface. Background Art
[0002] In a multimedia playback application, such as a music application, when playing music, a music display area and an operation area are usually displayed in the music playback interface.
[0003] In related technologies, the music display area will simply display the lyrics of the music being played, related album pictures, or music videos related to the music; in response to the user's operations such as play, pause, and song change in the operation area, the display information in the music display area will change accordingly.
[0004] However, in the related art, the music display area can only simply display music-related information, and the human-computer interaction efficiency is low.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a method, apparatus, device, and readable storage medium for displaying a playback interface, which can improve the efficiency of human-computer interaction during audio playback and improve the playback efficiency of audio playback. The technical solution is as follows:
[0007] In one aspect, a method for displaying a playback interface is provided, the method comprising:
[0008] Displaying an audio playback interface, wherein the audio playback interface includes a two-dimensional cover image corresponding to the target audio;
[0009] In response to the target audio being switched to a play state, an animation is displayed in which a two-dimensional optical disc element corresponding to the target audio slides out from an edge of the two-dimensional cover image along a specified direction.
[0010] In another aspect, a display device for a playback interface is provided, the device comprising:
[0011] A display module, configured to display an audio playback interface, wherein the audio playback interface includes a two-dimensional cover image corresponding to the target audio;
[0012] The display module is further configured to display an animation of a two-dimensional optical disc element corresponding to the target audio sliding out from the edge of the two-dimensional cover image along a specified direction in response to the target audio being switched to a play state.
[0013] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded by a prime number processor and executes the above-mentioned method for displaying a playback interface.
[0014] On the other hand, a computer-readable storage medium is provided, wherein at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor to implement the above-mentioned method for displaying a playback interface.
[0015] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:
[0016] By switching the target audio to the playback state, the sliding-out animation of the two-dimensional CD elements extracted from the two-dimensional cover image is simulated on the audio playback interface, so that during the playback of the target audio, the audio playback interface displays an animation effect with stronger visual effects, enriching the interaction form between user operations and interface displays, improving the efficiency of human-computer interaction, and further enhancing the expressiveness of the audio playback interface for the target audio. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] FIG1 is a schematic diagram showing an audio playback interface provided by an exemplary embodiment;
[0019] FIG2 is a flow chart of an implementation environment provided by an exemplary embodiment of the present application;
[0020] FIG3 is a flowchart of a method for displaying a playback interface provided by an exemplary embodiment of the present application;
[0021] FIG4 is a schematic diagram of an animation display interface of a playback interface provided by an exemplary embodiment of the present application;
[0022] FIG5 is a flowchart of a method for displaying a playback interface provided by another exemplary embodiment of the present application;
[0023] FIG6 is a schematic diagram of an animation display interface of a playback interface provided by an exemplary embodiment of the present application;
[0024] FIG7 is a flowchart of a method for displaying a playback interface provided by an exemplary embodiment of the present application;
[0025] FIG8 is a schematic diagram showing a display of a two-dimensional optical disc element provided by an exemplary embodiment of the present application;
[0026] FIG9 is a schematic diagram showing a display of a two-dimensional optical disc element provided by another exemplary embodiment of the present application;
[0027] FIG10 is a schematic diagram showing a spectrum animation provided by an exemplary embodiment of the present application;
[0028] FIG11 is a schematic diagram showing a background zoom animation provided by an exemplary embodiment of the present application;
[0029] FIG12 is a schematic diagram showing a dissipation animation of text content data provided by an exemplary embodiment of the present application;
[0030] FIG13 is a schematic diagram of an animation display interface of a playback interface provided in another exemplary embodiment of the present application;
[0031] FIG14 is a schematic structural diagram of a display device for a playback interface provided by an exemplary embodiment of the present application;
[0032] FIG15 is a schematic structural diagram of a display device for a playback interface provided by another exemplary embodiment of the present application;
[0033] FIG16 is a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0035] First, a brief introduction to the terms involved in the embodiments of this application is given:
[0036] Target audio: used to represent the audio work to be played. The target audio can be either online audio or local audio. When the target audio is implemented as online audio, the target audio can be an audio work included in an audio playback application. The user selects the target audio in the audio playback application for playback. The specific implementation logic includes: the terminal pulls the audio data packet corresponding to the target audio from the server for parsing, and plays the target audio. When the target audio is implemented as local audio, the terminal reads the target audio from the local disk for playback.
[0037] Audio playback interface: When playing the target audio, the interface corresponding to the audio playback application; as shown in Figure 1, the audio playback interface 10 includes a two-dimensional cover image 11, an audio information display area 12, a first audio operation area 13, and a second audio operation area 14. The two-dimensional cover image 11 is used to display image information associated with the target audio. The audio information display area 12 is used to display specific audio information of the target audio, including but not limited to: the singer of the target audio, the composer of the target audio, the arranger of the target audio, the title of the target audio work, the playback quality corresponding to the currently playing audio, the text content data corresponding to the currently playing audio, etc. The first audio operation area 13 displays corresponding operation controls for collecting, commenting on, downloading, adjusting the target audio, etc.; for example: the collection control 130 is used to indicate that the target audio is included in the target audio list, the sound quality adjustment control 131 is used to adjust the audio quality of the currently playing target audio, and adjust at least one of the audio sound effects of the currently playing target audio, such as: when adjusting the audio quality, adjusting from standard quality to HQ quality (High Quality, high quality, abbreviated as: HQ), adjusting from HQ quality to SQ quality (Super Qualit, lossless quality, abbreviated as: SQ), etc.; when adjusting the audio sound effects, adjusting from "external surround" sound effects to "3D sound effects", etc.; the download control 132 is used to indicate that the currently playing audio is stored locally in the terminal; the comment control 133 is used to evaluate the currently playing audio; the other function control 134 is used to display other operations on the currently playing audio, such as: sharing operations, adding to the preset audio list, double-speed playback operations, setting playback ringtones, etc. The second audio operation area 14 displays a play control 140 for adjusting the play status of the target audio, a first switch sub-control 141 and a second switch sub-control 142 for switching the currently playing audio, a list control 143 for displaying the currently playing audio list, and a loop control 144 for adjusting the play loop mode of all audio in the currently playing audio list. It should be noted that Figure 1 is only an exemplary example of the audio playback interface. The audio playback interface may also include areas, controls, elements, etc. other than the above-mentioned areas, and may also display fewer areas, controls, and elements than those described above. This application does not limit this.
[0038] Two-dimensional cover image: It is an element area used to display image information associated with the currently playing audio. The image information includes but is not limited to: the cover image corresponding to the album to which the currently playing audio belongs, the photo image corresponding to the singer of the currently playing audio, the plot image corresponding to the film and television work to which the currently playing audio belongs, a single solid color image, multiple solid color gradient images, a text design image corresponding to the name of the work of the currently playing audio, images uploaded by users, etc.
[0039] Two-dimensional optical disc element: used to indicate the playback status corresponding to the currently playing audio. The two-dimensional optical disc element includes a display state and a non-display state; the state of the two-dimensional optical disc element changes with the playback status of the target audio. The specific process of the state change is as follows: after performing a playback operation on the target audio, the two-dimensional optical disc element switches from a non-display state to a display state; during the playback of the target audio, the two-dimensional optical disc element is always in a display state; when the target audio is in the playback state, a switch playback operation is performed, and the two-dimensional optical disc element switches from a display state to a non-display state. Optionally, the display state of the two-dimensional optical disc element also includes a rotating sub-state and a stationary sub-state. The rotating sub-state is used to indicate that the target audio is in a playback state, and the stationary sub-state can be used to indicate that the target audio is in a temporarily paused playback state. The above is only an illustrative example. The two-dimensional optical disc element can also have other forms of states and state changes, which are not limited in this application.
[0040] In the related art, please refer to Figure 1 specifically. In the audio playback interface 10, only the audio cover 11 corresponding to the currently playing audio is displayed, and the shape of the audio cover 11 is changed, such as: changing the "circular" audio cover in Figure 1 to a "square" audio cover. During the audio playback process, the audio cover 11 is in a static and fixed state, and cannot effectively interact with the audio playback, and cannot adaptively change the rhythm of the target audio. It can be seen that the interface interaction efficiency of the audio playback interface is low, which reduces the attractiveness of the audio playback interface to users to a certain extent, and ultimately reduces the usage rate of audio playback applications.
[0041] Based on the above-mentioned defects, the display method of the playback interface provided by the embodiment of the present application sets a new player style in the audio playback interface corresponding to the audio playback application. In the audio playback interface, a two-dimensional cover image is displayed, and when the target audio is played, paused, or switched to play, the situation of a CD being pulled out of a CD case in reality is simulated. Specifically, when the play operation is performed on the target audio, an animation of the two-dimensional CD corresponding to the target audio being pulled out from the two-dimensional cover image is played. While improving the interface interaction efficiency of the audio playback interface, it also provides the audio playback interface with attractiveness to users, thereby increasing the usage rate of the audio playback application.
[0042] Next, please refer to FIG2 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment includes: a terminal 20 and a server 21 .
[0043] Terminal 20 has the function of playing audio. Optionally, an audio playback application that supports audio playback is installed / running in the terminal. The audio playback application can be a traditional application, a cloud application, a mini-program or application module in a host application, such as a quick application, or any of the web platforms. This embodiment of the present application is not limited to this. The user plays the target audio through the audio playback application in Terminal 20.
[0044] The terminal 20 also has the function of exchanging data with the server 21. For example, during the process of playing the target audio, the terminal 20 sends a target audio playback request to the server 21. The server 21 sends an audio data packet corresponding to the target audio and audio playback interface rendering data to the terminal 20 according to the playback request. The terminal 20 parses the data in the audio data packet to complete the playback of the target audio and the audio playback interface rendering data, and displays a sliding-out animation of a two-dimensional optical disc element corresponding to the target audio moving from the edge of the two-dimensional cover image on the audio playback interface of the terminal 20.
[0045] In some optional embodiments, the above-mentioned audio playback interface rendering data is offline data, that is, the terminal 20 can directly read the locally stored audio playback interface rendering data, and then render and display it on the audio playback interface.
[0046] The server 21 also has an audio data acquisition function. Through the audio data and audio playback interface rendering data acquisition function, the audio data information corresponding to the playback request is obtained from the database, and the audio data information is compressed to obtain an audio data packet. The audio data packet includes but is not limited to at least one of the audio data of the target audio, image information associated with the target audio, and introduction information corresponding to the target audio.
[0047] A communication connection is established between the terminal 20 and the server 21 via a wired or wireless network. The wireless or wired network described above uses standard communication technologies and / or protocols. The network is typically the Internet, but may also be any other network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network, or any combination of a virtual private network. In some embodiments, technologies and / or formats including Hypertext Markup Language (HTML) and Extensible Markup Language (XML) are used to represent data exchanged over the network. In addition, conventional encryption technologies such as Secure Sockets Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), and Internet Protocol Security (IPsec) may be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies may be used to replace or supplement the above-mentioned data communication technologies.
[0048] It is worth noting that the terminal 20 can be a smartphone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer, or a desktop computer. The terminal may also be referred to as user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names, which are not limited in this application.
[0049] Server 21 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Optionally, server 21 can also be implemented as a node in a blockchain system.
[0050] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, storage, and display, etc.), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the two-dimensional cover image and two-dimensional optical disc elements involved in this application were obtained with full authorization.
[0051] In conjunction with the above-mentioned introduction to the terms and the description of the implementation environment, the following embodiment will provide a detailed description of the interface changes of the audio playback interface when the target audio switches to the playback state. Please refer to Figure 3, which shows a flowchart of a method for displaying a playback interface provided by an exemplary embodiment of the present application. This method is applied to the terminal in the embodiment shown in Figure 2. The method includes:
[0052] Step 301: Display the audio playback interface.
[0053] The audio playback interface includes a two-dimensional cover image that displays image information associated with the target audio. When the target audio is not playing, the two-dimensional cover image only displays the two-dimensional cover shell. When the target audio is playing, the two-dimensional cover image also displays the two-dimensional disc elements corresponding to the target audio.
[0054] Optionally, the audio playback interface includes at least one of a text display area, a first audio operation area, and a second audio operation area.
[0055] The following is a detailed description of the functions actually implemented in each area of the audio playback interface.
[0056] For details, please refer to the interface diagram shown as the audio playback interface 410 in Figure 4 below.
[0057] As shown in FIG. 4 , the audio playback interface 410 includes a two-dimensional cover image 42 , a text display area 43 , a first audio operation area 44 , and a second audio operation area 45 .
[0058] The two-dimensional cover image 42 is used to display image information associated with the target audio.
[0059] The text display area 43 is used to display text data content associated with the target audio, such as: if the target audio is the song "xxx", the lyrics corresponding to the song "xxx" are displayed in the text display area 43; if the target audio is a part of the film and television work "xx", the original dialogue content corresponding to the film and television work "xx" is displayed in the text display area 43.
[0060] The first audio operation area 44 displays a collection control, a comment control, an audio name selection control, an audio author information viewing control, an audio playback quality control, and other comprehensive operation controls. The comprehensive operation controls include controls for performing other operations on the target audio, such as an audio effect switching control and a download control. For example, the collection control is used to indicate that the target audio is included in a target audio playlist. In actual implementation, this list can be referred to as "I Like"; this list is created by the audio application based on the collection control. The comment control is used to indicate comments on the target audio, and the user's comments are displayed in the comment display area. The audio name selection control is used to indicate a new search using the target audio name. The user can select different renditions of the target audio to play in the search results interface. The audio author information viewing control is used to search for the audio author of the target audio. The user can select other audio works of the audio author to play in the search results interface. The audio author can be a singer, arranger, composer, or the name of a film or television work. The audio playback quality control is used to indicate switching the playback quality of the target audio, such as switching from HQ quality to SQ quality.
[0061] The second audio operation area 45 displays controls for adjusting the playback status of the target audio, including but not limited to a playback control 450, an audio switching control, an audio loop setting control, a list control, and a progress bar display area. The playback control 450 is used to indicate whether the target audio is in playback or paused state; the audio switching control is used to indicate switching of the currently playing target audio; the audio loop setting control is used to indicate setting the playback mode of the target audio, wherein the playback mode includes at least one of single audio loop playback, list loop playback, and audio random playback; the list control is used to indicate the list audio information where the target audio is located; and the progress bar display area is used to indicate the playback progress of the target audio.
[0062] In this embodiment, the two-dimensional cover image is used to indicate image information associated with the currently playing audio or the currently to-be-played audio. The currently playing audio or the currently to-be-played audio is referred to as the target audio. The image information includes but is not limited to the following information:
[0063] The image information is implemented as an audio cover image corresponding to the target audio. The audio cover image is usually set by the production team of the target audio. When the production team uploads the target audio, a corresponding cover image is set for the target audio to display the cover image during the target audio playback process.
[0064] This image information is implemented as the album cover image corresponding to the album to which the target audio belongs. In the field of audio playback, production teams release audio works in the form of audio collections, which are called albums. An album includes at least one audio work. Multiple audio works within an album have their own corresponding audio cover information. In addition, a separate album cover image is set for the album, which is different from the audio cover information. When playing the target audio, the album information corresponding to the target audio is obtained, and the album cover image in the album information is displayed as the image displayed in the two-dimensional cover image.
[0065] The image information is implemented as a plot image or theatrical image corresponding to the film or television work to which the target audio belongs. The target audio may also be an interlude or soundtrack from the film or television work. For such target audio, the plot image corresponding to the film or television work, or at least one of the plot images, is obtained and displayed. The plot image may be, for example, a cover image of the film or television work.
[0066] This image information is implemented as a custom cover image uploaded by the user. When playing the target audio, the user can customize the image displayed in the two-dimensional cover image. This customization includes selecting a solid color or gradient background from a library of available colors, uploading a specific image locally, or selecting any of the popular images available online in audio playback applications.
[0067] In this embodiment, the two-dimensional cover image may further include at least two pieces of image information, which may be implemented as any of the aforementioned image information. When the two-dimensional cover image includes at least two pieces of image information, a trigger operation is received on the two-dimensional cover image to switch between displaying the images in the at least two pieces of image information. The trigger operation may be at least one of a click operation, a hover-slide operation, a slide operation, a double-click operation, and a three-finger operation, which is not limited in this application.
[0068] In conjunction with the above description of image information, the following describes the display scenarios of the audio playback interface. The unused scenario includes before entering an audio playback application for the first time, and when entering an audio playback application for the first time without playing any audio. The used scenario indicates that audio has already been played using the audio playback application:
[0069] The first scenario: The audio playback application is not in use. That is, it is opened for the first time and no audio playback operation is performed. There is no audio-related information in the audio playback interface. Only the original template is displayed in the audio playback interface. The original template shows the original status of all controls in the interface. For example, no image information is displayed in the 2D cover image.
[0070] The second type: the audio playback application is in the usage scenario, that is, after opening the audio playback application again, the audio playback interface displays the audio information corresponding to the last song played when the audio playback application was last opened. For example: the last audio played when the user opened the audio playback application last time was "sss", and in the user's current audio playback interface, the two-dimensional cover image displays graphic information associated with the audio "sss".
[0071] Step 302 : In response to the target audio being switched to a play state, an animation of a two-dimensional optical disc element corresponding to the target audio sliding out from an edge of the two-dimensional cover image along a first specified direction is displayed.
[0072] In an embodiment of the present application, the entire process of playing a CD in real life is realistically simulated, and the process is displayed in a visual form in the audio playback interface. In other words, the two-dimensional cover image involved in the embodiment of the present application is equivalent to the outer shell of a CD case in real life. When the target audio is not being played, only the outer shell of the CD case is displayed, that is, only the two-dimensional cover image is displayed in the audio playback interface; then, during the process of playing the target audio, an animation of taking the CD out of the CD case is displayed in a visual form in the audio playback interface, that is, the two-dimensional CD element corresponding to the target audio is moved out of the two-dimensional cover image, and after being moved out to the specified position, the two-dimensional CD element is rotated.
[0073] In the embodiment of the present application, the sliding-out process of the two-dimensional optical disc element from the two-dimensional cover image when the target audio is switched to the play state is described in detail as follows:
[0074] Optionally, in response to the target audio being switched to the play state, a slide-out animation is displayed in which the two-dimensional optical disc element corresponding to the target audio moves out from the edge of the two-dimensional cover image in a first specified direction; in response to the two-dimensional optical disc element sliding out to a specified position, the sliding of the two-dimensional optical disc element is stopped, and a rotation animation of the two-dimensional optical disc element is displayed. The slide-out animation is used to indicate the movement animation corresponding to the two-dimensional optical disc element switching from the obscured state to the displayed state.
[0075] Optionally, when an object moves in real life, it is affected by friction and will not continue to move at a uniform speed. Therefore, when setting the slide-out animation of the two-dimensional optical disc element, it is necessary to introduce the influence of friction, and increase or decrease the speed with a certain acceleration in the starting time period and the ending time period of the movement of the two-dimensional optical disc element. When setting the slide-out animation corresponding to the two-dimensional optical disc element, the two-dimensional optical disc element is moved at the moving speed corresponding to the variable speed curve. In addition, the friction between the two-dimensional cover image and the two-dimensional optical disc element can also be ignored, and the two-dimensional optical disc element can be moved at a uniform speed. The present application does not limit the moving speed of the two-dimensional optical disc element. That is, in response to the target audio switching to the play state, the sliding appearance animation of the two-dimensional optical disc element moving out from the edge of the two-dimensional cover image according to the preset speed curve is displayed. The preset speed curve includes any one of a uniform speed curve and a variable speed curve.
[0076] Optionally, the specific process of removing the two-dimensional optical disc element is described in detail as follows:
[0077] The two-dimensional cover image can be an image of any shape, such as a circle, square, triangle, etc. In the embodiment of the present application, the two-dimensional cover image is taken as a square as an example. The two-dimensional cover image includes four edges, namely: the upper edge, the lower edge, the left edge and the right edge.
[0078] The two-dimensional CD element can also be of any shape, but in order to achieve a better display effect when the two-dimensional CD element plays the rotating animation, the shape of the two-dimensional CD element is usually set to a circle or n-sided row, where n is an integer greater than 4. In the embodiment of the present application, the two-dimensional cover image is taken as an example to illustrate that the diameter of the two-dimensional CD element is smaller than the side length of the two-dimensional cover image, so as to better simulate the effect of the two-dimensional CD element being extracted from the two-dimensional cover image.
[0079] Situations where the 2D disc element is removed from the 2D cover image include but are not limited to the following:
[0080] The first scenario: in response to the target audio being switched to the play state, a sliding animation of the two-dimensional optical disc element moving out from the upper edge of the two-dimensional cover image is displayed. At this time, the first specified direction is used to indicate moving the two-dimensional optical disc element upward.
[0081] The second scenario: in response to the target audio being switched to the play state, a sliding animation of the two-dimensional optical disc element moving out from the left edge of the two-dimensional cover image is displayed. At this time, the first specified direction is used to indicate moving the two-dimensional optical disc element to the left.
[0082] The third scenario: in response to the target audio being switched to the play state, a sliding animation of the two-dimensional optical disc element moving out from the bottom edge of the two-dimensional cover image is displayed. At this time, the first specified direction is used to indicate moving the two-dimensional optical disc element downward.
[0083] The fourth scenario: in response to the target audio being switched to the play state, a sliding animation of the two-dimensional optical disc element moving out from the right edge of the two-dimensional cover image is displayed. At this time, the first specified direction is used to indicate moving the two-dimensional optical disc element to the right.
[0084] Optionally, in response to the center of the two-dimensional optical disc element coinciding with the edge of the two-dimensional cover image, the sliding out of the two-dimensional optical disc element is stopped, and a rotating animation of the two-dimensional optical disc element is displayed; the rotating animation is used to indicate that the target audio is in a playing state, such as: in response to the center of the two-dimensional optical disc element coinciding with at least one of the upper edge, lower edge, left edge or right edge of the two-dimensional cover image, the sliding out of the two-dimensional optical disc element is stopped; or,
[0085] In response to the two-dimensional optical disc element moving out to a position tangent to the edge of the two-dimensional cover image, stopping the sliding out of the two-dimensional optical disc element and displaying a rotating animation of the two-dimensional optical disc element; or,
[0086] In response to the two-dimensional optical disc element moving a custom distance from the edge of the two-dimensional cover image, the sliding out of the two-dimensional optical disc element is stopped, and the rotation animation of the two-dimensional optical disc element is displayed, wherein the custom distance is used to indicate the distance customized by the user, such as: the user sets the sliding out distance of the two-dimensional optical disc element in the setting interface of the audio playback application.
[0087] Optionally, when displaying the rotating animation of a two-dimensional optical disc element, the center of the two-dimensional optical disc element is used as the axis and the element rotates clockwise or counterclockwise at a first specified speed corresponding to the normal playback speed of the target audio. In an embodiment of the present application, the normal playback speed is a 1x playback speed.
[0088] In response to receiving a playback speed adjustment operation to adjust the current playback speed of the target audio while the target audio is in a playback state, the target audio is played at the adjusted target playback speed, and the rotation speed of the two-dimensional optical disc element is adjusted from a first specified speed to a second specified speed. The specific process of adjusting the playback speed of the target audio includes the following scenarios:
[0089] In the first scenario, when the current playback speed of the target audio is slower than the target playback speed, that is, the target audio is played at an accelerated speed, the first specified speed is also slower than the second specified speed. This means that after the playback speed is adjusted, the 2D optical disc element rotates faster than before the adjustment.
[0090] In the second scenario, when the current playback speed of the target audio is greater than the target playback speed, that is, the target audio is played at a slower speed, the first specified speed is also greater than the second specified speed. This means that after the playback speed is adjusted, the rotation speed of the 2D optical disc element will be slower than before the adjustment.
[0091] Please refer to Figure 4 for details, which shows a schematic diagram of the interface changes corresponding to the audio playback interface when playing the target audio according to an embodiment of the present application.
[0092] When the target audio is not yet playing, as shown in the audio playback interface 410 in FIG4 , only the two-dimensional cover image 42 corresponding to the target audio is displayed in the designated area of the audio playback interface 410 , and the two-dimensional cover image 42 displays image information related to the target audio. At this time, the play control 450 in the second operation area is in the first display state. In response to receiving a play operation for the target audio, while playing the target audio, a slide-out animation of the two-dimensional optical disc element 46 corresponding to the target audio is displayed, moving from the right edge of the two-dimensional cover image 42 according to the variable speed curve. The schematic diagram corresponding to the audio playback interface 411 in FIG4 shows a frame of the two-dimensional optical disc element 46 playing the slide-out animation and not reaching the designated position. When the two-dimensional optical disc element 46 moves to the designated position, as shown in the audio playback interface 412 in FIG4 , the center of the two-dimensional optical disc element 46 coincides with the right edge of the two-dimensional cover image 42, the movement of the two-dimensional optical disc element 46 stops, and a rotation animation corresponding to the two-dimensional optical disc element 46 rotating in a clockwise direction at a first designated speed is played.
[0093] To sum up, by switching the target audio to the playback state, the sliding-out animation of the two-dimensional CD element extracted from the two-dimensional cover image is simulated on the audio playback interface, so that during the playback of the target audio, the audio playback interface displays an animation effect with stronger visual effects, enriching the interaction form between user operations and interface displays, and improving the efficiency of human-computer interaction.
[0094] The method provided in the embodiment of the present application provides at least two slide-out animation display methods when displaying the slide-out animation of the two-dimensional optical disc element, namely, uniform slide-out animation and variable speed slide-out animation, further enriching the display form of the three-dimensional optical disc element.
[0095] The following embodiment will describe in detail the interface changes of the audio playback interface when the target audio is switched to the pause state. Please refer to Figure 5, which shows a flowchart of a method for displaying a playback interface provided by an exemplary embodiment of the present application. This method is applied to the terminal in the embodiment shown in Figure 2. The method includes:
[0096] Step 501: Display the audio playback interface.
[0097] Optionally, the current target audio is in a playing state. For the contents corresponding to the various areas displayed in the audio playing interface and the controls in the areas, please refer to the above step 301 and will not be described in detail here.
[0098] Step 502 : In response to the target audio being switched from a play state to a pause state, an animation of a two-dimensional optical disc element corresponding to the target audio sliding in from the two-dimensional cover image along a second specified direction is displayed.
[0099] Optionally, in response to receiving a triggering operation on a play control within the audio playback interface, while stopping playback of the target audio, a sliding-in animation is displayed, in which the two-dimensional optical disc element corresponding to the target audio moves from the edge of the two-dimensional cover image along a second specified direction, wherein the second specified direction and the first specified direction are two different directions opposite to each other. In conjunction with the four scenarios for moving the two-dimensional optical disc element out of the two-dimensional cover image in step 301 above, there should also be four scenarios for moving the two-dimensional optical disc element corresponding to the target audio into the two-dimensional cover image in this step, specifically including the following scenarios:
[0100] The first situation: when the target audio switches to the play state, the two-dimensional CD element corresponding to the target audio moves upward from the upper edge of the two-dimensional cover image; correspondingly, in response to the target audio switching to the pause state, the rotation animation of the two-dimensional CD element corresponding to the target audio stops playing, and the two-dimensional CD element is displayed moving downward from the upper edge of the two-dimensional cover image until the two-dimensional CD element corresponding to the target audio is completely covered by the two-dimensional cover image.
[0101] The second situation: when the target audio switches to the play state, the two-dimensional CD element corresponding to the target audio moves out to the left from the left edge of the two-dimensional cover image; correspondingly, in response to the target audio switching to the pause state, the rotation animation of the two-dimensional CD element corresponding to the target audio stops playing, and the two-dimensional CD element is displayed moving in to the right from the left edge of the two-dimensional cover image until the two-dimensional CD element corresponding to the target audio is completely covered by the two-dimensional cover image.
[0102] The third situation: when the target audio switches to the play state, the two-dimensional optical disc element corresponding to the target audio moves downward from the lower edge of the two-dimensional cover image; correspondingly, in response to the target audio switching to the pause state, the rotation animation of the two-dimensional optical disc element corresponding to the target audio stops playing, and the two-dimensional optical disc element is displayed moving upward from the lower edge of the two-dimensional cover image until the two-dimensional optical disc element corresponding to the target audio is completely covered by the two-dimensional cover image.
[0103] The fourth situation: when the target audio switches to the play state, the two-dimensional optical disc element corresponding to the target audio moves out to the right from the right edge of the two-dimensional cover image; correspondingly, in response to the target audio switching to the pause state, the rotation animation of the two-dimensional optical disc element corresponding to the target audio stops playing, and the two-dimensional optical disc element is displayed moving in to the left from the right edge of the two-dimensional cover image until the two-dimensional optical disc element corresponding to the target audio is completely covered by the two-dimensional cover image.
[0104] Please refer to Figure 6 for details, which shows a schematic diagram of the interface changes corresponding to the audio playback interface when a pause operation is performed on the target audio according to an embodiment of the present application.
[0105] As shown in the audio playback interface 610 in FIG6 , the target audio is currently in the playback state, and the two-dimensional optical disc element 62 corresponding to the target audio rotates in a clockwise direction; as shown in the audio playback interface 611 in FIG6 , in response to receiving a pause playback operation, the target audio is stopped from playing (the display state / form / pattern of the playback control 63 also changes accordingly), and the rotation animation of the two-dimensional optical disc element 62 is stopped, and a sliding-in animation of the two-dimensional optical disc element 62 moving from the right edge of the two-dimensional cover image 61 to the left is displayed. The audio playback interface 612 is an interface diagram of one frame within the sliding-in animation. As shown in the audio playback interface 613 in FIG6 , after the sliding-in animation of the two-dimensional optical disc element 62 is played, the two-dimensional optical disc element 62 is completely contained in the two-dimensional cover image 61. At this time, only the two-dimensional cover image 61 is displayed in the audio playback interface.
[0106] Optionally, the following methods can be used to switch the target audio from the playing state to the paused state:
[0107] The first method involves receiving a trigger action on the 2D optical disc element corresponding to the target audio while the target audio is playing, stopping the rotation animation of the 2D optical disc element and simultaneously stopping the target audio. For example, as shown in FIG6 , clicking the rotating 2D optical disc element 62 automatically switches the display state of the playback controls within the audio playback interface 610, thereby adjusting the playback state of the target audio from play to pause.
[0108] The second method is to receive a trigger operation on the playback control while the target audio is playing, stop the rotation animation of the two-dimensional optical disc element, and stop playing the target audio. For example, as shown in Figure 6, while the target audio is playing, clicking the play control 63 in the audio playback interface 610 automatically stops playing / displays the rotation animation of the two-dimensional optical disc element 62, thereby adjusting the playback state of the target audio from the play state to the pause state.
[0109] The third method: while the target audio is playing, a pause voice command is received; based on the pause voice command, the rotating animation of the two-dimensional optical disc element is stopped while the target audio is stopped (the display status of the play control in the audio play interface 610 is automatically switched).
[0110] The triggering operations involved in the above-mentioned first technical means and the second technical means can be implemented as at least one of a click operation, a double-click operation, a hover-touch operation, etc., and this application does not limit this.
[0111] The above technical means are only illustrative examples, and other means may be used to switch the target audio from the play state to the pause state.
[0112] To sum up, by switching the target audio to the playback state, the sliding-out animation of the two-dimensional CD element extracted from the two-dimensional cover image is simulated on the audio playback interface, so that during the playback of the target audio, the audio playback interface displays an animation effect with stronger visual effects, enriching the interaction form between user operations and interface displays, and improving the efficiency of human-computer interaction.
[0113] The method provided in the embodiment of the present application switches the target audio from the playing state to the pause state, still simulating the action of the optical disc being put into the optical disc case, and displays it in a visual form on the audio playback interface, so that during the process of playing the target audio, the audio playback interface displays an animation effect with stronger visual effects, enriching the interaction form between user operation and interface display, and improving the efficiency of human-computer interaction.
[0114] The following embodiment will describe in detail the process of performing an audio switching operation on the target audio and the changes in the audio playback interface. Please refer to Figure 7, which shows a flow chart of a method for displaying a playback interface provided by an exemplary embodiment of the present application. This method is applied to the terminal in the embodiment shown in Figure 2. The method includes:
[0115] Step 701: During the playback of target audio, an audio switching operation for the target audio is received.
[0116] Optionally, when playing the target audio, a playlist is obtained, which can be at least one of an audio list displayed in an audio playback application, an audio playlist set by the user, an online radio list, and a personalized radio list. Exemplarily, when implementing an audio playlist set by the user, the user creates a playlist locally, and during the audio playback process, the user adds the played audio to the playlist. When the user subsequently uses the application, the user directly selects the target audio from the multiple audios in the playlist for playback; when implementing an online radio list, different types of audio radio programs are set in the audio playback application, and the audio radio program includes at least one audio. After the user selects the online radio list, the target audio is played in the order of the audio radio program; when implementing a personalized radio list, the radio randomly plays the target audio according to the user's listening behavior. The terminal determines the audio that the user is interested in based on the total length of time the user plays the target audio and whether the target audio is collected, and adds the determined audio to the target audio for playback.
[0117] Optionally, the audio switching operation and the corresponding audio playback interface change process include but are not limited to the following methods:
[0118] The first method: While a target audio track is playing, upon receiving a first preset operation on the 2D optical disc element corresponding to the target audio track, playback is switched to the next or previous audio track of the target audio track, based on the order in which the audio tracks in the playlist are played. For example, if a playlist includes audio tracks 1, 2, 3, and 4, and audio track 3 is currently playing, upon receiving a first preset operation on the 2D optical disc element, playback is switched to audio track 4. This first preset operation can be any of a sliding operation, a hover-slide operation, a click operation, and the like.
[0119] Taking the audio playback interface 610 in FIG6 as an example, when the target audio is being played, if the user applies a downward rotation force on the two-dimensional optical disc element 62, that is, a clockwise sliding signal, the next audio track of the target audio is switched to play; if the user applies an upward rotation force on the two-dimensional optical disc element 62, that is, a counterclockwise sliding signal, the previous audio track of the target audio is switched to play;
[0120] Alternatively, with the center of the two-dimensional optical disc element 62 as the axis of symmetry, the two-dimensional optical disc element 62 is divided into an upper part and a lower part, and the upper part and the lower part are in the shape of one quarter of a semicircle of the two-dimensional optical disc element 62. If a click operation is received on the upper part of the two-dimensional optical disc element 62, the previous audio of the target audio is switched to play; if a click operation is received on the lower part of the two-dimensional optical disc element 62, the next audio of the target audio is switched to play.
[0121] The second method: When the target audio is playing, a trigger operation is received on the switch control, and the next or previous audio of the target audio is switched to play according to the playback order of the audio in the playlist.
[0122] Taking the audio playback interface 610 in Figure 6 as an example, if the user triggers the first switch sub-control on the left side of the playback control 63, the previous audio of the target audio is switched to play; if the user triggers the second switch sub-control on the right side of the playback control 63, the next audio of the target audio is switched to play.
[0123] The third method: As the target audio is played until the target audio is finished playing, the next audio of the target audio is automatically switched to play according to the playing order of the audios in the playlist.
[0124] The fourth type: while the target audio is playing, a voice command to switch audio is received; based on the voice command to switch audio, the next audio or previous audio of the target audio is switched to play in sequence according to the playback order of the audios in the playlist.
[0125] The fifth method is to receive a global gesture operation while the target audio is playing. This global gesture operation is used to indicate that it can be executed from any interface of the terminal to switch the audio playback. Similarly, according to the playback order of the audio in the playlist, it switches to the next audio or the previous audio of the target audio for playback.
[0126] Taking the audio playback interface 610 in Figure 6 as an example, draw a closed circular gesture in the audio playback interface 610 to switch to the previous audio of the target audio for playback; draw a closed triangle gesture in the audio playback interface 610 to switch to the next audio of the target audio for playback.
[0127] It should be noted that the above five situations are all illustrative examples. The implementation process of this example does not limit the display method of the playback interface provided in the embodiment of this application. In other words, the purpose of switching the playback audio can also be achieved by other technical means, and this application does not limit this.
[0128] In another exemplary embodiment, when playing a target audio, a first playlist corresponding to the target audio and a second playlist corresponding to the album to which the target audio belongs are obtained; wherein the first playlist can be implemented as any of the above-described contents; the second playlist is used to indicate at least one of a list formed by all audio in a digital album and a list formed by all audio in a film or television work. For example, the first playlist is implemented as a "I like" playlist, which includes Audio 1, Audio 2, and Audio 3; and the second playlist is implemented as a playlist in a digital album, which includes Audio 4, Audio 2, and Audio 5.
[0129] Optionally, when the target audio is in the playing state, a second preset operation acting on the two-dimensional cover image is received; according to the playing order of the second playlist, the next audio or the previous audio of the target audio is switched to play in sequence.
[0130] Optionally, when the target audio is playing, a third preset operation is received on the 2D disc image; the next or previous track of the target audio is played sequentially according to the playback order of the first playlist. In other words, a trigger operation on the 2D cover image can be used to switch audio within the album, while a trigger operation on the 2D disc element can be used to switch audio within the current playlist.
[0131] Taking the audio playback interface 610 in Figure 6 as an example, audio 2 is currently playing, and the first playlist includes audio 1, audio 2 and audio 3; the second playlist of the album to which audio 2 belongs includes audio 4, audio 2 and audio 5.
[0132] Switching between the audio tracks in the album list: triggering a left swipe operation within the square area corresponding to the two-dimensional cover image 61 switches to playing the previous audio track according to the second playlist, i.e., playing audio track 4; triggering a left swipe operation within the square area corresponding to the two-dimensional cover image 61 switches to playing the next audio track according to the second playlist, i.e., playing audio track 5;
[0133] Alternatively, the two-dimensional cover image 61 is divided into an upper portion and a lower portion with the center of the two-dimensional cover image 61 as an axis of symmetry. The upper portion and the lower portion are each a half of a rectangular shape of the two-dimensional cover image 61. If a click operation is received on the upper portion of the two-dimensional cover image 61, the previous audio track of the target audio is switched to be played, that is, audio track 4 is played; if a click operation is received on the lower portion of the two-dimensional cover image 61, the next audio track of the target audio is switched to be played, that is, audio track 5 is played;
[0134] Alternatively, with the center of the two-dimensional cover image 61 as the axis of symmetry, the two-dimensional cover image 61 is divided into a left area and a right area, and the left area and the right area are respectively half of the rectangular shape of the two-dimensional cover image 61. If a click operation is received in the left area of the two-dimensional cover image 61, the previous audio of the target audio is switched to play, that is, audio 4 is played; if a click operation is received in the right area of the two-dimensional cover image 61, the next audio of the target audio is switched to play, that is, audio 5 is played.
[0135] Switching between audio tracks in the current playlist: applying a downward rotation force to the two-dimensional optical disc element 62, i.e., sliding the signal clockwise, switches the playback of the next audio track of the target audio, i.e., plays audio track 3; applying an upward rotation force to the two-dimensional optical disc element 62, i.e., sliding the signal counterclockwise, switches the playback of the previous audio track of the target audio, i.e., plays audio track 1;
[0136] Alternatively, the 2D optical disc element 62 is divided into an upper portion and a lower portion with the center of the 2D optical disc element 62 as the axis of symmetry. The upper portion and the lower portion are formed into a quarter semicircle of the 2D optical disc element 62. If a trigger operation is received in the upper portion of the 2D optical disc element 62, the previous target audio track is switched to playback, i.e., audio 1 is played. If a trigger operation is received in the lower portion of the 2D optical disc element 62, the next target audio track is switched to playback, i.e., audio 3 is played. The trigger operation can be any of a long press operation, a click operation, a hover-touch operation, a hover-long press operation, and a pressure touch operation.
[0137] In other words, the two-dimensional cover image and the two-dimensional optical disc element involved in the embodiment of the present application are both interactive; whereas in the related art, a player that displays a "disc" form in the audio playback interface is not interactive, whether it is a play operation, pause operation or switch operation for the target audio, and the player occupies a large area of the entire audio playback interface, resulting in a low utilization rate of the controls in the player display area. The user needs to trigger the specified control to perform the play operation, pause operation and switch operation, resulting in reduced audio playback efficiency and human-computer interaction efficiency. However, the two-dimensional cover image and the two-dimensional optical disc element in the embodiment of the present application are both interactive, and the trigger operation acting on the two-dimensional cover image and the two-dimensional optical disc element can be defined as at least one of the play operation, pause operation and switch operation for the audio, effectively improving the human-computer interaction efficiency and audio playback efficiency.
[0138] Step 702 : Based on the audio switching operation, a sliding-in animation is displayed in which a two-dimensional optical disc element corresponding to the target audio moves from an edge of the two-dimensional cover image along a third specified direction.
[0139] When the target audio is being played, the candidate audio to be played is determined based on the playlist and the audio switching operation.
[0140] Optionally, during the audio switching process, the two-dimensional CD element corresponding to the target audio is first displayed, and a sliding animation is displayed in which the two-dimensional cover image is entered in a third specified direction; wherein the third specified direction is opposite to the direction in which the target audio moves into the two-dimensional cover image.
[0141] The specific sliding-out process can be found in step 502 and Figure 6 of the specification, which will not be described in detail here. For example, during the playback of the target audio, a rotating animation of the two-dimensional optical disc element corresponding to the target audio rotating at a preset rotation speed is displayed on the audio playback interface; when an audio switching operation is received, the rotating animation of the two-dimensional optical disc element corresponding to the target audio stops being displayed, and a sliding-in animation of the two-dimensional optical disc element corresponding to the target audio moving from the two-dimensional cover image is displayed until the center of the two-dimensional optical disc element corresponding to the target audio coincides with the center of the two-dimensional cover image.
[0142] Step 703: In response to the center of the 2D optical disc element corresponding to the target audio coinciding with the center of the 2D cover image, a slide-out animation is displayed in which the 2D optical disc element corresponding to the candidate audio moves out from the edge of the 2D cover image along a fourth specified direction.
[0143] Optionally, the center of the two-dimensional optical disc element corresponding to the target audio coincides with the center of the two-dimensional cover image, indicating that the two-dimensional optical disc element corresponding to the target audio has been completely included in the two-dimensional cover image.
[0144] At this time, a sliding display animation of the two-dimensional optical disc element corresponding to the candidate audio moving from the edge of the two-dimensional cover image along the fourth specified direction is displayed. Specifically, in response to the center of the two-dimensional optical disc element corresponding to the candidate audio being aligned with the center of the edge of the two-dimensional cover image, the sliding of the two-dimensional optical disc element corresponding to the candidate audio is stopped, and a sliding display animation of the two-dimensional optical disc corresponding to the candidate audio moving from the edge of the two-dimensional cover image according to the preset speed curve in step 302 or a speed curve different from the preset speed curve in step 302 is displayed. The specific process can be seen in step 302 and Figure 2 of the specification.
[0145] To sum up, by switching the target audio to the playback state, the sliding-out animation of the two-dimensional CD element extracted from the two-dimensional cover image is simulated on the audio playback interface, so that during the playback of the target audio, the audio playback interface displays an animation effect with stronger visual effects, enriching the interaction form between user operations and interface displays, and improving the efficiency of human-computer interaction.
[0146] The method of the embodiment of the present application first displays the sliding-in animation of the two-dimensional optical disc elements moving into the two-dimensional cover image when switching the target audio, and then displays the sliding-out animation of other two-dimensional optical disc elements moving out of the two-dimensional cover image, thereby improving the authenticity of the simulated optical disc sliding-in and sliding-out animation and improving the visual display effect of the audio playback interface.
[0147] In conjunction with the embodiments of steps 301 to 302 and 501 to 502, it is also important to note that triggering operations on the two-dimensional cover image and two-dimensional disc elements can not only be used to implement audio switching functions, but also to adjust the playback speed and progress of the target audio. It is worth noting that when implementing the above functions, the target audio is in the playback state. The following description uses the audio playback interface 610 in Figure 6 as an example.
[0148] When adjusting the playback speed of the target audio:
[0149] The first scenario: receiving a trigger operation acting on a two-dimensional cover image; taking the center of the two-dimensional cover image 61 as the axis of symmetry, the two-dimensional cover image 61 is divided into an upper part and a lower part, and the upper part and the lower part are half of a rectangular shape of the two-dimensional cover image 61. If a preset operation is received in the upper part of the two-dimensional cover image 61, the playback speed of the target audio is adjusted, and the adjusted playback speed is less than the playback speed before adjustment, such as: adjusting from 1x speed to 0.5x speed; if a preset operation is received in the lower part of the two-dimensional cover image 61, the playback speed of the target audio is adjusted, and the adjusted playback speed is greater than the playback speed before adjustment, such as: adjusting from 1x speed to 2x speed; taking the two-dimensional cover image 61 as the axis of symmetry, the upper part and the lower part are half of a rectangular shape of the two-dimensional cover image 61. 1 is a symmetry axis, and the two-dimensional cover image 61 is divided into a left area and a right area. The left area and the right area are respectively one-half of the rectangular shape of the two-dimensional cover image 61. If a preset operation is received in the left area of the two-dimensional cover image 61, the playback speed of the target audio is adjusted, and the adjusted playback speed is less than the playback speed before the adjustment, such as: adjusting from 1x speed to 0.5x speed; if a preset operation is received in the right area of the two-dimensional cover image 61, the playback speed of the target audio is adjusted, and the adjusted playback speed is greater than the playback speed before the adjustment, such as: adjusting from 1x speed to 2x speed; the above preset operation can be any one of a long press operation, a click operation, a hover touch operation, and a hover long press operation;
[0150] Alternatively, a pressure touch operation applied to different areas of the two-dimensional cover image 61 is received, and the playback speed of the target audio is dynamically adjusted based on the pressure value corresponding to the pressure touch operation. Specifically:
[0151] When the pressure value corresponding to the pressure touch operation gradually increases, when slow playback is implemented, the playback speed of the target audio gradually slows down, that is, the pressure value and the playback speed have a negative growth relationship; when fast playback is implemented, the playback speed of the target audio gradually speeds up, that is, the pressure value and the playback speed have a positive growth relationship;
[0152] When the pressure value corresponding to the pressure touch operation gradually decreases, the playback speed of the target audio gradually increases when slow playback is implemented; when fast playback is implemented, the playback speed of the target audio gradually slows down. For example, when a gradually increasing pressure touch operation is received, when fast playback is implemented, the speed is dynamically adjusted from 1x to 2x, then to 2.5x, and then to 3x; when slow playback is implemented, the speed is dynamically adjusted from 2x to 1x, then to 0.75x, and then to 0.5x.
[0153] The second scenario: receiving a trigger operation on the two-dimensional optical disc element; applying a downward rotation force, i.e., a clockwise sliding signal, to the two-dimensional optical disc element 62 to adjust the playback speed of the target audio, where the adjusted playback speed is less than the original playback speed, e.g., from 1x speed to 0.5x speed; or adjusting the playback speed of the target audio, where the adjusted playback speed is greater than the original playback speed, e.g., from 1x speed to 2x speed;
[0154] Alternatively, with the center of the two-dimensional optical disc element 62 as the axis of symmetry, the two-dimensional optical disc element 62 is divided into an upper part and a lower part, and the upper part and the lower part are in the shape of one quarter of a semicircle of the two-dimensional optical disc element 62. If a trigger operation is received in the upper part of the two-dimensional optical disc element 62, the playback speed of the target audio is adjusted, and the adjusted playback speed is less than the playback speed before adjustment, such as: adjusting from 1x speed to 0.5x speed; if a click operation is received in the lower part of the two-dimensional optical disc element 62, the playback speed of the target audio is adjusted, and the adjusted playback speed is greater than the playback speed before adjustment, such as: adjusting from 1x speed to 2x speed; the above-mentioned trigger operation can be any one of a long press operation, a click operation, a hover touch operation, a hover long press operation, and a pressure touch operation.
[0155] When adjusting the playback progress of the target audio:
[0156] The first scenario: receiving a trigger operation on a two-dimensional cover image; receiving a trigger operation on the two-dimensional cover image; dividing the two-dimensional cover image 61 into an upper portion and a lower portion with the center of the two-dimensional cover image 61 as the axis of symmetry, wherein the upper portion and the lower portion are rectangular halves of the two-dimensional cover image 61; if a preset operation is received in the upper portion of the two-dimensional cover image 61, adjusting the playback progress of the target audio, and jumping forward to a time period corresponding to a preset number of lines based on the text data corresponding to the target audio. For example, the text data corresponding to the target audio includes four lines of text data: "Two tigers, two tigers," "Run fast, run fast," "One has no ears," and "One has no tail." The audio data corresponding to the second line of text data "Run fast, run fast" is currently playing. At this time, when the preset operation is received at the moment when the second line of text data plays to 4", the audio data corresponding to the previous line of text data is jumped to play. That is, the playback jumps forward to the sum of the 10" time corresponding to the first line of text data "Two tigers, two tigers" and the 8" time corresponding to the second text data "Two tigers, two tigers" currently playing minus the 4" time corresponding to the second line of text data already played. time period, that is, jump forward (fast rewind) 14", 14"=10"+(8"-4"); if a preset operation is received in the lower part of the two-dimensional cover image 61, adjust the playback progress of the target audio, and use the text data corresponding to the target audio as a reference to jump backward to play the time period corresponding to the preset number of lines. The specific jump time calculation process can refer to the above scheme. The center of the two-dimensional cover image 61 can also be used as the axis of symmetry to divide the two-dimensional cover image 61 into a left area and a right area, and adjust the playback speed in the left area and the right area; no further details are given here; the above preset operation can be any one of a long press operation, a click operation, a hover touch operation, a hover long press operation, and a pressure touch operation.
[0157] The second scenario: receiving a trigger operation on a two-dimensional optical disc element; with the center of the two-dimensional optical disc element 62 as the axis of symmetry, the two-dimensional optical disc element 62 is divided into an upper part and a lower part, the upper part and the lower part being a quarter of a semicircle of the two-dimensional optical disc element 62. If a preset operation is received on the upper part of the two-dimensional cover image 61, the playback progress of the target audio is adjusted, and the playback is jumped forward by a preset number of lines based on the text data corresponding to the target audio; if a preset operation is received on the lower part of the two-dimensional cover image 61, the playback progress of the target audio is adjusted, and the playback is jumped backward by a preset number of lines based on the text data corresponding to the target audio. The preset operation can be any one of a long press operation, a click operation, a hover touch operation, a hover long press operation, and a pressure touch operation.
[0158] When adjusting the playback speed and progress of the target audio at the same time:
[0159] Using a trigger operation on a two-dimensional cover image to adjust the playback speed of the target audio, using a trigger operation on a two-dimensional optical disc element to adjust the playback progress of the target audio; or
[0160] By triggering the 2D cover image, the playback progress of the target audio can be adjusted. By triggering the 2D disc element, the playback speed of the target audio can be adjusted. The specific implementation process can be found in the above description and will not be repeated here.
[0161] To sum up, by switching the target audio to the playback state, the sliding-out animation of the two-dimensional CD element extracted from the two-dimensional cover image is simulated on the audio playback interface, so that during the playback of the target audio, the audio playback interface displays an animation effect with stronger visual effects, enriching the interaction form between user operations and interface displays, and improving the efficiency of human-computer interaction.
[0162] The method provided in the embodiment of the present application implements the two-dimensional cover image and the two-dimensional optical disc element as interactive elements, and utilizes the relevant operations acting on the two-dimensional cover image and the two-dimensional optical disc element to implement the adjustment operation of the target audio, thereby improving the efficiency of the use of the control to a certain extent, enriching the use scenarios of the control, and improving the efficiency of human-computer interaction.
[0163] In another exemplary embodiment, after obtaining image information corresponding to the target audio, the display effect of the two-dimensional optical disc element corresponding to the target audio is determined based on the image information, and the display effect includes at least one of displaying an image, displaying a color, displaying a texture, and displaying text.
[0164] Optionally, the display color of the 2D disc element is determined primarily by applying a color selection technique to the image information displayed in the 2D cover image. In other words, the final display effect of the 2D disc element will change based on changes in the image information associated with the target audio. The specific color selection process includes the following steps:
[0165] Acquire color data matching image information corresponding to the target audio, where the image information is used to be displayed in a two-dimensional cover image;
[0166] Determining a color sample corresponding to a two-dimensional optical disc element based on the color data;
[0167] Matching the color data corresponding to the image information with a preset color library to determine the color value data corresponding to the two-dimensional optical disc element;
[0168] The color data and color value data are superimposed and processed to finally determine the optical disc display color corresponding to the two-dimensional optical disc element.
[0169] Optionally, after determining the disc display color of the two-dimensional disc element, the disc display texture, disc display text, disc display motion effect, etc. of the two-dimensional disc element may also be set.
[0170] In some embodiments, the style of the two-dimensional optical disc element can be implemented as a textured optical disc or a smooth optical disc, which is not limited in this application.
[0171] Specifically, when implemented as a textured optical disc, please refer to the structural diagram of the two-dimensional optical disc element shown in Figure 8. The two-dimensional optical disc element 81 includes a central area 810 of the optical disc, and an annular area of the optical disc with a ring diameter of p connected to the central area 810 of the optical disc, wherein the central area of the optical disc is implemented as a smooth surface, and the central area of the optical disc displays an image that is the same as the image information displayed in the two-dimensional cover image 80; and the annular area of the optical disc is implemented as a textured surface, and any one of image information, texture information, and text information can be displayed in the textured surface. In an embodiment of the present application, the annular area of the optical disc displays a specified color picture related to the image information displayed in the two-dimensional cover image 80.
[0172] The disc center area 810 of the two-dimensional disc element 81 and the two-dimensional cover image 80 display the cover image corresponding to the same target audio; and the disc annular area uses the above-mentioned color selection operation to determine the final display color.
[0173] When implemented as a smooth optical disc, specifically refer to the structural diagram of the two-dimensional optical disc element shown in Figure 9, and determine the image information displayed in the two-dimensional cover image 90 that is associated with the target audio as the cover image of the two-dimensional optical disc element 91 for display, wherein the display transparency of the image information in the two-dimensional cover image 90 can be the same as the display transparency of the image information in the two-dimensional optical disc element 91, or it can be different, and this application does not limit this.
[0174] To sum up, by switching the target audio to the playback state, the sliding-out animation of the two-dimensional CD element extracted from the two-dimensional cover image is simulated on the audio playback interface, so that during the playback of the target audio, the audio playback interface displays an animation effect with stronger visual effects, enriching the interaction form between user operations and interface displays, and improving the efficiency of human-computer interaction.
[0175] The method provided in the embodiment of the present application provides more display possibilities for two-dimensional optical disc elements, thereby increasing and enriching the diversity of elements within the audio playback interface.
[0176] In conjunction with the description of the embodiment of steps 301 to 302 and steps 501 to 502, it should be noted that during the playback of the target audio, in addition to displaying the slide-out animation, slide-in animation, and rotation animation involved in steps 301 to 302 and steps 501 to 502, the audio playback interface will also display the spectrum animation, playback background animation, text dissipation animation, etc. corresponding to the target audio. The following will explain the implementation process of the spectrum animation, playback background animation, and text dissipation animation, as well as the changes in the audio playback interface:
[0177] Spectrum animation: In some optional embodiments, during the playback of the target audio, a spectrum animation corresponding to the target audio is displayed.
[0178] Schematically, during audio playback, the spectrum animation will change with the music rhythm corresponding to the target audio. When the pitch and / or rhythm of the target audio are high and / or fast, the visual amplitude of the spectrum animation will increase; when the pitch and / or rhythm of the target audio are low and / or slow, the visual amplitude of the spectrum animation will decrease.
[0179] Optionally, the method for obtaining the spectrum animation includes the following steps:
[0180] A short-time Fourier transform is performed on the pulse-code modulation (PCM) data corresponding to the target audio to calculate the amplitude value of the target audio. The calculated amplitude value is then processed to conform to human auditory transformations, such as the A-weighted filtering algorithm and Mel scaling. Finally, the processed amplitude value is smoothed within and between frames, and the processed data is visualized as a spectrum animation.
[0181] In some embodiments, the presentation form of the spectrum animation includes a flat spectrum animation.
[0182] Optionally, the display location of the two-dimensional spectrum animation includes, but is not limited to: displaying in the middle of the two-dimensional cover image, on any side of the two-dimensional cover image (the sides include the top, bottom, left, and right sides of the two-dimensional cover image), on any side of the audio playback interface (the sides include the top, bottom, left, and right sides of the audio playback interface), surrounding the audio playback interface, surrounding the two-dimensional feudal image, etc., which are not limited in this application. As shown in Figure 10, Figure 10 shows a schematic diagram of the display location of the spectrum animation provided by an exemplary embodiment. The spectrum animation 1000 is displayed on the lower edge of the two-dimensional cover image.
[0183] Playing background animation: In some optional embodiments, a playing background is also displayed in the audio playing interface; in response to the target audio switching to the playing state, the amplification parameter of the target audio for the current playing frame is obtained, and the amplification parameter is used to indicate the maximum frequency of the sound wave of the target audio between frames; in response to the amplification parameter of the current playing frame of the target audio being greater than a preset threshold, a zoom animation of the playing background is displayed in the audio playing interface.
[0184] Optionally, the method for obtaining the amplification parameters further includes the following steps:
[0185] The PCM data of the currently played audio frame of the target audio is obtained, the root mean square value of the loudness of the currently played audio frame is calculated based on the PCM data, and the root mean square value is normalized to obtain the amplification parameter.
[0186] Optionally, during the playback of the target audio, if the amplification parameter corresponding to the first audio frame is greater than the preset data, the zoom animation of the playback background will start to play. Since the playback time of the zoom animation is usually greater than the time corresponding to one audio frame; during the playback of the zoom animation, the size relationship between the amplification parameter corresponding to the second audio frame and the amplification parameter corresponding to the first audio frame will continue to be judged. If the amplification parameter corresponding to the second audio frame is greater than the amplification parameter corresponding to the first audio frame, the currently playing zoom animation will be interrupted and the new zoom animation will be restarted; if the amplification parameter corresponding to the second audio frame is less than or equal to the amplification parameter corresponding to the first audio frame, the currently playing zoom animation will continue to play.
[0187] Alternatively, after the currently playing zoom animation is finished, it is determined whether the background zoom animation needs to be played, and the magnitude relationship between the amplification parameter corresponding to the first audio frame after the zoom animation is finished and the preset threshold is compared.
[0188] Optionally, a playback background is also displayed in the audio playback interface, and a method for obtaining the background image includes: obtaining image information that is associated with the target audio, and the image information includes but is not limited to the audio cover image corresponding to the target audio, the album cover image corresponding to the album to which the target audio belongs, the plot image or theater image corresponding to the film and television work to which the target audio belongs, and at least one of the custom cover images uploaded and set by the user.
[0189] In some embodiments, Gaussian blur processing is performed on the image information to obtain processed image information, and the processed image information is determined as the playback background of the audio playback interface.
[0190] In some embodiments, the image information is sampled using the above-mentioned color picking operation, and p colors are determined based on the color proportions, where p is a positive integer; the p colors are fused to obtain a gradient playback background, and the gradient playback background is determined as the playback background of the audio playback interface.
[0191] Optionally, the zoom animation of the playback background refers to an animation of restoring a portion of the cover image that has been Gaussian blurred from an enlarged display to a normal display; or an animation of restoring a portion of the cover image that has been Gaussian blurred from a reduced display to a normal display. As shown in FIG11 , the cover image of the target audio is Gaussian blurred, and the Gaussian blurred cover image is displayed as the playback background. Based on the inter-frame magnification parameter, the zoom animation corresponding to the playback background is played, and the display process of the playback background is switched from the audio playback interface 1100 to the audio playback interface 1101. It is not difficult to see that the zoom ratio of the playback background 1102 in the audio playback interface 1100 is greater than the zoom ratio of the playback background 1103 in the audio playback interface 1100.
[0192] Text dissipation animation: In some optional embodiments, the audio playback interface also includes a text display area, which is used to display the text content data corresponding to the target audio. The text content data can be implemented as at least one of lyrics and lines. The method for displaying text content data also includes the following steps:
[0193] Step 1. In response to the target audio switching to the playback state, m lines of text content data corresponding to the text content data are displayed in the text display area according to the playback progress of the target audio, where m is a positive integer; wherein the text display format corresponding to the m lines of text content data changes dynamically as the playback progress of the target audio progresses, and the text display format includes at least one of text color, text size, text texture, and text transparency.
[0194] Exemplarily, when the audio work begins playing, the text content data corresponding to m lines of audio is displayed in real time in the text display area. When m is 2, the first text and the second text are displayed in real time in the text display area, the first text is used to indicate the text content data currently being played, and the second text is used to indicate the text content data to be played. Optionally, the first text is displayed at a target position in the text display area with a first transparency, and the second text is displayed below the first text with a second transparency. The target position is a position that is less than a preset distance from the first edge of the text display area, the first transparency is less than the second transparency, and the end display time of the second text is chronologically after the end display time of the first text. The display status of the first and second texts can be seen in the text display area 1200 in Figure 12; when m is 3, the third text, the fourth text, and the fifth text are displayed in real time in the text display area, wherein the fourth text is used to indicate the text content data currently being played, the third text is used to indicate the most recent line of text content data that has been played, and the fifth text is used to indicate the text content data to be played.
[0195] Step 2: In response to the completion of playing the audio frame corresponding to the i-th line of text content data, displaying a fading animation corresponding to the i-th line of text content data.
[0196] A dissipation animation is an animation in which the text corresponding to the completed text content data is dispersed into multiple particles and disappears in a preset direction. In principle, a dissipation animation consists of two parts: first, reducing the first transparency corresponding to the first text to a specified transparency; second, displaying the particle dispersion animation.
[0197] Optionally, the above-mentioned specified transparency is the result of multiplying the transparency corresponding to the first text and the transparency corresponding to the particle dispersion animation. For example, taking m as 2 as an example, the transparency corresponding to the first text is 70%, and the transparency corresponding to the particle dispersion animation is 20%, then the specified transparency is 1.4%.
[0198] Schematically, at the position of the first text, a particle sequence frame matching the first text is played according to the texture length corresponding to the first text; at the same time, the transparency corresponding to the first text is reduced to a specified transparency, thereby realizing the dissipation animation of the first text.
[0199] Please refer to Figure 12, which shows a schematic diagram of the process of a dissipation animation of a first text. As shown in Figure 12, in interface 1200, when the song plays lyrics 121, the text display format of the characters in the text content data of lyrics 121 is automatically adjusted according to the playback progress; when lyrics 121 are finished playing, as shown in interface 1201 and interface 1202, as the playback progresses, lyrics 122 and lyrics 123 are covered with particle sequence frames with different transparencies to simulate the effect of the played text dissolving into particles; in interface 1203, the lyrics have been completely dispersed into particles, and the dissipation animation display ends.
[0200] Optionally, when the fading animation of the qth line of text content data is displayed, the q+1th line of text content data is moved to the display position of the qth line of text content data, and the transparency corresponding to the q+1th line of text content data will be adjusted to the corresponding transparency when the qth line of text content data is being played, and the text size corresponding to the q+1th line of text content data will be increased to the text size corresponding to when the qth line of text content data is being played.
[0201] To sum up, by switching the target audio to the playback state, the sliding-out animation of the two-dimensional CD element extracted from the two-dimensional cover image is simulated on the audio playback interface, so that during the playback of the target audio, the audio playback interface displays an animation effect with stronger visual effects, enriching the interaction form between user operations and interface displays, and improving the efficiency of human-computer interaction.
[0202] The method provided in the embodiment of the present application displays the spectrum animation corresponding to the target audio when the target audio is switched to the playback state, and visualizes the audio data corresponding to the target audio, thereby improving the human-computer interaction efficiency and the playback efficiency of the target audio.
[0203] The method provided in the embodiment of the present application, when switching the target audio to the playback state, when the amplification parameter of the current playback frame of the target audio is greater than a preset threshold, adopts a variety of processing operations on the playback background of the target audio, and displays a corresponding zoom animation on the audio playback interface, so that the rhythm strength of the target audio is intuitively expressed by the zoom animation, thereby enhancing the expressiveness of the audio playback interface for the target audio.
[0204] The method provided in the embodiment of the present application determines the optical disc color corresponding to the two-dimensional optical disc element according to the color data corresponding to the image information of the target audio, thereby improving the adaptability of the target audio and the two-dimensional optical disc element during the display process.
[0205] The method provided in the embodiment of the present application displays a dissipation animation of the text content data on the audio playback interface when the target audio is switched to the playback state, thereby enriching the display form of the text content data on the audio playback interface and improving the efficiency of human-computer interaction.
[0206] In some optional embodiments, the 2D cover image and 2D disc elements displayed in the audio playback interface can be presented in 3D form. Specifically, the 2D cover image and 2D disc elements are transformed into a 3D stereoscopic form, simulating the stereoscopic effect of a disc being opened and displayed from its case. The specific implementation principle can be summarized as follows: a virtual 3D space is set at a designated location in the audio playback interface. The vertex coordinates of the 3D cover shell, 3D disc elements, and other materials are transformed into the virtual 3D space using a mapping matrix, simulating the visual effect of objects appearing larger when closer and smaller when farther away in real life.
[0207] In an exemplary embodiment, the 3D optical disc element corresponding to the target audio is placed in the optical disc slot of the 3D cover shell, and is revealed when the optical disc shell corresponding to the 3D cover shell is opened. The specific display method includes the following steps:
[0208] Step 1: Display the audio playback interface.
[0209] The audio playback interface is the display and operation interface for playing the target audio work. Optionally, the designated location of the audio playback interface is implemented as a three-dimensional display space, which is used to display the three-dimensional cover shell and the three-dimensional disc element corresponding to the target audio work. When the target audio work is not playing, the three-dimensional disc element is contained in the three-dimensional cover shell and is invisible.
[0210] 13 , in the interface 1300 , a three-dimensional display space 1301 is displayed. When the target audio starts playing, the three-dimensional display space 1301 only displays a three-dimensional cover shell 1302 , and the three-dimensional optical disc elements are contained in the invisible space inside the three-dimensional cover shell 1302 .
[0211] Step 2: In response to the target audio switching to the play state, the shell opening animation corresponding to the three-dimensional cover shell is displayed; wherein, the three-dimensional disc element is placed in the disc slot in the three-dimensional cover shell, and as the album shell corresponding to the three-dimensional cover shell opens, the three-dimensional disc element appears from the three-dimensional cover shell.
[0212] Schematically, please refer to Figure 13. When the target audio starts to play, the opening animation of the upper shell 1313 and the lower shell 1314 of the three-dimensional cover shell 1312 is displayed in the three-dimensional display space 1311 of the interface 1310, wherein the opening animation can be implemented as an animation in which the upper shell 1313 is fixed and the lower shell 1314 is unfolded downward; it can also be implemented as an animation in which the upper shell 1313 is unfolded upward and the lower shell 1314 is fixed; it can also be implemented as an animation in which the upper shell 1313 is unfolded upward and the lower shell 1314 is unfolded downward, and the embodiments of the present application are not limited to this.
[0213] Schematically, after the opening animation display of the upper shell 1313 and the lower shell 1314 is completed, that is, after the album shell corresponding to the three-dimensional cover shell 1312 is opened, the three-dimensional optical disc element 1315 contained therein is placed in the optical disc slot in the three-dimensional cover shell 1312, and appears as the album shell corresponding to the three-dimensional cover shell 1312 is opened.
[0214] Optionally, in response to the target audio being switched to the play state, the target audio work is played; and after the album shell opening animation corresponding to the three-dimensional cover shell is displayed, a rotating animation of the three-dimensional optical disc element rotating around the center of the optical disc slot in the three-dimensional album element is displayed.
[0215] Step 3: In response to the target audio work being switched to a playback pause state, a closing animation of the three-dimensional cover shell is displayed, and the three-dimensional optical disc element is retracted into the three-dimensional cover shell as the three-dimensional cover shell closes.
[0216] Optionally, the 3D cover shell can be implemented as an openable 3D box structure, and the closing animation of the 3D shell element is to close the containing space of the box. For example, if the 3D box structure includes an upper box and a lower box, the opening animation is implemented as a closing animation in which the lower box is fixed and the upper box moves toward the lower box; alternatively, the opening animation is implemented as a closing animation in which the upper box is fixed and the lower box moves toward the upper box; alternatively, the opening animation is implemented as a closing animation in which the upper box moves toward the lower box and the lower box moves toward the upper box.
[0217] Optionally, the situation in which the three-dimensional optical disc element is retracted into the three-dimensional cover shell as the three-dimensional cover shell is folded includes at least one of the following situations:
[0218] Case 1: The three-dimensional optical disc element switches from a fully visible state to a fully invisible state as the three-dimensional cover shell is closed.
[0219] Case 2: The three-dimensional optical disc element switches from a fully visible state to a partially visible state as the three-dimensional cover shell is closed.
[0220] Case 3: The 3D optical disc element switches from a partially visible state to a completely invisible state as the 3D cover shell is closed.
[0221] Case 4: As the three-dimensional cover shell is closed, the three-dimensional optical disc element switches from the third part visible state to the fourth part visible state, wherein the proportion of the third part to the three-dimensional audio carrier element is greater than that of the fourth part.
[0222] In some optional embodiments, in response to the target audio being switched to a playback pause state, the target audio is stopped from being played on the audio playback interface; and at the same time, the rotation animation of the three-dimensional optical disc element is stopped from being displayed.
[0223] Step 4: In response to the target audio being switched to another audio, a cut-out animation of the 3D cover shell and 3D optical disc element in the audio playback interface is displayed. Optionally, the cut-out animation can be implemented as an animation that moves the 3D cover shell and 3D optical disc element from their current display position to outside a designated edge of the audio playback interface; the cut-out animation can also be implemented as an animation that causes the 3D cover shell and 3D optical disc element to disappear directly from the audio playback interface.
[0224] Optionally, the case where the cut-out animation is displayed includes at least one of the following cases:
[0225] 1. Directly display the cut-out animation of 3D cover shell and 3D disc elements in the audio playback interface.
[0226] 2. Display the closing animation of the 3D cover shell in the current audio playback interface. The 3D disc element is retracted into the 3D cover shell as the 3D cover shell closes. Then, the cutting animation of the 3D cover shell and the 3D disc element is displayed.
[0227] In another optional embodiment, when the target audio is played, the spectrum animation corresponding to the target audio is obtained and displayed in a three-dimensional surround format on the periphery of the three-dimensional space formed by the three-dimensional cover shell and the three-dimensional optical disc element. As shown in Figure 13, the spectrum animation 1317 is displayed in a 3D surround format on the three-dimensional space formed by the three-dimensional cover shell and the three-dimensional optical disc element.
[0228] The method provided in the embodiment of the present application simulates the opening animation of a three-dimensional cover shell in a three-dimensional manner, and the three-dimensional optical disc elements appear from the three-dimensional cover shell as the three-dimensional cover shell opens, so that in the process of switching the playback status of the target audio player, the corresponding animation effect is displayed on the audio playback interface, enriching the interaction form between user operation and interface display, and improving the efficiency of human-computer interaction.
[0229] The above describes the effects of simulating the movement of a disc into and out of a disc case using two-dimensional and three-dimensional animations. In actual use, the user can modify the player's display dimensions within the audio playback interface, such as switching from two-dimensional to three-dimensional display, or vice versa. This application does not limit this.
[0230] Please refer to FIG. 14 , which shows a structural block diagram of a display device for a playback interface provided by an exemplary embodiment of the present application. The device includes a display module 1400 .
[0231] The display module 1400 is used to display an audio playback interface, wherein the audio playback interface includes a two-dimensional cover image corresponding to the target audio;
[0232] The display module 1400 is further configured to display an animation of a two-dimensional optical disc element corresponding to the target audio sliding out from an edge of the two-dimensional cover image along a first specified direction in response to the target audio being switched to a play state.
[0233] Optionally, the display module 1400 is further configured to display a sliding-out animation of a two-dimensional optical disc element corresponding to the target audio moving from an edge of the two-dimensional cover image in response to the target audio being switched to the playing state;
[0234] The display module 1400 is further configured to stop the sliding of the two-dimensional optical disc element in response to the two-dimensional optical disc element sliding out to a specified position, and to display a rotating animation of the two-dimensional optical disc element, wherein the rotating animation is configured to indicate that the target audio is in a playing state.
[0235] Optionally, the display module 1400 is further configured to stop the sliding of the two-dimensional optical disc element and display a rotation animation of the two-dimensional optical disc element in response to the center of the two-dimensional optical disc element coinciding with the edge of the two-dimensional cover image.
[0236] Optionally, the display module 1400 is further used to display a sliding animation of the two-dimensional optical disc element moving from the edge of the two-dimensional cover image according to a preset speed curve, and the preset speed curve includes any one of a uniform speed curve and a variable speed curve.
[0237] Optionally, the display module 1400 is further configured to display an animation of a two-dimensional optical disc element corresponding to the target audio sliding in from the two-dimensional cover image along a second specified direction in response to the target audio being switched from the play state to the pause state.
[0238] Optionally, the display module 1400 is also used to stop playing the rotation animation of the two-dimensional optical disc element corresponding to the target audio in response to the target audio switching to the pause state, and display the sliding-in animation of the two-dimensional optical disc element corresponding to the target audio moving from the edge of the two-dimensional cover image.
[0239] Optionally, as shown in FIG15 , the device further includes: a receiving module 1410 and a playing module 1420 .
[0240] The receiving module 1410 is configured to receive a sliding operation on a two-dimensional optical disc element corresponding to the target audio during playback of the target audio;
[0241] The playback module 1420 is used to display a sliding-in animation of the two-dimensional optical disc element corresponding to the target audio moving from the edge of the two-dimensional cover image, and a sliding-out animation of the two-dimensional optical disc element corresponding to the candidate audio moving from the edge of the two-dimensional cover image based on the sliding operation. The candidate audio is used to indicate the audio whose playback order is after the target audio.
[0242] Optionally, as shown in FIG15 , the display module 1400 is further configured to display a spectrum animation corresponding to the target audio during playback of the target audio.
[0243] Optionally, as shown in FIG15 , the audio playback interface includes a playback background; the device further includes: an acquisition module 1430 .
[0244] The acquisition module 1430 is configured to acquire, in response to the target audio being switched to the playing state, an amplification parameter of the target audio for the current playing frame, the amplification parameter being used to indicate a maximum frequency of the sound wave of the target audio between frames;
[0245] The display module 1400 is further configured to display a zoom animation of the playback background on the audio playback interface in response to a magnification parameter of the current playback frame of the target audio being greater than a preset threshold.
[0246] Optionally, as shown in FIG15 , the audio playback interface includes a text display area, and the text display area is used to display text content data corresponding to the target audio;
[0247] The display module 1400 is further configured to, in response to the target audio being switched to the playback state, display m lines of text content data corresponding to the text content data in the text display area according to the playback progress of the target audio, where m is a positive integer; wherein a text display format corresponding to the m lines of text content data dynamically changes as the playback progress of the target audio, and the text display format includes at least one of text color, text size, text texture, and text transparency;
[0248] The display module 1400 is further configured to display a fading animation corresponding to the i-th line of text content data in response to the completion of playing of the audio frame corresponding to the i-th line of text content data.
[0249] Optionally, as shown in FIG15 , the acquisition module 1430 is further configured to acquire image information of the target audio, where the image information indicates an image associated with the target audio.
[0250] Based on the image information, a display effect of the two-dimensional optical disc element corresponding to the target audio is determined, where the display effect includes at least one of displaying an image, displaying a color, and displaying a texture.
[0251] To sum up, by switching the target audio to the playback state, the sliding-out animation of the two-dimensional CD element extracted from the two-dimensional cover image is simulated on the audio playback interface, so that during the playback of the target audio, the audio playback interface displays an animation effect with stronger visual effects, enriching the interaction form between user operations and interface displays, and improving the efficiency of human-computer interaction.
[0252] The method provided in the embodiment of the present application displays the spectrum animation corresponding to the target audio when the target audio is switched to the playback state, and visualizes the audio data corresponding to the target audio, thereby improving the human-computer interaction efficiency and the playback efficiency of the target audio.
[0253] The method provided in the embodiment of the present application, when switching the target audio to the playback state, when the amplification parameter of the current playback frame of the target audio is greater than a preset threshold, adopts a variety of processing operations on the playback background of the target audio, and displays a corresponding zoom animation on the audio playback interface, so that the rhythm strength of the target audio is intuitively expressed by the zoom animation, thereby enhancing the expressiveness of the audio playback interface for the target audio.
[0254] The method provided in the embodiment of the present application displays a dissipation animation of the text content data on the audio playback interface when the target audio is switched to the playback state, thereby enriching the display form of the text content data on the audio playback interface and improving the efficiency of human-computer interaction.
[0255] It should be noted that the playback interface display device provided in the above embodiment is merely an example of the division of the aforementioned functional modules. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the playback interface display device provided in the above embodiment and the playback interface display method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0256] Figure 16 shows a block diagram of a terminal structure provided by an exemplary embodiment of the present application. The terminal can be a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The terminal may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names, which are not limited in this application.
[0257] The terminal 20 may also be referred to as user equipment, a portable terminal, a laptop terminal, a desktop terminal, or the like.
[0258] Typically, the terminal 20 includes a processor 1601 and a memory 1602 .
[0259] The processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1601 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0260] Memory 1602 may include one or more computer-readable storage media, which may be non-transitory. Memory 1602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1602 is used to store at least one instruction, which is executed by processor 1601 to implement the heat map display method provided in the method embodiment of the present application.
[0261] In some embodiments, terminal 20 may also optionally include a peripheral device interface 1603 and at least one peripheral device. The processor 1601, memory 1602, and peripheral device interface 1603 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1603 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1604, a touchscreen display 1605, a camera 1606, an audio circuit 1607, and a power supply 1609.
[0262] The peripheral device interface 1603 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1601 and the memory 1602. In some embodiments, the processor 1601, the memory 1602, and the peripheral device interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1601, the memory 1602, and the peripheral device interface 1603 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0263] RF circuit 1604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. RF circuit 1604 communicates with communication networks and other communication devices via electromagnetic signals. RF circuit 1604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. RF circuit 1604 may optionally include an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. RF circuit 1604 may communicate with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, RF circuit 1604 may also include circuitry related to Near Field Communication (NFC), although this application does not limit this.
[0264] Display screen 1605 is used to display a user interface (UI). This UI may include graphics, text, icons, videos, or any combination thereof. When display screen 1605 is a touchscreen display, it is also capable of collecting touch signals on or above the surface of display screen 1605. These touch signals can be input as control signals to processor 1601 for processing. Display screen 1605 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there can be a single display screen 1605, located on the front panel of terminal 20. In other embodiments, there can be at least two display screens 1605, located on different surfaces of terminal 20 or in a foldable design. In still other embodiments, display screen 1605 can be a flexible display screen, located on a curved or foldable surface of terminal 20. Display screen 1605 can also be configured as a non-rectangular, irregular shape, also known as a special-shaped screen. Display screen 1605 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0265] The camera assembly 1606 is used to capture images or videos. Optionally, the camera assembly 1606 includes a front camera and a rear camera. Typically, the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal.
[0266] The audio circuit 1607 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input into the processor 1601 for processing, or input into the radio frequency circuit 1604 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there can be multiple microphones, each disposed at different locations on the terminal 20. The microphone can also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 1601 or the radio frequency circuit 1604 into sound waves. The speaker can be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1607 may also include a headphone jack.
[0267] The power supply 1609 is used to power various components in the terminal 20. The power supply 1609 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1609 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery.
[0268] In some embodiments, the terminal 20 further includes one or more sensors 1610 . The one or more sensors 1610 include, but are not limited to, an acceleration sensor 1611 and a gyroscope sensor 1612 .
[0269] The acceleration sensor 1611 can detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the terminal 20 .
[0270] The gyroscope sensor 1612 can detect the orientation and rotation angle of the terminal 20. The gyroscope sensor 1612 can work with the accelerometer 1611 to collect the user's 3D movements of the terminal 20. Based on the data collected by the gyroscope sensor 1612, the processor 1601 can implement the following functions: motion sensing (such as changing the UI based on the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0271] The pressure sensor 1613 can be provided on the side frame of the terminal 20 and / or below the touch screen display 1605. When the pressure sensor 1613 is provided on the side frame of the terminal 20, it can detect the user's gripping signal of the terminal 20, and the processor 1601 can perform left and right hand recognition or shortcut operations based on the gripping signal collected by the pressure sensor 1613. When the pressure sensor 1613 is provided below the touch screen display 1605, the processor 1601 controls the operable controls on the UI interface based on the user's pressure operation on the touch screen display 1605. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0272] The optical sensor 1614 is used to collect ambient light intensity. In one embodiment, the processor 1601 can control the display brightness of the touch screen display 1605 according to the ambient light intensity collected by the optical sensor 1614.
[0273] The proximity sensor 1616 , also known as a distance sensor, is typically provided on the front panel of the terminal 20 . The proximity sensor 1616 is used to collect the distance between the user and the front of the terminal 20 .
[0274] Those skilled in the art will understand that the structure shown in FIG16 does not constitute a limitation on the terminal 20, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0275] Optionally, the computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid-state drive (SSD), or an optical disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0276] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0277] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A method for displaying a playback interface, characterized in that: The method comprises: Displaying an audio playback interface, wherein the audio playback interface includes a two-dimensional cover image corresponding to the target audio; In response to the target audio being switched to a play state, an animation is displayed in which a two-dimensional optical disc element corresponding to the target audio slides out from an edge of the two-dimensional cover image along a first specified direction.
2. The method according to claim 1, characterized in that In response to the target audio being switched to a playing state, displaying an animation of a two-dimensional optical disc element corresponding to the target audio sliding out from an edge of the two-dimensional cover image along a first specified direction, comprises: In response to the target audio being switched to the playing state, displaying a sliding-out animation of a two-dimensional optical disc element corresponding to the target audio moving out from an edge of the two-dimensional cover image; In response to the two-dimensional optical disc element sliding out to a designated position, the sliding out of the two-dimensional optical disc element is stopped, and a rotation animation of the two-dimensional optical disc element is displayed, wherein the rotation animation is used to indicate that the target audio is in a playing state.
3. The method according to claim 2, characterized in that In response to the two-dimensional optical disc element sliding out to the designated position, stopping the sliding out of the two-dimensional optical disc element and displaying the rotation animation of the two-dimensional optical disc element include: In response to the center of the two-dimensional optical disc element coinciding with the edge of the two-dimensional cover image, the sliding out of the two-dimensional optical disc element corresponding to the target audio is stopped, and a rotation animation of the two-dimensional optical disc element corresponding to the target audio is displayed.
4. The method according to claim 2, characterized in that The sliding-out animation of the two-dimensional optical disc element corresponding to the target audio moving out of the edge of the two-dimensional cover image includes: The slide-out animation of the two-dimensional optical disc element moving from the edge of the two-dimensional cover image according to a preset speed curve is displayed, and the preset speed curve includes any one of a uniform speed curve and a variable speed curve.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to the target audio being switched from the play state to the pause state, an animation of a two-dimensional optical disc element corresponding to the target audio sliding in from the two-dimensional cover image along a second specified direction is displayed.
6. The method according to claim 5, characterized in that In response to the target audio being switched from the playing state to the paused state, displaying an animation of a two-dimensional optical disc element corresponding to the target audio sliding in from the two-dimensional cover image along a second specified direction, comprises: In response to the target audio being switched to the pause state, the rotation animation of the two-dimensional optical disc element corresponding to the target audio is stopped, and a sliding animation of the two-dimensional optical disc element corresponding to the target audio moving from the edge of the two-dimensional cover image is displayed.
7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: During playback of the target audio, receiving a sliding operation on a two-dimensional optical disc element corresponding to the target audio; Based on the sliding operation, a sliding-in animation of the two-dimensional CD element corresponding to the target audio moving in from the edge of the two-dimensional cover image and a sliding-out animation of the two-dimensional CD element corresponding to the candidate audio moving out from the edge of the two-dimensional cover image are displayed, and the candidate audio is used to indicate the audio whose playback order is after the target audio.
8. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: During the playback of the target audio, a spectrum animation corresponding to the target audio is displayed.
9. The method according to any one of claims 1 to 4, characterized in that: The audio playback interface includes a playback background, and the method further includes: In response to the target audio being switched to the playing state, obtaining an amplification parameter of the target audio for the current playing frame, the amplification parameter being used to indicate a maximum frequency of the sound wave of the target audio between frames; In response to a magnification parameter of the current playback frame of the target audio being greater than a preset threshold, a zoom animation of the playback background is displayed on the audio playback interface.
10. The method according to any one of claims 1 to 4, characterized in that: The audio playback interface includes a text display area, and the text display area is used to display text content data corresponding to the target audio; the method further includes: In response to the target audio being switched to the playing state, displaying m lines of text content data corresponding to the text content data in the text display area according to the playing progress of the target audio, where m is a positive integer; wherein a text display format corresponding to the m lines of text content data dynamically changes as the playing progress of the target audio progresses, and the text display format includes at least one of text color, text size, text texture, and text transparency; In response to the completion of playing of the audio frame corresponding to the i-th line of text content data, a dissipation animation corresponding to the i-th line of text content data is displayed.
11. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Acquire image information of the target audio, where the image information is used to indicate an image associated with the target audio; Based on the image information, a display effect of the two-dimensional optical disc element corresponding to the target audio is determined, where the display effect includes at least one of displaying an image, displaying a color, and displaying a texture.
12. A display device for a playback interface, characterized in that: The device further comprises: A display module, configured to display an audio playback interface, wherein the audio playback interface includes a two-dimensional cover image corresponding to the target audio; The display module is configured to display an animation of a two-dimensional optical disc element corresponding to the target audio sliding out from an edge of the two-dimensional cover image along a first specified direction in response to the target audio being switched to a play state.
13. A computer device, characterized in that: The computer device includes a processor and a memory, wherein at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement the display method of the playback interface according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that The storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for displaying a playback interface according to any one of claims 1 to 11.
