Playlist recommendation method, electronic device, and storage medium
By directly displaying playlist cards related to the current scene on the electronic device's display interface, the problem of cumbersome playlist selection for users in different scenarios is solved, achieving a convenient experience of quickly playing songs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2023-12-29
- Publication Date
- 2026-04-17
AI Technical Summary
In existing technologies, when users play music on electronic devices, the process of unlocking the phone, entering the media application, and searching for a playlist is cumbersome and results in a poor user experience, especially since selecting the appropriate playlist is laborious in different scenarios.
By directly displaying playlist cards related to the current scene on the display interface of electronic devices, users can quickly trigger playback without running media applications, simplifying the operation process. This includes scene recognition and learning users' audio listening habits to push relevant playlists.
It simplifies the process of selecting and playing playlists for users in different scenarios, improves the user experience, reduces tedious search steps, and enhances the convenience of listening to music.
Smart Images

Figure CN120277233B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to playlist recommendation methods, electronic devices, and storage media. Background Technology
[0002] With the widespread use of mobile electronic devices, these devices support media playback, such as playing music and audiobooks on mobile phones. When a user intends to listen to music, they usually need to unlock their phone, open a media application, find a saved playlist or historical playlist within the application, and then click to play a song from that playlist. This process is cumbersome and results in a poor user experience. Summary of the Invention
[0003] This application provides a playlist recommendation method, an electronic device, and a storage medium, which allows users to directly trigger the playback of recommended playlists on the display interface of the electronic device, simplifying the user operation process and improving the user experience.
[0004] In a first aspect, embodiments of this application provide a playlist recommendation method, which can be applied to a first electronic device. The first electronic device has a first media application and a second media application installed. The method includes:
[0005] When the first electronic device is in a state where the first scene, the first media application, and the second media application are both not running, the first electronic device displays a first interface. The first interface includes a first card in a first form. The first card displays a first control and a first playlist of the first media application. The first playlist is a playlist related to the first scene.
[0006] In response to an operation on the first control, the first electronic device displays a second interface, which includes a second card and a first card in a second form. The second card displays multiple second playlists, including playlists from the second media application. The multiple second playlists are displayed in order of playback from near to far, or in order of cumulative playback time within a preset period from large to small, or in order of playback frequency within a preset period from large to small. The first card in the second form displays a playback progress bar and / or a volume slider.
[0007] For example, the first electronic device can be a mobile phone, the first media application can be media application A, and the second media application can be media application B. Both media application A and media application B are applications capable of playing audio. The first scenario includes, but is not limited to, subway scenarios, bedtime scenarios, and driving scenarios. The first interface can be the lock screen of the mobile phone (e.g., Figure 2 Interface 201 shown in Figure a), control center interface (as shown in Figure a) Figure 3 Interface 302 shown in b), main interface (as shown in b) Figure 3The interface shown in d (301) or any interface. The first card in the first form can be... Figure 2 The card 2011 shown in Figure a has a first control that can be control 2016 on the card 2011, and a first playlist that can be playlist 1 provided by media application A. Playlist 1 is a scene playlist.
[0008] For example, such as Figure 2 As shown in b, the second interface can be interface 202, the second card can be card 2022, the first card in the second form can be card 2021, the multiple second playlists can be multiple playlists on card 2021, the multiple second playlists can come from media application A and / or media application B, and the multiple second playlists can be historical playlists.
[0009] In this embodiment, when the first electronic device is in the first scene and none of the media applications installed on the first electronic device are running, the first electronic device can push a first playlist related to the first scene on the first interface. This allows the user to quickly trigger playback of songs in the first playlist when entering the first scene, simplifying user operations and improving the user experience. If the user is not satisfied with the recommended first playlist, they can touch the first control of the first card on the first interface to view more recommended playlists, making it easier for the user to select a playlist and trigger playback of songs from one of the playlists. This further simplifies user operations and improves the user experience.
[0010] In one optional embodiment of the first aspect, the first electronic device is equipped with a first media application and a second media application. When the first electronic device is in a first scene, the first media application is running and the second media application is not running, the first electronic device displays a first interface. The first interface includes a first card in a first form, and a fourth playlist is displayed on the first card. The fourth playlist is a playlist related to the first scene provided by the second media application.
[0011] In this embodiment, the first electronic device has already opened the first media application in the first scenario. The first electronic device can push a playlist related to the first scenario provided by the second media application on the first interface, which makes it convenient for the user to switch to the second media application to play songs in the scenario playlist. This simplifies user operation and improves user experience.
[0012] In an optional embodiment of the first aspect, before the first electronic device displays the first interface when the first electronic device is in a first scene and both the first media application and the second media application are not running, the method further includes: the first electronic device receiving a connection event from the second electronic device; in response to the connection event, the first electronic device determining that the first electronic device is in the first scene; and in response to determining that the first electronic device is in the first scene, the first electronic device determining that both the first media application and the second media application are not running.
[0013] For example, the second electronic device can be a headset or a vehicle infotainment system, and the connection event of the second electronic device can be a connection event of the headset or a connection event of the vehicle infotainment system.
[0014] In this embodiment, when the first electronic device is in the first scene, it detects a connection event with the second electronic device, indicating that the user intends to listen to audio. Furthermore, if the first electronic device determines that all installed media applications are not running, it can push a first playlist to the first interface. This method allows users to quickly trigger playback of songs from the first playlist on the first interface when entering the first scene and wearing headphones or connected to the vehicle's infotainment system, simplifying user operations and improving the user experience.
[0015] In an optional embodiment of the first aspect, in response to determining that the first electronic device is in a first scenario, the first electronic device determines that both the first media application and the second media application are in a non-running state, including: in response to determining that the first electronic device is in the first scenario, the first electronic device determines that the identification information corresponding to the first scenario is a first identifier; the first identifier is used to indicate that the number of times the user listens to audio in the first scenario within a preset time period is greater than or equal to a preset number; in response to determining that the identification information corresponding to the first scenario is the first identifier, the first electronic device determines that both the first media application and the second media application are in a non-running state.
[0016] For example, the first identifier can be 1, used to indicate that the number of times the user listens to audio in the first scenario within a preset time period is greater than or equal to a preset number, where the preset time period can be one month and the preset number can be 5 times. That is, the first identifier is used to indicate that the user has a habit of listening to audio in the first scenario.
[0017] In this embodiment, after the first electronic device detects a connection event with the second electronic device, it identifies that it is in a first scene. By querying the identification information corresponding to the first scene, it determines that the user has a habit of listening to audio in the first scene. The first electronic device further determines that all installed media applications are in an inactive state. Then, the first electronic device can push the first playlist on the first interface. The above method facilitates users who have a habit of listening to audio in the first scene to quickly trigger the playback of songs in the first playlist on the first interface when entering the first scene and wearing headphones or connected to the vehicle system. This simplifies user operation and improves the user experience.
[0018] In some embodiments, the identification information corresponding to the first scenario is a second identifier. The second identifier is used to indicate that the number of times the user listens to audio in the first scenario within a preset time period is less than a preset number. For example, the second identifier can be 0, that is, the second identifier is used to indicate that the user does not have the habit of listening to audio in the first scenario.
[0019] In an optional embodiment of the first aspect, the first electronic device receives a connection event from the second electronic device, including: the smart service of the first electronic device receives the connection event from the second electronic device; in response to the connection event, the first electronic device determines that it is in a first scenario, including: in response to the connection event, the smart service determines that it is in the first scenario; in response to determining that it is in the first scenario, the first electronic device determines that both the first media application and the second media application are in a non-running state, including: in response to determining that it is in the first scenario, the smart service sends a first message to the audio recommendation management module of the first electronic device, the first message including an identifier of the first scenario; the audio recommendation management module queries the media session service of the first electronic device and finds that both the first media application and the second media application are in a non-running state.
[0020] For example, the first message can be Figure 15 The notification message from S1502c indicates that the audio recommendation management module, after querying the media session service of the first electronic device, finds that both the first and second media applications are in a non-running state. Figure 15 S1503 and S1504. In this embodiment, the media session registration status of "unregistered" in S1504 means that both the media session corresponding to the first media application and the media session corresponding to the second media application are unregistered, that is, both the first media application and the second media application are in a non-running state.
[0021] In one optional embodiment of the first aspect, the first electronic device displays a first interface, including: the first electronic device queries playlist information corresponding to the first scene, the playlist information corresponding to the first scene includes playlist information of the first playlist, the playlist information of the first playlist includes the playlist title, playlist identifier, playlist cover and identifier of the first scene; after the first electronic device queries the playlist information corresponding to the first scene, the first electronic device displays the first interface, the first interface displays the first playlist.
[0022] In this embodiment, the first electronic device pre-stores the playlist information of the first playlist corresponding to the first scene. The first electronic device first obtains the playlist information of the first playlist, and then displays the first playlist on the first interface based on the playlist information of the first playlist.
[0023] In one optional embodiment of the first aspect, the first electronic device queries the playlist information corresponding to the first scene, including: the first electronic device obtains the playlist information corresponding to the identifier of the first scene based on the identifier of the first scene, wherein the playlist information corresponding to the identifier of the first scene includes the playlist information of the first playlist.
[0024] In this embodiment, the first electronic device can obtain the playlist information corresponding to the first scene, such as the playlist information of the first playlist, based on the identifier of the first scene.
[0025] In one optional embodiment of the first aspect, the first electronic device queries playlist information corresponding to a first scene, including: the audio recommendation management module of the first electronic device sends a first query request to the media content providing module of the first electronic device, the first query request including an identifier of the first scene; in response to receiving the first query request, the media content providing module sends a first query response to the audio recommendation management module, the first query response including playlist information corresponding to the first scene; the first electronic device displays a first interface, including: the audio recommendation management module sends the playlist information corresponding to the first scene to the system user interface (UI) of the first electronic device; in response to receiving the playlist information corresponding to the first scene, the system UI displays the playlist corresponding to the first scene on the first interface.
[0026] For example, the first query request may correspond to Figure 15 The first query response to the S1507 query scenario playlist request can correspond to... Figure 15 The S1508 returns the playlist information for the first scene. The audio recommendation management module sends the playlist information corresponding to the first scene to the system UI of the first electronic device. Figure 15 The S1509 displays a notification for the playlist in the specified scene. The system UI displays the playlist corresponding to the first scene on the first screen. Figure 15 The S1510 displays the playlist 1 in the scene.
[0027] In this embodiment, the audio recommendation management module of the first electronic device obtains the playlist information of the scene playlist from the media content providing module, and sends a notification to the system UI of the first electronic device to display the scene playlist, so that the system UI can display the scene playlist on the first interface, making it convenient for users to quickly trigger the playback of songs in the scene playlist pushed on the first interface.
[0028] In an optional embodiment of the first aspect, the playlist information corresponding to the first scenario further includes the playlist information corresponding to the first scenario provided by the second media application. The method further includes: the first electronic device determines the first playlist of the first media application with the longest cumulative playback time based on the cumulative playback time of the media application within a preset time period.
[0029] For example, the preset time period is one month. Within one month, the user's cumulative playback time using the first media application is 3 hours, and the user's cumulative playback time using the second media application is 1 hour. The playlist corresponding to the first scenario provided by the first media application is playlist 1, and the playlist corresponding to the first scenario provided by the second media application is playlist 2. Since the cumulative playback time of the first media application within one month is greater than the cumulative playback time of the second media application, when the first electronic device enters the first scenario, the first electronic device pushes playlist 1 provided by the first media application.
[0030] This embodiment illustrates a rule for scene-based playlist recommendation. When the playlist information corresponding to the first scene obtained by the first electronic device includes scene playlists provided by a first media application and scene playlists provided by a second media application, the first electronic device can push the scene playlist provided by the first media application, which has the longest cumulative playback time within a preset period, to the first interface for display.
[0031] In one optional embodiment of the first aspect, the first electronic device determines the first playlist of the first media application with the longest cumulative playback time based on the cumulative playback time of the media application within a preset time period, including: the audio recommendation management module of the first electronic device determines the first playlist of the first media application with the longest cumulative playback time based on the cumulative playback time of the media application within the preset time period.
[0032] In an optional embodiment of the first aspect, before the first electronic device queries the playlist information corresponding to the first scene, the method includes: the first electronic device queries the screen state of the display, wherein the screen state of the display is a screen-on / screen-locked state.
[0033] In an optional embodiment of the first aspect, the first electronic device queries the screen status of the display, including: the audio recommendation management module of the first electronic device obtains the screen status of the display from the screen management module of the first electronic device.
[0034] For example, the audio recommendation management module of the first electronic device can obtain the screen status of the display screen from the screen management module of the first electronic device, which can correspond to: Figure 15 S1505 and S1506 in the example.
[0035] In an optional embodiment of the first aspect, before the first electronic device queries the playlist information corresponding to the first scene, the method further includes: after the first electronic device detects a playback event of the first media application, the first electronic device receives the playlist information of the first media application, the playlist information of the first media application including the playlist title, playlist cover, start time of the playlist and scene identifier of the playlist corresponding to the song being played; in response to receiving the playlist information of the first media application, the first electronic device stores the playlist information of the first media application.
[0036] For example, the first electronic device detecting a playback event of the first media application means that the first media application of the first electronic device detects the user's operation of playing a song in a playlist of the first media application.
[0037] This embodiment illustrates the process of a first electronic device writing playlist information into a first media application. Based on this process, the first electronic device stores playlist information from the first media application, providing data support for subsequent playlist recommendations.
[0038] In one optional embodiment of the first aspect, the first electronic device receives playlist information from the first media application, including: the audio recommendation management module of the first electronic device receives the playlist information from the first media application; the first electronic device stores the playlist information from the first media application, including: the audio recommendation management module writes the playlist information from the first media application to the media content providing module of the first electronic device.
[0039] This embodiment illustrates that a first electronic device writes playlist information of a first media application into a media content providing module, and the first electronic device can obtain playlist information, such as the first playlist of the first media application, from the media content providing module.
[0040] In an alternative embodiment of the first aspect, after the first electronic device displays the first interface, the method further includes: in response to an operation acting on the first playlist, the first electronic device launches a first media application and controls the first media application to play songs in the first playlist.
[0041] For example, such as Figure 2 As shown in Figure a, the operation that responds to the first playlist can be the operation that responds to the control 2014, that is, the operation that responds to the playlist 1 of the media application A. The mobile phone launches the media application A and controls the media application A to play the first song or any song in playlist 1.
[0042] In this embodiment, in response to the operation of playing the first playlist, the first electronic device can quickly launch the first media application corresponding to the first playlist and control the first media application to play the songs in the first playlist, so that the user can quickly trigger the playback of the songs in the first playlist on the first interface, simplifying the user operation process and improving the user experience.
[0043] In an optional embodiment of the first aspect, after the first electronic device displays the second interface, the method further includes: in response to an operation acting on the third playlist, the first electronic device launches a second media application and controls the second media application to play songs in the third playlist; the third playlist is a playlist of the second media application among a plurality of second playlists.
[0044] For example, such as Figure 2 As shown in d, the operation on the third playlist can be in response to the operation on the playlist 2024 of media application B on card 2022, that is, in response to the operation of playing playlist 2 of media application B, the mobile phone launches media application B and controls media application B to play the first song or any song in playlist 2. The third playlist can be a historical playlist.
[0045] In this embodiment, in response to the operation of playing the third playlist, the first electronic device can quickly launch the second media application corresponding to the third playlist and control the second media application to play the songs in the third playlist. This allows the user to quickly trigger the playback of the songs in the third playlist on the second interface, simplifying the user operation process and improving the user experience.
[0046] In an optional embodiment of the first aspect, in response to an operation acting on a first playlist, a first electronic device launches a first media application and controls the first media application to play songs in the first playlist, including: in response to an operation acting on the first playlist, the system UI of the first electronic device sends a first playback request to the media session service of the first electronic device, the first playback request including an identifier of the first playlist; the media session service sends the first playback request to the first media application; in response to receiving the first playback request, the first media application launches and plays songs in the first playlist.
[0047] For example, the system UI sending the first playback request to the media session service can correspond to: Figure 15 The playback request in S1511, where the media session service sends the first playback request to the first media application, can correspond to: Figure 15 Playback request from S1514.
[0048] In an optional embodiment of the first aspect, in response to an operation applied to a first playlist, the first electronic device launches a first media application, including: in response to an operation applied to the first playlist, the first electronic device determines that the identifier of the first playlist corresponds to the first media application based on a pre-stored correspondence between playlist identifiers and media application identifiers in the first electronic device; and the first electronic device launches the first media application.
[0049] In this embodiment, in response to the operation of playing the first playlist, the first electronic device can obtain the first media application corresponding to the first playlist by querying the pre-stored correspondence between playlist identifiers and media application identifiers, and then launch the first media application.
[0050] In an optional embodiment of the first aspect, in response to an operation applied to a third playlist, the first electronic device launches a second media application, including: in response to an operation applied to the third playlist, the first electronic device determines that the identifier of the third playlist corresponds to the second media application based on the correspondence between playlist identifiers and media application identifiers; the first electronic device launches the second media application.
[0051] In this embodiment, in response to the operation of playing the third playlist, the first electronic device can obtain the second media application corresponding to the third playlist by querying the pre-stored correspondence between playlist identifiers and media application identifiers, and then launch the second media application.
[0052] In an optional embodiment of the first aspect, in response to an operation applied to a first playlist, the first electronic device determines that the identifier of the first playlist corresponds to a first media application based on a pre-stored correspondence between playlist identifiers and media application identifiers, including: in response to an operation applied to the first playlist, the media session service of the first electronic device sends a second query request to the media content providing module of the first electronic device, the second query request including the identifier of the first playlist; the media content providing module determines that the identifier of the first playlist corresponds to the first media application based on a pre-stored correspondence between playlist identifiers and media application identifiers; the media content providing module sends a second query response to the media session service, the second query response including the identifier of the first media application corresponding to the identifier of the first playlist.
[0053] For example, the second query request may correspond to Figure 15 The query request in S1512 can be followed by a second query response. Figure 15 The query response for S1513.
[0054] In this embodiment, the first electronic device learns from the media content providing module through the media session service that the media application corresponding to the first playlist is the first media application.
[0055] In an alternative embodiment of the first aspect, after the first electronic device displays the first interface, the method further includes: in response to an operation acting on the first playlist, the first electronic device displays a third interface, the third interface including a third card displaying information about the song being played in the first playlist.
[0056] For example, such as Figure 2 As shown in f, the third interface can be interface 204, and the third card can be card 2041.
[0057] In this embodiment, in response to the operation of playing the first playlist on the first card, the first electronic device displays a third card so that the user can view the song information in the first playlist that is being played.
[0058] In an alternative embodiment of the first aspect, after the first electronic device displays the second interface, the method further includes: in response to an operation acting on the third playlist, the first electronic device displays a fourth interface, the fourth interface including a fourth card displaying information about the song being played in the third playlist.
[0059] For example, such as Figure 2 As shown in e, the fourth interface can be interface 203, and the fourth card can be card 2031.
[0060] In this embodiment, in response to the operation of playing the third playlist on the second card, the first electronic device displays a fourth card so that the user can view the song information in the third playlist that is currently playing.
[0061] In an optional embodiment of the first aspect, after the first electronic device launches the first media application and controls the first media application to play songs in the first playlist, the method further includes: the first electronic device records the registration status of the media session corresponding to the first media application as registered, and updates the playback status of the media player to playing.
[0062] In an optional embodiment of the first aspect, the first electronic device records the registration status of the media session corresponding to the first media application as "registered," comprising: the first media application sending a first registration request to the media session service of the first electronic device, the first registration request being used to request registration of the media session corresponding to the first media application; and in response to receiving the first registration request, the media session service recording the registration status of the media session corresponding to the first media application as "registered." For example, the first media application is media application A, referring to... Figure 15 In S1515, after media application A starts, it includes: media application A sending a first registration request to the media session service, and the media session service recording the registration status of the media session corresponding to media application A as registered. Figure 15(Not shown). The registration status of the media session corresponding to media application A is "registered," indicating that media application A is in a running state.
[0063] In an optional embodiment of the first aspect, after the first electronic device launches the second media application and controls the second media application to play songs in the third playlist, the method further includes: the first electronic device records the registration status of the media session corresponding to the second media application as registered, and updates the playback status of the media player to playing.
[0064] In an optional embodiment of the first aspect, updating the playback status of the media player to "playing" on the first electronic device includes: a first media application sending a first notification message to the media session service of the first electronic device, the first notification message indicating that the playback status of the media player is "playing"; and in response to receiving the first notification message, the media session service updating the playback status of the media player to "playing". For example, the first media application is media application A, and the first notification message can be... Figure 15 Notification of playback status update for S1516.
[0065] In an optional embodiment of the first aspect, in response to an operation on the first control, the first electronic device displays a second interface, including: in response to an operation on the first control, the system UI of the first electronic device sends a third query request to the media content providing module of the first electronic device; in response to receiving the third query request, the media content providing module sends a third query response to the system UI, the third query response including playlist information of multiple second playlists; in response to receiving the third query response, the system UI displays the second interface, the second interface displaying multiple second playlists.
[0066] For example, a third query request may correspond to Figure 14 In S1401, the third query response can correspond to Figure 14 S1402. In this embodiment, the third query request is used to request playlist information for multiple second playlists, and the multiple second playlists can be multiple historical playlists.
[0067] In this embodiment, in response to the operation of the first control, that is, in response to the operation of querying more playlists, the system UI of the first electronic device can obtain multiple second playlists from the media content providing module and display the multiple second playlists to provide users with more playlist recommendations.
[0068] In an optional embodiment of the first aspect, after the first electronic device displays the first interface, the method further includes: the audio recommendation management module of the first electronic device starting a timer; after the timer expires, the audio recommendation management module sending a second notification message to the system UI of the first electronic device, the second notification message being used to instruct the system UI to cancel the display of the first card in the first form. For example, the duration of the timer can be set to, for example, 30 seconds.
[0069] This embodiment illustrates a first electronic device displaying a first card in a first form within a timer duration, allowing a user to view a first playlist and quickly trigger playback of songs in the first playlist. If the user does not respond to the display, the first electronic device can stop displaying the first card in the first form after the timer expires.
[0070] In an optional embodiment of the first aspect, after the first electronic device displays the first interface, the method further includes: the audio recommendation management module of the first electronic device receiving a disconnection event from the second electronic device; in response to receiving the disconnection event from the second electronic device, the audio recommendation management module sending a third notification message to the system UI of the first electronic device, the third notification message being used to instruct the system UI to cancel the display of the first card in the first form.
[0071] For example, the disconnection event of the second electronic device can be a disconnection event of the headphones or a disconnection event of the vehicle system.
[0072] In this embodiment, the first electronic device displays a first card in a first form on a first interface, allowing the user to view a first playlist and quickly trigger playback of songs in the first playlist. If the user has not yet responded to the display, and the first electronic device detects a disconnection event of the second electronic device, the first electronic device may stop displaying the first card in the first form.
[0073] In an optional embodiment of the first aspect, the method further includes: when the first electronic device establishes a connection with the second electronic device, the first electronic device sends a second message to the second electronic device, the second message including playlist information of the first playlist, the second message being used to instruct the second electronic device to display the first playlist.
[0074] For example, the first electronic device can be a mobile phone, and the second electronic device can be a vehicle infotainment system.
[0075] In this embodiment, when the first electronic device is in the first scene and none of the media applications installed on the first electronic device are running, if the first electronic device has established a connection with the second electronic device, the first electronic device can push a first playlist related to the first scene to the second electronic device, so that the user can view the first playlist on the second electronic device.
[0076] In an optional embodiment of the first aspect, the method further includes: a first electronic device receiving a second playback request from a second electronic device, the second playback request including an identifier of a first playlist; in response to receiving the second playback request, the first electronic device launching a first media application and controlling the first media application to play songs in the first playlist.
[0077] For example, in response to the operation of playing the first playlist on the second electronic device, the second electronic device sends a second playback request to the first electronic device to trigger the first electronic device to launch the first media application corresponding to the first playlist and control the first media application to play the songs in the first playlist.
[0078] In an optional embodiment of the first aspect, the method further includes: when the first electronic device is connected to the third electronic device, the first electronic device sends a third message to the third electronic device, the third message being used to instruct the third electronic device to display a notification of playlist recommendations.
[0079] For example, the first electronic device can be a mobile phone, the third electronic device can be a watch, and the playlist recommendation notification displayed on the third electronic device can correspond to: Figure 5 The notification card 5011 is shown in Figure a. In response to an operation on the notification card 5011, the third electronic device may display, for example, a playlist related to the first scene, such as the first playlist.
[0080] In this embodiment, when the first electronic device is in the first scene and none of the media applications installed on the first electronic device are running, if the first electronic device has established a connection with the third electronic device, the first electronic device can push a playlist recommendation notification to the third electronic device to prompt the user to view the playlist related to the first scene on the third electronic device.
[0081] In an optional embodiment of the first aspect, the method further includes: a first electronic device receiving a fourth query request from a third electronic device; in response to receiving the fourth query request, the first electronic device sending a fourth query response to the third electronic device, the fourth query response including playlist information of a first playlist and playlist information of multiple second playlists; the first electronic device receiving a third playback request from the third electronic device, the third playback request including an identifier of the first playlist; in response to receiving the third playback request, the first electronic device launching a first media application and controlling the first media application to play songs in the first playlist.
[0082] For example, in response to an operation that queries a recommended playlist on a third electronic device, the third electronic device obtains information about the recommended playlist from the first electronic device, such as playlist information including a first playlist and multiple second playlists.
[0083] For example, in response to the operation of playing the first playlist on the third electronic device, the third electronic device sends a third playback request to the first electronic device to trigger the first electronic device to launch the first media application corresponding to the first playlist and control the first media application to play the songs in the first playlist.
[0084] In one optional embodiment of the first aspect, the first electronic device displays a first interface, including: when the first electronic device is in a screen-on / screen-locked state, the first electronic device displays a lock screen interface. For example, such as... Figure 2 The lock screen shown in Figure a displays the recommended first playlist.
[0085] In one optional embodiment of the first aspect, the first electronic device displays a first interface, including: when the first electronic device is in a screen-off / locked state, the first electronic device displays a lock screen interface in response to an operation on the first electronic device. For example, the operation on the first electronic device could be picking up a mobile phone or double-tapping the display screen of the first electronic device.
[0086] In one optional embodiment of the first aspect, the first electronic device displays a first interface, including: when the first electronic device is in an unlocked state, in response to an operation performed on the display screen of the first electronic device, the first electronic device displays a control center interface. For example, the operation performed on the display screen of the first electronic device may be a swipe down from the top of the screen, a swipe up from the bottom of the screen, a swipe from the left side of the screen to the right, or a swipe from the right side of the screen to the left.
[0087] In one optional embodiment of the first aspect, the first electronic device displays a first interface, including: when the first electronic device is in an unlocked state, the first electronic device displays the first interface, the first interface including a first window, and the first window displays a first playlist. Exemplarily, the first interface can be a main interface, or any interface (such as the interface of any application installed on the first electronic device). Taking the first interface as the main interface as an example, the first window can be... Figure 3 The notification bar 3011 shown in d or e displays a scene playlist provided by media application A.
[0088] The above embodiments illustrate that when the first electronic device is in a first scene and both the first media application and the second media application are not running, the first electronic device can display a recommended first playlist in a notification bar that pops up on the lock screen, control center, or any other interface, so that the user can quickly trigger the playback of songs in the scene playlist.
[0089] In a second aspect, embodiments of this application provide an electronic device, which includes: one or more processors and a memory; the memory is coupled to one or more processors, and the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform the method as described in any of the first aspects.
[0090] Thirdly, embodiments of this application provide a chip system applied to an electronic device. The chip system includes one or more processors, which are used to invoke computer instructions to cause the electronic device to perform the method as described in any of the first aspects.
[0091] Fourthly, embodiments of this application provide a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any of the first aspects.
[0092] Fifthly, embodiments of this application provide a computer program product, which includes computer program code that, when executed on an electronic device, causes the electronic device to perform the method as described in any of the first aspects.
[0093] It should be understood that the second to fifth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding optional embodiments are similar, and will not be described again. Attached Figure Description
[0094] Figure 1 A scenario illustration of the playlist recommendation method provided in this application embodiment. Figure 1 ;
[0095] Figure 2 Illustration of changes to the mobile phone interface provided in the embodiments of this application Figure 1 ;
[0096] Figure 3 Illustration of changes to the mobile phone interface provided in the embodiments of this application Figure 2 ;
[0097] Figure 4 A scenario illustration of the playlist recommendation method provided in this application embodiment. Figure 2 ;
[0098] Figure 5 A schematic diagram illustrating the changes to the watch interface provided in this application embodiment;
[0099] Figure 6 A scenario illustration of the playlist recommendation method provided in this application embodiment. Figure 3 ;
[0100] Figure 7 This is a schematic diagram illustrating the changes in the vehicle interface provided in the embodiments of this application;
[0101] Figure 8 A schematic diagram illustrating the playlist recommendation rules provided in an embodiment of this application;
[0102] Figure 9 A schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application;
[0103] Figure 10a A schematic diagram of the software architecture of the electronic device provided in the embodiments of this application;
[0104] Figure 10b Based on Figure 10a A schematic diagram of the playlist recommendation method in the software architecture shown;
[0105] Figure 11 A schematic diagram illustrating the process of adding a playlist provided in an embodiment of this application;
[0106] Figure 12 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 1 ;
[0107] Figure 13 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 2 ;
[0108] Figure 14 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 3 ;
[0109] Figure 15 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 4 ;
[0110] Figure 16 Illustration of changes to the mobile phone interface provided in the embodiments of this application Figure 3 ;
[0111] Figure 17 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 5 ;
[0112] Figure 18 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 6 ;
[0113] Figure 19 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 7 ;
[0114] Figure 20 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 8 . Detailed Implementation
[0115] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0116] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0117] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following associated objects are in an "or" relationship. "At least one of the following (kind / items)" or similar expressions refer to any combination of these items, including any combination of single (kind / items) or multiple (kind / items). For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0118] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0119] When a user intends to listen to music, if they want to listen to songs from a specific playlist, they typically need to unlock their phone, launch a media app, select the corresponding playlist within the media app, and then click on any song in the playlist to play. Alternatively, after unlocking their phone, the user can use a swipe gesture to access the control center, which displays a shortcut to launch the media app. Clicking this shortcut allows them to quickly launch the media app and play songs from the most recently played playlist within the media app. The existing audio playback process is rather cumbersome, requiring multiple steps and resulting in a poor user experience.
[0120] In this embodiment, a media application refers to an application capable of playing audio. A playlist provided by a media application may include at least one song.
[0121] Furthermore, users have different audio listening habits in different scenarios. For example, users often listen to pop music while riding the subway, soothing classical music before bed, and jazz music while driving. Therefore, when a user intends to listen to music in a specific scenario, they need to search for a playlist suitable for that scenario within the media application and then select a song from that playlist. This process is cumbersome and time-consuming, resulting in a poor user experience.
[0122] To address the aforementioned issues, this application provides a playlist recommendation method. This method can be applied to any electronic device with audio playback capabilities. By leveraging the scene recognition capabilities of the electronic device and its ability to learn users' audio listening habits, when the electronic device identifies a target scene and the user has a habit of listening to audio in that target scene, the electronic device can display one or more playlists related to that target scene on the interface. This facilitates the user's playback of songs from the playlist, simplifies the user's audio listening process, frees the user from the tedious process of finding and listening to songs, and improves the user experience.
[0123] The aforementioned electronic devices can also be referred to as terminals, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc. These electronic devices can include mobile phones with touchscreens, smart TVs, wearable devices, tablets, computers with wireless transceiver capabilities, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, and wireless terminals in smart homes. This application does not limit the specific technologies or forms of the electronic devices used.
[0124] To facilitate understanding of the solution, the scenarios in which the technical solution applicable to this application is applied will be described first. The following example uses a mobile phone as an example, but this example does not constitute a limitation on the electronic device used in the embodiments of this application.
[0125] Scenario 1: Connecting headphones to a mobile phone
[0126] Figure 1 A scenario illustration of the playlist recommendation method provided in this application embodiment. Figure 1 .like Figure 1 As shown, in this scenario, mobile phone 101 and earphone 102 are connected in communication. The user controls audio playback by operating on mobile phone 101, and earphone 102 is used to play audio data sent by mobile phone 101.
[0127] In one example, the headphones are Bluetooth headphones, connected to the phone via Bluetooth, and the phone sends audio data to the headphones via Bluetooth. In another example, the headphones are wired headphones, connected to the phone via a cable, and the phone controls audio playback and sends audio data to the headphones via the cable.
[0128] It should be noted that, in the embodiments of this application, the user's operations on the mobile phone include, but are not limited to, the user's touch operation on the mobile phone display screen (such as clicking, double-clicking, swiping, etc.), the user's air gesture operation within the range of the mobile phone camera (such as air pressing, air swiping the screen, etc.), the user's voice input, etc. The user can perform one or more of the above operations according to the specific scenario to trigger the mobile phone to perform the corresponding action.
[0129] Generally, when a user wears Bluetooth headphones or plugs wired headphones into their phone, it's assumed the user intends to listen to audio. In other words, if the phone detects a connection between the headphones and the phone, it assumes the user intends to listen to audio. This connection includes either a Bluetooth connection or a wired connection.
[0130] In some embodiments, when the media application on the phone is not running, the phone detects a headphone connection event. After the phone and headphones are successfully connected, a recommended playlist is displayed on the phone's lock screen.
[0131] "Media application in a non-running state" means that the process of that media application does not exist on the electronic device. Conversely, "media application in a running state" means that the process of that media application exists on the electronic device, and this process can run in the foreground or background. For example, if a phone has media application A and media application B installed, "media application in a non-running state" means that both media application A and media application B are not running. "Locked screen state" refers to the state where the screen of an electronic device is turned off or the electronic device is locked. In the locked screen state, the user cannot directly operate the electronic device and needs to unlock the screen to use it. The electronic device can display the lock screen interface when it is in the locked screen state. "Phone detects headphone connection event" means that the phone receives a Bluetooth connection request from the headphones, or the phone detects that the headphones are connected to the phone via a cable.
[0132] In some embodiments, when the phone's media application is not running and the phone is in a screen-off / locked state, if the phone detects a headphone connection event and the headphone is successfully connected, the phone screen will not light up. In response to the user picking up the phone, the phone screen lights up and displays the lock screen, which shows one or more recommended playlists. Screen off means the electronic device's screen is powered off and is in a turned-off state. Screen-off / locked state means the electronic device's screen is turned off and the electronic device is locked.
[0133] In some embodiments, when the phone's media application is not running and the phone is in a screen-off / locked state, if the phone detects a headphone connection event and the headphone is successfully connected, the phone screen will not light up. In response to a user's touch on the phone screen, the phone screen lights up and displays the lock screen, which shows one or more recommended playlists.
[0134] In some embodiments, when the phone's media application is not running and the phone is in a screen-on-lock state, if the phone detects a headphone connection event and the headphone is successfully connected, the phone can display one or more recommended playlists on the lock screen. "Screen on" means the electronic device's screen is powered on and its brightness is higher than a preset brightness. "Screen-on-lock state" means the electronic device's screen brightness is higher than a preset brightness, and the electronic device is locked.
[0135] In some embodiments, when the phone's media application is not running and the phone is in a screen-off / locked state, if the phone detects a headphone connection event and the connection between the phone and the headphone is successful, the phone screen will not light up. In response to the user picking up the phone, the phone screen turns off. Recommended playlists are not displayed when the phone screen is off. Alternatively, in response to user actions on the always-on display screen, such as double-tapping or clicking, the phone screen lights up and displays the lock screen, which shows one or more recommended playlists. Always-on display refers to a function where a portion of the screen remains lit to display some information when the electronic device is locked; for example, the always-on display screen can display information such as time, battery level, and date.
[0136] In some embodiments, when the media application on the phone is not running and the phone is in a screen-off and locked state, the phone detects a headphone connection event. After the phone and headphones are successfully connected, the phone can directly wake up the display, that is, the phone screen lights up, and displays one or more recommended playlists on the lock screen.
[0137] The following is combined Figure 2 This article introduces methods for recommending playlists when the phone screen is on or locked.
[0138] For example, Figure 2 Illustration of changes to the mobile phone interface provided in the embodiments of this application Figure 1 .like Figure 2As shown in 'a', when the phone's media application is not running and the phone is in a locked screen state, the phone detects a headphone connection event. After the phone and headphones successfully connect, the phone displays card 2011 on interface 201. Interface 201 is the phone's lock screen. Card 2011 displays information about recommended playlists, including playlist cover art, playlist title, and playlist source. The playlist source includes scenario-based playlists recommended by the phone, such as scenario-based playlists suggested by YoYo, or historical playlists recommended by the media application.
[0139] In this embodiment of the application, the recommended playlists include two types: scene playlists and historical playlists.
[0140] A scene playlist refers to a playlist of songs played on a mobile phone within a preset time period and in a target scenario (such as on the subway, before bed, or while driving). The preset time period can be one month or one week, etc., and this application embodiment does not limit this. For example, if a user clicks and plays song a from playlist 1 in media application A within a month in a subway scenario, the scene playlist for the subway scenario can include playlist 1. As another example, if a user clicks and plays song b from playlist 2 in media application B within a month in a bedtime scenario, the scene playlist for the bedtime scenario can include playlist 2.
[0141] A playlist history refers to a playlist that a phone has played within a preset time period. For example, if a user played song c from playlist 1 in media application A and song d from playlist 2 in media application B within a month, the playlist history can include both playlist 1 and playlist 2.
[0142] Card 2011 also displays several controls, including a favorites control 2012, a previous track control 2013, a play control 2014, a next track control 2015, and a playlist control 2016. The playlist control 2016 is used to trigger viewing more recommended playlists. Card 2011 is a first-level card for recommended playlists. A first-level card can display only one recommended playlist, which can be a historical playlist or a scene playlist; this embodiment does not impose any limitations on this.
[0143] In this embodiment, the recommended playlist displayed on the first-level card can be a playlist provided by any media application. For example, Figure 2 As shown in a, card 2011 displays a recommended playlist from media application A.
[0144] In some embodiments, if a user wants to view more recommended playlists, they can click on the playlist list control 2016 on card 2011 to access the secondary cards of the recommended playlists.
[0145] For example, such as Figure 2As shown in b, in response to the user's action on the playlist control 2016 on card 2011, the phone displays interface 202, which shows card 2021 and card 2022. Card 2021 is a second-level card. Besides displaying controls such as favorites, previous track, play, and next track, as well as information related to recommended playlists, card 2021 can also display a playback progress bar 2025, a volume slider 2026, and playback order selection controls 2027 (e.g., single track loop, playlist loop, etc.). Card 2022 is a second-level card. Card 2022 can display more recommended playlists than those on the first-level card. The second-level card can display a preset number of recommended playlists, for example, 12. Due to the space limitations of card 2022, such as... Figure 2 As shown in b, card 2022 only displays 3 recommended playlists. Users can swipe within the card 2022 area to view more recommended playlists.
[0146] like Figure 2 As shown in 'c', in response to a user's swipe-up action on card 2022, the phone displays more hidden recommended playlists on card 2022. Simultaneously, a slider 2023 appears on the right edge of card 2022, indicating the position of the currently displayed recommended playlist in the recommended list. The recommended playlists displayed on the secondary card can include playlists provided by multiple media applications. For example, the recommended playlists displayed on card 2022 could be playlists from media application A, playlists from media application B, playlists from media application C, etc.
[0147] In some embodiments, card 2022 may also display a playlist control 2016 (not shown) as on card 2011. For example, in response to the playlist control 2016 acting on card 2022, the mobile phone may display a new card (not shown) on interface 202, which is used to display, in addition to... Figure 2 The card shown in b contains more playlists than the three playlists from 2022.
[0148] In some embodiments, if a user wants to play a recommended playlist on a secondary card, they can click on the cover of a playlist in the playlist list on the secondary card to trigger the playback of songs in that playlist.
[0149] For example, such as Figure 2As shown by d and e in the diagram, in response to the user's action on the cover of the recommended playlist 2024 on card 2022, the phone launches the media application B corresponding to the recommended playlist 2024 and plays the first song or any song in the recommended playlist 2024. Simultaneously, the phone displays interface 203, which shows card 2031. Card 2031 displays song information from the recommended playlist 2024, including the song title, artist information, and cover art of the first song or any song in the recommended playlist 2024.
[0150] In some embodiments, such as Figure 2 As shown in a, in response to the user's operation on the playback control 2014 on card 2011, the mobile phone launches media application A and plays the first song or any song in playlist 1 of media application A. Simultaneously, as... Figure 2 As shown in f, the phone can display card 2041 instead of card 2011. Card 2041 displays information about the song currently playing in playlist 1 of media application A, such as the song title, artist information, and album art. Card 2041 can also display multiple controls, such as a favorites control, a previous track control, a play / pause control, a next track control, a playback progress bar, a volume slider, and a playback order selection control.
[0151] In some embodiments, in response to a user's action on the cover of the recommended playlist 2024 on card 2022, the phone may no longer display cards 2021 and 2022.
[0152] The above Figure 2 The interface of the phone when the screen is on or locked is explained below. Figure 3 This section explains the interface of a mobile phone in unlocked mode. Unlocked mode refers to the state where the screen of an electronic device is unlocked. The electronic device enters unlocked mode after entering an unlock password, fingerprint, or facial recognition.
[0153] In some embodiments, when the phone's media application is not running and the phone is unlocked, the phone detects a headphone connection event. After the phone and headphones are successfully connected, a recommended playlist is displayed in the phone's control center.
[0154] For example, Figure 3 Illustration of changes to the mobile phone interface provided in the embodiments of this application Figure 2 .like Figure 3As shown in 'a', when the phone is unlocked, for example, currently displaying interface 301 (the main interface) and the phone's media applications are not running, the phone detects a headphone connection event. In response to the user's swipe down from the top of interface 301, the phone displays interface 302, which is the phone's control center interface. Interface 302 displays cards 3021 and 2011. Card 3021 includes controls for enabling WLAN, Bluetooth, mobile data, mute, auto-rotate, etc., as well as a brightness adjustment slider. Card 2011 displays recommended playlist information.
[0155] In some embodiments, if a user wants to view more recommended playlists, they can click on the playlist list control 2016 on card 2011. For example, as shown... Figure 3 As shown in b, in response to the user's action on control 2016, the phone can display interface 303, which displays card 2021 and card 2022. The display and changes of card 2022 on interface 303 can be seen in [reference]. Figure 2 This will not be elaborated upon here.
[0156] In some embodiments, when the phone's media application is not running and the phone is unlocked, the phone detects a headphone connection event. After the phone and headphones are successfully connected, a notification bar pops up on the phone's current display screen, displaying a recommended playlist.
[0157] For example, continue to refer to Figure 3 The phone is currently displaying error code 301. Figure 3 As shown in 'a', when the phone's media application is not running, the phone detects a headphone connection event. After the phone and headphone are successfully connected, the phone can display a notification bar 3011 at the top of interface 301, as shown in 'a'. Figure 3 As shown in d, notification bar 3011 displays playlist information for recommended playlists and multiple controls. The content displayed in notification bar 3011 can be combined with... Figure 2 The card 2011 is similar and will not be described in detail here. In response to the user's operation on the playback control 3012 on the notification bar 3011, the phone launches the media application corresponding to the recommended playlist and plays the songs in the recommended playlist.
[0158] In some embodiments, the notification bar 3011 may be located in the center of the interface 301, such as... Figure 3 As shown in e.
[0159] In some embodiments, such as Figure 3 As shown in d, the notification bar 3011 may include a close control 3013. In response to the user's action on the close control 3013, the phone closes the notification bar 3011 and no longer displays the recommended playlist.
[0160] In some embodiments, after the phone closes the notification bar 3011, in response to the user's swipe down from the top of the interface 301, the phone determines whether the timer has expired. If the timer has not expired, the phone displays interface 302. The timer is a timer configured for pushing playlists. Within the timer's duration, the user can access interface 302 from any interface by swiping down from the top of the interface to view the card 2011 on interface 302.
[0161] Scenario 2: Connecting the watch and earphones to the phone
[0162] Figure 4 A scenario illustration of the playlist recommendation method provided in this application embodiment. Figure 2 .like Figure 4 As shown, in this scenario, mobile phone 101 is communicatively connected to earphone 102 and watch 103. The user controls audio playback on earphone 102 via operations on mobile phone 101, or via operations on watch 103. Earphone 102 plays audio data sent by mobile phone 101. Typically, mobile phone 101 and watch 103 are connected via Bluetooth.
[0163] In some embodiments, when the phone's media application is not running and the phone is connected to the watch, the phone detects a headphone connection event. After the phone and headphone are successfully connected, the phone can send a recommended playlist to the watch. Upon receiving the recommended playlist from the phone, the watch displays the recommended playlist or a notification about it.
[0164] In some embodiments, when the phone's media application is not running and the phone is connected to headphones, the phone detects a connection event with the watch and can send a recommended playlist to the watch. After receiving the recommended playlist from the phone, the watch displays the recommended playlist or a notification about it.
[0165] It should be noted that the function of sending recommended playlists from the phone to the watch is optional. If the user does not enable this function, the phone will not send recommended playlists to the watch.
[0166] The following is combined Figure 5 This article introduces methods for recommending playlists when connecting a mobile phone to a watch and headphones.
[0167] For example, Figure 5 This is a schematic diagram illustrating the changes to the watch interface provided in an embodiment of this application. For example... Figure 5As shown in Figure 'a', the phone's media application is not running. When the phone is connected to the watch, the phone detects a headphone connection event. After the phone and headphone are successfully connected, the phone can send a recommended playlist to the watch. After receiving the recommended playlist from the phone, the watch can display interface 501. At the bottom of interface 501, a notification card 5011 is displayed. The notification card 5011 can display the phone icon and text information (such as "Playlist Recommendation") to indicate that the notification came from the phone.
[0168] In some embodiments, in response to a user's action on notification card 5011, the watch can display interface 502, which shows a recommended playlist list. The recommended playlist list includes multiple playlists sent from the phone to the watch, such as... Figure 5 As shown in b, interface 502 displays recommended playlists 1, 2, and 3.
[0169] In some embodiments, in response to a user's action on playlist 1 in interface 502, such as clicking the control 5021 corresponding to playlist 1 in interface 502, the watch sends a playback control command to the mobile phone. The playback control command is used to control the mobile phone to open the media application corresponding to playlist 1 and play the first song or any song in playlist 1. At the same time, the watch can display as shown below. Figure 5 The interface of the watch player shown in 'c' is 503.
[0170] In some embodiments, after the mobile phone sends a recommended playlist to the watch, if the user does not view the notification of the recommended playlist within a preset time period, the notification card 5011 will no longer be displayed at the bottom of the interface 501. Figure 5 As shown in d.
[0171] In some embodiments, users can access notifications for recommended playlists by manipulating the watch face. The watch face refers to the panel on a watch used to display information, such as time, date, and notifications. For example, a user can swipe down from the top of interface 501 to view historical notifications. Figure 5 As shown in d, in response to the user's operation on interface 501, the watch can display as follows: Figure 5 As shown in 'e', interface 504 includes multiple historical notifications, including a recommended playlist notification 5041 and other notifications. In response to a user's action on notification 5041, the watch can display interface 502. Subsequent operations are similar and will not be described further here.
[0172] Scenario 3: Connecting your phone to the car's infotainment system
[0173] Figure 6 A scenario illustration of the playlist recommendation method provided in this application embodiment. Figure 3 .like Figure 6As shown, in this scenario, mobile phone 101 is communicatively connected to vehicle infotainment system 104, and vehicle infotainment system 104 is communicatively connected to in-vehicle speakers. The user controls audio playback via operations on mobile phone 101 or vehicle infotainment system 104. The in-vehicle speakers can play audio data, which can be sent from mobile phone 101 to vehicle infotainment system 104 and then from vehicle infotainment system 104 to the in-vehicle speakers. Typically, when the mobile phone detects a connection to the vehicle infotainment system, it assumes the user intends to listen to audio.
[0174] This embodiment does not limit the connection method between the mobile phone and the vehicle's infotainment system, nor does it limit the connection method between the vehicle's infotainment system and the car's speakers. For example, the mobile phone and the vehicle's infotainment system can establish a wireless connection via Bluetooth, Wireless Fidelity (Wi-Fi), connecting to the same cloud account, or a trust loop, or they can establish a wired connection via Universal Serial Bus (USB). The vehicle's infotainment system and the car's speakers can establish a wireless connection via Bluetooth or Wi-Fi, or they can establish a wired connection via an audio cable or USB.
[0175] Trust rings are a technical solution based on an identity authentication system that enables trusted interconnection of multiple devices across systems, facilitating the flow and sharing of services between devices. In scenarios where device connections are established based on trust rings, electronic devices logged into device accounts can authenticate with the vehicle's infotainment system using personal identification numbers (PINs). For example, consider PIN-based trust ring authentication. A mobile phone can send a PIN to the vehicle's infotainment system via broadcast, displaying a prompt for PIN verification. Upon receiving the PIN, the vehicle's infotainment system displays it and sends a response message back to the phone indicating receipt. Responding to the user's input of the PIN in the prompt, the mobile phone and vehicle's infotainment system complete device authentication. After successful authentication, the vehicle's infotainment system and the mobile phone are within the same trust ring. When a mobile phone logged into a device account approaches the vehicle's infotainment system again, the two devices automatically establish a network connection based on the trust ring and enable communication within the trust ring.
[0176] In some embodiments, when the phone's media application is not running, the phone detects a connection event with the vehicle's infotainment system. After the phone successfully connects to the system, it can display recommended playlists on the lock screen. A phone detecting a connection event with the vehicle's infotainment system means either the phone sends a connection request to the system and receives a connection success message from the system, or the phone detects that it is connected to the system via a cable.
[0177] In some embodiments, when the media application on the mobile phone is not running and the mobile phone is unlocked, the mobile phone detects a connection event with the vehicle system. After the mobile phone successfully connects to the vehicle system, the mobile phone can display a recommended playlist in the control center.
[0178] In some embodiments, when the phone's media application is not running and the phone is unlocked, the phone detects a connection event with the vehicle's infotainment system. After the phone successfully connects to the vehicle's infotainment system, the phone can pop up a notification bar on the current display screen, which displays a recommended playlist.
[0179] In some embodiments, when the mobile phone's media application is not running, the mobile phone detects a connection event with the vehicle's infotainment system. After the connection between the mobile phone and the vehicle's infotainment system is successful, the mobile phone can send a recommended playlist to the vehicle's infotainment system. After receiving the recommended playlist from the mobile phone, the vehicle's infotainment system displays the recommended playlist.
[0180] The following is combined Figure 7 This article introduces the method for recommending playlists when the car's infotainment system is connected to a mobile phone.
[0181] For example, Figure 7 This is a schematic diagram illustrating the changes to the vehicle infotainment interface provided in this embodiment. The mobile phone has one or more media applications installed. One media application can be media application A, or multiple media applications can include media application A. When all one or more media applications are not running, the mobile phone detects a connection event to the vehicle infotainment system. After successful connection, the mobile phone can send playlist 1 from media application A to the vehicle infotainment system. Playlist 1 can be a scene-based playlist provided by media application A for driving scenarios.
[0182] In some embodiments, in response to receiving a playlist 1 from media application A sent by a mobile phone, the vehicle's infotainment system can display interface 701, which can display card 7011. Card 7011 displays the playlist information of playlist 1 from media application A, such as... Figure 7 As shown in a. Card 7011 is similar to card 2011; see the previous text for a detailed description.
[0183] In some embodiments, in response to a user's action on the playlist control 7012 on card 7011, such as Figure 7 As shown in b, the vehicle system can display interface 702, which can display card 7021. Card 7021 displays more recommended playlists, such as playlist 2 of media application A, playlist 1 and playlist 2 of media application B, etc.
[0184] In some embodiments, the spatial area of card 7022 is limited, such as Figure 7 As shown in b, card 7022 only displays 3 recommended playlists. Users can swipe up and down or left and right in card 7021 to view more hidden playlists.
[0185] For example, in response to a user swiping up or left on card 7021, the vehicle system displays a hidden list of more recommended playlists on card 7021 (not shown). Optionally, in response to a user swiping up or left on card 7021, the vehicle system may display a slider on the left or bottom edge of card 7021. The slider indicates the position of the currently displayed recommended playlist in the card's recommended list (not shown).
[0186] In some embodiments, in response to a user's operation on the playback control 7013 on the card 7011, or in response to a user's operation on the playlist cover of the card 7011, the vehicle system sends a playback control command to the mobile phone. The playback control command is used to control the mobile phone to open the media application A and play the first song or any song in the playlist 1 of the media application A.
[0187] In some embodiments, after receiving a playback control command from the vehicle's infotainment system, the mobile phone can send the audio data of the first song or any song from playlist 1 to the system. Upon receiving the audio data of the first song or any song from playlist 1 from the mobile phone, the vehicle's infotainment system can send the audio data to the in-vehicle speakers, which then play the audio data. Simultaneously, the system can display interface 703, which displays card 7031. Card 7031 displays song information from playlist 1 of media application A, such as... Figure 7 As shown in c in the figure.
[0188] In some embodiments, when the media application on the mobile phone is not running, the mobile phone detects a connection event with the vehicle's infotainment system. After the connection between the mobile phone and the vehicle's infotainment system is successful, the mobile phone can send multiple recommended playlists to the vehicle's infotainment system. These recommended playlists can be for driving scenarios and can come from one or more media applications. After receiving the multiple recommended playlists from the mobile phone, the vehicle's infotainment system can display interface 702, which displays card 7021. Card 7021 displays the multiple recommended playlists, such as... Figure 7 As shown in b in the figure.
[0189] In some embodiments, in response to a user's operation on the playlist control 7012 on card 7011, the vehicle system can simultaneously display card 7021 and the expanded card 7011 (not shown). The expanded card 7011 can be referenced to card 7021.
[0190] The foregoing embodiments describe playlist recommendation methods and interface operation processes in different scenarios. Mobile phones can push recommended playlists to the phone's interface, or to watches or in-vehicle systems connected to the phone. Recommended playlists include scene-specific playlists and / or historical playlists. The playlist recommendation rules are introduced below with reference to several specific embodiments.
[0191] In some embodiments, when the media application on the phone is not running, the phone detects a headphone connection event. After the phone and headphones are successfully connected, the phone can display one or more historical playlists on the lock screen, control center, or notification bar, allowing users to easily select historical playlists.
[0192] In some embodiments, when the phone's media application is not running, the phone detects a headphone connection event. After the phone and headphones successfully connect, the phone obtains multiple historical playlists. The phone can first push one historical playlist to the lock screen, control center, or notification bar. This is in response to a user-triggered action to view more historical playlists, such as... Figure 2 The user action shown in Figure a on card 2011, applied to the playlist control 2016, displays multiple historical playlists on the phone, excluding the previously pushed playlists. These multiple historical playlists can originate from one or more media applications.
[0193] For example, such as Figure 8 As shown in Figure a, the recommendation rules for historical playlists can be any of the following rules:
[0194] 1) The phone first pushes the most recently played historical playlist. In response to the user's action of viewing more historical playlists, the phone can display multiple historical playlists pushed afterward in order of the most recent time point, based on the start time point of the playlist in the playlist information.
[0195] For example, a user uses their mobile phone to play songs from playlist 1 in media application A, playlist 2 in media application B, and playlist 3 in media application B at 8:00 AM, 12:00 PM, and 4:00 PM respectively. The phone records the playlist information for playlist 1, playlist 2, and playlist 3 respectively. The playlist information for playlist 1 includes the start time of playlist 1 as 8:00 AM, the playlist information for playlist 2 includes the start time of playlist 2 as 12:00 PM, and the playlist information for playlist 3 includes the start time of playlist 3. Subsequently, the user uses their mobile phone to play the songs from playlist 1 in media application A again at 5:00 PM. The phone updates the song information for playlist 1, and the updated playlist information includes the start time of playlist 1 as 5:00 PM.
[0196] Based on the aforementioned playback history, at 7 PM, when all media applications on the phone were not running, the phone detected a headphone connection event. After the phone and headphones successfully connected, the phone could first push playlist 1 to the lock screen, control center, or notification bar. In response to the user's action of viewing more historical playlists, the phone displayed playlist 3 and playlist 2, with playlist 3 appearing before playlist 2.
[0197] 2) The phone first pushes the historical playlist with the longest cumulative playback time. In response to the user's action of viewing more historical playlists, the phone can display multiple historical playlists that are pushed afterward, according to the cumulative playback time of the playlists within a preset time period, in descending order of cumulative playback time.
[0198] The cumulative playback time of a playlist refers to the total playback time of all songs in the playlist within a preset time period. For example, taking playlist 1 of media application A as an example, with a preset time period of one month, playlist 1 includes 3 songs, denoted as song 1 to song 3. Within one month, the user plays song 1 for 10 minutes, song 2 for 5 minutes, and song 3 for 15 minutes using their mobile phone. The cumulative playback time of the songs in playlist 1 is the sum of the playback times of the three songs, which is 30 minutes.
[0199] 3) The phone first pushes the most frequently played historical playlist. In response to the user's action of viewing more historical playlists, the phone can display multiple historical playlists pushed afterward in descending order of play frequency.
[0200] Playlist playback frequency refers to the total number of times a playlist is played within a preset time period. For example, at the beginning of the preset time period, if a user plays a song from playlist 1 of media application A using their phone, the playback count for playlist 1 is recorded as 1. Subsequently, if the user plays a song from playlist 2 of media application A using their phone, the playback count for playlist 2 is also recorded as 1. Then, if the user plays a song from playlist 1 again using their phone, the playback count for playlist 1 is incremented by one. The media application can use this counting rule to count the playback count of each playlist in media application A within the preset time period. It should be understood that at the start of the next preset time period, the playback count for each playlist is reset to zero.
[0201] In some embodiments, when the media application on the phone is not running, the phone detects a headphone connection event. After the phone and headphone are successfully connected, the phone first identifies the scene. If the phone identifies that the user is in the target scene (e.g., on the subway, before going to bed, or while driving), and the user has a habit of listening to audio in the target scene, the phone can display one or more scene playlists on the lock screen, control center, or notification bar, so that the user can easily select scene playlists.
[0202] In other embodiments, when the media application on the phone is not running, the phone detects a headphone connection event. After the phone and headphone are successfully connected, the phone first identifies the scene. If the phone identifies that the user is in the target scene (e.g., on the subway, before going to bed, or while driving) and the user has a habit of listening to audio in the target scene, the phone can display one or more scene songs on the lock screen, control center, or notification bar.
[0203] Scene songs refer to songs related to a scene. For example, in this embodiment, if the mobile phone recognizes a subway scene and the user has a habit of listening to audio in the subway scene, the mobile phone can display one or more songs related to the subway scene on the lock screen, control center or notification bar. The song can be the song that the user plays most frequently in the subway scene within a preset time period, or the song with the longest playback time, or the song that was played most recently.
[0204] It should be understood that since different users have different habits of using their mobile phones in different scenarios, when the mobile phone recognizes the target scenario, it can further determine whether the user has a habit of listening to audio in the target scenario. When the mobile phone determines that the user has a habit of listening to audio in the target scenario, the mobile phone can display one or more scenario playlists on the lock screen, control center or notification bar.
[0205] For example, scene recognition can be determined by combining the phone's current location information, time information, and connection status between the phone and external devices (such as in-vehicle systems). For instance, if a user is along a subway line between 8:00 AM and 9:00 AM and between 5:00 PM and 6:00 PM on weekdays, the phone can determine that it is currently in a subway scene based on these time periods and location information. Similarly, if a user is in their bedroom between 10:00 PM and 11:00 PM, the phone can determine that it is currently in a bedtime scene based on this time period and location information. Furthermore, when the phone detects a connection event to an in-vehicle system, it can determine that it is currently in a driving scene. Whether a user has a habit of listening to audio in a target scene can be learned through pre-installed algorithms on the phone; for example, learning algorithms can be pre-installed in the phone's smart services.
[0206] In some embodiments, when the phone's media application is not running, the phone detects a headphone connection event. After the phone and headphones are successfully connected, the phone can first push a scene playlist on the lock screen, control center, or notification bar in response to the user's action of viewing more recommended playlists, for example... Figure 2 As shown in Figure a, the user's operation on the playlist control 2016 of card 2011 results in the phone displaying multiple historical playlists other than the first scene playlist pushed, or the phone displaying multiple songs from the first scene playlist pushed.
[0207] In this embodiment, as Figure 8 As shown in b, the recommendation rule for scene playlists can be that the mobile phone pushes a scene playlist provided by the media application with the longest cumulative playback time within a preset time period.
[0208] The cumulative playback time of a media application refers to the total playback time of songs provided by the media application when the phone is turned on within a preset time period. For example, taking a subway scenario, if a phone has media application A and media application B installed, and within a month, the user plays songs from media application A for a total of 3 hours and plays songs from media application B for a total of 1 hour, then the first subway scenario playlist pushed to the phone could be a subway scenario playlist provided by media application A.
[0209] In some embodiments, media application A provides multiple playlists for subway scenarios. A mobile phone can determine whether a playlist belongs to a subway scenario provided by media application A by reading the playlist identifier in the playlist information. For example, the subway scenario playlists provided by media application A include playlist 1, playlist 2, and playlist 3, with cumulative playback times of 30 minutes, 10 minutes, and 8 minutes respectively within a month. Furthermore, the mobile phone can prioritize pushing the subway scenario playlist 1, which has the longest cumulative playback time provided by media application A, based on the cumulative playback time of the subway scenario playlists provided by media application A.
[0210] In other embodiments, media application A provides a playlist for a subway scenario, which may be the most popular playlist in the subway scenario.
[0211] In this embodiment, the recommendation rules for multiple historical playlists pushed later can be referred to the previous text, and will not be repeated here.
[0212] In some embodiments, when the phone's media application is not running, the phone detects a headphone connection event. After the phone and headphones are successfully connected, the phone can first push a scene playlist on the lock screen, control center, or notification bar in response to the user's action of viewing more recommended playlists, for example... Figure 2 The user action shown in Figure a on card 2011, applied to the playlist control 2016, displays multiple scene playlists on the phone, in addition to the previously pushed scene playlist. These multiple scene playlists can originate from one or more media applications.
[0213] In this embodiment, the recommendation rule for the scene playlist can be any of the following rules:
[0214] 1) The phone first pushes the scene playlist with the longest cumulative playback time. In response to the user's operation of viewing more scene playlists, the phone can display multiple scene playlists that are pushed afterward, according to the cumulative playback time of the playlists within the preset time period, in descending order of the cumulative playback time of the playlists.
[0215] 2) The phone first pushes the playlist of the scene with the highest playback frequency. In response to the user's operation of viewing more playlists of scenes, the phone can display multiple playlists of scenes that are pushed afterward, according to the playback frequency of the playlists, in descending order of playback frequency.
[0216] To better understand the embodiments of this application, the hardware and software structure of the electronic device of this application will be described below.
[0217] Figure 9 This is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application. Figure 9 As shown, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0218] The structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In some embodiments, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0219] Processor 110 may include one or more processing units. These processing units may be independent devices or integrated within one or more processors. In some embodiments, electronic device 100 may also include one or more processors 110. Processor 110 may also include memory for storing instructions and data.
[0220] In some embodiments, the processor 110 may include one or more interfaces. It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In some embodiments, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0221] The charging management module 140 receives charging input from the charger. While charging the battery 142, the charging management module 140 can also supply power to the electronic device 100 through the power management module 141.
[0222] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, display 194, camera 193, and wireless communication module 160, etc.
[0223] The wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. In this embodiment, wireless communication module 160 may include Bluetooth communication module, Wi-Fi communication module, etc. The electronic device can communicate with external devices through Bluetooth communication module, and the electronic device can also communicate with external devices through Wi-Fi communication module. For example, a mobile phone can establish a connection with headphones or vehicle system through Bluetooth communication module, and a mobile phone can also establish a connection with vehicle system through Wi-Fi communication module.
[0224] Electronic device 100 can realize display functions through GPU, display screen 194, and application processor. GPU is a microprocessor for image processing, connected to display screen 194 and application processor. GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs, which execute instructions to generate or modify display information.
[0225] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. In some embodiments, electronic device 100 may include one or N displays screens 194, where N is a positive integer greater than 1.
[0226] Electronic device 100 can perform shooting functions through ISP, one or more cameras 193, video codec, GPU, one or more displays 194, and application processor.
[0227] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, data files such as music, photos, and videos can be stored on the external memory card.
[0228] Internal memory 121 can be used to store one or more computer programs, including instructions. Internal memory 121 may include a program storage area and a data storage area.
[0229] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0230] The sensor module 180 may include one or more of the following, such as: pressure sensor, gyroscope sensor, barometric pressure sensor, magnetic sensor, accelerometer, distance sensor, proximity sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor, or bone conduction sensor, etc.
[0231] Buttons 190 include a power button, volume buttons, etc. The SIM card interface 195 is used to connect a SIM card.
[0232] In addition to the aforementioned components, electronic devices also run an operating system. Examples include iOS, Android, or Windows. Applications can be installed and run on this operating system.
[0233] The software system of an electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application uses the Android system as an example of a layered architecture software system to illustrate the software structure of an electronic device. Figure 10a This is a schematic diagram of the software architecture of an electronic device provided in an embodiment of this application. The layered architecture divides the software system of the electronic device into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. (Refer to...) Figure 10a Electronic devices consist of: the application layer, the system service layer, and the kernel layer.
[0234] The application layer includes media applications, in-vehicle infotainment applications, an audio control module, a system user interface (UI), and a screen management module. Media applications can be system-provided or third-party applications capable of playing audio, such as music and audiobooks. In-vehicle infotainment applications are responsible for communication and interaction with the vehicle's infotainment system; these can also be called smartphone-vehicle interconnection applications or smart mobility applications. The audio control module stores playlist information written by the media applications. When the system UI, in-vehicle infotainment system, or smartwatch displays recommended playlists, the audio control module provides this information. The system UI displays the recommended playlists and can control the media applications to play songs from the user-selected playlists via the media session service. The screen management module records the screen state of the electronic device's display, including on / off lock state, off / unlocked state, and unlocked state. When the screen state changes, such as switching from on / off lock state to unlocked state, the screen management module notifies the audio control module so that the audio control module can cancel the display of recommended playlists on the lock screen.
[0235] In some embodiments, the audio control module includes a media content providing module, a device sensing module, an audio recommendation management module, and a device access management module. The media content providing module is responsible for storing playlist information from media applications and can write this information to its playlist database. The device sensing module is responsible for monitoring the connection status between external devices such as headphones or in-vehicle systems and the electronic device. The audio recommendation management module is responsible for receiving playlist recommendation notifications from smart services and deciding whether to trigger the display of recommended playlists. For example, if the audio recommendation management module knows that none of the media applications on the electronic device are running and the electronic device is in a screen-on / screen-locked state, it can obtain recommended playlists from the media content providing module and send them to the system UI so that the system UI can display them. The device access management module is responsible for access management, for example, by a smartwatch. The device access management module integrates WearKit and can communicate with the smartwatch via WearKit to send recommended playlists to the smartwatch. After receiving a playback control command from the smartwatch, the device access management module can send the command to the media session service so that the media session service can control the media applications to play songs from the recommended playlists.
[0236] In some embodiments, the audio control module may further include a notification card management module (not shown). After determining that the display of a recommended playlist is triggered, the audio recommendation management module may send a notification message to the notification card management module, so that the notification card management module can obtain the recommended playlist from the media content providing module and send the recommended playlist to the system UI.
[0237] The system service layer includes audio engine services, intelligent services, and media session services. The audio engine service includes an audio recommendation service. After a media application starts, it can subscribe to the audio recommendation service so that when the media application plays songs from a playlist, the audio engine service writes the playlist information to the media content provision module, providing data support for subsequent playlist recommendations. The audio engine service is primarily responsible for sending playlist information from the media application to the audio control module. For example, when the media application starts and plays songs from a playlist, the audio service receives the playlist information from the media application and sends it to the media content provision module in the audio control module so that the media content provision module can write the playlist information. The intelligent service is mainly responsible for scene recognition, such as whether the user has a habit of listening to audio in a given scene, to trigger playlist recommendations. The media session service is mainly responsible for sending playback control commands from the system UI, vehicle system, or smartwatch to control the media application to play songs from the recommended playlists selected by the user.
[0238] The kernel layer is the layer between hardware and software. The kernel layer includes, for example, display drivers, camera drivers, audio drivers, sensor drivers, Bluetooth drivers, and WiFi drivers; however, this application embodiment does not impose any limitations on this.
[0239] Understandable, Figure 10a The modules included in each layer shown are those involved in the embodiments of this application. The modules included in each layer do not constitute a limitation on the structure of the electronic device and the hierarchy of module deployment. In some embodiments, the electronic device may include more or fewer layers than shown, and each layer may include more or fewer components; this application does not impose any limitations.
[0240] based on Figure 10a The software architecture of the electronic device shown below, in conjunction with... Figure 10b This application introduces a playlist recommendation method provided in its embodiments. (Refer to...) Figure 10b The electronic device can connect to the car's infotainment system or a watch. The interaction process of each module in the electronic device mainly includes: adding a playlist, displaying playlist recommendations, and playing the playlist. Each process is explained below.
[0241] In some embodiments, the process of adding a playlist mainly includes the following steps:
[0242] Step 1-1: After the media application starts, it plays the playlist and sends the playlist information to the audio engine service. The media application integrates AudioKit, which allows it to send playlist information to the audio engine service.
[0243] Steps 1-2: The audio engine service writes the playlist information to the audio control module. The audio engine service sets up a playlist writing interface, through which it receives playlist information sent by the media application and writes the playlist information to the audio control module.
[0244] In some embodiments, the playlist recommendation display process mainly includes the following steps:
[0245] Step 2-1: When the intelligent service identifies the target scene and obtains an identifier indicating that the user has a habit of listening to audio in that scene, the intelligent service sends a playlist recommendation notification to the audio control module. This playlist recommendation notification can be used to trigger the audio control module to decide whether to display the recommended playlist.
[0246] The intelligent service is responsible for identifying scenarios and learning whether users have a habit of listening to audio in target scenarios (such as on the subway, before bed, or while driving). For example, the intelligent service can set a label for the target scenario based on the number of times the user listens to audio in the target scenario, in order to identify whether the user has a habit of listening to audio in the target scenario.
[0247] For example, if a user listens to audio in a target scenario more than or equal to a preset number of times (e.g., 5 times) within a preset time period, the smart service can set a first identifier for that target scenario. This first identifier indicates that the user has a habit of listening to audio in the target scenario, and it can be 1. Conversely, if a user listens to audio in a target scenario less than the preset number of times (e.g., 5 times) within a preset time period, the smart service can set a second identifier for that target scenario. This second identifier indicates that the user does not have a habit of listening to audio in the target scenario, and it can be 0.
[0248] For example, in a subway scenario, if the system detects that a user listens to audio more than 5 times within a preset time period, the smart service sets a first identifier for the subway scenario and stores the correspondence between the subway scenario and the first identifier. In a bedtime scenario, if the system detects that a user listens to audio less than 5 times within a preset time period, the smart service sets a second identifier for the bedtime scenario and stores the correspondence between the bedtime scenario and the second identifier.
[0249] Step 2-2: The audio control module decides whether to trigger the display of the recommended playlist.
[0250] In some embodiments, the audio control module may decide whether to trigger the display of recommended playlists based on factors such as the screen status of the display and whether media applications are open. For example, if the electronic device has media application A and media application B installed, and neither media application A nor media application B is open and the electronic device is in a screen-on / locked state, the audio control module will trigger the display of recommended playlists.
[0251] In one example, if the audio control module determines that a recommended playlist should be displayed, and the electronic device is connected to the vehicle's infotainment system, the following can be executed:
[0252] Step 2-3a: The audio control module sends a recommended playlist to the vehicle's infotainment system.
[0253] Step 2-3b: The car infotainment system displays a recommended playlist.
[0254] In one example, if the audio control module determines that a recommended playlist should be displayed, and the electronic device is connected to the watch, the following can be executed:
[0255] Step 2-4a: The audio control module sends a recommended playlist to the watch.
[0256] Step 2-4b: The watch displays a recommended playlist.
[0257] In one example, if the audio control module determines that displaying the recommended playlist is to be triggered, it can execute:
[0258] Step 2-5a: The audio control module sends a recommended playlist to the system UI.
[0259] Step 2-5b: The system UI displays the recommended playlist.
[0260] In some embodiments, the playlist playback process mainly includes the following steps:
[0261] Step 3-1: The vehicle infotainment system sends a playback control command to the media session service. In response to the user clicking to play the recommended playlist on the vehicle infotainment system interface, the vehicle infotainment system sends a playback control command to the media session service.
[0262] Step 3-2: The watch sends a playback control command to the media session service. In response to the user clicking to play the recommended playlist on the watch interface, the watch sends a playback control command to the media session service.
[0263] Step 3-3: The system UI sends a play control command to the media session service. In response to the user's action of clicking to play the recommended playlist on the electronic device's system UI, the system UI sends a play control command to the media session service.
[0264] In this embodiment, the execution order of steps 3-1, 3-2, and 3-3 is not limited. In response to the broadcast control command in step 3-1, step 3-2, or step 3-3, the following can be executed:
[0265] Steps 3-4: The media session service controls the media application to play songs from the recommended playlist.
[0266] The above embodiments illustrate the overall process of an electronic device from adding a playlist, recommending a playlist, and playing a playlist.
[0267] The following is combined Figures 11 to 20The processes of the above embodiments are described in detail. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0268] (a) Adding playlist information to electronic devices
[0269] Before recommending playlists, electronic devices pre-store playlist information provided by media applications, such as historical playlists and / or scene playlists that the user has played using media applications within a preset time period. The following section combines... Figure 11 This section explains the process of adding playlist information to electronic devices.
[0270] For example, Figure 11 This is a schematic diagram illustrating the process of adding a playlist provided in an embodiment of this application. Figure 11 As shown, the process includes:
[0271] S1101. After the media application is enabled, the media application subscribes to the audio recommendation service from the audio engine service.
[0272] S1102, The audio engine service returns a subscription success message to the media application.
[0273] For example, taking a media application as an example, such as a music application... Figure 3 As shown in Figure a, in response to the user's action on the music application icon 3014, the electronic device launches the music application, and the music application subscribes to the audio recommendation service from the audio engine service. It should be understood that after subscribing to the audio recommendation service, the audio engine service can write playlist information to the media content provision module when songs in the playlist are played in the media application, providing data support for subsequent playlist recommendations.
[0274] S1103, The media application plays songs from the playlist and sends playlist information to the audio engine service.
[0275] Once the media application is launched, in response to the user's action of playing a song from a playlist provided by the media application, the media application sends playlist information to the audio engine service.
[0276] Playlist information includes, but is not limited to, playlist title, playlist cover, playlist icon, and the time when the playlist started playing. The start time is used to sort the playback order of the playlists. For example, if a user clicks to play a song in playlist 1 at 13:01, a song in playlist 2 at 13:20, and a song in playlist 3 at 14:00, the playback order from most recent to oldest is: playlist 3, playlist 2, playlist 1. When recommending playlists later, the most recently played playlist can be recommended based on the playback order, such as playlist 3.
[0277] Optionally, the playlist information may also include an application identifier to indicate the media application corresponding to the playlist.
[0278] Optionally, the playlist information may also include scene identifiers to mark the scenes in which the playlist is suitable for playing, such as on the subway, before bed, or while driving.
[0279] In one example, when a media application switches to another song in a playlist after playing a song in that playlist, the media application may not send playlist information to the audio engine service.
[0280] For example, at time t, after the media application starts, it plays song 1 from playlist 1 and sends playlist 1 information to the audio engine service. At time t+1, the media application plays song 2 from playlist 1, but does not send playlist 1 information to the audio engine service. At time t+2, the media application plays song 3 from playlist 2 and sends playlist 3 information to the audio engine service.
[0281] In one example, when a media application plays a song in playlist 1, switches to playlist 2, and then switches back to playlist 1 from playlist 2, the audio engine service can send updated playlist 1 information to the media content providing module to update the time point at which the song in playlist 1 started playing.
[0282] For example, at time t, in response to a user's action of playing song 1 in playlist 1 of media application A, media application A sends information about playlist 1 to the audio engine service, such as the title, cover art, playlist identifier, and the time when song 1 started playing. At time t+1, in response to a user's action of switching to song 2 in playlist 2 of media application A, media application A can send information about playlist 2 to the audio engine service, such as the title, cover art, playlist identifier, and the time when song 2 started playing. At time t+2, in response to a user's action of switching to song 3 in playlist 1 of media application A, media application A can send updated information about playlist 1 to the audio service. The updated information may include the time when song 3 started playing in playlist 1. The updated time is the time when media application A last played a song in playlist 1, which can be used to sort the playlist playback order.
[0283] S1104, The audio engine service writes playlist information to the media content providing module.
[0284] S1105, The media content provision module stores playlist information.
[0285] After receiving the playlist information sent by the media application, the audio engine service writes the playlist information into the media content providing module.
[0286] In one example, the audio engine service writes information such as playlist title, playlist identifier, and the time when the playlist starts playing into the playlist database of the media content provider module.
[0287] In one example, due to the large amount of data in the playlist cover image, the audio engine service can send a request to the media content provider module to obtain the path where the playlist cover image is written. After receiving the path information from the media content provider module, the audio engine service can write the playlist cover image to the path indicated by the media content provider module, and the playlist cover image will be cached at that path.
[0288] The media content provision module can record and cache playlist information from one or more media applications on an electronic device, providing data support for subsequent playlist recommendations. It should be understood that if a user opens only one media application within a preset time period, the media content provision module will only record the playlist information for that media application within the preset time period. If a user opens multiple media applications within a preset time period, the media content provision module will record the playlist information for all media applications within the preset time period.
[0289] The above steps S1101 to S1104 describe the playlist addition process. Through this process, the electronic device records relevant information about the playlists played by the user in the media application. Based on this, the electronic device can execute the playlist recommendation process described below. The following sections will explain in detail the execution of the playlist recommendation process by the electronic device, focusing on several specific scenarios.
[0290] (ii) Pushing historical playlists to electronic devices
[0291] In some embodiments, the electronic device has media application A and media application B installed. Both media application A and media application B are in a non-running state. When the electronic device is in a screen-on / locked state, the electronic device detects a connection event of headphones or vehicle system. After the electronic device successfully connects to the headphones or vehicle system, the electronic device can display one or more historical playlists on the lock screen, making it convenient for users to select historical playlists to play songs on the lock screen, which can simplify user operation and improve user experience.
[0292] The following is combined Figures 12 to 14 This section provides a detailed explanation of the internal execution process of recommending historical playlists on electronic devices. For example, Figure 12 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 1 .like Figure 12 As shown, the process includes:
[0293] S1201. After receiving a connection event from the headphones or the vehicle system, the audio recommendation management module queries the media session registration status from the media session service.
[0294] For example, taking the establishment of a Bluetooth connection between an electronic device and headphones as an example, when the Bluetooth communication module of the electronic device receives a Bluetooth connection request sent by the headphones, the Bluetooth communication module can send a headphone connection event to the audio recommendation management module. After receiving the headphone connection event, the audio recommendation management module queries the media session service for the registration status of the media session.
[0295] For example, taking the establishment of a Bluetooth connection between an electronic device and a vehicle's infotainment system as an example, in response to a user-triggered connection to the system, the electronic device's Bluetooth communication module sends a Bluetooth connection request to the system. Upon receiving a successful Bluetooth connection message from the system, the Bluetooth communication module can send a connection event to the audio recommendation management module. After receiving the connection event, the audio recommendation management module queries the media session service for the registration status of the media session.
[0296] For example, taking the connection between an electronic device and headphones or a vehicle infotainment system via a cable as an example, when the device sensing module of the electronic device detects that the headphones or vehicle infotainment system are connected to the electronic device via the cable, the device sensing module can send a connection event of the headphones or vehicle infotainment system to the audio recommendation management module. After receiving the connection event of the headphones or vehicle infotainment system, the audio recommendation management module queries the media session service for the registration status of the media session.
[0297] Upon receiving a connection event from headphones or the vehicle's infotainment system, the audio recommendation management module retrieves the registration status of the media session from the media session service. The media session registration status includes two states: registered and unregistered. For example, taking media application A on an electronic device as an example, after media application A starts, it sends a registration request to the media session service. The media session service records the registration status of the media session corresponding to media application A as registered. If the audio recommendation management module obtains an unregistered registration status for the media session corresponding to media application A from the media session service, it indicates that media application A is not running.
[0298] In this embodiment, the electronic device is equipped with media application A and media application B. The audio recommendation management module queries the media session service for the registration status of the media sessions, including: querying the registration status of the media sessions corresponding to media application A and the registration status of the media sessions corresponding to media application B.
[0299] S1202. The media session service sends the registration status of the media session to the audio recommendation management module. The registration status is "not registered".
[0300] When the audio recommendation management module receives a media session whose registration status is not registered, it executes S1203.
[0301] A media session registration status of "unregistered" means that no media session is registered on the electronic device. In this embodiment, the electronic device has media application A and media application B installed. A media session registration status of "unregistered" means that the media sessions corresponding to media application A and media sessions corresponding to media application B are both unregistered.
[0302] S1203, The audio recommendation management module queries the screen management module for the screen status of the display.
[0303] If the media session's registration status is found to be unregistered, the audio recommendation management module queries the monitor's screen status. The monitor's screen status includes on / off lock screen, off / lock screen, and unlocked screen; the definitions of each status can be found above.
[0304] S1204. The screen management module returns the screen status to the audio recommendation management module. The screen status is on / off and locked.
[0305] S1205, The audio recommendation management module sends a request to the media content providing module to query historical playlists.
[0306] S1206. The media content providing module returns historical playlist information to the audio recommendation management module. The historical playlist information includes at least one historical playlist, such as the playlist title, playlist identifier, and cover art.
[0307] It should be understood that the media content delivery module has pre-stored historical playlist information, which includes playlist information of one or more media applications played by electronic devices within a preset time period.
[0308] For example, taking a preset period of one month as an example, the electronic device played playlists 1 and 2 from media application A, and playlists 3 and 4 from media application B within that month. The media content providing module of the electronic device stores the playlist information of playlists 1 and 2 provided by media application A, and also stores the playlist information of playlists 3 and 4 provided by media application B. That is, the historical playlists include playlists 1 to 4, and the historical playlist information can include the playlist information of playlists 1, 2, 3, and 4. The playlist information includes, for example, playlist title, playlist identifier, playlist cover, and the time when the playlist started playing. The electronic device can sort the above four historical playlists according to the time when the playlists were played. For example, the playback order from most recent to oldest is: playlist 1, playlist 2, playlist 3, playlist 4.
[0309] S1207 The audio recommendation management module sends a notification to the system UI to display historical playlists, which includes historical playlist information.
[0310] In some embodiments, the historical playlist information includes information about a single historical playlist, which can be the most recently played playlist among multiple historical playlists, or the playlist with the longest cumulative playback time, or the playlist with the highest playback frequency. For example, based on the example in S1206, the historical playlist can be playlist 1 provided by media application A, where playlist 1 is the most recently played playlist among multiple historical playlists.
[0311] In some embodiments, the historical playlist information includes information on multiple historical playlists and their recommendation order. The playlist recommendation order is determined by the audio recommendation management module based on the aforementioned playlist recommendation rules. For example, based on the example in S1206, the multiple historical playlists include playlist 1 and playlist 2 provided by media application A, and playlist 3 and playlist 4 provided by media application B. The playlist recommendation order is playlist 1, playlist 2, playlist 3, and playlist 4.
[0312] S1208, System UI displays historical playlist 1.
[0313] In some embodiments, the notification received by the system UI to display historical playlists includes information about a historical playlist, such as historical playlist 1 provided by media application A. The system UI can then display historical playlist 1 on the lock screen. For example, see [link to example]. Figure 2 In the context of device a, the first-level card 2011 on the lock screen 201 displays the playlist 1 of media application A.
[0314] In some embodiments, the notification received by the system UI to display historical playlists includes information on multiple historical playlists and the playlist recommendation order. The system UI can display the first playlist in the playlist recommendation order on the lock screen interface, such as playlist 1 provided by media application A.
[0315] The above steps S1201 to S1208 describe the recommendation process for historical playlists. When all media applications on the electronic device are inactive and the device is in a screen-on / locked state, and the device detects a connection event from headphones or the car's infotainment system, it can push a historical playlist to the lock screen. This allows users to easily select and play historical playlists directly from the lock screen, simplifying user operations and improving the user experience.
[0316] In some embodiments, the notification received by the system UI to display historical playlists includes information about multiple historical playlists and their recommended order. The system UI can display these multiple historical playlists on the lock screen in the recommended order (not illustrated). For example, based on the example in S1206, the system UI can simultaneously display playlists 1 to 4 on the lock screen in the recommended order.
[0317] In some embodiments, if the screen status returned by the screen management module in S1204 is unlocked, S1205 to S1208 can also be executed. In S1208, the system UI can pop up a notification bar on the current display interface. The notification bar displays the historical playlist 1, which can be the playlist with the longest cumulative playback time, the highest playback frequency, or the most recently played playlist among multiple historical playlists. For example, refer to Figure 3 As shown in d or e, the current display interface of the system UI is the main interface 301. A notification bar 3011 pops up on the main interface 301, and the notification bar 3011 displays the playlist 1 provided by the media application A.
[0318] In some embodiments, after S1208, the following may be included:
[0319] S1209. In response to the user's operation of playing historical playlist 1, the system UI sends a playback request to the media session service, and the playback request carries the identifier of historical playlist 1.
[0320] Reference Figure 2 In response to the user's operation on the playback control 2014 of the primary card 2011, the system UI sends a playback request to the media session service to request the playback of songs from the recommended playlist on the primary card 2011. The playback request carries the identifier of playlist 1 in media application A.
[0321] S1210, The media session service sends a query request to the media content providing module. The query request is used to query the identifier of the media application and carries the identifier of historical playlist 1 in the query request.
[0322] In some embodiments, the media content providing module pre-stores the correspondence between playlist identifiers and media application identifiers. After receiving a query request sent by the media content providing module, the media session service can obtain the identifier of the media application A corresponding to the identifier of the historical playlist 1 in the query request, and then execute S1211.
[0323] S1211. The media content providing module sends a query response to the media session service. The query response carries the identifier of the media application A corresponding to the identifier of historical playlist 1.
[0324] Steps S1210 and S1211 are optional. In some embodiments, the playlist identifier may include a first field and a second field, wherein the first field indicates the media application corresponding to the playlist, and the second field indicates the playlist within that media application. After receiving a playback request carrying the identifier of historical playlist 1, the system UI can determine, based on the first field in the identifier of historical playlist 1, that the media application corresponding to historical playlist 1 is media application A, and then execute step S1212.
[0325] S1212, The media session service sends a playback request to media application A, and the playback request carries the identifier of historical playlist 1.
[0326] The media session service sends a playback request to media application A based on the identifier of media application A in the query response.
[0327] S1213, Media application A starts and plays songs from historical playlist 1.
[0328] After media application A starts, it can send a registration request to the media session service to register the media session corresponding to it. Based on the identifier of historical playlist 1 in the playback request, media application A plays the first song or any song in historical playlist 1, and then executes S1214.
[0329] S1214. Media application A sends a playback status update notification to the media session service. This notification indicates that the media player is in playback status.
[0330] S1215, The media session service updates the media player's playback status to "playing".
[0331] S1216. The media session service sends a playback status update notification to the system UI, which indicates that the media player is playing.
[0332] S1217, The playback status of the system UI refresh interface is now playing, displaying the song information in the currently playing historical playlist 1.
[0333] For example, refer to Figure 2 In response to the user clicking the playback control 2014 of the first-level card 2011 on the lock screen interface 201, the system UI display interface 204 displays a song in the playlist title 1 of the media application A that is currently playing, and also displays the song name, song cover, and artist information.
[0334] In some embodiments, after S1215, the following may also be included:
[0335] S1218. The media session service sends a playback status update notification to the audio recommendation management module. This notification is used to indicate that the media player is playing.
[0336] S1219, The audio recommendation management module sends a notification to the system UI to cancel the display of historical playlist 1.
[0337] S1220, System UI records cancel display of historical playlists 1.
[0338] After receiving a notification from the audio recommendation management module to cancel displaying historical playlist 1, the system UI will no longer display historical playlist 1 based on this notification record. For example, if an electronic device plays historical playlist 1 and the user takes off the headphones and then puts them back on, the system UI will not push historical playlist 1 again based on this record.
[0339] The above steps S1209 to S1220 describe the playback process of the historical playlist. In response to the user's operation of playing the historical playlist 1 on the lock screen, the electronic device starts playing songs in the historical playlist 1 and displays the information of the song currently playing in the historical playlist 1, and no longer displays the recommended historical playlist 1 card.
[0340] In some embodiments, based on Figure 12 In the embodiment shown, after the electronic device displays the historical playlist 1 on the lock screen, if the electronic device does not detect the user's operation of playing the historical playlist 1, the electronic device may stop displaying the pushed historical playlist 1 after the timer expires, or after the headphones are disconnected from the electronic device, or after the vehicle system is disconnected from the electronic device, or after the screen state of the electronic device's display changes from the on screen / locked screen state to the unlocked state.
[0341] The following is combined Figure 13 The internal execution process for canceling the display of the historical playlist on an electronic device is explained. For example, Figure 13 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 2 .like Figure 13 As shown, after the electronic device executes S1201 to S1208 as described above, the electronic device may execute Scheme 1, Scheme 2, or Scheme 3.
[0342] Option 1: After the system UI displays the historical playlist 1 (S1208), it can include:
[0343] S1301, Start the timer for the audio recommendation management module.
[0344] In this embodiment, the timer is a timer configured for the electronic device to push playlists; for example, the timer duration is 30 seconds. Within the timer duration, such as within 30 seconds, the system UI can display historical playlist 1 on the lock screen.
[0345] S1302. After the timer expires, the audio recommendation management module sends a notification to the system UI to cancel the display of historical playlist 1.
[0346] After receiving the notification to cancel displaying Historical Playlist 1, the system UI will no longer display the recommended Historical Playlist 1 on the lock screen. For example, refer to... Figure 2 As shown in Figure a, the system UI no longer displays the card 2011 on the lock screen.
[0347] This embodiment is mainly for situations where, after a user wears headphones or connects to the car's infotainment system, the device does not respond to the historical playlists recommended on the lock screen within a certain period of time (e.g., 30 seconds). The electronic device can cancel the push of historical playlists after a certain period of time.
[0348] Option 2: After the system UI displays the historical playlist 1 (S1208), it can include:
[0349] S1303. After receiving a disconnection event from the headphones or the car infotainment system, the audio recommendation management module sends a notification to the system UI to cancel the display of historical playlist 1.
[0350] A headphone disconnection event refers to either the electronic device's Bluetooth communication module detecting a break in the Bluetooth connection between the headphone and the electronic device, or the electronic device's device sensing module detecting a break in the connection cable between the headphone and the electronic device.
[0351] In one example, the Bluetooth communication module sends a headphone disconnection event to the audio recommendation management module when it detects that the Bluetooth connection between the headphones and the electronic device has been lost. In another example, the device sensing module sends a headphone disconnection event to the audio recommendation management module when it detects that the connection cable to the headphones has been disconnected.
[0352] A vehicle infotainment system disconnection event refers to either the electronic device's Bluetooth communication module detecting a break in the Bluetooth connection with the vehicle infotainment system, or the electronic device's device sensing module detecting a break in the connection cable with the vehicle infotainment system.
[0353] In one example, when the Bluetooth communication module detects a disconnection of the Bluetooth connection between the vehicle's infotainment system and the electronic device, it sends a disconnection event to the audio recommendation management module. In another example, when the device sensing module detects a disconnection of the connection cable with the vehicle's infotainment system, it sends a disconnection event to the audio recommendation management module.
[0354] After receiving the notification to cancel displaying Historical Playlist 1, the system UI will no longer display Historical Playlist 1 on the lock screen. For example, refer to... Figure 2 As shown in Figure a, the system UI no longer displays the card 2011 on the lock screen.
[0355] In this embodiment, after the electronic device displays a recommended historical playlist on the lock screen, if the electronic device does not detect the user playing a song from that historical playlist, and the electronic device detects a disconnection event from the headphones or the car infotainment system, the electronic device will not display the recommended historical playlist on the lock screen.
[0356] Option 3: After the system UI displays the historical playlist 1 (S1208), it can include:
[0357] S1304. After receiving the unlock event, the screen management module sends an unlock broadcast to the audio recommendation management module.
[0358] An unlock event refers to: the touchscreen of an electronic device detecting a user's input of an unlock password or fingerprint, triggering the electronic device to unlock the display if the unlock password is correct or the fingerprint is successfully matched; or, the camera of an electronic device capturing the user's facial data, triggering the electronic device to unlock the display if the facial data is successfully matched.
[0359] After receiving the unlock event, the screen management module sends an unlock broadcast to the audio recommendation management module. The unlock broadcast is used to indicate that the screen state of the electronic device changes from the on-screen and locked state to the unlocked state.
[0360] S1305, The audio recommendation management module sends a notification to the system UI to cancel the display of historical playlist 1.
[0361] After receiving the notification to cancel displaying Historical Playlist 1, the system UI will no longer display the recommended Historical Playlist 1. For example, refer to... Figure 2 As shown in Figure a, the system UI no longer displays the card 2011 on the lock screen.
[0362] In this embodiment, after the electronic device displays a recommended historical playlist on the lock screen, if the electronic device does not detect the user playing a song from that historical playlist, but detects the user unlocking the electronic device, the electronic device may stop displaying that recommended historical playlist.
[0363] In some embodiments, based on Figure 12 In the illustrated embodiment, after the electronic device displays historical playlist 1 on the lock screen, it detects the user's action of viewing more historical playlists. The electronic device then displays a playlist list, which includes multiple historical playlists besides historical playlist 1, such as historical playlists 2 to 5. These multiple historical playlists can come from one or more media applications. If the electronic device detects the user's action of playing historical playlist 2 in the playlist list, the electronic device launches the media application B corresponding to historical playlist 2 and plays the songs in historical playlist 2.
[0364] The following is combined Figure 14 The internal execution process of playing historical playlist 2 from the playlist list on an electronic device is explained. For example, Figure 14 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 3 .like Figure 14 As shown, after executing S1201 to S1208, the electronic device may also include the following process:
[0365] S1401. In response to the user's action of viewing more historical playlists, the system UI queries the media content delivery module for more historical playlists. For example, refer to... Figure 2 In the context of 'a', in response to the user clicking the playlist control 2016 on the first-level card 2011 of the lock screen interface 201, the system UI provides the media content module with a query for more historical playlists.
[0366] S1402, The media content providing module returns more information about historical playlists to the system UI.
[0367] In some embodiments, based on the aforementioned S1207, if the historical playlist information in the notification of S1207 includes information about a single historical playlist, such as playlist 1 provided by media application A, the system UI responds to the user's operation to view more historical playlists by querying the media content providing module for more historical playlists. The media content providing module returns more historical playlist information to the system UI, which includes information about multiple historical playlists and the playlist recommendation order, such as the playlist information for historical playlists 2 to 5.
[0368] In some embodiments, based on the aforementioned S1207, if the historical playlist information in the notification of S1207 includes information on multiple historical playlists and the order in which the playlists are recommended, the system UI responds to the user's operation to view more historical playlists and executes S1403. Therefore, S1401 and S1402 are optional steps.
[0369] S1403, The system UI displays a playlist list, which includes, for example, historical playlists 2 to historical playlists 5.
[0370] For example, refer to Figure 2 In section b, the system UI display interface 202 shows a secondary card 2022, which displays multiple historical playlists.
[0371] In some embodiments, after receiving more historical playlists from the media content providing module, the system UI displays the playlist list in the recommended order based on the more historical playlists. The playlist list includes multiple historical playlists, such as displaying historical playlists 2 to 5 in the order of playback from most recent to oldest.
[0372] In some embodiments, the system UI displays the playlist list according to the recommended order of the playlists based on the historical playlist information in the notification in S1207. The playlist list includes multiple historical playlists, such as displaying historical playlists 2 to 5 in order of playback from most recent to oldest.
[0373] S1404 In response to the user's operation of playing historical playlist 2 in the playlist list, the system UI sends a playback request to the media session service, and the playback request carries the identifier of historical playlist 2.
[0374] S1405, The media session service sends a query request to the media content providing module. The query request is used to query the identifier of the media application and carries the identifier of historical playlist 2 in the query request.
[0375] In some embodiments, the media content providing module pre-stores the correspondence between playlist identifiers and media application identifiers. After receiving a query request sent by the media content providing module, the media session service can obtain the identifier of the media application B corresponding to the identifier of the historical playlist 2 in the query request, and then execute S1406.
[0376] S1406. The media content providing module sends a query response to the media session service, and the query response carries the identifier of the media application B corresponding to the identifier of the historical playlist 2.
[0377] S1405 and S1406 are optional steps. Referring to S1211 above, after the system UI receives a playback request carrying the identifier of historical playlist 2, it can determine that the media application corresponding to historical playlist 2 is media application B based on the first field in the identifier of historical playlist 2, and then execute S1407.
[0378] S1407. The media session service sends a playback request to media application B, and the playback request carries the identifier of historical playlist 2.
[0379] S1408, Media application B starts and plays songs from historical playlist 2.
[0380] After media application B starts, it can send a registration request to the media session service to register the media session corresponding to it. Based on the identifier of historical playlist 2 in the playback request, media application B plays the first song or any song in historical playlist 2, and then executes S1409.
[0381] S1409. Media application B sends a playback status update notification to the media session service. This notification indicates that the media player is in playback status.
[0382] S1410, The media session service updates the media player's playback status to "playing".
[0383] S1411, The media session service sends a playback status update notification to the system UI, which indicates that the media player is playing.
[0384] S1412, The playback status of the system UI refresh interface is now playing, displaying the song information in the currently playing historical playlist 2.
[0385] For example, refer to Figure 2 The d and e in the code respond to the user's operation on the cover of the historical playlist 2024 of media application B in the secondary card 2022 of interface 202. The system UI displays interface 203, which displays a song in the playlist title 2 of media application B that is currently playing, and also displays the song name, cover, and artist information.
[0386] In some embodiments, after S1410, the following may also be included:
[0387] S1413. The media session service sends a playback status update notification to the audio recommendation management module. This notification is used to indicate that the media player is playing.
[0388] S1414, The audio recommendation management module sends a notification to the system UI to cancel the display of historical playlist 1 and the playlist list.
[0389] S1415, The system UI records the removal of the display of Historical Playlist 1 and the playlist list.
[0390] After receiving a notification from the audio recommendation management module to cancel the display of Historical Playlist 1 and the playlist list, the system UI will no longer display Historical Playlist 1 and the playlist list based on this notification record. For example, if an electronic device plays Historical Playlist 2 from the playlist list and the user takes off the headphones and then puts them back on, the system UI will not push Historical Playlist 1 and the playlist list again based on this record.
[0391] In this embodiment, after a historical playlist is pushed to the lock screen of the electronic device, if the electronic device detects that the user is viewing more historical playlists on the lock screen, the electronic device can display a playlist list, which displays more historical playlists, making it easier for the user to select historical playlists, simplifying user operations, and improving user experience.
[0392] (III) Playlists pushed by electronic devices
[0393] In some embodiments, the electronic device has media application A and media application B installed. Both media application A and media application B are in a non-running state. When the electronic device is in a screen-on / locked state, the electronic device detects a connection event of headphones or a car infotainment system. After the electronic device successfully connects to the headphones or car infotainment system, the electronic device first identifies the scene. If it identifies that the user is in a target scene (e.g., on the subway, before bed, or while driving), and the user has a habit of listening to audio in that target scene, the electronic device can display one or more scene playlists on the lock screen. This allows the user to select and play scene playlists on the lock screen, simplifying user operation and improving user experience.
[0394] The following is combined Figure 15 and Figure 16This section provides a detailed explanation of the internal execution process of recommending playlists on electronic devices. For example, Figure 15 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 4 .like Figure 15 As shown, the process includes:
[0395] S1501, In response to the operation of enabling the scene playlist recommendation function, the audio recommendation management module registers for monitoring with the smart service.
[0396] In some embodiments, users can enable or disable the scene playlist recommendation feature in the settings app. For example, Figure 16 Illustration of changes to the mobile phone interface provided in the embodiments of this application Figure 3 ,like Figure 16 As shown, in response to the user's operation on the settings application on the main interface, the phone displays interface 1601. In response to the user's operation on the smart assistant control 1602 on interface 1601, the phone displays interface 1603, which is the smart assistant interface and includes a playlist recommendation control 1604. In response to the user's operation on the playlist recommendation control 1604, the phone displays interface 1605, which includes a switch 1606 to enable the scene playlist recommendation function. In response to the user enabling the switch 1606 on interface 1605, the audio recommendation management module registers its monitoring with the smart service.
[0397] In some embodiments, users can enable the scene playlist recommendation function in the boot-up guide interface when activating the phone for the first time. In response to the user enabling the scene playlist recommendation function in the boot-up guide interface, the audio recommendation management module registers its monitoring with the smart service (not shown).
[0398] In some embodiments, after the audio recommendation management module registers its listening activity with the smart service, the smart service can identify scenarios. Upon identifying a target scenario, such as subway, bedtime, or driving, the smart service can query the corresponding identifier information. The identifier information for the target scenario includes a first identifier and a second identifier. The first identifier indicates that the user has a habit of listening to audio in the target scenario, and the second identifier indicates that the user does not have a habit of listening to audio in the target scenario. The smart service pre-stores the identifier information corresponding to the target scenarios. The process of the smart service setting identifier information for target scenarios is described above. Figure 10b Example.
[0399] In one example, if the intelligent service obtains a first identifier corresponding to the target scene, it can send a notification to the audio recommendation management module. This notification can then instruct the module to decide whether to recommend a playlist for that scene. In another example, if the intelligent service obtains a second identifier corresponding to the target scene, it will not send the aforementioned notification to the audio recommendation management module.
[0400] S1502a, intelligent services perform scene recognition, and the recognized scene is the target scene.
[0401] In some embodiments, when the audio recommendation management module registers its monitoring with the smart service, the smart service receives a connection event from the headphones or the vehicle's infotainment system. The smart service then performs scene recognition, and if the scene is identified as the target scene, it can execute step S1502b. The target scene can be a subway, before bed, driving, or other similar scenarios; this embodiment does not limit the target scene.
[0402] In some embodiments, when the audio recommendation management module registers its monitoring with the smart service, upon receiving a connection event from headphones or the vehicle's infotainment system, the smart service performs scene recognition. If the smart service does not recognize the target scene, it can also execute S1502c. Considering the presence of a connection event from headphones or the vehicle's infotainment system, the electronic device can assume that the user intends to listen to audio, and the smart service can also send a notification message to the audio recommendation management module so that the audio recommendation management module can decide whether to recommend a playlist.
[0403] S1502b: The intelligent service queries the identification information corresponding to the target scenario. The identification information is the first identifier, which is used to indicate that the user has a habit of listening to audio in the target scenario.
[0404] If the intelligent service finds that the identifier corresponding to the target scenario is the first identifier, S1502c can be executed;
[0405] If the intelligent service finds that the identifier corresponding to the target scenario is the second identifier, the process can end.
[0406] S1502c, Smart Service sends a notification message to the audio recommendation management module.
[0407] In some embodiments, if the smart service identifies a target scene, and the identifier corresponding to the target scene is a first identifier, the notification message may include the identifier of the target scene. The identifier of the target scene is used to indicate the scene identified by the smart service, and the identifier of the target scene is different from the aforementioned first and second identifiers. After receiving the notification message sent by the smart service, the audio recommendation management module can execute... Figure 15 S1503 to S1506 are shown, and S1503 to S1506 can be referred to as S1201 to S1204 above.
[0408] After S1506, the following can be executed:
[0409] S1507. The audio recommendation management module sends a request to the media content providing module to query the scene playlist, and the request carries the identifier of the target scene.
[0410] S1508, The media content providing module returns scene playlist information to the audio recommendation management module.
[0411] It should be understood that the media content providing module pre-stores scene playlist information, which includes playlist information of one or more media applications that have been played on electronic devices in the target scene within a preset time period.
[0412] S1509, The audio recommendation management module sends a notification to the system UI to display the scene playlist.
[0413] S1510, System UI displays scene playlist 1.
[0414] The notification that displays a scene playlist includes scene playlist information, which includes at least one scene playlist. The playlist information includes, for example, the playlist title, playlist identifier, scene identifier, and playlist cover.
[0415] In some embodiments, the scene playlist information includes information about a scene playlist, such as the scene playlist 1 information of media application A, and the system UI displays scene playlist 1.
[0416] In some embodiments, the scene playlist information includes information on multiple scene playlists and their recommendation order. Multiple scene playlists include Scene Playlist 1 provided by media application A and Scene Playlist 2 provided by media application B, etc. The system UI displays a scene playlist according to the recommendation order, such as Scene Playlist 1 from media application A. The scene playlist displayed by the system UI can be a scene playlist provided by the media application with the longest cumulative playback time, pushed by the audio recommendation management module based on the cumulative playback time of the media applications within a preset time period. This scene playlist can also be the scene playlist with the longest cumulative playback time among multiple scene playlists, or the scene playlist with the highest playback frequency.
[0417] Figure 15 S1501 to S1510 describe the scene-based playlist recommendation process. When all media applications on the electronic device are inactive and the device is in a screen-on / locked state, if the device detects a connection event from headphones or the car's infotainment system, and if the device recognizes the current scene as the target scene, and the user has a habit of listening to audio in that scene, the device can push a scene-based playlist to the lock screen. This allows the user to easily select and play the playlist directly from the lock screen, simplifying user operations and improving the user experience.
[0418] In some embodiments, if the smart service does not identify the target scene, the notification message does not include a scene identifier. After receiving the notification message from the smart service, the audio recommendation management module can obtain one or more historical playlists from the media content providing module and notify the system UI to display one or more historical playlists on the lock screen, as detailed in S1205 to S1208.
[0419] In some embodiments, after S1510, S1511 to S1520 can be executed. S1511 to S1522 is the playback process of the scene playlist, which is similar to the playback process of the aforementioned historical playlist S1209 to S1220. For the sake of brevity, it will not be elaborated here.
[0420] In this embodiment, in response to the user's operation of playing Scene Playlist 1 on the lock screen interface, the electronic device starts playing songs in Scene Playlist 1 and displays the information of the song currently playing in Scene Playlist 1, and no longer displays the recommended Scene Playlist 1 card.
[0421] In some embodiments, after S1501 to S1510, S1401 to S1412 may be executed. After S1401 to S1412, the following may be executed (not shown):
[0422] S1523. The media session service sends a playback status update notification to the audio recommendation management module. This notification is used to indicate that the media player is playing.
[0423] S1524, The audio recommendation management module sends a notification to the system UI to cancel the display of Scene Playlist 1 and the playlist list.
[0424] S1525, The system UI records the removal of the display of Scene Playlist 1 and Playlist List.
[0425] In some embodiments, after S1501 to S1510, the electronic device may stop displaying the pushed playlist 1 after the timer expires, or after the headphones are disconnected from the electronic device, or after the vehicle system is disconnected from the electronic device, or after the screen state of the electronic device's display changes from the on screen / locked screen state to the unlocked state.
[0426] (iv) Electronic devices push recommended playlists to watches
[0427] In some embodiments, the media applications on the electronic device are not running. When the electronic device is connected to the watch, it detects a headphone connection event. After a successful connection, the electronic device can send a recommended playlist to the watch. Upon receiving the recommended playlist, the watch displays a notification, allowing the user to easily select and play songs from the recommended playlist, simplifying operation and improving user experience. In this embodiment, the recommended playlist sent by the electronic device to the watch may include historical playlists and / or scene playlists.
[0428] The following is combined Figure 17 and Figure 18 This document provides a detailed explanation of the process of pushing recommended playlists from an electronic device to a watch. For example, Figure 17 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 5 .like Figure 17 As shown, this process involves the interaction between the electronic device and the watch, including:
[0429] S1701. After receiving the headphone connection event, the audio recommendation management module of the electronic device queries the media session registration status of the media session from the media session service of the electronic device.
[0430] S1702. The media session service sends the registration status of the media session to the audio recommendation management module. The registration status is "not registered".
[0431] S1703, The audio recommendation management module queries the device access management module of the electronic device for the connection status of the watch.
[0432] S1704. The device access management module returns the connection status of the watch to the audio recommendation management module. The connection status of the watch is "connected".
[0433] S1705, The audio recommendation management module sends a request to the media content providing module of the electronic device to query the recommended playlist.
[0434] S1706. The media content providing module returns recommended playlist information to the audio recommendation management module. The recommended playlist information includes at least one playlist information, such as the playlist title, playlist identifier, and cover art.
[0435] S1707. The audio recommendation management module of the electronic device sends a notification to the watch to display the recommended playlist through the device access management module. The notification includes the recommended playlist information.
[0436] The audio recommendation management module sends a notification to the media session service to display the recommended playlist. Upon receiving this notification, the media session service sends it to the device access management module. The device access management module, upon receiving this notification, then sends it to the watch.
[0437] S1708, the watch displays playlist recommendation notifications.
[0438] For example, refer to Figure 5 As shown in Figure a, the watch displays a notification card 5011, which can display a phone icon and text information (such as "playlist recommendation") to indicate that the notification comes from the phone.
[0439] S1701 to S1708 describe the process of pushing recommended playlists from electronic devices to watches. Users can view playlist recommendation notifications on their watches, making it convenient for them to select playlists and play songs. This simplifies user operations and enhances the user experience.
[0440] In some embodiments, after S1708, the method further includes:
[0441] S1709. In response to the user's action on the watch face to view the notification, the watch sends a query request to the media session service of the electronic device through the device access management module of the electronic device. The query request is used to request the recommended playlist information.
[0442] S1710 The media session service of the electronic device sends a query response to the watch through the device access management module, and the query response carries recommended playlist information.
[0443] S1711, the watch displays multiple recommended playlists.
[0444] The watch can display multiple recommended playlists based on the playlist information included in the query response. For example, refer to... Figure 5 In response to the user's action on notification card 5011, interfaces 502 are displayed on the watch. Interface 502 displays multiple playlists, such as playlist 1 to playlist 3. These multiple playlists can come from one or more media applications.
[0445] S1710 and S1711 are optional steps. It should be understood that if the notification in S1707 includes recommended playlist information, the watch responds to the user's action on the watch face to view the notification, and the watch can display multiple recommended playlists based on the recommended playlist information in the notification in S1707.
[0446] S1712. In response to the user's operation of playing playlist 1, the watch sends a playback request to the media session service of the electronic device through the electronic device access management module, and the playback request carries the identifier of playlist 1.
[0447] After S1712, S1713 to S1718 can be executed. S1713 to S1718 can refer to the aforementioned S1210 to S1215.
[0448] After S1718, the following can be executed:
[0449] S1719. The media session service of the electronic device sends a playback status update notification to the audio recommendation management module. This notification is used to indicate that the media player is playing.
[0450] S1720 The audio recommendation management module of the electronic device sends a notification to the watch to cancel the display of recommended playlists through the device access management module of the electronic device.
[0451] S1721, The watch shows that it is playing a song from playlist 1.
[0452] For example, refer to Figure 5 In response to the user's action on playlist 1 in interface 502, b and c in the watch display interface 503, which displays information about the song currently playing in playlist 1.
[0453] S1709 to S1721 describe the playback control process of the watch. The electronic device can play songs from the recommended playlist based on the user's playback control operation on the watch. After the electronic device plays a song from the recommended playlist, the watch interface can display the information of the song currently playing in the recommended playlist. The watch may no longer need to display multiple recommended playlists.
[0454] For example, Figure 18 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 6 .like Figure 18 As shown, after S1701 to S1708, the following may be included:
[0455] S1801, The audio recommendation management module of the electronic device starts the timer.
[0456] S1802. After the timer expires, the audio recommendation management module of the electronic device sends a message to the watch to cancel the display of playlist recommendations through the device access management module of the electronic device.
[0457] After receiving this message, the watch will no longer display playlist recommendation notifications. For example, refer to... Figure 5 In step 'a', the watch no longer displays notification card 5011.
[0458] This embodiment is mainly for situations where the user does not respond to the playlist recommendation notification on the watch interface for a period of time after wearing headphones. The watch can stop displaying the playlist recommendation notification after a period of time.
[0459] In some embodiments, after S1701 to S1708, the following may be included:
[0460] S1803. After receiving the headphone disconnection event, the audio recommendation management module of the electronic device sends a message to the watch to cancel the display of playlist recommendation notifications through the device access management module of the electronic device.
[0461] In this embodiment, after the watch screen displays a playlist recommendation notification, if the watch does not detect the user viewing the notification, the electronic device detects a headphone disconnection event and can control the watch screen to stop displaying the playlist recommendation notification.
[0462] (v) Electronic devices push recommended playlists to the vehicle's infotainment system
[0463] In some embodiments, when all media applications on the electronic device are not running, the electronic device detects a connection event with the vehicle's infotainment system. After a successful connection, the electronic device can send a recommended playlist to the vehicle's infotainment system. Upon receiving the recommended playlist, the vehicle's infotainment system displays it, allowing users to easily select and play songs, simplifying user operations and improving the user experience. In this embodiment, the recommended playlist sent by the electronic device to the vehicle's infotainment system may include historical playlists and / or scene playlists.
[0464] The following is combined Figure 19 and Figure 20 This document provides a detailed explanation of the process by which an electronic device pushes recommended playlists to the vehicle's infotainment system. For example, Figure 19 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 7 .like Figure 19 As shown, this process involves the interaction between electronic devices and the vehicle's infotainment system, including:
[0465] S1901. After receiving the connection event from the vehicle's infotainment system, the audio recommendation management module of the electronic device queries the media session registration status of the media session from the media session service of the electronic device.
[0466] S1902, The media session service sends the registration status of the media session to the audio recommendation management module. The registration status is "not registered".
[0467] S1903, The audio recommendation management module sends a request to the media content providing module of the electronic device to query the recommended playlist. This request may include an identifier for the driving scenario.
[0468] S1904. The media content providing module returns recommended playlist information to the audio recommendation management module.
[0469] The recommended playlist information includes at least one playlist information for a driving scenario, such as the title, playlist identifier, and cover art of playlist 1 provided by media application A for a driving scenario.
[0470] In some embodiments, the recommended playlist information may also include multiple historical playlists or multiple playlists for driving scenarios.
[0471] S1905. The audio recommendation management module of the electronic device sends a notification to the vehicle's infotainment system to display a recommended playlist through the vehicle's infotainment system application. The notification includes the recommended playlist information.
[0472] S1906, Car infotainment system displays playlist 1 for driving scenarios.
[0473] For example, refer to Figure 7 As shown in Figure a, the vehicle's infotainment system displays a notification card 7011, which shows the playlist information of playlist 1 from media application A.
[0474] In some embodiments, the vehicle system may display multiple recommended playlists based on the recommended playlist information in the notification.
[0475] S1901 to S1906 describe the process of pushing recommended playlists from electronic devices to the vehicle's infotainment system. Users can view recommended playlists for driving scenarios on the vehicle's infotainment system, making it convenient for users to select playlists and play songs. This simplifies user operations and improves the user experience.
[0476] In some embodiments, after S1906, the following is also included:
[0477] S1907. In response to the user's operation on the vehicle infotainment system interface to play playlist 1, the vehicle infotainment system sends a playback request to the media session service of the electronic device through the vehicle infotainment application of the electronic device, and the playback request carries the identifier of playlist 1.
[0478] After S1907, S1908 to S1913 can be executed. S1908 to S1913 can refer to the aforementioned S1210 to S1215.
[0479] After S1913, the following can be executed:
[0480] S1914. The media session service of the electronic device sends a playback status update notification to the audio recommendation management module. This notification is used to indicate that the media player is playing.
[0481] S1915. The audio recommendation management module of the electronic device sends a notification to the vehicle system to cancel the display of playlist 1 through the vehicle system application of the electronic device.
[0482] S1916, The car's infotainment system is currently playing a song from playlist 1.
[0483] For example, refer to Figure 7In response to the user's operation on the playback control 7013 on the card 7011 of the interface 701, the vehicle system displays the interface 703, which shows the song in playlist 1 provided by the media application A that is currently playing.
[0484] S1907 to S1916 describe the playback control process of the vehicle's infotainment system. Based on the user's playback control operations on the system, the electronic device can play songs from the recommended playlist. After the electronic device plays a song from the recommended playlist, the system interface displays information about the song currently playing in the playlist. The system may choose not to display the recommended playlist again; for example, the system interface may no longer display card 7011.
[0485] For example, Figure 20 A schematic diagram of the playlist recommendation method provided in the embodiments of this application. Figure 8 .like Figure 20 As shown, after S1901 to S1906, the following may be included:
[0486] S2001, The audio recommendation management module of the electronic device starts the timer.
[0487] S2002. After the timer expires, the audio recommendation management module of the electronic device sends a notification to the vehicle system to cancel the display of playlist 1 through the vehicle system application of the electronic device.
[0488] After receiving this notification, the vehicle's infotainment system can stop displaying recommended playlist 1. For example, refer to... Figure 7 In the case of 'a', the vehicle's infotainment system will no longer display notification card 7011.
[0489] This embodiment mainly addresses the situation where, after an electronic device is connected to the vehicle's infotainment system, the user does not respond to the recommended playlist on the vehicle's interface for a period of time. The vehicle's infotainment system can then stop displaying the recommended playlist after a certain period of time.
[0490] In some embodiments, after S1901 to S1906, the following may be included:
[0491] S2003. After receiving the disconnection event from the vehicle's infotainment system, the audio recommendation management module of the electronic device sends a notification to the vehicle's infotainment system to cancel the display of playlist 1 through the vehicle's infotainment system application.
[0492] In this embodiment, after the vehicle infotainment system displays recommendations, if the system does not detect the user playing a playlist on the system interface, the electronic device detects a disconnection event and can control the system interface to stop displaying recommended playlists.
[0493] Based on the foregoing embodiments, this application provides a playlist recommendation method, which can be applied to a first electronic device. The first electronic device has a first media application and a second media application installed. The method includes:
[0494] When the first electronic device is in a state where the first scene, the first media application, and the second media application are both not running, the first electronic device displays a first interface. The first interface includes a first card in a first form. The first card displays a first control and a first playlist of the first media application. The first playlist is a playlist related to the first scene.
[0495] In response to an operation on the first control, the first electronic device displays a second interface, which includes a second card and a first card in a second form. The second card displays multiple second playlists, including playlists from the second media application. The multiple second playlists are displayed in order of playback from near to far, or in order of cumulative playback time within a preset period from large to small, or in order of playback frequency within a preset period from large to small. The first card in the second form displays a playback progress bar and / or a volume slider.
[0496] For example, the first electronic device can be a mobile phone, the first media application can be media application A, and the second media application can be media application B. Both media application A and media application B are applications capable of playing audio. The first scenario includes, but is not limited to, subway scenarios, bedtime scenarios, and driving scenarios. The first interface can be the lock screen of the mobile phone (e.g., Figure 2 Interface 201 shown in Figure a), control center interface (as shown in Figure a) Figure 3 Interface 302 shown in b), main interface (as shown in b) Figure 3 The interface shown in d (301) or any interface. The first card in the first form can be... Figure 2 The card 2011 shown in Figure a has a first control that can be control 2016 on the card 2011, and a first playlist that can be playlist 1 provided by media application A. Playlist 1 is a scene playlist.
[0497] For example, such as Figure 2 As shown in b, the second interface can be interface 202, the second card can be card 2022, the first card in the second form can be card 2021, the multiple second playlists can be multiple playlists on card 2021, the multiple second playlists can come from media application A and / or media application B, and the multiple second playlists can be historical playlists.
[0498] In this embodiment, when the first electronic device is in the first scene and none of the media applications installed on the first electronic device are running, the first electronic device can push a first playlist related to the first scene on the first interface. This allows the user to quickly trigger playback of songs in the first playlist when entering the first scene, simplifying user operations and improving the user experience. If the user is not satisfied with the recommended first playlist, they can touch the first control of the first card on the first interface to view more recommended playlists, making it easier for the user to select a playlist and trigger playback of songs from one of the playlists. This further simplifies user operations and improves the user experience.
[0499] In one optional embodiment, the first electronic device is equipped with a first media application and a second media application. When the first electronic device is in a first scene, the first media application is running, and the second media application is not running, the first electronic device displays a first interface. The first interface includes a first card in a first form, and a fourth playlist is displayed on the first card. The fourth playlist is a playlist related to the first scene provided by the second media application.
[0500] In this embodiment, the first electronic device has already opened the first media application in the first scenario. The first electronic device can push a playlist related to the first scenario provided by the second media application on the first interface, which makes it convenient for the user to switch to the second media application to play songs in the scenario playlist. This simplifies user operation and improves user experience.
[0501] In one optional embodiment, before the first electronic device displays the first interface when the first electronic device is in a first scene and both the first media application and the second media application are not running, the method further includes: the first electronic device receiving a connection event from the second electronic device; in response to the connection event, the first electronic device determining that the first electronic device is in the first scene; and in response to determining that the first electronic device is in the first scene, the first electronic device determining that both the first media application and the second media application are not running.
[0502] For example, the second electronic device can be a headset or a vehicle infotainment system, and the connection event of the second electronic device can be a connection event of the headset or a connection event of the vehicle infotainment system.
[0503] In this embodiment, when the first electronic device is in the first scene, it detects a connection event with the second electronic device, indicating that the user intends to listen to audio. Furthermore, if the first electronic device determines that all installed media applications are not running, it can push a first playlist to the first interface. This method allows users to quickly trigger playback of songs from the first playlist on the first interface when entering the first scene and wearing headphones or connected to the vehicle's infotainment system, simplifying user operations and improving the user experience.
[0504] In one optional embodiment, in response to determining that the first electronic device is in a first scenario, the first electronic device determines that both the first media application and the second media application are in a non-running state, including: in response to determining that the first electronic device is in the first scenario, the first electronic device determines that the identification information corresponding to the first scenario is a first identifier; the first identifier is used to indicate that the number of times the user listens to audio in the first scenario within a preset time period is greater than or equal to a preset number; in response to determining that the identification information corresponding to the first scenario is the first identifier, the first electronic device determines that both the first media application and the second media application are in a non-running state.
[0505] For example, the first identifier can be 1, used to indicate that the number of times the user listens to audio in the first scenario within a preset time period is greater than or equal to a preset number, where the preset time period can be one month and the preset number can be 5 times. That is, the first identifier is used to indicate that the user has a habit of listening to audio in the first scenario.
[0506] In this embodiment, after the first electronic device detects a connection event with the second electronic device, it identifies that it is in a first scene. By querying the identification information corresponding to the first scene, it determines that the user has a habit of listening to audio in the first scene. The first electronic device further determines that all installed media applications are in an inactive state. Then, the first electronic device can push the first playlist on the first interface. The above method facilitates users who have a habit of listening to audio in the first scene to quickly trigger the playback of songs in the first playlist on the first interface when entering the first scene and wearing headphones or connected to the vehicle system. This simplifies user operation and improves the user experience.
[0507] In some embodiments, the identification information corresponding to the first scenario is a second identifier. The second identifier is used to indicate that the number of times the user listens to audio in the first scenario within a preset time period is less than a preset number. For example, the second identifier can be 0, that is, the second identifier is used to indicate that the user does not have the habit of listening to audio in the first scenario.
[0508] In one optional embodiment, the first electronic device receiving a connection event from the second electronic device includes: the smart service of the first electronic device receiving the connection event from the second electronic device; in response to the connection event, the first electronic device determining that it is in a first scenario includes: in response to the connection event, the smart service determining that it is in the first scenario; in response to determining that it is in the first scenario, the first electronic device determining that both the first media application and the second media application are in a non-running state includes: in response to determining that it is in the first scenario, the smart service sending a first message to the audio recommendation management module of the first electronic device, the first message including an identifier of the first scenario; the audio recommendation management module querying the media session service of the first electronic device and finding that both the first media application and the second media application are in a non-running state.
[0509] For example, the first message can be Figure 15 The notification message from S1502c indicates that the audio recommendation management module, after querying the media session service of the first electronic device, finds that both the first and second media applications are in a non-running state. Figure 15 S1503 and S1504. In this embodiment, the media session registration status of "unregistered" in S1504 means that both the media session corresponding to the first media application and the media session corresponding to the second media application are unregistered, that is, both the first media application and the second media application are in a non-running state.
[0510] In one optional embodiment, the first electronic device displays a first interface, including: the first electronic device querying playlist information corresponding to a first scene, the playlist information corresponding to the first scene including the playlist information of a first playlist, the playlist information of the first playlist including the playlist title, playlist identifier, playlist cover and identifier of the first scene; after the first electronic device queries the playlist information corresponding to the first scene, the first electronic device displays the first interface, the first interface showing the first playlist.
[0511] In this embodiment, the first electronic device pre-stores the playlist information of the first playlist corresponding to the first scene. The first electronic device first obtains the playlist information of the first playlist, and then displays the first playlist on the first interface based on the playlist information of the first playlist.
[0512] In one optional embodiment, the first electronic device queries the playlist information corresponding to the first scene, including: the first electronic device obtains the playlist information corresponding to the identifier of the first scene based on the identifier of the first scene, wherein the playlist information corresponding to the identifier of the first scene includes the playlist information of the first playlist.
[0513] In this embodiment, the first electronic device can obtain the playlist information corresponding to the first scene, such as the playlist information of the first playlist, based on the identifier of the first scene.
[0514] In one optional embodiment, the first electronic device queries playlist information corresponding to a first scene, including: the audio recommendation management module of the first electronic device sends a first query request to the media content providing module of the first electronic device, the first query request including an identifier of the first scene; in response to receiving the first query request, the media content providing module sends a first query response to the audio recommendation management module, the first query response including playlist information corresponding to the first scene; the first electronic device displays a first interface, including: the audio recommendation management module sends the playlist information corresponding to the first scene to the system user interface (UI) of the first electronic device; in response to receiving the playlist information corresponding to the first scene, the system UI displays the playlist corresponding to the first scene on the first interface.
[0515] For example, the first query request may correspond to Figure 15 The first query response to the S1507 query scenario playlist request can correspond to... Figure 15 The S1508 returns the playlist information for the first scene. The audio recommendation management module sends the playlist information corresponding to the first scene to the system UI of the first electronic device. Figure 15 The S1509 displays a notification for the playlist in the specified scene. The system UI displays the playlist corresponding to the first scene on the first screen. Figure 15 The S1510 displays the playlist 1 in the scene.
[0516] In this embodiment, the audio recommendation management module of the first electronic device obtains the playlist information of the scene playlist from the media content providing module, and sends a notification to the system UI of the first electronic device to display the scene playlist, so that the system UI can display the scene playlist on the first interface, making it convenient for users to quickly trigger the playback of songs in the scene playlist pushed on the first interface.
[0517] In one optional embodiment, the playlist information corresponding to the first scene also includes playlist information corresponding to the first scene provided by the second media application. The method further includes: the first electronic device determines the first playlist of the first media application with the longest cumulative playback time based on the cumulative playback time of the media application within a preset time period.
[0518] For example, the preset time period is one month. Within one month, the user's cumulative playback time using the first media application is 3 hours, and the user's cumulative playback time using the second media application is 1 hour. The playlist corresponding to the first scenario provided by the first media application is playlist 1, and the playlist corresponding to the first scenario provided by the second media application is playlist 2. Since the cumulative playback time of the first media application within one month is greater than the cumulative playback time of the second media application, when the first electronic device enters the first scenario, the first electronic device pushes playlist 1 provided by the first media application.
[0519] This embodiment illustrates a rule for scene-based playlist recommendation. When the playlist information corresponding to the first scene obtained by the first electronic device includes scene playlists provided by a first media application and scene playlists provided by a second media application, the first electronic device can push the scene playlist provided by the first media application, which has the longest cumulative playback time within a preset period, to the first interface for display.
[0520] In one optional embodiment, the first electronic device determines and pushes a first playlist of the first media application with the longest cumulative playback time based on the cumulative playback time of the media application within a preset time period. This includes: the audio recommendation management module of the first electronic device determines and pushes a first playlist of the first media application with the longest cumulative playback time based on the cumulative playback time of the media application within the preset time period.
[0521] In one optional embodiment, before the first electronic device queries the playlist information corresponding to the first scene, the method includes: the first electronic device queries the screen state of the display, where the screen state of the display is a screen-on / screen-locked state.
[0522] In one optional embodiment, the first electronic device queries the screen status of the display, including: the audio recommendation management module of the first electronic device obtains the screen status of the display from the screen management module of the first electronic device.
[0523] For example, the audio recommendation management module of the first electronic device can obtain the screen status of the display screen from the screen management module of the first electronic device, which can correspond to: Figure 15 S1505 and S1506 in the example.
[0524] In one optional embodiment, before the first electronic device queries the playlist information corresponding to the first scene, the method further includes: after the first electronic device detects a playback event of the first media application, the first electronic device receives the playlist information of the first media application, the playlist information of the first media application including the playlist title, playlist cover, start time of the playlist, and scene identifier of the playlist corresponding to the song being played; in response to receiving the playlist information of the first media application, the first electronic device stores the playlist information of the first media application.
[0525] For example, the first electronic device detecting a playback event of the first media application means that the first media application of the first electronic device detects the user's operation of playing a song in a playlist of the first media application.
[0526] This embodiment illustrates the process of a first electronic device writing playlist information into a first media application. Based on this process, the first electronic device stores playlist information from the first media application, providing data support for subsequent playlist recommendations.
[0527] In one optional embodiment, the first electronic device receives playlist information from a first media application, including: the audio recommendation management module of the first electronic device receives the playlist information from the first media application; the first electronic device stores the playlist information from the first media application, including: the audio recommendation management module writes the playlist information from the first media application to the media content providing module of the first electronic device.
[0528] This embodiment illustrates that a first electronic device writes playlist information of a first media application into a media content providing module, and the first electronic device can obtain playlist information, such as the first playlist of the first media application, from the media content providing module.
[0529] In one optional embodiment, after the first electronic device displays the first interface, the method further includes: in response to an operation acting on the first playlist, the first electronic device launches a first media application and controls the first media application to play songs in the first playlist.
[0530] For example, such as Figure 2 As shown in Figure a, the operation that responds to the first playlist can be the operation that responds to the control 2014, that is, the operation that responds to the playlist 1 of the media application A. The mobile phone launches the media application A and controls the media application A to play the first song or any song in playlist 1.
[0531] In this embodiment, in response to the operation of playing the first playlist, the first electronic device can quickly launch the first media application corresponding to the first playlist and control the first media application to play the songs in the first playlist, so that the user can quickly trigger the playback of the songs in the first playlist on the first interface, simplifying the user operation process and improving the user experience.
[0532] In one optional embodiment, after the first electronic device displays the second interface, the method further includes: in response to an operation acting on the third playlist, the first electronic device launches a second media application and controls the second media application to play songs in the third playlist; the third playlist is a playlist of the second media application among multiple second playlists.
[0533] For example, such as Figure 2 As shown in d, the operation on the third playlist can be in response to the operation on the playlist 2024 of media application B on card 2022, that is, in response to the operation of playing playlist 2 of media application B, the mobile phone launches media application B and controls media application B to play the first song or any song in playlist 2. The third playlist can be a historical playlist.
[0534] In this embodiment, in response to the operation of playing the third playlist, the first electronic device can quickly launch the second media application corresponding to the third playlist and control the second media application to play the songs in the third playlist. This allows the user to quickly trigger the playback of the songs in the third playlist on the second interface, simplifying the user operation process and improving the user experience.
[0535] In one optional embodiment, in response to an operation applied to a first playlist, a first electronic device launches a first media application and controls the first media application to play songs in the first playlist, including: in response to an operation applied to the first playlist, the system UI of the first electronic device sends a first playback request to the media session service of the first electronic device, the first playback request including an identifier of the first playlist; the media session service sends the first playback request to the first media application; in response to receiving the first playback request, the first media application launches and plays songs in the first playlist.
[0536] For example, the system UI sending the first playback request to the media session service can correspond to: Figure 15 The playback request in S1511, where the media session service sends the first playback request to the first media application, can correspond to: Figure 15 Playback request from S1514.
[0537] In one optional embodiment, in response to an operation applied to a first playlist, the first electronic device launches a first media application, including: in response to an operation applied to the first playlist, the first electronic device determines that the identifier of the first playlist corresponds to the first media application based on a pre-stored correspondence between playlist identifiers and media application identifiers in the first electronic device; and the first electronic device launches the first media application.
[0538] In this embodiment, in response to the operation of playing the first playlist, the first electronic device can obtain the first media application corresponding to the first playlist by querying the pre-stored correspondence between playlist identifiers and media application identifiers, and then launch the first media application.
[0539] In one optional embodiment, in response to an operation applied to a third playlist, the first electronic device launches a second media application, including: in response to an operation applied to the third playlist, the first electronic device determines that the identifier of the third playlist corresponds to the second media application based on the correspondence between playlist identifiers and media application identifiers; the first electronic device launches the second media application.
[0540] In this embodiment, in response to the operation of playing the third playlist, the first electronic device can obtain the second media application corresponding to the third playlist by querying the pre-stored correspondence between playlist identifiers and media application identifiers, and then launch the second media application.
[0541] In one optional embodiment, in response to an operation applied to a first playlist, the first electronic device determines that the identifier of the first playlist corresponds to a first media application based on a pre-stored correspondence between playlist identifiers and media application identifiers. This includes: in response to an operation applied to the first playlist, the media session service of the first electronic device sends a second query request to the media content providing module of the first electronic device, the second query request including the identifier of the first playlist; the media content providing module determines that the identifier of the first playlist corresponds to the first media application based on a pre-stored correspondence between playlist identifiers and media application identifiers; and the media content providing module sends a second query response to the media session service, the second query response including the identifier of the first media application corresponding to the identifier of the first playlist.
[0542] For example, the second query request may correspond to Figure 15 The query request in S1512 can be followed by a second query response. Figure 15 The query response for S1513.
[0543] In this embodiment, the first electronic device learns from the media content providing module through the media session service that the media application corresponding to the first playlist is the first media application.
[0544] In one optional embodiment, after the first electronic device displays the first interface, the method further includes: in response to an operation on the first playlist, the first electronic device displays a third interface, the third interface including a third card, the third card displaying information about the songs playing in the first playlist.
[0545] For example, such as Figure 2 As shown in f, the third interface can be interface 204, and the third card can be card 2041.
[0546] In this embodiment, in response to the operation of playing the first playlist on the first card, the first electronic device displays a third card so that the user can view the song information in the first playlist that is being played.
[0547] In one alternative embodiment, after the first electronic device displays the second interface, the method further includes: in response to an operation on the third playlist, the first electronic device displays a fourth interface, the fourth interface including a fourth card displaying information about the songs playing in the third playlist.
[0548] For example, such as Figure 2 As shown in e, the fourth interface can be interface 203, and the fourth card can be card 2031.
[0549] In this embodiment, in response to the operation of playing the third playlist on the second card, the first electronic device displays a fourth card so that the user can view the song information in the third playlist that is currently playing.
[0550] In one optional embodiment, after the first electronic device launches the first media application and controls the first media application to play songs in the first playlist, the method further includes: the first electronic device records the registration status of the media session corresponding to the first media application as registered, and updates the playback status of the media player to playing.
[0551] In one optional embodiment, the first electronic device records the registration status of the media session corresponding to the first media application as "registered," including: the first media application sending a first registration request to the media session service of the first electronic device, the first registration request being used to request registration of the media session corresponding to the first media application; in response to receiving the first registration request, the media session service records the registration status of the media session corresponding to the first media application as "registered." For example, the first media application is media application A, referring to... Figure 15In S1515, after media application A starts, it includes: media application A sending a first registration request to the media session service, and the media session service recording the registration status of the media session corresponding to media application A as registered. Figure 15 (Not shown). The registration status of the media session corresponding to media application A is "registered," indicating that media application A is in a running state.
[0552] In one optional embodiment, after the first electronic device launches the second media application and controls the second media application to play songs from the third playlist, the method further includes: the first electronic device records the registration status of the media session corresponding to the second media application as registered, and updates the playback status of the media player to playing.
[0553] In one optional embodiment, updating the playback status of the media player to "playing" on the first electronic device includes: a first media application sending a first notification message to the media session service of the first electronic device, the first notification message indicating that the media player's playback status is "playing"; and the media session service updating the media player's playback status to "playing" in response to receiving the first notification message. For example, the first media application is media application A, and the first notification message can be... Figure 15 Notification of playback status update for S1516.
[0554] In one optional embodiment, in response to an operation on the first control, the first electronic device displays a second interface, including: in response to an operation on the first control, the system UI of the first electronic device sends a third query request to the media content providing module of the first electronic device; in response to receiving the third query request, the media content providing module sends a third query response to the system UI, the third query response including playlist information of multiple second playlists; in response to receiving the third query response, the system UI displays the second interface, the second interface displaying multiple second playlists.
[0555] For example, a third query request may correspond to Figure 14 In S1401, the third query response can correspond to Figure 14 S1402. In this embodiment, the third query request is used to request playlist information for multiple second playlists, and the multiple second playlists can be multiple historical playlists.
[0556] In this embodiment, in response to the operation of the first control, that is, in response to the operation of querying more playlists, the system UI of the first electronic device can obtain multiple second playlists from the media content providing module and display the multiple second playlists to provide users with more playlist recommendations.
[0557] In one optional embodiment, after the first electronic device displays the first interface, the method further includes: the audio recommendation management module of the first electronic device starts a timer; after the timer expires, the audio recommendation management module sends a second notification message to the system UI of the first electronic device, the second notification message being used to instruct the system UI to cancel the display of the first card in the first form.
[0558] For example, the duration of the timer can be set to, for instance, 30 seconds.
[0559] This embodiment illustrates a first electronic device displaying a first card in a first form within a timer duration, allowing a user to view a first playlist and quickly trigger playback of songs in the first playlist. If the user does not respond to the display, the first electronic device can stop displaying the first card in the first form after the timer expires.
[0560] In one optional embodiment, after the first electronic device displays the first interface, the method further includes: the audio recommendation management module of the first electronic device receiving a disconnection event from the second electronic device; in response to receiving the disconnection event from the second electronic device, the audio recommendation management module sending a third notification message to the system UI of the first electronic device, the third notification message being used to instruct the system UI to cancel the display of the first card in the first form.
[0561] For example, the disconnection event of the second electronic device can be a disconnection event of the headphones or a disconnection event of the vehicle system.
[0562] In this embodiment, the first electronic device displays a first card in a first form on a first interface, allowing the user to view a first playlist and quickly trigger playback of songs in the first playlist. If the user has not yet responded to the display, and the first electronic device detects a disconnection event of the second electronic device, the first electronic device may stop displaying the first card in the first form.
[0563] In an optional embodiment, the method further includes: when the first electronic device establishes a connection with the second electronic device, the first electronic device sends a second message to the second electronic device, the second message including playlist information of the first playlist, the second message being used to instruct the second electronic device to display the first playlist.
[0564] For example, the first electronic device can be a mobile phone, and the second electronic device can be a vehicle infotainment system.
[0565] In this embodiment, when the first electronic device is in the first scene and none of the media applications installed on the first electronic device are running, if the first electronic device has established a connection with the second electronic device, the first electronic device can push a first playlist related to the first scene to the second electronic device, so that the user can view the first playlist on the second electronic device.
[0566] In an optional embodiment, the method further includes: a first electronic device receiving a second playback request from a second electronic device, the second playback request including an identifier of a first playlist; in response to receiving the second playback request, the first electronic device launching a first media application and controlling the first media application to play songs in the first playlist.
[0567] For example, in response to the operation of playing the first playlist on the second electronic device, the second electronic device sends a second playback request to the first electronic device to trigger the first electronic device to launch the first media application corresponding to the first playlist and control the first media application to play the songs in the first playlist.
[0568] In an optional embodiment, the method further includes: when the first electronic device is connected to the third electronic device, the first electronic device sends a third message to the third electronic device, the third message being used to instruct the third electronic device to display a notification of playlist recommendations.
[0569] For example, the first electronic device can be a mobile phone, the third electronic device can be a watch, and the playlist recommendation notification displayed on the third electronic device can correspond to: Figure 5 The notification card 5011 is shown in Figure a. In response to an operation on the notification card 5011, the third electronic device may display, for example, a playlist related to the first scene, such as the first playlist.
[0570] In this embodiment, when the first electronic device is in the first scene and none of the media applications installed on the first electronic device are running, if the first electronic device has established a connection with the third electronic device, the first electronic device can push a playlist recommendation notification to the third electronic device to prompt the user to view the playlist related to the first scene on the third electronic device.
[0571] In an optional embodiment, the method further includes: a first electronic device receiving a fourth query request from a third electronic device; in response to receiving the fourth query request, the first electronic device sending a fourth query response to the third electronic device, the fourth query response including playlist information of a first playlist and playlist information of multiple second playlists; the first electronic device receiving a third playback request from the third electronic device, the third playback request including an identifier of the first playlist; in response to receiving the third playback request, the first electronic device launching a first media application and controlling the first media application to play songs in the first playlist.
[0572] For example, in response to an operation that queries a recommended playlist on a third electronic device, the third electronic device obtains information about the recommended playlist from the first electronic device, such as playlist information including a first playlist and multiple second playlists.
[0573] For example, in response to the operation of playing the first playlist on the third electronic device, the third electronic device sends a third playback request to the first electronic device to trigger the first electronic device to launch the first media application corresponding to the first playlist and control the first media application to play the songs in the first playlist.
[0574] In one optional embodiment, the first electronic device displays a first interface, including: when the first electronic device is in a screen-on / screen-locked state, the first electronic device displays a lock screen interface. For example, as shown... Figure 2 The lock screen shown in Figure a displays the recommended first playlist.
[0575] In one optional embodiment, the first electronic device displays a first interface, including: when the first electronic device is in a screen-off / locked state, in response to an operation on the first electronic device, the first electronic device displays a lock screen interface. For example, the operation on the first electronic device could be picking up a mobile phone or double-tapping the display screen of the first electronic device.
[0576] In one optional embodiment, the first electronic device displays a first interface, including: when the first electronic device is in an unlocked state, in response to an operation performed on the display screen of the first electronic device, the first electronic device displays a control center interface. For example, the operation performed on the display screen of the first electronic device can be a swipe down from the top of the screen, a swipe up from the bottom of the screen, a swipe from left to right on the screen, or a swipe from right to left on the screen.
[0577] In one optional embodiment, the first electronic device displays a first interface, including: when the first electronic device is in an unlocked state, the first electronic device displays the first interface, the first interface including a first window, on which a first playlist is displayed. For example, the first interface can be a main interface, or any interface (such as the interface of any application installed on the first electronic device). Taking the first interface as the main interface as an example, the first window can be... Figure 3 The notification bar 3011 shown in d or e displays a scene playlist provided by media application A.
[0578] The above embodiments illustrate that when the first electronic device is in a first scene and both the first media application and the second media application are not running, the first electronic device can display a recommended first playlist in a notification bar that pops up on the lock screen, control center, or any other interface, so that the user can quickly trigger the playback of songs in the scene playlist.
[0579] This application also provides an electronic device, which includes one or more processors and a memory. The memory is coupled to one or more processors and is used to store computer program code. The computer program code includes computer instructions. One or more processors call the computer instructions to cause the electronic device to perform the steps of the aforementioned method embodiments, such as a mobile phone or a first electronic device. The implementation principle and technical effects are similar to those of the aforementioned related embodiments, and will not be repeated here.
[0580] This application also provides a chip system applied to an electronic device. The chip system includes one or more processors, which are used to invoke computer instructions to cause the electronic device to perform the steps of the aforementioned method embodiments, such as a mobile phone or a first electronic device. The implementation principle and technical effects are similar to those of the aforementioned related embodiments, and will not be repeated here.
[0581] This application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the steps of the aforementioned method embodiments, such as a mobile phone or a first electronic device. The implementation principle and technical effects are similar to those of the aforementioned related embodiments, and will not be repeated here.
[0582] This application also provides a computer program product, which includes computer program code. When the computer program code is run on an electronic device, the electronic device performs the steps of the aforementioned method embodiments, such as a mobile phone or a first electronic device. Its implementation principle and technical effects are similar to those of the aforementioned related embodiments, and will not be repeated here.
[0583] The methods described in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted on a computer-readable medium. A computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. A storage medium can be any target medium accessible by a computer.
[0584] In some embodiments, a computer-readable medium may include RAM, ROM, compact discread-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage device, or any other medium targeted to carry or to store required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0585] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0586] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0587] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.
Claims
1. A playlist recommendation method, characterized in that, Applied to a first electronic device, the first electronic device having a first media application and a second media application installed, the method includes: When the first electronic device is in the first scene and both the first media application and the second media application are not running, the first electronic device displays a first interface. The first interface includes a first card in a first form. The first card displays a first control and a first playlist of the first media application. The first playlist is a playlist related to the first scene. In response to an operation on the first control, the first electronic device displays a second interface, which includes a second card and a first card in a second form. The second card displays multiple second playlists, which include playlists from the second media application. The multiple second playlists are displayed in order of playback from near to far, or in order of cumulative playback time within a preset period from large to small, or in order of playback frequency within the preset period from large to small. The first card in the second form displays a playback progress bar and / or a volume slider.
2. The method according to claim 1, characterized in that, When the first electronic device is in the first scenario and both the first media application and the second media application are not running, before the first electronic device displays the first interface, the method further includes: The first electronic device receives a connection event from the second electronic device; In response to the connection event, the first electronic device determines that it is in the first scenario; In response to determining that the first electronic device is in the first scenario, the first electronic device determines that both the first media application and the second media application are in an inactive state.
3. The method according to claim 2, characterized in that, In response to determining that the first electronic device is in the first scenario, the first electronic device determines that both the first media application and the second media application are in a non-running state, including: In response to determining that the first electronic device is in the first scenario, the first electronic device determines that the identification information corresponding to the first scenario is a first identifier; the first identifier is used to indicate that the number of times the user listens to audio in the first scenario within the preset time period is greater than or equal to a preset number; In response to determining that the identification information corresponding to the first scenario is the first identifier, the first electronic device determines that both the first media application and the second media application are in a non-running state.
4. The method according to claim 2 or 3, characterized in that, The first electronic device receives a connection event from the second electronic device, including: the smart service of the first electronic device receives a connection event from the second electronic device; In response to the connection event, the first electronic device determines that it is in the first scenario, including: in response to the connection event, the smart service determines that the first electronic device is in the first scenario; In response to determining that the first electronic device is in the first scenario, the first electronic device determines that both the first media application and the second media application are in a non-running state, including: In response to determining that the first electronic device is in the first scenario, the smart service sends a first message to the audio recommendation management module of the first electronic device, the first message including the identifier of the first scenario; The audio recommendation management module queries the media session service of the first electronic device and finds that both the first media application and the second media application are in an inactive state.
5. The method according to any one of claims 1-3, characterized in that, The first electronic device displays a first interface, including: The first electronic device queries the playlist information corresponding to the first scenario. The playlist information corresponding to the first scenario includes the playlist information of the first playlist, which includes the playlist title, playlist identifier, playlist cover, and identifier of the first scenario. After the first electronic device retrieves the playlist information corresponding to the first scenario, the first electronic device displays the first interface, which shows the first playlist.
6. The method according to claim 5, characterized in that, The first electronic device queries the playlist information corresponding to the first scenario, including: The first electronic device obtains the playlist information corresponding to the identifier of the first scene based on the identifier of the first scene. The playlist information corresponding to the identifier of the first scene includes the playlist information of the first playlist.
7. The method according to claim 5, characterized in that, The first electronic device queries the playlist information corresponding to the first scenario, including: The audio recommendation management module of the first electronic device sends a first query request to the media content providing module of the first electronic device, and the first query request includes the identifier of the first scene; In response to receiving the first query request, the media content providing module sends a first query response to the audio recommendation management module, the first query response including playlist information corresponding to the first scenario; The first electronic device displays the first interface, including: The audio recommendation management module sends the playlist information corresponding to the first scene to the system user interface (UI) of the first electronic device. Upon receiving the playlist information corresponding to the first scenario, the system UI displays the playlist corresponding to the first scenario on the first interface.
8. The method according to claim 6 or 7, characterized in that, The playlist information corresponding to the first scenario also includes the playlist information corresponding to the first scenario provided by the second media application, and the method further includes: The first electronic device determines and pushes the first playlist of the first media application with the longest cumulative playback time based on the cumulative playback time of the media application within the preset time period.
9. The method according to claim 8, characterized in that, The first electronic device determines and pushes the first playlist of the first media application with the longest cumulative playback time based on the cumulative playback time of the media application within the preset time period, including: The audio recommendation management module of the first electronic device determines and pushes the first playlist of the first media application with the longest cumulative playback time based on the cumulative playback time of the media application within the preset time period.
10. The method according to any one of claims 6-7 and 9, characterized in that, Before the first electronic device queries the playlist information corresponding to the first scenario, the method includes: The first electronic device queries the screen status of the display, which is in a screen-on / screen-off state.
11. The method according to claim 10, characterized in that, The first electronic device queries the screen status of the display, including: The audio recommendation management module of the first electronic device obtains the screen status of the display from the screen management module of the first electronic device.
12. The method according to any one of claims 6-7, 9, and 11, characterized in that, Before the first electronic device queries the playlist information corresponding to the first scenario, the method further includes: After the first electronic device detects the playback event of the first media application, the first electronic device receives the playlist information of the first media application. The playlist information of the first media application includes the playlist title, playlist cover, time point when the playlist started playing, and scene identifier of the playlist corresponding to the song being played. In response to receiving playlist information from the first media application, the first electronic device stores the playlist information from the first media application.
13. The method according to claim 12, characterized in that, The first electronic device receives playlist information from the first media application, including: The audio recommendation management module of the first electronic device receives playlist information from the first media application; The first electronic device stores playlist information of the first media application, including: The audio recommendation management module writes the playlist information of the first media application to the media content providing module of the first electronic device.
14. The method according to any one of claims 1-3, 6-7, 9, and 11, characterized in that, After the first electronic device displays the first interface, the method further includes: In response to an operation performed on the first playlist, the first electronic device launches the first media application and controls the first media application to play songs in the first playlist. After the first electronic device displays the second interface, the method further includes: In response to an operation on the third playlist, the first electronic device launches the second media application and controls the second media application to play songs in the third playlist; the third playlist is the playlist of the second media application among the plurality of second playlists.
15. The method according to claim 14, characterized in that, In response to an operation applied to the first playlist, the first electronic device launches the first media application and controls the first media application to play songs from the first playlist, including: In response to an operation performed on the first playlist, the system UI of the first electronic device sends a first playback request to the media session service of the first electronic device, the first playback request including the identifier of the first playlist; The media session service sends the first playback request to the first media application; In response to receiving the first playback request, the first media application starts and plays the songs in the first playlist.
16. The method according to claim 15, characterized in that, In response to an operation performed on the first playlist, the first electronic device launches the first media application, including: In response to an operation applied to the first playlist, the first electronic device determines that the identifier of the first playlist corresponds to the first media application based on the correspondence between the playlist identifier and the media application identifier stored in the first electronic device. The first electronic device launches the first media application; In response to an operation performed on the third playlist, the first electronic device launches the second media application, including: In response to the operation applied to the third playlist, the first electronic device determines that the identifier of the third playlist corresponds to the second media application based on the correspondence between the playlist identifier and the media application identifier; The first electronic device launches the second media application.
17. The method according to claim 16, characterized in that, In response to an operation applied to the first playlist, the first electronic device determines that the identifier of the first playlist corresponds to the first media application based on a pre-stored correspondence between playlist identifiers and media application identifiers, including: In response to an operation performed on the first playlist, the media session service of the first electronic device sends a second query request to the media content providing module of the first electronic device, the second query request including the identifier of the first playlist; The media content providing module determines that the identifier of the first playlist corresponds to the first media application based on the pre-stored correspondence between playlist identifiers and media application identifiers; The media content providing module sends a second query response to the media session service, the second query response including the identifier of the first media application corresponding to the identifier of the first playlist.
18. The method according to any one of claims 1-3, 6-7, 9, 11, 13, 15-17, characterized in that, After the first electronic device displays the first interface, the method further includes: In response to an operation performed on the first playlist, the first electronic device displays a third interface, the third interface including a third card, the third card displaying information about the song currently playing in the first playlist; After the first electronic device displays the second interface, the method further includes: In response to an operation on the third playlist, the first electronic device displays a fourth interface, which includes a fourth card displaying information about the song currently playing in the third playlist.
19. The method according to any one of claims 15-17, characterized in that, After the first electronic device launches the first media application and controls the first media application to play songs from the first playlist, the method further includes: The first electronic device records the registration status of the media session corresponding to the first media application as "registered" and updates the playback status of the media player to "playing". After the first electronic device launches the second media application and controls the second media application to play songs from the third playlist, the method further includes: The first electronic device records the registration status of the media session corresponding to the second media application as "registered" and updates the playback status of the media player to "playing".
20. The method according to any one of claims 1-3, 6-7, 9, 11, 13, 15-17, characterized in that, In response to an operation on the first control, the first electronic device displays a second interface, including: In response to the operation of the first control, the system UI of the first electronic device sends a third query request to the media content providing module of the first electronic device; In response to receiving the third query request, the media content providing module sends a third query response to the system UI, the third query response including the playlist information of the plurality of second playlists; In response to receiving the third query response, the system UI displays the second interface, which displays the multiple second playlists.
21. The method according to any one of claims 1-3, 6-7, 9, 11, 13, 15-17, characterized in that, After the first electronic device displays the first interface, the method further includes: The audio recommendation management module of the first electronic device starts a timer; After the timer expires, the audio recommendation management module sends a second notification message to the system UI of the first electronic device. The second notification message is used to instruct the system UI to cancel the display of the first card in the first form.
22. The method according to any one of claims 2-3, 6-7, 9, 11, 13, 15-17, characterized in that, After the first electronic device displays the first interface, the method further includes: The audio recommendation management module of the first electronic device receives a disconnection event from the second electronic device; In response to receiving a disconnection event from the second electronic device, the audio recommendation management module sends a third notification message to the system UI of the first electronic device. The third notification message is used to instruct the system UI to cancel the display of the first card in the first form.
23. The method according to any one of claims 1-3, 6-7, 9, 11, 13, 15-17, characterized in that, The method further includes: When the first electronic device establishes a connection with the second electronic device, the first electronic device sends a second message to the second electronic device. The second message includes the playlist information of the first playlist and is used to instruct the second electronic device to display the first playlist.
24. The method according to any one of claims 1-3, 6-7, 9, 11, 13, 15-17, characterized in that, The method further includes: When the first electronic device is connected to the third electronic device, the first electronic device sends a third message to the third electronic device, the third message being used to instruct the third electronic device to display a notification of playlist recommendations.
25. The method according to any one of claims 1-3, 6-7, 9, 11, 13, 15-17, characterized in that, The first electronic device displays a first interface, including any one of the following: When the first electronic device is in a screen-on / locked state, the first electronic device displays the lock screen interface; or When the first electronic device is in a screen-off and locked state, in response to an operation on the first electronic device, the first electronic device displays the lock screen interface; or When the first electronic device is in an unlocked state, in response to an operation performed on the display screen of the first electronic device, the first electronic device displays a control center interface; or When the first electronic device is in an unlocked state, the first electronic device displays the first interface, which includes a first window on which the first playlist is displayed.
26. An electronic device, characterized in that, The electronic device includes: one or more processors and memory; The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 25.
27. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the one or more processors being used to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 25.
28. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 25.
29. A computer program product, characterized in that, The computer program product includes computer program code that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1 to 25.
Citation Information
Patent Citations
Song display method and device, equipment and storage medium
CN110245255A
Song recommendation method and system
CN111694982A