Audio playback method, device and electronic equipment
By creating target playlists containing audio from different applications and adopting a loop strategy, the problem of users needing to manually switch applications during playback is solved, automatic loop playback is achieved, the operation steps are simplified and the user experience is improved.
Patent Information
- Application Number
- CN202010762896.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-31
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-07-31
AI Technical Summary
When the user plays audio, if there is no favorite audio in the target application, he needs to exit and manually switch to other applications, resulting in cumbersome operation steps.
Create a target playlist that contains audio information from different applications, and use a loop strategy to switch to another application to continue playing after one application has finished playing, simplifying operations.
There is no need for users to manually switch applications, and audio in different applications is automatically looped, simplifying the operation steps and improving user experience.
Smart Images

Figure CN111966860B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an audio playback method, device and electronic equipment. Background Art
[0002] With the continuous development of Internet technology, more and more applications support audio playback function.
[0003] Currently, due to copyright restrictions, users' favorite audio may exist in different applications. For example, multiple songs exist in different music applications; or some songs exist in music applications, and some live songs exist in video applications.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems: when an application is playing an audio or video, if the application does not have another audio that the user likes, the user needs to exit the application, open other applications, and find the audio he wants to play, which makes the operation steps for playing audio in different applications more cumbersome. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide an audio playback method, device and electronic device, which can solve the problem that the operation steps for playing audio in different applications are relatively complicated.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides an audio playback method. The method may include: creating a target playlist, the target playlist including at least first audio information and second audio information; in the process of playing the target playlist with a first loop strategy, after playing the first audio corresponding to the first audio information through the first application, playing the second audio corresponding to the second audio information through the second application.
[0008] In a second aspect, an embodiment of the present application provides an audio playback device, which may include a processing module. The processing module is used to create a target playlist, which includes at least first audio information and second audio information; and in the process of playing the target playlist with a first loop strategy, after playing the first audio corresponding to the first audio information through the first application, the second audio corresponding to the second audio information is played through the second application.
[0009] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method provided in the first aspect.
[0010] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method provided in the first aspect are implemented.
[0011] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method provided in the first aspect.
[0012] In an embodiment of the present application, a target playlist can be created, which includes at least the first audio information and the second audio information; and in the process of playing the target playlist with the first loop strategy, after the first audio corresponding to the first audio information is played through the first application, the second audio corresponding to the second audio information is played through the second application. Through this scheme, since the target playlist can include audio information corresponding to audio in different applications, therefore, in the process of playing the target playlist with the first loop strategy, the first audio corresponding to the first audio information can be played through the first application first, and then the second audio corresponding to the second audio information can be played through the second application, that is, the audio in different applications can be played in a loop without the user manually switching applications, thereby simplifying the operation steps of playing audio in different applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 This is one of the schematic diagrams of an audio playback method provided in an embodiment of the present application;
[0014] Figure 2 This is a second schematic diagram of an audio playback method provided in an embodiment of the present application;
[0015] Figure 3 is a schematic diagram of operating the first audio and the first control provided in an embodiment of the present application;
[0016] Figure 4 This is a third schematic diagram of an audio playback method provided in an embodiment of the present application;
[0017] Figure 5 is an operation diagram of sharing a first control provided in an embodiment of the present application;
[0018] Figure 6This is one of the structural schematic diagrams of the video playback device provided in the embodiment of the present application;
[0019] Figure 7 The second structural diagram of the video playback device provided in the embodiment of the present application;
[0020] Figure 8 One of the hardware schematic diagrams of the electronic device provided in the embodiment of the present application;
[0021] Fig. 9 The second hardware schematic diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0024] The embodiments of the present application provide an audio playback method, device, and electronic device, which can create a target playlist, which includes at least first audio information and second audio information; and in the process of playing the target playlist with a first loop strategy, after the first audio corresponding to the first audio information is played through the first application, the second audio corresponding to the second audio information is played through the second application. Through this scheme, since the target playlist may include audio information corresponding to audio in different applications, therefore, in the process of playing the target playlist with the first loop strategy, the first audio corresponding to the first audio information can be played through the first application first, and then the second audio corresponding to the second audio information can be played through the second application, that is, there is no need for the user to manually switch applications, and the audio in different applications can be played in a loop, thereby simplifying the operation steps of playing audio in different applications.
[0025] The audio playback method, device and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0026] like Figure 1 As shown, the embodiment of the present application provides an audio playback method. The method may include the following S101 to S102. The method is exemplarily described by taking the execution subject as an audio playback device as an example.
[0027] S101: The audio playback device creates a target playlist.
[0028] In the embodiment of the present application, the target playlist includes at least the first audio information and the second audio information. The first audio information can be used to indicate the first audio in the first application, and the second audio information can be used to indicate the second audio in the second application. Of course, the target playlist can also include other audio information, for example, the target playlist can also include the third audio information, and the third audio information is used to indicate the third audio in the third application. The first application, the second application, and the third application are different applications in the audio playback device.
[0029] Optionally, the audio in the embodiment of the present application may refer to a traditional audio file, such as a song, a skit, a storytelling, or a talk show, etc.; or, it may refer to a video file including audio, such as a short video, an online video, etc. It can be determined according to actual use requirements and is not limited in the embodiment of the present invention.
[0030] Optionally, the above audio information may include at least one of the following: playback source (i.e., an application that provides audio, such as an audio player), audio name, audio performer (such as a singer), audio creator (such as a singer), etc.
[0031] Optionally, the above-mentioned "creating a target playlist" includes at least two methods: one method is to create a target playlist according to the audio information of the audio in the audio playback device or the audio information shared by other devices. Another method is to receive the playlist shared by other devices and create a playlist in the audio playback device that is the same as the playlist, i.e., the target playlist.
[0032] It should be noted that no matter which method is used to create the target playlist, it can include at least two audio information. Since the at least two audio information are used to indicate audio in different applications, the audio playback device can automatically loop and play the audio indicated by the audio information in the target playlist across applications according to the first loop strategy.
[0033] Optionally, the target playlist and the first control may be associated with each other, and the target playlist may be used to store the playback information of at least one audio associated with the first control. When the first control is displayed, if the audio playback device determines that the first control is associated with the target playlist, the audio indicated by the audio information in the target playlist may be played according to the first loop strategy.
[0034] Specifically, a first possible implementation scenario is that when the audio playback device detects that an application of the target type is running, a first control can be automatically displayed in a floating manner on the interface of the application of the target type, and when the target playlist is associated with the first control, the audio indicated by the audio information in the target playlist is played according to the first loop strategy. A second possible implementation scenario is that when the application of the target type is running, the user can trigger the audio playback device to display a first control in a floating manner on the interface of the application of the target type through touch input, and when the target playlist is associated with the first control, the audio indicated by the audio information in the target playlist is played according to the first loop strategy. Among them, the first control can be used to trigger the audio playback device to play audio in a cross-application loop, and the application of the target type can be an application with an audio playback function, such as a music application or a video application.
[0035] Exemplarily, taking the above-mentioned first possible implementation scenario as an example, when the first control is automatically displayed in floating on the interface of the target type of application, if the user does not trigger the first control to establish an association with any audio information, the audio playback device determines that the first control is not associated with the audio information; if the user triggers the first control to establish an association with the audio information in the target playlist, the audio playback device determines that the first control is associated with the audio information in the target playlist.
[0036] Optionally, the first control may be a floating ball or other possible floating controls, etc., which may be determined according to actual usage requirements and is not limited in the embodiments of the present application.
[0037] Optionally, one way is that when the first control is displayed in a floating state, the audio playback device can automatically and periodically detect whether the first control is associated with the audio information. For example, the audio playback device can detect whether the first control is associated with the audio information every 5 seconds. If it is detected that the first control is associated with the audio information in the target playlist, the audio indicated by the audio information in the target playlist can be played with the first loop strategy. Another way is that when the first control is displayed in a floating state, the audio playback device can receive user input to the first control; and in response to the input, determine whether the first control is associated with the audio information. For example, when the first control is evoked, the first control can be in an audio loop waiting mode. If the audio playback device receives a long press input from the user to the first control, the audio playback device can detect whether the first control is associated with the audio information.
[0038] S102: During the process of playing the target playlist with the first loop strategy, after the first audio corresponding to the first audio information is played through the first application, the second audio corresponding to the second audio information is played through the second application.
[0039] In the embodiment of the present application, when the first control is associated with the audio information in the target playlist, each audio indicated by each audio information has a playback source, that is, each audio corresponds to an application that provides the audio. Specifically, when the first control is associated with multiple audio information, each audio can come from a different application; or, a part of the audio indicated by the multiple audio information can come from different applications, and another part of the audio indicated by the multiple audio information can come from the same application. It can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
[0040] Optionally, when the first control is displayed in a floating state, if the user long presses the first control, the audio playback device can display a target playlist in response to the user's long press input, and the target playlist can include the playback information of each audio associated with the first control. Further, the user can trigger the audio playback device to delete the target audio from the target playlist by inputting a delete control.
[0041] Optionally, the above-mentioned first cycle strategy may include at least one of the following: the order of adding audio, random order, priority of the application providing audio, audio name, audio singer, audio creation year, audio creation region, audio type, etc.
[0042] Exemplarily, it is assumed that the target playlist includes audio information of audio 1, audio 2, and audio 3, and the playback source of audio 1 is application 1, the playback source of audio 2 is application 2, and the playback source of audio 3 is application 3. One possible way is that the audio playback device first calls application 1 in the background to play audio 1, then calls application 2 in the background to play audio 2, and then calls application 3 in the background to play audio 3 according to the order in which the three audios are added; another possible way is that the audio playback device can call the three applications in the background in a random order to play the audio corresponding to each application.
[0043] Optionally, an application is called in the background. Through this application, during the process of playing an audio, the audio playback device can analyze the playback source of the next audio in advance, so that after the playback of one audio is finished, the audio playback device can immediately call the playback source of the next audio to play the next audio, thereby reducing the playback waiting time and improving the playback efficiency.
[0044] An embodiment of the present application provides an audio playback method. Since a target playlist may include audio information corresponding to audio in different applications, in the process of playing the target playlist with a first loop strategy, the first audio corresponding to the first audio information can be played through the first application first, and then the second audio corresponding to the second audio information can be played through the second application. That is, the audio in different applications can be played in a loop without the user manually switching applications, thereby simplifying the operating steps for playing audio in different applications.
[0045] Optionally, the audio information can be added to the target playlist by the user triggering the audio playback device. Figure 1 ,like Figure 2 As shown, the above S101 can be implemented through the following S101A to S101B.
[0046] S101A: When a first control is displayed in a floating manner on an interface of a target application, the audio playback device receives a first input from a user on the first control and a target object in the interface of the target application.
[0047] Optionally, the target application is an audio playback application in the audio playback device.
[0048] Optionally, the target object may be a playlist in an audio playback device, an audio in an audio playback device, or a video in an audio playback device; or, the target object may be an audio link or an audio shared by other devices to the audio playback device, etc., which is not limited in the embodiments of the present application.
[0049] Optionally, the first input may be a click input to the first control and the target object respectively, or the first input may be a touch input to drag the first control to the area where the target object is located. Of course, the first input may also be other possible inputs, which are not limited in the embodiments of the present application.
[0050] S101B: In response to the first input, the audio playback device adds the playback information of the target audio corresponding to the target object to the target play list.
[0051] It should be noted that the target audio may be the first audio, the second audio or any other possible audio in the above embodiment, and is not limited in the embodiment of the present application.
[0052] For example, Figure 3 As shown in (a) in the figure, the interface of a music player can display multiple categories of audio such as "Recently Played", "Favorite Playlists" and "Other Playlists", and the first control 01 can be displayed floating on the interface. When the user wants to add "Afternoon Cafe" to the target playlist corresponding to the first control 01, the user can press and hold the first control 01 and drag it to the area 02 where "Afternoon Cafe" is located. Figure 3 As shown in (b), if the hovering time of the first control 01 in the area 02 where "Afternoon Cafe" is located is greater than or equal to 2 seconds, the audio playback device can add the playback information of "Afternoon Cafe" to the target playlist. It is understandable that if the hovering time of the first control 01 in the area 02 where "Afternoon Cafe" is located is less than 2 seconds when the user releases his finger, the first control 01 will return to the initial display position and will not be added to the target playlist.
[0053] It should be noted that the above example is used to illustrate the example of adding the playback information of the target audio in the interface of the target application to the target playlist through the first input. Other audio in the interfaces of other applications can also be added according to the above method, so that audio from different applications can be stored in the target playlist and played in a loop.
[0054] When the target object is a target video, the above-mentioned "adding the playback information of the target audio corresponding to the target object to the target playlist" includes: transcoding the target video to obtain the target audio, and adding the playback information of the target audio to the target playlist. In this way, it is convenient for the user to also play and manage the audio information in the corresponding video.
[0055] Optionally, the playback information of the target audio may include at least one of the following: the playback source of the target audio, the name of the target audio, the singer of the target audio, the creator of the target audio, etc.
[0056] Optionally, after the audio playback device responds to the first input and adds the playback information of the target audio to the target playlist, the audio playback method provided in the embodiment of the present application may also include: displaying a target identifier in the area where the first control is located, and the target identifier can be used to indicate the first audio. For example, the target identifier can be the first character of the song title of the first audio, or the target identifier can be the name of the singer of the first audio. Furthermore, if the first control is associated with multiple audios, then in the process of the audio playback device playing each audio in turn through the application corresponding to each audio, the identifier of each audio can be displayed in turn in the area where the first control is located, so that the user can determine the audio currently being played based on the identifier of each audio.
[0057] Optionally, the number of target audios may be one or more. When the number of target audios is one, the audio playback device may add the playback information of the target audio to the target playlist. When the number of target audios is multiple, it may be implemented in any of the following two possible implementations:
[0058] The first possible implementation is that the target object includes N objects in the interface of the target application. The first input includes N sub-inputs. Each sub-input is an input of dragging the first control to an area where an object among the N objects is located, and the stay time in the area where an object is located is greater than or equal to a first preset time. The playback information of the target audio is the playback information of the N audios corresponding to the N objects. Wherein N is a positive integer.
[0059] For example, a first control can be displayed in a floating state on the interface of a certain music player. When the user presses and holds the first control to drag it toward the area where song 1 is located, and the hovering time in the area where song 1 is located is greater than or equal to 2 seconds, the audio playback device can add the playback information of song 1 to the target playlist. Afterwards, when the user presses and holds the first control to drag it toward the area where song 2 is located, and the hovering time in the area where song 2 is located is greater than or equal to 2 seconds, the audio playback device can add the playback information of song 2 to the target playlist. Afterwards, when the user presses and holds the first control to drag it toward the area where song 3 is located, and the hovering time in the area where song 3 is located is greater than or equal to 2 seconds, the audio playback device can add the playback information of song 3 to the target playlist.
[0060] It can be understood that for this implementation, since the first control needs to be dragged to the area where each of the N audios is located, that is, these N operations are independent of each other, the N audios can be audios displayed continuously in the interface of the first application, or can be audios displayed discontinuously in the interface of the first application, and the embodiments of the present application are not limited thereto.
[0061] A second possible implementation is that the target object includes M objects displayed continuously in the interface of the target application. The first input includes a first sub-input and a second sub-input. The first sub-input is an input in which the first control is dragged to the area where the first object among the M objects is located, and the stay time in the area where the first object is located is greater than or equal to the second preset time; the second sub-input is an input in which the first control is dragged to the area where the Mth object among the M objects is located, and the stay time in the area where the Mth object is located is greater than or equal to the third preset time. The playback information of the target audio is the playback information of the M audios corresponding to the M objects. M is an integer greater than 1.
[0062] For example, in the interface of a certain music player, songs a, b, c and d may be displayed in sequence from top to bottom, and the first control may be displayed in a floating manner on the interface. The user may first press and hold the first control to drag to the area where song 1 is located, and the hovering time in the area where song 1 is located is greater than or equal to 2 seconds; thereafter, when the user presses and holds the first control to drag to the area where song d is located, the hovering time in the area where song d is located is greater than or equal to 2 seconds. Since songs a, b, c and d are displayed continuously, the audio playback device may add the playback information of these songs to the target playlist.
[0063] It should be noted that the first preset time, the second preset time and the third preset time may be equal or unequal, and this embodiment of the present application does not limit this.
[0064] The audio playback method provided in the embodiment of the present application can trigger the audio playback device to add the playback information of the target object to the target play list by inputting the first control and the target object. Therefore, the user selects different audio in different applications to add to the target play list, so that the target play list can store the playback information of audio from different applications and play it in a loop.
[0065] Optionally, in the embodiment of the present application, the user can share the playback information of at least one audio corresponding to the first control with other users. Figure 1 ,like Figure 4 As shown, the audio playback method provided in the embodiment of the present application may also include the following S103 to S104.
[0066] S103: When a chat interface with a target user is displayed and a first control is displayed in a floating manner on the chat interface, the audio playback device receives a second input of the user to the first control.
[0067] S104: In response to the second input, the audio playback device shares the target playlist to a device used by the target user.
[0068] It should be noted that the above Figure 4 The example of executing S102 first and then executing S103 to S104 is used for illustrative description, which does not limit the embodiments of the present application. It is understood that in actual implementation, S103 to S104 may be executed first and then S102; or, S102, S103 to S104 may be executed selectively.
[0069] Optionally, the second input may include a first sub-input and a second sub-input, the first sub-input being an input of dragging the first control to an input box in the chat interface, and the second sub-input being an input of triggering sending a target playlist.
[0070] For example, Figure 5 As shown in (a) of FIG. 1 , when the chat interface 03 with Xiao Zhang is displayed and the first control 01 is suspended, Xiao Wang can drag the first control 01 to the input box 04 in the chat interface 03. After that, the audio playback device can determine that the first control 01 is associated with song 1, song 2, and song 3 (i.e., the target playlist). Then, if Xiao Wang clicks the send control 05, Figure 5 As shown in (b) in the figure, the target playlist can be sent to the device used by Xiao Zhang. After the device used by Xiao Zhang receives the target playlist sent by the device used by Xiao Wang, Xiao Zhang can trigger the device used by Xiao Zhang to loop-play songs 1, 2, and 3 across applications by inputting the target playlist and the floating control 07 in the device used by Xiao Zhang.
[0071] The audio playback method provided in the embodiment of the present application allows a user to send playback information of at least one audio selected by the user to a device used by another user. Therefore, the other user can trigger the device used by the other user to play the audio in a cross-application loop by inputting the playback information of the audio, thereby realizing audio sharing.
[0072] Optionally, in the embodiment of the present application, the audio playback device may also receive playback information of at least one audio shared by other devices. Exemplarily, the audio playback method provided in the embodiment of the present application may also include the following S105 to S107.
[0073] S105: The audio playback device receives playback information of the target audio shared by the target device.
[0074] Optionally, the target audio may be a specific audio being shared; or, the target audio may be an entire playlist being shared, which includes the target audio.
[0075] S106: The audio playback device receives a third input from the user.
[0076] S107: The audio playback device adds the playback information of the target audio to the target play list in response to the third input.
[0077] Optionally, the third input may be the user's input of the first control and the playback information of the target audio, for example, the third input may be the input of dragging the first control to the area where the playback information of the target audio is located. Specifically, after the audio playback device receives the playback information of the target audio sent by the target device, an identifier corresponding to the playback information of the target audio may be displayed; thereafter, the user may drag the first control to the area where the identifier is located, so that the audio playback device may establish an association relationship between the first control and the playback information of the target audio, and add the playback information of the target audio to the target playlist.
[0078] The audio playback method provided in the embodiment of the present application is that since the audio playback device can receive the playback information of the target audio shared by other devices, the user can trigger the audio playback device to establish an association relationship between the first control and the target audio through input, and enable the audio playback device to play the audio in a loop across applications.
[0079] Optionally, in the process of playing the target playlist with the first loop strategy, the audio playback method provided in the embodiment of the present application may further include the following S108 or S109.
[0080] S108. If an application corresponding to the third audio is installed, the audio playback device plays the third audio through the application corresponding to the third audio.
[0081] S109. If the application corresponding to the third audio is not installed, the audio playback device downloads and installs the application corresponding to the third audio, and plays the third audio through the application corresponding to the third audio; or, does not play the third audio, and plays the next audio through the application corresponding to the next audio of the third audio.
[0082] It should be noted that the third audio may be the first audio, the second audio or any other possible audio in the above embodiment, and is not limited in the embodiment of the present application.
[0083] For example, the third audio is the audio shared by the target device, and the third audio includes song 1, song 2 and song 3. Figure 5 As shown in (b), after Xiao Zhang receives the playlist shared by Xiao Wang, Xiao Zhang can drag the floating control 07 onto the playlist and enlarge the floating control 07 so that Xiao Zhang's device can read the playlist to obtain the playback information of song 1, song 2 and song 3.
[0084] If Xiao Zhang's device is installed with application 1 corresponding to song 1, application 2 corresponding to song 2, and application 3 corresponding to song 3, then Xiao Zhang's device can play song 1 through application 1, play song 2 through application 2, and play song 3 through application 3 in sequence.
[0085] If Xiao Zhang's device does not have Application 2 corresponding to Song 2 installed, but has Application 1 corresponding to Song 1 and Application 3 corresponding to Song 3 installed, then one scenario is: Xiao Zhang's device is connected to wifi, Xiao Zhang's device can first play Song 1 through Application 1, and download and install Application 2. After Song 1 is finished playing, Song 2 can be played through Application 2 and Song 3 can be played through Application 3 in turn; another scenario is: Xiao Zhang's device is not connected to wifi, Xiao Zhang's device can first play Song 1 through Application 1, and after Song 1 is finished playing, Song 2 can be skipped and Song 3 can be played through Application 3.
[0086] The audio playback method provided in the embodiment of the present application can determine whether to download and install the application according to whether the application corresponding to the audio is installed and the network environment, so that the strategy of looping the song can be flexibly adjusted, thereby improving the user's playback experience.
[0087] It should be noted that the audio playback method provided in the embodiment of the present application can be executed by an audio playback device or a control module in the audio playback device for executing the loaded audio playback method. In the embodiment of the present application, the audio playback method provided in the embodiment of the present application is described by taking the audio playback device executing the loaded audio playback method as an example.
[0088] like Figure 6 As shown, an embodiment of the present application provides an audio playback device 600. The audio playback device 600 may include a processing module 601. The processing module 601 may be used to create a target playlist, which includes at least a first audio information and a second audio information; and in the process of playing the target playlist with a first loop strategy, after the first audio corresponding to the first audio information is played through the first application, the second audio corresponding to the second audio information is played through the second application.
[0089] Optional, combined Figure 6 ,like Figure 7As shown, the audio playback device provided in the embodiment of the present application may further include a receiving module 602. The receiving module 602 may be used to receive a first input from a user to a target object in the interface of the target application when the first control is displayed in a floating manner on the interface of the target application. The processing module 601 may be specifically used to add the playback information of the target audio corresponding to the target object to the target playlist in response to the first input received by the receiving module 602.
[0090] Optionally, the target object is a target video. The processing module 601 may be specifically configured to transcode the target video to obtain a target audio, and add the play information of the target audio to a target playlist.
[0091] Optionally, the target object includes N objects in the interface of the target application, and the first input includes N sub-inputs. Each sub-input is an input of dragging the first control to an area where an object among the N objects is located, and the stay time in the area where an object is located is greater than or equal to a first preset time. The playback information of the target audio is the playback information of the N audios corresponding to the N objects. N is a positive integer.
[0092] Alternatively, the target object includes M objects displayed continuously in the interface of the target application, and the first input includes a first sub-input and a second sub-input. The first sub-input is an input in which the first control is dragged to the area where the first object among the M objects is located, and the stay time in the area where the first object is located is greater than or equal to a second preset time. The second sub-input is an input in which the first control is dragged to the area where the Mth object among the M objects is located, and the stay time in the area where the Mth object is located is greater than or equal to a third preset time. The playback information of the target audio is the playback information of the M audios corresponding to the M objects. M is an integer greater than 1.
[0093] Optional, such as Figure 7 As shown, the audio playback device provided in the embodiment of the present application may also include a receiving module 602 and a communication module 603. The receiving module 602 may be used to receive a second input of the user to the first control when a chat interface with the target user is displayed and the first control is suspended on the chat interface. The communication module 603 may be used to share the target playlist to the device used by the target user in response to the second input received by the receiving module 602.
[0094] Optional, such as Figure 7As shown, the audio playback device provided in the embodiment of the present application may also include a receiving module 602 and a communication module 603. The communication module 603 may be used to receive the playback information of the target audio shared by the target device. The receiving module 602 may be used to receive a third input from the user. The processing module 601 may also be used to add the playback information of the target audio to the target playlist in response to the third input received by the receiving module 602.
[0095] Optionally, the processing module 601 can also be used to, during the process of playing the target playlist with the first loop strategy, if an application corresponding to the third audio is installed, play the third audio through the application corresponding to the third audio. Alternatively, the processing module 601 can also be used to, during the process of playing the target playlist with the first loop strategy, if an application corresponding to the third audio is not installed, download and install the application corresponding to the third audio, and play the third audio through the application corresponding to the third audio; or, not play the third audio, and play the next audio through the application corresponding to the next audio of the third audio.
[0096] An embodiment of the present application provides an audio playback device. Since a target playlist may include audio information corresponding to audio in different applications, during the process of playing the target playlist with a first loop strategy, the audio playback device may first play the first audio corresponding to the first audio information through the first application, and then play the second audio corresponding to the second audio information through the second application. That is, the audio in different applications can be played in a loop without the user manually switching applications, thereby simplifying the operating steps for playing audio in different applications.
[0097] The audio playback device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0098] The audio playback device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0099] The audio playback device provided in the embodiment of the present application can achieve Figures 1 to 5 To avoid repetition, the various processes implemented by the audio playback device in the method embodiment are not described here.
[0100] Optional, such as Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the above-mentioned audio playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0101] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0102] Fig. 9 The hardware structure diagram of an electronic device for implementing an embodiment of the present application is shown in FIG. The electronic device 900 includes, but is not limited to, a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
[0103] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0104] Among them, processor 910 can be used to create a target playlist, which includes at least first audio information and second audio information; and in the process of playing the target playlist with a first loop strategy, after the first audio corresponding to the first audio information is played through the first application, the second audio corresponding to the second audio information is played through the second application.
[0105] Optionally, the user input unit 907 can be used to receive a first input from a user to a target object in the interface of the target application program and the first control when the first control is displayed in a floating manner on the interface of the target application program. The processor 910 can be specifically used to add the playback information of the target audio corresponding to the target object to the target playlist in response to the first input received by the user input unit 907.
[0106] Optionally, the target object is a target video. The processor 910 may be specifically configured to transcode the target video to obtain a target audio, and add the play information of the target audio to the target play list.
[0107] Optionally, the target object includes N objects in the interface of the target application, and the first input includes N sub-inputs. Each sub-input is an input of dragging the first control to an area where an object among the N objects is located, and the stay time in the area where an object is located is greater than or equal to a first preset time. The playback information of the target audio is the playback information of the N audios corresponding to the N objects. N is a positive integer.
[0108] Alternatively, the target object includes M objects displayed continuously in the interface of the target application, and the first input includes a first sub-input and a second sub-input. The first sub-input is an input in which the first control is dragged to the area where the first object among the M objects is located, and the stay time in the area where the first object is located is greater than or equal to a second preset time. The second sub-input is an input in which the first control is dragged to the area where the Mth object among the M objects is located, and the stay time in the area where the Mth object is located is greater than or equal to a third preset time. The playback information of the target audio is the playback information of the M audios corresponding to the M objects. M is an integer greater than 1.
[0109] Optionally, the user input unit 907 can be used to receive a second input of the user to the first control when a chat interface with the target user is displayed and the first control is suspended on the chat interface. The radio frequency unit 901 can be used to share the target playlist to the device used by the target user in response to the second input received by the user input unit 907.
[0110] Optionally, the radio frequency unit 901 may be used to receive the playback information of the target audio shared by the target device. The user input unit 907 may be used to receive a third input from the user. The processor 910 may also be used to add the playback information of the target audio to the target playlist in response to the third input received by the user input unit 907.
[0111] Optionally, the processor 910 may also be used to, during the process of playing the target playlist with the first loop strategy, if an application corresponding to the third audio is installed, play the third audio through the application corresponding to the third audio. Alternatively, the processor 910 may also be used to, during the process of playing the target playlist with the first loop strategy, if an application corresponding to the third audio is not installed, download and install the application corresponding to the third audio, and play the third audio through the application corresponding to the third audio; or, not play the third audio, and play the next audio through the application corresponding to the next audio of the third audio.
[0112] An embodiment of the present application provides an electronic device. Since a floating control can establish an association relationship with audio in different applications, when a first control is displayed in a floating manner, by determining whether the first control is associated with the audio, each audio can be played in turn through the application corresponding to each audio when the first control is associated with at least one audio. That is, there is no need for the user to manually switch applications, and audio in different applications can be played in a loop, thereby simplifying the operating steps for playing audio in different applications.
[0113] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 909 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 910 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 910.
[0114] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned audio playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0115] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0116] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, which is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned audio playback method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0117] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0118] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods provided in each embodiment of the present application.
[0120] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An audio playback method, It is characterized in that The method comprises: In a case where a first control is displayed in a floating manner on an interface of a target application, receiving a first input from a user on the first control and a target object in the interface of the target application; In response to the first input, obtaining the play information of the target audio corresponding to the target object, and adding the play information of the target audio to a target play list, wherein the target play list includes at least the first audio information and the second audio information; In the process of playing the target playlist in the first loop strategy, after the first audio corresponding to the first audio information is played through the first application, the second audio corresponding to the second audio information is played through the second application.
2. The method according to claim 1, It is characterized in that The target object is a target video; The adding the playing information of the target audio to the target playlist includes: The target video is transcoded to obtain the target audio, and the play information of the target audio is added to the target playlist.
3. The method according to claim 1, It is characterized in that The target object includes N objects in the interface of the target application, the first input includes N sub-inputs, each sub-input is an input of dragging the first control to an area where one of the N objects is located, and staying in the area where the one object is located for a time greater than or equal to a first preset time, the playback information of the target audio is the playback information of N audios corresponding to the N objects, and N is a positive integer; or, The target object includes M objects displayed continuously in the interface of the target application, the first input includes a first sub-input and a second sub-input, the first sub-input is an input of dragging the first control to the area where the first object among the M objects is located, and the stay time in the area where the first object is located is greater than or equal to a second preset time, the second sub-input is an input of dragging the first control to the area where the Mth object among the M objects is located, and the stay time in the area where the Mth object is located is greater than or equal to a third preset time, the playback information of the target audio is the playback information of M audios corresponding to the M objects, and M is an integer greater than 1.
4. The method according to claim 1, It is characterized in that The method further comprises: When a chat interface with a target user is displayed and a first control is displayed in a floating manner on the chat interface, receiving a second input of the first control from the user; In response to the second input, the target playlist is shared to a device used by the target user.
5. The method according to claim 1, It is characterized in that The method further comprises: Receive the playback information of the target audio shared by the target device; receiving a third input from the user; In response to the third input, the play information of the target audio is added to the target play list.
6. The method according to claim 1 or 5, It is characterized in that In the process of playing the target playlist with the first loop strategy, the method further includes: If an application corresponding to the third audio is installed, playing the third audio through the application corresponding to the third audio; or, If the application corresponding to the third audio is not installed, download and install the application corresponding to the third audio, and play the third audio through the application corresponding to the third audio; or, do not play the third audio, and play the next audio through the application corresponding to the next audio of the third audio.
7. An audio playback device, It is characterized in that The audio playback device includes a receiving module and a processing module; The receiving module is used to receive a first input from a user on a target object in the interface of the target application and the first control when the first control is displayed in a floating manner on the interface of the target application; The processing module is used to obtain the playback information of the target audio corresponding to the target object in response to the first input received by the receiving module, and add the playback information of the target audio to a target playlist, wherein the target playlist includes at least first audio information and second audio information; and in the process of playing the target playlist with a first loop strategy, after the first audio corresponding to the first audio information is played through the first application, the second audio corresponding to the second audio information is played through the second application.
8. The device according to claim 7, It is characterized in that The target object is a target video; The processing module is specifically used to transcode the target video to obtain the target audio, and add the play information of the target audio to the target play list.
9. The device according to claim 7, It is characterized in that The target object includes N objects in the interface of the target application, the first input includes N sub-inputs, each sub-input is an input of dragging the first control to an area where one of the N objects is located, and staying in the area where the one object is located for a time greater than or equal to a first preset time, the playback information of the target audio is the playback information of N audios corresponding to the N objects, and N is a positive integer; or, The target object includes M objects displayed continuously in the interface of the target application, the first input includes a first sub-input and a second sub-input, the first sub-input is an input of dragging the first control to the area where the first object among the M objects is located, and the stay time in the area where the first object is located is greater than or equal to a second preset time, the second sub-input is an input of dragging the first control to the area where the Mth object among the M objects is located, and the stay time in the area where the Mth object is located is greater than or equal to a third preset time, the playback information of the target audio is the playback information of M audios corresponding to the M objects, and M is an integer greater than 1.
10. The device according to claim 7, It is characterized in that The device also includes a receiving module and a communication module; The receiving module is used to receive a second input of the user to the first control when a chat interface with a target user is displayed and the first control is displayed in a floating manner on the chat interface; The communication module is used to share the target playlist to a device used by the target user in response to the second input received by the receiving module.
11. The device according to claim 7, It is characterized in that The device also includes a receiving module and a communication module; The communication module is used to receive the playback information of the target audio shared by the target device; The receiving module is used to receive a third input from a user; The processing module is further configured to add the play information of the target audio to the target play list in response to the third input received by the receiving module.
12. The device according to claim 7 or 11, It is characterized in that The processing module is further configured to, during the process of playing the target playlist using the first loop strategy, play the third audio through the application corresponding to the third audio if an application corresponding to the third audio is installed; or The processing module is also used to, during the process of playing the target playlist with the first loop strategy, if the application corresponding to the third audio is not installed, download and install the application corresponding to the third audio, and play the third audio through the application corresponding to the third audio; or, not play the third audio, and play the next audio through the application corresponding to the next audio of the third audio.
13. An electronic device, It is characterized in that It comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the audio playing method as described in any one of claims 1 to 6.
14. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the audio playback method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Song list generation method and mobile terminal
CN107203624A
Method and system for generating audio playing list, and audio playing system
CN107562745A
Information sharing method and electronic equipment
CN110830363A
Audio control method and electronic equipment
CN111459456A
User interfaces for playing and managing audio items
US20180329585A1
