Method for implementing media playback control, electronic device, system, and readable storage medium
By displaying and operating media applications of another device on one smart device, the difficulty of users finding media applications in multiple devices is solved, and the efficiency and user experience of media broadcast control is improved.
Patent Information
- Application Number
- PCT/CN2024/088242
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-20
- Filing Date
- 2024-04-17
- Publication Date
- 2024-11-14
AI Technical Summary
When collaborating between smart electronic devices, it is difficult for users to quickly find and open media applications on other devices, affecting user experience and operational efficiency.
By displaying media application icons on another device on one electronic device and obtaining and playing corresponding media data in response to user input operations, the media playback process is simplified and the time for users to look up in multiple applications is reduced.
Improves the operation efficiency of media broadcast control, saves user time, improves user experience, and simplifies media selection and playback process by directly displaying and playing media applications on another device.
Smart Images

Figure CN2024088242_14112024_PF_FP_ABST
Abstract
Description
Method, electronic device, system and readable storage medium for realizing media playback control Technical Field
[0001] The present application relates to the field of electronic devices, and in particular to a method, electronic device, system, and readable storage medium for implementing media playback control. Background Art
[0002] With the continuous development of smart electronic devices (such as smartphones, smart watches, and smart tablets), the number of applications (apps) for these devices has continued to grow. These devices have become the information hub of our lives. Individuals increasingly own multiple smart electronic devices. At the same time, they are able to run a growing number of media applications, such as audio and video, on these devices.
[0003] As the collaboration capabilities between smart devices become stronger and stronger, users can open a media application on other electronic devices on one electronic device, but there is a lack of a quick way for users to easily find the media application on other electronic devices that they want to open, which affects the user experience.
[0004] Summary of the Invention
[0005] The purpose of this application is to provide a method, electronic device, system and readable storage medium for implementing media playback control, so as to improve the operational efficiency of media playback control and thus enhance the user experience.
[0006] The above-mentioned and other objects are achieved by the features of the independent claims, with further implementations emerging from the dependent claims, the description and the drawings.
[0007] In a first aspect, a method for implementing media playback control is provided, the method being applied to a first electronic device, the method comprising:
[0008] Displaying a first interface of a media playback control application on a first electronic device;
[0009] detecting a first input operation on the first interface;
[0010] In response to the first input operation, obtaining information of M target applications installed on a second electronic device, where the second electronic device is connected to the first electronic device, the M target applications being media-type applications (hereinafter referred to as media applications) on the second electronic device, the media type being an audio type or a video type, and M being a positive integer;
[0011] Displaying a second interface of the media playback control application according to information of N target applications among the M target applications, where the second interface includes icons of the N target applications;
[0012] detecting a second input operation applied to a first icon, where the first icon is an icon of a first application among the N target applications;
[0013] In response to the second input operation, media data of the first application running on the second electronic device is acquired and the media data is played.
[0014] Specifically, the first electronic device may establish a short-range connection (such as a wireless local area network connection or a Bluetooth connection) with the second electronic device, or the first electronic device may be connected to the second electronic device through a server.
[0015] According to the implementation method of the first aspect of the present application, the icon of a media application (such as Huawei Music) on one electronic device (i.e., the second electronic device) can be displayed on the interface of a media playback control application on another electronic device (i.e., the first electronic device), and the media data of the media application can be played on the first electronic device by operating the icon of the media application. There is no need to search for the media application in a large number of applications of various types, which improves the operational efficiency of media playback control and saves user time.
[0016] The media broadcast control application can specifically be an audio broadcast control application, and accordingly, the M target applications are all audio-type applications. The media broadcast control application can also be a video broadcast control application, and accordingly, the M target applications are all video-type applications. According to these two implementation methods, the broadcast control of audio media or video media can be specifically implemented, which is more targeted and further improves the operational efficiency of media broadcast control.
[0017] The information of any target application received by the first electronic device may include the icon of the target application. Accordingly, the first electronic device may directly display the icon included in the information of the target application. According to this implementation, the icon of the target application can be quickly acquired and displayed with high efficiency.
[0018] The information about any target application received by the first electronic device may include an identifier of the target application (e.g., the package name of the target application). The first electronic device may retrieve an icon for the target application stored on the device based on the identifier of the target application and then display the retrieved icon. According to this implementation, the information about the target application may not need to include the icon of the target application, thereby reducing the amount of data transmitted.
[0019] It should be noted that the target application information may include both the identifier of the target application and the icon of the target application. In this implementation, the icon included in the target application information may be directly displayed.
[0020] In combination with the first aspect, in certain implementations of the first aspect, the method for obtaining information of M target applications installed on the second electronic device may specifically be: sending a request message to the second electronic device, wherein the request message is used to request information of the target application of the second electronic device; and receiving a response message from the second electronic device, wherein the response message includes information of the target application.
[0021] According to this implementation, when a user input operation is detected, a request is made to the second electronic device to obtain information of the target application. The information of the target application can be temporarily obtained when it is to be displayed, thereby ensuring the accuracy of the obtained information.
[0022] In some embodiments, after the first electronic device sends a request message to the second electronic device, if it does not receive a response message from the second electronic device within a certain period of time, it will continue to send request messages to obtain information about M target applications installed on the second electronic device. If the number of transmissions exceeds a preset number, it will stop sending request messages to the second electronic device to ensure that in an unstable network scenario, the first electronic device can obtain information about the target application from the second electronic device.
[0023] In combination with the first aspect, in certain implementations of the first aspect, the method for obtaining information on M target applications installed on the second electronic device can specifically be: obtaining information on M target applications on the second electronic device from the cache of the first electronic device, where the information on the M target applications is the information on the M target applications actively sent by the second electronic device when the first electronic device is connected to the second electronic device.
[0024] Specifically, when the electronic devices are connected, the second electronic device actively sends the information of the M target applications to the first electronic device, or the first electronic device sends a request message to the second electronic device to obtain the information of the M target applications. After receiving the information of the M target applications on the second electronic device, the first electronic device saves the received information of the M target applications in the cache of the first electronic device. When the first electronic device wants to display the information of the target application, it can directly obtain the information from the cache of the first electronic device, thereby improving the efficiency of information acquisition.
[0025] In some embodiments, after a second electronic device proactively sends information about an application installed and previously run on the second electronic device to a first electronic device, if it does not receive a response message from the first electronic device within a certain period of time, it will continue to send information about the target application installed on the second electronic device to the first electronic device. If the number of transmissions exceeds a preset number, it will stop sending information to the first electronic device. This ensures that the first electronic device can obtain the target application information from the second electronic device in scenarios where the network is unstable.
[0026] In combination with the first aspect, in some implementations of the first aspect, the M target applications have been opened on the second electronic device.
[0027] Specifically, if the user wants to use a media application that was previously opened on the second electronic device, when the user wants to use the media application on the first electronic device, the icon of the media application can be directly seen on the interface of the media playback control application. According to this implementation method, the user can quickly find the previously opened media application, which further saves the user's time.
[0028] In combination with the first aspect, in some implementations of the first aspect, the second interface includes a first area and a second area, the first area is used to display the status of media playback, and the second area includes icons of the N target applications.
[0029] Specifically, the second interface of the media playback control app consists of two areas. The first area displays the status of media playback, notifying the user of the currently playing app. The second area displays icons of N target apps, prompting the user to select which media apps to play. By displaying the playback status of the currently playing app and the available media apps in different areas of the media playback control app, users can more conveniently view media app information and easily control playback.
[0030] In combination with the first aspect, in some implementations of the first aspect, the method further includes: in response to the second input operation, displaying the first icon and the media playback status of the first application in the first area.
[0031] Specifically, in response to the second input operation, the first area displays the application icon of the media application currently playing to prompt the user of the media application currently playing. In addition, the first area also displays the media playback status of the media application, such as the cover of the media currently playing, control buttons for controlling media playback, media playback progress, etc. According to this implementation, the user-friendliness of the interface and the convenience of playback control operations are further improved.
[0032] In some embodiments, when the first area displays the cover of the media being played, the cover may also be displayed in a rotating manner or in a highlighted flashing manner to better remind the user of the media information currently being played.
[0033] In combination with the first aspect, in some implementations of the first aspect, the method further includes: updating display information of the second area, where the updated display information does not include the first icon.
[0034] Specifically, when a user clicks the icon of the first of N target applications in the second area of the second interface of the media playback and control application, the icon of the first application will be displayed in the first area of the second interface of the media playback and control application, indicating the currently playing media application. The display information in the second area will be updated accordingly. The updated display information no longer displays the icon of the first application. In other words, the media application currently playing in the first area of the media playback and control application will not appear in the second area. According to this implementation method, the icon of the currently playing media application will not be repeatedly displayed in the second area, which improves the simplicity of the interface and further enhances the user experience.
[0035] In combination with the first aspect, in certain implementations of the first aspect, the method includes: detecting a third input operation acting on a second icon in the second area, where the second icon is an icon of a second application among the N target applications; in response to the third input operation, obtaining media data of the second application running on the second electronic device and playing the media data; displaying the second icon and the media playback status of the second application in the first area; and updating the display information of the second area, where the updated display information includes the first icon but does not include the second icon.
[0036] Specifically, after the user clicks on the second icon representing the second application in the second area of the second interface of the media playback control application, a switching operation will occur with the first icon representing the first application in the first area of the second interface, that is, the first application that is being played will be paused, and its first icon will be displayed in the second area, and the media data of the second application will be sent from the second electronic device to the first electronic device. The first electronic device will play the received media data of the second application and display the first icon in the first area. In this way, after the user quickly finds the application he wants to play, he can play it by clicking the icon, and it will be displayed in the playback interface of the media playback control application. According to this implementation method, the user can flexibly select the application he wants to play in the media playback control application, further improving the user experience.
[0037] In combination with the first aspect, in some implementations of the first aspect, the method further includes: displaying a device type icon, wherein the device type icon is used to indicate the type of the second electronic device, and the device type icon is displayed in association with the icons of the N target applications.
[0038] In an embodiment of the present application, the device type icon of the second electronic device is displayed in association with the icons of N target applications, and the device type icon is displayed in the upper right corner of the area displaying the N target applications to prompt the user that the target application in the area is associated with the second electronic device. Alternatively, the display form of the device type icon can also be highlighted, grayscale, or shaded. According to this implementation method, the user can quickly identify the electronic device associated with the target application in the area through the icon of the device type associated with the area, thereby improving the friendliness of the interface.
[0039] In combination with the first aspect, in some implementations of the first aspect, the device type icon may be displayed in association with an icon of each target application among the N target applications.
[0040] In an embodiment of the present application, an icon identifying the second electronic device type is displayed in the upper right corner of each target application icon. Alternatively, the device type icon can be displayed in a highlighted, grayscale, or shaded manner. According to this implementation, the user can quickly identify the electronic device associated with each target application through the device type icon associated with the target application icon, thereby improving the user-friendliness of the interface.
[0041] In combination with the first aspect, in certain implementations of the first aspect, the method includes: displaying information about the latest media played by the N target applications, wherein the information about the latest media played by each target application is displayed in association with an icon of the target application.
[0042] Specifically, while displaying media information for N target applications, information about the most recently played media by the target application is also displayed in association with the target application's icon. The user can then select the application they want to open from the N target applications based on the most recently played media information. This implementation eliminates the need for users to click on the target application's icon to open it in order to obtain the most recently played media information, making it easier for users to select the application they want to open and further enhancing the user experience.
[0043] In some embodiments, the most recently played media information may be the name of the audio being played.
[0044] In combination with the first aspect, in certain implementations of the first aspect, the method includes: receiving an update message sent by the second electronic device, the update message including information of a third application, and the third application does not belong to the M target applications; and displaying the icon of the third application in the second area according to the update message.
[0045] Specifically, the third application installed on the second electronic device changes from a stopped state to an open state, and the third application does not belong to the M target applications. In response to the state change of the third application, the second electronic device will send an update message to the first electronic device, and the update message includes information about the third application. After receiving the update message sent by the second electronic device, the first electronic device displays the icon of the third application in the second area of the second interface of the first electronic device according to the update message. The user can see that the icon of the most recently opened application is displayed in the second area of the first electronic device without having to reconnect the device to obtain the information of the most recently opened application. According to this implementation method, the first electronic device can obtain the information of the most recently opened target application, ensuring the real-time nature of the obtained information.
[0046] In some embodiments, the third application installed on the second electronic device changes from a stopped state to an open state, which can be caused by a user clicking the icon of the third application on the second electronic device. The second electronic device responds to the user's click operation and starts the third application on the second electronic device. The third application changes from a stopped state to an open state and sends an update message to the first electronic device.
[0047] In some embodiments, the third application installed on the second electronic device changes from a stopped state to an open state. Alternatively, the user clicks the icon of the third application in the application list of the second electronic device on the first electronic device. The first electronic device sends a request to obtain the media data of the third application on the second electronic device in response to the user's click operation. After the second electronic device receives the request message sent by the first electronic device to obtain the media data of the third application, it starts the third application, that is, changes the third application from a stopped state to an open state, returns a response message of the media data of the third application to the first electronic device, and sends an update message to the first electronic device.
[0048] In combination with the first aspect, in certain implementations of the first aspect, the order in which the icons of the N target applications are displayed is consistent with the order of the most recent opening time of each target application.
[0049] In this embodiment, when the first electronic device displays N target applications, the icons of the target applications are displayed in the order of the most recent opening time of each target application. According to this implementation, the user can more conveniently find the target application that was recently opened, thereby improving the user experience.
[0050] In combination with the first aspect, in certain implementations of the first aspect, the information of the M target applications sent by the second electronic device includes the most recent opening time of each target application, and the first electronic device sorts the received target applications according to their most recent opening time and displays the icons of the first N target applications.
[0051] Specifically, the second electronic device stores the most recent opening times of M target applications. Before sending information about the target applications, the second electronic device does not need to sort the target applications. Instead, the information sent to the first electronic device includes the most recent opening time of each target application. After the first electronic device receives the information about the M target applications sent by the second electronic device, it sorts the applications based on the most recent opening time received and displays the icons of the first N target applications. According to this implementation, the first electronic device sorts and displays the applications based on the most recent opening time obtained, increasing the flexibility of the first electronic device's sorting.
[0052] In some embodiments, considering the possibility of time asynchrony between multiple devices, the last opening time of each target application sent by the second electronic device can be Universal Time Coordinated (UTC). UTC, also known as Universal Time, coordinates the time between various devices to maintain synchronization.
[0053] In combination with the first aspect, in certain implementations of the first aspect, the method includes: sorting the information of the M target applications received from the second electronic device according to the most recent opening time of each target application, and the first electronic device displaying the icons of the first N target applications in the order of the target applications.
[0054] In this embodiment, the first electronic device receives information about the M target applications and sorts them by the time each target application was most recently opened. The first electronic device does not need to sort the applications again and directly displays the icons of the first N target applications in the sorted order. This implementation eliminates the need for the first electronic device to perform a sorting operation, speeding up the display of target application icons and providing a better user experience.
[0055] In combination with the first aspect, in some implementations of the first aspect, the method includes: displaying an icon of at least one media type application installed on the first electronic device in the second area.
[0056] In this embodiment, the second area of the second interface of the first electronic device may display at least one media type application on the first electronic device in addition to the target application on the second electronic device. According to this implementation, the user can select not only the target application on the second electronic device but also the media application on the first electronic device in the second area, providing more options and improving the user experience.
[0057] In combination with the first aspect, in some implementations of the first aspect, the second area includes a first sub-area and a second sub-area, the first sub-area is used to display an icon of the target application, and the second sub-area is used to display an icon of a media type application installed on the first electronic device.
[0058] Specifically, the second area of the second interface of the first electronic device includes two sub-areas, namely the first sub-area and the second sub-area. Among them, the first sub-area is used to display the icon of the target application of the second electronic device, and the user can select the application installed on the second electronic device in this sub-area; the second sub-area is used to display the icon of the media type application installed on the first electronic device, and the user can select the media type application installed on the first electronic device in this sub-area. According to this implementation method, the areas of the first electronic device and the second electronic device are distinguished by different sub-areas, and the user can see the icons of different electronic devices in different areas, thereby more conveniently selecting applications on different electronic devices.
[0059] In a second aspect, a system for implementing media playback control is provided, the system including a first electronic device and a second electronic device, the system including:
[0060] The first electronic device is used to display a first interface of a media playback control application on the first electronic device;
[0061] The first electronic device is further configured to, in response to detecting a first input operation acting on the first interface, obtain information of M target applications installed on a second electronic device, where the second electronic device is connected to the first electronic device, the M target applications being media type applications that have been opened on the second electronic device, where the media type is an audio type or a video type, and M is a positive integer;
[0062] The first electronic device also displays a second interface of the media playback control application based on information of N target applications among the M target applications, where the second interface includes icons of the N target applications; detects a second input operation acting on a first icon, where the first icon is an icon of a first application among the N target applications; and in response to the second input operation, obtains media data of the first application running on the second electronic device and plays the media data.
[0063] The second electronic device is configured to send information of M target applications installed on the second electronic device to the first electronic device, the first electronic device being connected to the second electronic device, the M target applications being media type applications opened on the second electronic device, the media type being an audio type or a video type, and M being a positive integer;
[0064] The second electronic device is further used to receive a first request message sent by the first electronic device, where the first request message is used to request media data of a first application among the M target applications; and send the media data of the first application to the first electronic device.
[0065] In this system, when the electronic devices are connected, the first electronic device obtains information about M target applications installed on the second electronic device, and the M target applications are the types of media applications that have been opened on the second electronic device. Based on the information of the M target applications obtained, the icons of N target applications in the M target applications are displayed on the first electronic device. The user can click on the icon of any application in the N target applications to obtain the media data of the running application from the second electronic device and play the media data. In the implementation of this application, the icon of a media application (such as Huawei Music) opened on an electronic device (i.e., the second electronic device) can be displayed on the interface of the media playback control application of another electronic device (i.e., the first electronic device). Usually, the user wants to use an application that has been opened before. When the user wants to use the media application on the first electronic device, he can directly see the icon of the media application on the interface of the media playback control application and play the media data of the media application on the first electronic device by operating the icon of the media application. There is no need to search for the media application in a large number of applications of various types, which improves the operational efficiency of the media playback control and saves the user's time.
[0066] In some embodiments, after sending a request message to the second electronic device, if the first electronic device does not receive a response message from the second electronic device within a certain period of time, it will continue to send request messages to obtain information on M target applications installed on the second electronic device.
[0067] In some embodiments, after the second electronic device actively sends information about applications installed and run on the second electronic device to the first electronic device, if it does not receive a response message from the first electronic device within a certain period of time, it will continue to send information about applications installed and run on the second electronic device to the first electronic device.
[0068] In combination with the second aspect, in some implementations of the second aspect, the M target applications have been opened on the second electronic device.
[0069] Specifically, if the user wants to use an application that has been previously opened on the second electronic device, when the user wants to use the media application on the first electronic device, the icon of the media application can be directly seen on the interface of the media playback control application. According to this implementation method, the user can quickly find the previously opened application, which further saves the user's time.
[0070] In combination with the second aspect, in some implementations of the second aspect, the first electronic device further displays a device type icon, where the device type icon is used to indicate the type of the second electronic device, and the device type icon is displayed in association with the icons of the N target applications.
[0071] In this embodiment of the present application, a device type icon for the second electronic device is displayed in association with the icons of N target applications. This device type icon is displayed in the upper right corner of the area displaying the N target applications, prompting the user that the target application in the area is associated with the second electronic device. This implementation allows the user to quickly identify the electronic device associated with the target application in the area using the device type icon associated with the area, improving the user-friendliness of the interface.
[0072] Alternatively, the display form of the device type icon may also be highlighted, grayscale, or shadowed.
[0073] In combination with the second aspect, in certain implementations of the second aspect, the first electronic device is also used to receive an update message sent by the second electronic device, the update message including information of a second application, and the second application does not belong to the M target applications; and the icon of the second application is displayed in the second area according to the update message.
[0074] Specifically, the second application installed on the second electronic device changes from a stopped state to an open state, and the second application does not belong to the M target applications. In response to the state change of the second application, the second electronic device will send an update message to the first electronic device, and the update message includes information about the second application. After receiving the update message sent by the second electronic device, the first electronic device displays the icon of the second application in the second area of the second interface of the first electronic device according to the update message. The user can see that the icon of the most recently opened application is displayed in the second area of the first electronic device without having to reconnect the device to obtain the information of the most recently opened application. According to this implementation method, the first electronic device can obtain the information of the most recently opened target application, ensuring the real-time nature of the obtained information.
[0075] In combination with the second aspect, in certain implementations of the second aspect, the M target applications belong to a first whitelist of the second electronic device, and the first whitelist includes one or more media type applications; the second electronic device is used to open a second application, and the second application does not belong to the M target applications and belongs to the first whitelist; the second electronic device is also used to send an update message to the first electronic device, and the update message includes information of the updated M target applications, and the updated information of the M target applications includes information of the second application.
[0076] Specifically, the M target applications sent by the second electronic device to the first electronic device are applications within the second electronic device's first whitelist, which includes one or more media-type applications. This implementation ensures that, after the media application information is sent to the first electronic device, it can be played by the media playback control application on the first electronic device, avoiding playback failures that affect the user experience.
[0077] In a third aspect, a method for implementing media playback control is provided, the method being applied to a second electronic device, the method comprising:
[0078] Send information of M target applications installed on the second electronic device to the first electronic device, where the first electronic device is connected to the second electronic device, the M target applications are media type applications that have been opened on the second electronic device, the media type is an audio type or a video type, and M is a positive integer; receive a first request message sent by the first electronic device, where the first request message is used to request media data of a first application among the M target applications; and send the media data of the first application to the first electronic device.
[0079] Specifically, before the second electronic device is connected to the first electronic device, it will record the media type applications that have been opened on the second electronic device. It can be understood that the media type is audio type or video type. When the second electronic device is connected to the first electronic device, it can send information about M media applications installed on the second electronic device to the first electronic device. The second electronic device is also used to receive a request message sent by the first electronic device, which is used to request the media data of the first application among the M target applications. When the second electronic device receives the request message, it will determine whether the first application is running. If it is not running, it will open the first application on the second electronic device and return the media data of the first application to the first electronic device. According to this implementation, information about media applications (such as Huawei Music) opened on one electronic device (i.e., the second electronic device) can be sent to another electronic device (i.e., the first electronic device) without having to send all application information to the other electronic device, thereby improving the transmission efficiency of media application information. In some embodiments, when the second electronic device sends a request message to send information about M target applications to the first electronic device, if it does not receive a response message from the first electronic device within a certain period of time, it will continue to send information about the target applications installed on the second electronic device to the first electronic device. If the number of transmissions exceeds a preset number, it will stop sending to the first electronic device. Ensure that the first electronic device can obtain information of M target applications from the second electronic device in a scenario where the network is unstable.
[0080] In combination with the third aspect, in certain implementations of the third aspect, the M target applications have been opened on the second electronic device.
[0081] Specifically, the second electronic device sends information about M target applications that are installed on the second electronic device and have been opened to the first electronic device, so that the user can see the media applications that were previously opened on the second electronic device on the first electronic device. According to this implementation, the user can quickly find the media applications that have been opened previously, which further saves the user's time.
[0082] In conjunction with the third aspect, in certain implementations of the third aspect, the M target applications belong to a first whitelist, and the first whitelist includes applications of one or more media types;
[0083] Opening a second application, where the second application does not belong to the M target applications and belongs to the first whitelist;
[0084] An update message is sent to the first electronic device, where the update message includes updated information of the M target applications, and the updated information of the M target applications includes information of the second application.
[0085] Specifically, the M target applications sent by the second electronic device to the first electronic device are applications within the second electronic device's first whitelist, which includes one or more media-type applications. This implementation ensures that, after the media application information is sent to the first electronic device, it can be played by the media playback control application on the first electronic device, avoiding playback failures that affect the user experience.
[0086] In combination with the third aspect, in certain implementations of the third aspect, the applications in the M target applications are the most recent M applications in the first whitelist determined based on the most recent opening time of the applications.
[0087] Specifically, the M target applications are within the whitelist range, and the most recent M applications are determined based on the sorting of the most recent opening time of each target application.
[0088] In combination with the third aspect, in certain implementations of the third aspect, the information of the M target applications is sent in order of the most recent opening time of each target application.
[0089] Specifically, when the second electronic device sends information about M target applications to the first electronic device, the M target applications are sorted by the most recent opening time of each target application. The sorting is performed on the second electronic device, and the opening time of each target application may not be included in the message sent by the second electronic device to the first electronic device, simplifying the message format between devices. After receiving the message, the first electronic device can display the received target applications in order, which also simplifies the processing flow of the first electronic device and improves the display efficiency of the first electronic device. According to this implementation method, the efficiency of the first electronic device in displaying the target application icons is improved.
[0090] In combination with the third aspect, in certain implementations of the third aspect, the information of the target application includes information of the latest media played by the target application.
[0091] In this embodiment, the target application information sent by the second electronic device to the first electronic device includes media information currently being played by the target application. This information is sent to the first electronic device for display in association with the target application icon. According to this implementation, the user can see the media information currently being played by the application in the icon display area of the target application, making it easier for the user to select the application to open and further improving the user experience. In some embodiments, the most recently played media information can be the name of the audio currently being played.
[0092] In a fourth aspect, a communication device for implementing media playback control is provided. The device is applied to a first electronic device and includes a display unit and a processing unit, wherein:
[0093] The display unit is configured to display a first interface of a media playback control application on the first electronic device;
[0094] The processing unit is configured to detect a first input operation applied to the first interface; and in response to the first input operation, obtain information of M target applications installed on a second electronic device, where the second electronic device is connected to the first electronic device, the M target applications being media type applications that have been opened on the second electronic device, where the media type is an audio type or a video type, and M is a positive integer;
[0095] The display unit is further configured to display a second interface of the media playback control application based on information of N target applications among the M target applications, where the second interface includes icons of the N target applications;
[0096] The processing unit is further used to detect a second input operation acting on a first icon, where the first icon is an icon of a first application among the N target applications; in response to the second input operation, obtain media data of the first application running on the second electronic device and play the media data.
[0097] In a fifth aspect, a communication device for implementing media playback control is provided. The device is applied to a second electronic device and includes a communication unit and a processing unit, wherein:
[0098] The processing unit is configured to send information of M target applications installed on the second electronic device to the first electronic device via the communication unit, where the first electronic device is connected to the second electronic device, the M target applications being media type applications that have been opened on the second electronic device, the media type being an audio type or a video type, and M being a positive integer;
[0099] The processing unit is also used to: receive a first request message sent by the first electronic device through the communication unit, where the first request message is used to request media data of a first application among the M target applications; and send the media data of the first application to the first electronic device through the communication unit.
[0100] The sixth aspect is an electronic device according to an embodiment of the present application, comprising: a memory, wherein the memory is used to store computer program code, wherein the computer program code includes instructions, and when the electronic device reads the instructions from the memory, the electronic device executes a technical solution as described in the first aspect above and any possible design of the first aspect thereof.
[0101] The seventh aspect is a computer-readable storage medium according to an embodiment of the present application, wherein the computer-readable storage medium includes a computer program. When the computer program runs on an electronic device, the electronic device executes a technical solution such as the first aspect and any possible design of the first aspect.
[0102] The eighth aspect is a computer program according to an embodiment of the present application, wherein the computer program includes instructions. When the instructions are executed on a computer, the computer executes the technical solution of the first aspect and any possible design of the first aspect.
[0103] The ninth aspect is a graphical user interface on an electronic device according to an embodiment of the present application, wherein the electronic device has a display screen, one or more memories, and one or more processors, wherein the one or more processors are used to execute one or more computer programs stored in the one or more memories, and the graphical user interface includes a graphical user interface displayed when the electronic device executes the above-mentioned first aspect and any possible design technical solution of the first aspect.
[0104] It should be noted that for the beneficial effects of the various designs of the terminal devices provided in aspects 4 to 10 of the embodiments of this application, please refer to the beneficial effects of any possible design in aspect 1, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS
[0105] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0106] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
[0107] FIG2 is a software structure block diagram of an electronic device provided in an embodiment of the present application.
[0108] FIG3 is a set of GUIs provided in an embodiment of the present application.
[0109] FIG4 is a schematic diagram of the architecture provided in an embodiment of the present application.
[0110] FIG5 is an overall flow chart provided in an embodiment of the present application.
[0111] Figures 6-8 are a set of GUIs provided in an embodiment of the present application.
[0112] FIG9 is a schematic diagram of a process for obtaining a target application according to an embodiment of the present application.
[0113] Figures 10-14 are a set of GUIs provided in an embodiment of the present application.
[0114] FIG15 is a schematic diagram of a process for obtaining an update message according to an embodiment of the present application.
[0115] Figures 16-20 are a set of GUIs provided in an embodiment of the present application.
[0116] 21-22 are schematic diagrams of the device structure provided in the embodiments of the present application. DETAILED DESCRIPTION
[0117] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification of this application and the appended claims, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship.
[0118] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0119] The following describes an electronic device, a user interface for such an electronic device, and embodiments for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication functions (such as a smart watch), etc. Exemplary embodiments of portable electronic devices include but are not limited to devices equipped with Or a portable electronic device with other operating systems. The portable electronic device may also be other portable electronic devices, such as a laptop computer. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but a desktop computer.
[0120] 1 shows a schematic structural diagram of an electronic device 100. 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, an earphone interface 170D, a sensor module 180, a compass 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195.
[0121] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0122] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent components or integrated into one or more processors. In some embodiments, the electronic device 101 may also include one or more processors 110. The controller may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. In other embodiments, the processor 110 may also include a memory for storing instructions and data. Exemplarily, the memory in the processor 110 may be a cache memory. This memory may store instructions or data that have just been used or are being recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the electronic device 101 in processing data or executing instructions.
[0123] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface, and / or a USB interface. Among them, the USB interface 130 is an interface that complies with USB standards, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 101, and can also be used to transfer data between the electronic device 101 and peripheral devices. The USB interface 130 can also be used to connect headphones to play audio through the headphones.
[0124] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0125] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0126] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0127] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0128] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0129] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0130] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or more display screens 194.
[0131] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0132] The ISP is used to process data fed back by the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The camera 193 is used to capture still images or videos. The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. The video codec is used to compress or decompress digital videos. The external memory 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 memory interface 120 to realize the data storage function. For example, music, video and other files are saved in the external memory card.
[0133] The internal memory 121 can be used to store one or more computer programs, which include instructions. The processor 110 can execute the above instructions stored in the internal memory 121, so that the electronic device 101 performs the methods provided in some embodiments of the present application, as well as various applications and data processing. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system; the program storage area may also store one or more applications (such as a gallery, contacts, etc.). The data storage area may store data created during the use of the electronic device 101 (such as photos, contacts, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, a flash memory component, a universal flash storage (UFS), etc. In some embodiments, the processor 110 can execute the instructions stored in the internal memory 121, and / or the instructions stored in the memory provided in the processor 110, so that the electronic device 101 performs the methods provided in the embodiments of the present application, as well as other applications and data processing. The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0134] The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
[0135] Figure 2 is a software structure diagram of the electronic device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer, from top to bottom. The application layer can include a series of application packages.
[0136] As shown in FIG2 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0137] The application framework layer provides an application programming interface (API) and a programming framework for the application APP in the application layer. The application framework layer includes some predefined functions.
[0138] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0139] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0140] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0141] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0142] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0143] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0144] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, sounding notifications, vibrating electronic devices, and flashing indicator lights.
[0145] The system library may include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (e.g., OpenGL ES), and a 2D graphics engine (e.g., SGL).
[0146] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0147] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0148] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing.
[0149] A 2D graphics engine is a drawing engine for 2D drawings.
[0150] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0151] With the continuous development of smart electronic devices (such as smartphones, smart watches, and smart tablets), smart electronic devices can operate media-type applications on other electronic devices on the current electronic device through screen sharing. However, as the applications of smart electronic devices continue to expand, users need to find the media-type application icon in the application list of the other device to operate the media-type application on the current electronic device. When there are many applications, it is not possible to quickly find the media-type application on the other electronic device on the current device. Instead, the user needs to flip through the application list to search. This search process takes a long time, affecting the user experience and operating efficiency. For example, a user has installed media-type application 1 on their mobile phone and media-type application 2 in the smart cockpit. The user gets into the smart car and connects the mobile phone to the smart cockpit display. After the connection, the smart cockpit display can display the applications installed on the mobile phone. To open application 1 on the smartphone on the smart cockpit display, the user must find the smartphone application 1 icon in the smart cockpit application list and then click on the application 1 icon to open application 1. When the application list has multiple pages, the user needs to flip through the pages to search, which makes it difficult to quickly and efficiently find the application 1 icon on the smartphone side in the smart cockpit display.
[0152] Figure 3 is a schematic diagram of an application scenario for sharing the screen as above. The application scenario may include a smart tablet 300 and a smart phone 301. Among them, multiple APPs are installed on the smart phone 301. As shown in (a) of Figure 3, the first page 310 of the smart phone (as displayed by the control 311) displays the Huawei video, browser, application market and other APPs installed on the smart phone 301. The user slides the first page 310 of the smart phone 301 to the left to display the subsequent pages of the smart phone 301. As shown in (b) of Figure 3, the 5th page 320 of the smart phone (as displayed by the control 321) displays the Huawei music, media application B, media application A installed on the smart phone 301, and also displays the running Huawei music card 322.
[0153] After the smart tablet 300 is connected to the smartphone 301, the smart tablet 300 can obtain the APP installed on the smartphone 301 and display the APP icon installed on the smartphone on the desktop of the smart tablet 300. As shown in (c) in Figure 3, interface 330 is the interface of the smart tablet 300, which is used to display the APP icons of one or more applications installed on the smartphone 301. In interface 330, the user can use the page turning control 338 to search for the APP installed on the smartphone 301 on the smart tablet 301. If the user wants to open the Huawei Music APP on the side of the smartphone 301 on the smart tablet 300, he needs to click the page turning control 338 and find the Huawei Music icon 332 on page 4 (as shown in control 333). In response to the operation of clicking the icon 332, the operation information of Huawei Music is displayed in the media playback control application (also known as the media playback center) 334.
[0154] Based on the above problems, an embodiment of the present application provides a method for realizing media playback control. In this method, a first electronic device is connected to a second electronic device, and the first electronic device can obtain and display information of a media type APP installed on the second electronic device, and display the APP icon according to the APP information. In response to the user clicking the APP icon, the media type APP installed on the second electronic device can be opened on the first electronic device. Through this method, the user can quickly find the media type APP installed on the second electronic device on the first electronic device, and obtain and play the media data of the media type APP corresponding to the icon to the second electronic device by clicking the APP icon. This method reduces the time the user spends on the first electronic device to search for the second electronic device APP, and improves the user experience.
[0155] FIG4 is a schematic diagram of the system architecture for implementing media playback control provided in an embodiment of the present application. As shown in FIG4 , the system may include: an electronic device 400 (also referred to as a central device, here a smart tablet), and other electronic devices to be connected, such as a smart phone 401, a smart screen 402, a smart tablet 403, and a personal computer 404. It is understandable that the first electronic device is not limited to a smart tablet, for example, it can be a smart phone, a smart cockpit, or a TV; the other electronic devices to be connected are not limited to the devices shown in FIG4 , for example, they can also be smart watches, smart bracelets, etc. The embodiment of the present application does not impose any special restrictions on the specific form of the electronic device that implements the technical solution.
[0156] Taking electronic device 400 and smartphone 401 as an example, electronic device 400 can exchange data through an established short-range communication connection, or it can exchange data with smartphone 401 through a cloud server. Technologies for establishing short-range communication connections include, but are not limited to, wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth technology, and ultrawide band (UWB) technology. A wired communication connection can also be established between electronic device 400 and smartphone 401 through a server or a universal serial bus (USB) interface, providing a more flexible data transmission method.
[0157] After the electronic device 400 and the smartphone 401 are connected, the APP icon installed on the smartphone 401 is displayed on the electronic device 400 (as shown in area 410), and the record of media type APPs installed and run on the smartphone 401 is displayed on the interface of the electronic device 401 (as shown in area 411).
[0158] FIG5 is a schematic flow chart of a method for implementing usage records of media playback control provided by an embodiment of the present application. As shown in FIG5 , the method may include the following steps:
[0159] S501: A first electronic device displays a first interface of a media playback control application on the first electronic device.
[0160] Specifically, before connecting to the second electronic device, the first electronic device displays a media playback control application on the desktop of the first electronic device. As shown in FIG6(e), interface 650 includes a media playback control application 651 of the first electronic device. Application 651 includes an icon 652 of the currently playing media application, album cover 653 of the currently playing media, and a set of controls 654 and 655 for controlling media playback, wherein control 654 is used to control the play and pause of the media, and control 655 is used to play the next song.
[0161] S502, in response to detecting a first input operation acting on the first interface, the first electronic device obtains information of M target applications installed on a second electronic device, the second electronic device is connected to the first electronic device, the M target applications are media type applications on the second electronic device, the media type is an audio type or a video type, and M is a positive integer.
[0162] It can be understood that the first electronic device obtains information of M target applications installed on the second electronic device. The target application can also be an application of the media type that has been opened on the second electronic device. The subsequent description of the target application in this embodiment will be explained in terms of the media application that has been opened.
[0163] In this example, in response to detecting a first input operation acting on the first interface, the first electronic device obtains information about media type applications installed and opened on the second electronic device. Before obtaining information about M target applications installed on the second electronic device, the second electronic device needs to be connected to the first electronic device.
[0164] Specifically, the first electronic device can connect to the second electronic device via short-range communication. Short-range communication can include wireless communication technologies such as Bluetooth, Wi-Fi, WLAN, and UWB connection, and can also include USB wired communication technology. Before the second electronic device is connected to the first electronic device, the first electronic device and the second electronic device respectively display the media type apps that have been run on their respective devices.
[0165] Figure 6 (a)-(d) shows a set of graphical user interfaces (GUIs) provided by an embodiment of the present application for displaying APPs of the media type that are currently opened in the media playback center of each device before the first electronic device and the second electronic device are connected.
[0166] For the sake of convenience, the "media APP installed on the first electronic device" will be referred to as the "native APP" below. As shown in (a) of Figure 6, the interface 610 includes a media playback control application 610. Among them, the media playback control application 611 displays the currently running native APP, namely media application Y, the icon control 612 is used to display the application icon of the running media application Y, the picture 613 is used to display the album cover of the running media application Y, and the control 614 is used to control the playback of media application Y (including play / stop, next song, etc.). Click the icon control 612, and the second area 615 will be displayed above the media playback control application 611. The card 615 is used to display the APPs that have been opened in this machine, such as the radio APP and media application X shown in the second area 615. The icon 616 is used to display the application icon of the media application X, and the text 617 is used to display the name of the media application X.
[0167] When a user clicks on the media application X icon 616 or the media application X name 617, the first electronic device launches media application X and replaces the running information of media application Y in the media playback control application 611. Specifically, image 613 is replaced with the album cover of media application X, and icon control 612 is replaced with the app icon of media application X. Media application Y then switches from running to background running and is displayed in the second area 615. As shown in FIG6(b), interface 620 is the interface of the first electronic device, displaying the effect of media playback control application 622 switching to media application X in response to the click of image 616 on the first electronic device. Control 621 is used to display media application Y in the background running state.
[0168] For ease of explanation, "a media app installed on a device other than the first electronic device and opened" will be referred to as the "target app" below. As shown in FIG6(c), interface 630 is the interface of the second electronic device before it is connected to the first electronic device. Among them, the media playback control application 631 displays the Huawei Music app currently playing music and the media application A that is open and running in the background and paused. The playback control 632 is used to control the playback of the Huawei Music app (including play / stop, previous / next song, lyrics display, etc.). The image 633 is used to display the icon of the currently running Huawei Music app. The image 635 is used to display the album cover of the currently running Huawei Music app. The control 634 displays the icon and name of media application A. When the user clicks the icon or name in the control 634, the second electronic device will start media application A to play music and display the running status of media application A in the media playback center, as shown in the control 644 of FIG6(d). In response to the operation of clicking the control 634, the Huawei Music app enters the background running state and pauses the music, and the playback control 632 is no longer displayed. As shown in Figure 6(d), interface 640 is the interface of the second electronic device, which is used to display the effect of the media playback center switching between the current Huawei Music APP and media application A in response to the operation of clicking the picture 634 on the second electronic device. Control 642 is used to display the Huawei Music APP entering the background running state, and control 643 is used to display media application A running in the media playback control application 641.
[0169] From the above embodiment, it can be seen that before the first electronic device is connected to the second electronic device, the media playback control application of each electronic device displays the list of previously run APPs, which only displays the APPs installed on the respective electronic device, and does not display the APPs installed on other electronic devices.
[0170] When the first electronic device and the second electronic device are close to each other and the distance is less than a first threshold, the first electronic device can initiate a connection operation with the second electronic device. Figures 7(a) and (b) show the process of connecting the first electronic device and the second electronic device. As shown in Figure 7(a), when the distance between the smart tablet 700 and the smartphone 701 is less than the first threshold, the smartphone 700 can initiate a connection operation with the smartphone 701 through near field communication.
[0171] As shown in (b) of Figure 7, the interface 720 is used to display the process of connecting the smart tablet 700 and the smartphone 701 under the super desktop control 721. When the distance between the smart tablet 700 and the smartphone 701 is less than the first threshold, the super desktop control 721 is opened on the smart tablet 700, the control 721 detects the smartphone 701 responding to the near field communication, and displays the smartphone 701 icon 723 that needs to be connected in the control 722. In response to the operation of clicking the icon 723, the interface 724 will display a virtual docking image of the smart tablet 700 and the smartphone 701, wherein the control 725 in the interface 724 will continuously flash to remind the user that the smart tablet 700 and the smartphone 701 are in a connecting state. When the smart tablet 700 and the smartphone 701 are connected, the control 725 will no longer flash to remind the user that the first electronic device and the second electronic device are connected.
[0172] The second electronic device completes the connection with the first electronic device, and the first electronic device obtains information of M target APPs installed on the second electronic device in response to the first input operation, wherein the target APP information is of audio type or video type; the second electronic device sends information of the M target applications installed on the second electronic device to the first electronic device.
[0173] Specifically, the user clicks icon control 612 in (a) of Figure 6 . In response to the click, the target app installed on the second electronic device is obtained. As shown in (d) of Figure 6 , the user has opened the Huawei Music app and media application A on the second electronic device, and the first electronic device will obtain information about these two apps.
[0174] In one implementation, the first electronic device may obtain information about the M target apps installed on the second electronic device by, for example, proactively sending information about apps installed and running on the second electronic device to the first electronic device. If the second electronic device does not receive a response from the first electronic device within a certain period of time, it will continue to send information about the target apps installed on the second electronic device to the first electronic device. If the number of transmissions exceeds a preset number, the transmission to the first electronic device will be stopped. This ensures that the first electronic device can obtain information about the M target apps from the second electronic device even in unstable network scenarios.
[0175] In one implementation, the first electronic device may obtain information about the M target APPs installed on the second electronic device by obtaining information about the M target APPs on the second electronic device from the cache of the first electronic device, where the information about the M target APPs is the information about the M target APPs actively sent by the second electronic device after the first electronic device is connected to the second electronic device.
[0176] Specifically, when the electronic devices are connected, the second electronic device actively sends information about the M target apps installed on the second electronic device to the first electronic device. After receiving the information about the M target apps on the second electronic device, the first electronic device saves the received information about the M target apps on the second electronic device in the cache of the first electronic device. When the first electronic device obtains the information about the M target apps installed on the second electronic device, it can obtain the information directly from the cache of the first electronic device without having to obtain it from the second electronic device, thereby improving the efficiency of information acquisition.
[0177] It is understood that after the first electronic device sends a request message to the second electronic device, if it does not receive a response message from the second electronic device within a certain period of time, it will continue to send request messages to obtain information about the M target apps installed on the second electronic device. If the number of requests exceeds a preset number, it will stop sending request messages to the second electronic device. This ensures that the first electronic device can obtain information about the M target apps from the second electronic device in the event of an unstable network.
[0178] In one implementation, the APPs in the M target APPs may be the most recent M APPs in the first whitelist on the second electronic device, and may be determined based on the most recent opening time of the APPs.
[0179] Specifically, the first whitelist on the second electronic device contains one or more media-type apps. The M target apps must be within the first whitelist and are determined based on the most recent opening time of each target app. This prevents the first electronic device from failing to obtain the most recently opened media-type apps.
[0180] In one implementation, when information of the M target apps is sent to the first electronic device, the information is sorted by the most recent opening time of each target app.
[0181] Specifically, when the second electronic device sends information of M target APPs to the first electronic device, the M target APPs are sorted by the most recent opening time of each target APP. Sorting is performed on the second electronic device, and the opening time of each target APP may not be included in the message sent by the second electronic device to the first electronic device, which simplifies the message format between devices; after receiving the message, the first electronic device can use the received target APPs to display them in order, which also simplifies the processing flow of the first electronic device and improves the display efficiency of the first electronic device. As shown in (c)-(d) of Figure 6, media application A is opened after Huawei Music, so in the information of the target APPs installed on the second electronic device obtained by the first electronic device, the information of media application A is in front of Huawei Music.
[0182] S503: The first electronic device displays a second interface of the media playback control application according to information of N target applications among the M target applications, where the second interface includes icons of the N target applications.
[0183] Specifically, the first electronic device obtains information of M target APPs installed on the second electronic device from the second electronic device, wherein the information of the target APP includes the APP icon, the APP package name, and the APP name. According to the obtained information of the APP of the second electronic device, the icons of N target APPs are displayed on the second interface of the media playback control application of the first electronic device, wherein the number N is less than or equal to the number M, and both N and M are positive integers.
[0184] It is understood that the media broadcast control application can specifically be an audio broadcast control application, and accordingly, the M target applications are all audio-type applications. The media broadcast control application can also be a video broadcast control application, and accordingly, the M target applications are all video-type applications. According to these two implementation methods, it is possible to specifically implement the broadcast control of audio media or specifically implement the broadcast control of video media, which is more targeted and further improves the operational efficiency of media broadcast control.
[0185] The media playback control application can also be an audio and video playback control application. Accordingly, any application in the M target applications can be an audio application or a video application, such as some of the M target applications are audio applications and some are video applications. As shown in (a) of Figure 8, the second interface of the media playback control application of the first electronic device includes a first area 811 and a second area 812. The first area is used to display the status of media playback, including an icon 815 of the media application being played, which is used to prompt the user of the application currently being played; the second area is used to display the icons of N target applications on the second electronic device. As shown in the figure, based on the information of the target APP installed on the second electronic device, the icons of the Huawei Music APP and media application A of the second electronic device are displayed in area 812 of the second interface. By distinguishing between the media applications being played and those that have been played in different areas of the media playback control application, users can more conveniently view the information of media applications.
[0186] It is understandable that, considering the size of the display area, the information of the target apps on the second electronic device displayed in the second area 812 may be N target apps out of M target apps, where N is less than or equal to M. For example, if the first electronic device receives the Huawei Music app and media application A, only the Huawei Music app icon or the media application A icon is displayed.
[0187] In another implementation, the first electronic device obtains information of M target APPs installed on the second electronic device from the second electronic device, which does not include information of the APP icon, and can obtain the icon synchronized from the second electronic device to the first electronic device when the devices are connected through the package name in the information of the M target APPs.
[0188] S504, in response to detecting a second input operation acting on a first icon, where the first icon is an icon of a first application among the N target applications, the first electronic device obtains media data of the first application running on the second electronic device and plays the media data.
[0189] Specifically, in response to a user clicking on the icon of a first application among N target applications, the first electronic device sends a request to the second electronic device to obtain the media data of the first application running on the second electronic device and play the media data. The user can operate the media application of the second electronic device just like operating a local device, without increasing the user's learning cost.
[0190] As shown in Figures 8(a) and 8(c), in response to clicking the Huawei Music icon 815, the first electronic device obtains the media information of the Huawei Music APP from the second electronic device. The media playback control application displays the icon 813 of the running APP as the Huawei Music icon based on the received media information of the Huawei Music APP, indicating that the currently running APP is the Huawei Music APP installed on the second electronic device; and the previously running media application Y installed on the first electronic device will pause playback and switch to background operation, and be displayed in the second area. As shown in Figure 8(c), the icon 841 of the media application Y in the interface 840 is displayed in the second area, and the icon 842 of the Huawei Music APP is displayed in the now playing interface bar of the media playback control center.
[0191] Based on the contents of step S501 and step S504, FIG9 is a flow chart of obtaining a target APP provided by an embodiment of the present application. The flow of the method may include the following steps:
[0192] S901: Open a target APP installed on a second electronic device and send a notification to a media framework of the second electronic device.
[0193] Specifically, the user opens the Huawei Music app installed on the second electronic device. In response to the Huawei Music app switching from a stopped state to a running state, the second electronic device sends a notification message to its media framework. It is understandable that the notification message sent to the media framework includes the app's icon and name.
[0194] S902: The media framework of the second electronic device receives a notification message.
[0195] Specifically, the media framework of the second electronic device receives the running status change notification message sent by the Huawei Music APP, records the status change information of the Huawei Music APP, and provides an access interface for other external devices to obtain APP information installed and run on the second electronic device.
[0196] S903: The user clicks on the icon of the running application in the media playback control application on the first electronic device to trigger an operation of obtaining a target APP on the second electronic device.
[0197] Specifically, the user clicks on the icon of the running application in the media playback control application on the first electronic device, and sends a request to the second electronic device to obtain information of the target APP. For example, by clicking on picture 815 in Figure 8(a), the first electronic device will send a request message to obtain information of the target APP of the second electronic device.
[0198] S904: The media playback control application of the first electronic device sends a request message to the media framework of the first electronic device to obtain a target APP of the second electronic device.
[0199] Specifically, in response to a user's click operation on the first electronic device, the media playback control application of the first electronic device sends a request message for obtaining the target APP of the second electronic device to the media framework of the first electronic device, and the media framework performs unified external interaction.
[0200] S905: The media framework of the first electronic device sends a request to the media framework of the second electronic device.
[0201] Specifically, after receiving the information request for obtaining the target APP of the second electronic device sent by the media playback control application of the first electronic device, the media framework of the first electronic device sends a request to the media framework of the second electronic device that is connected to the first electronic device to obtain the information of the target APP of the second electronic device.
[0202] S906: The media framework of the second electronic device returns information about the target APP installed on the second electronic device.
[0203] Specifically, after receiving the request message sent by the first electronic device, the media framework of the second electronic device returns the information of the target app installed on the second electronic device to the media framework of the first electronic device. The returned content includes the app icon and the app name. If the returned app type is a media playback type, such as a music app or a video app, etc.
[0204] S907: The media framework of the first electronic device sends the target APP information received from the second electronic device to the media center of the first electronic device.
[0205] Specifically, after receiving the target APP returned by the second electronic device, the media framework of the first electronic device returns the second area to the media center of the first electronic device.
[0206] S908: The media center of the first electronic device refreshes the target APP.
[0207] Specifically, after receiving the target APP of the second electronic device returned by the media framework of the first electronic device, the media center of the first electronic device refreshes the target APP of the media playback center.
[0208] The process of the first electronic device obtaining the target APP information of the second electronic device is not limited to the process shown in Figure 9, and the embodiment of the present application does not impose any special restrictions on the specific form of implementing this technical solution.
[0209] In one implementation, in response to clicking the icon of the target app in the second area, the second area is hidden in the media playback control application. As shown in Figure 8 (a), in response to clicking the Huawei Music icon 815, the media playback control application switches the media application Y in the first area to the Huawei Music app icon; as shown in Figure 8 (d), the icon of the currently playing media application in the first area of the media playback control application has been switched to the Huawei Music app icon, and the second area of the media playback control application has been hidden, making it easier for the user to perform other operations on the desktop.
[0210] In one implementation, in response to clicking an icon of a media application being played in the first area, the second area may be controlled to be displayed or hidden.
[0211] As shown in (b1) in Figure 8, the second area 821 in the media broadcast control application is displayed in the interface 820. When the user clicks the icon 822 in the first area of the media broadcast control application, the second area 821 will be hidden. As shown in (b2) in Figure 8, the second area of the media broadcast control application is no longer displayed in the interface 825.
[0212] It is understandable that, based on the target APP information, when the target APP icon is displayed in the second area of the media playback control application, the name of the target APP may also be displayed. In this embodiment, the first electronic device displays the name of the target APP to the right of the target APP icon based on the acquired name of the target APP. As shown in Figure 8(a), in the second area 812, the name of the Huawei Music APP, "Huawei Music", is displayed to the right of the icon 815 of the Huawei Music APP. By the name of the APP, the user can quickly find the APP.
[0213] In one implementation, a whitelist or blacklist of target APPs can be set on the first electronic device for screening target APPs. Both the whitelist and the blacklist include one or more APPs. When the target APP of the second electronic device obtained is within the whitelist range or not within the blacklist range, it can be displayed in the second area. For example, when the first electronic device is in child mode, it is necessary to block the specified APP1 on the first electronic device. If APP1 has been opened on the second electronic device, it can be filtered by configuring the blacklist. In this way, even if APP1 has been opened on the second electronic device, it will not be displayed in the second area of the first electronic device. In this way, the user can flexibly set the opened APPs of the second electronic device that need to be displayed on the first electronic device to adapt to different usage scenarios.
[0214] In one implementation, a maximum number of target apps that can be displayed can be set on the first electronic device to limit the number of target apps displayed in the second area. It is understandable that the second area can be divided into different areas, each of which is used to display apps opened on different electronic devices, and different maximum numbers can also be set for different areas.
[0215] In one implementation, the target APP information obtained by the first electronic device from the second electronic device has the number of APPs in the target APP not exceeding the maximum value set for the target APP to be sent in the second electronic device. Specifically, if the maximum value of the number of target APPs set to be sent by the second electronic device is 3, the second electronic device will sort the APPs according to the most recent opening time, and return the information of the first 3 APPs to the first electronic device. It is understandable that if the number of APPs opened on the second electronic device is less than the maximum number of target APPs, the information of the APPs that have actually been opened will be returned to the first electronic device. This implementation avoids the first electronic device from obtaining invalid or unconcerned target APPs of the second electronic device.
[0216] In one implementation, when the first electronic device displays the icon of the target APP, it displays an icon indicating the type of the second electronic device on the icon of the target APP, so that it can be distinguished from the icon display of the local APP. For example, an icon identifying the type of the second electronic device is displayed in the upper right corner of the icon of the target APP. For another example, the display form of the icon identifying the type of the second electronic device can also be highlighted, grayscale, or shaded. For example, as shown in Figure 10 (a), the first electronic device is connected to a large-screen (smart screen) device, and icon 1010 is used to indicate that the APP in the second area of the first electronic device comes from the large-screen device, and icon 1011 is used to indicate that the media playback center in the first electronic device is running the large-screen APP. Similarly, the icons in Figures 10 (b), 10 (c), and 10 (d) are used to indicate that the first electronic device is connected to a smart watch, a smart phone, and a laptop computer, respectively. The icon displayed by the first electronic device is not limited to the large screen, smart watch, smart phone, and laptop computer shown in Figure 10, but can also be a smart cockpit, a smart tablet, etc. The embodiment of the present application does not impose any special restrictions on the specific form of the electronic device that implements this technical solution.
[0217] In one implementation, when the first electronic device displays the icon of the target APP, an icon indicating the model of the second electronic device is displayed on the icon of the target APP, so that the user can easily see the model corresponding to the target APP. For example, information for identifying the model of the second electronic device is displayed in the upper right corner of the icon of the target APP. For example, as shown in Figure 10(e), the first electronic device is connected to a smartphone, where the model of the smartphone is P60, and text 1050 is used to indicate that the APP in the second area of the first electronic device comes from an electronic device with a model of P60, and text 1051 is used to indicate that the media playback center in the first electronic device is running an APP on the P60 model.
[0218] Furthermore, when the first electronic device displays the icon of the target APP, it can also display the device type icon and model information on the APP icon at the same time. As shown in Figure 10 (f), the model corresponding to the device is displayed on the right side of the electronic device type icon 1060. Through this display method, users can more conveniently select the APP they need to open, which improves the user experience. In one implementation, when the first electronic device displays the icon of the target APP, it can be displayed in different areas according to the device source. As shown in (a) in Figure 11, the interface 1110 is the interface of the first electronic device, including the second area 1114. The second area 1114 is displayed in different areas according to the application source, including area 1111 and area 1116.
[0219] Area 1111 displays the target apps, including Huawei Music app, media application B and media application A. The icon 1112 of the connected device is displayed in the upper right corner of area 1111. Icon 1112 is used to indicate that the apps in this area are target apps from the second electronic device. In this way, the apps in this area do not need to display the icon used to represent the second electronic device in the upper right corner of the app, which simplifies the display information of the target apps. When there are too many target apps in area 1111 to be fully displayed, area 1111 can also display a scroll bar 1113 to facilitate users to slide the scroll bar in the area to obtain the target apps that are not displayed.
[0220] Area 1116 displays native apps, including a radio app and media application Y. Because area 1116 displays native apps, there is no need to display a device type icon in the upper right corner. Like area 1111, when there are too many native apps in the area to be fully displayed, area 1116 can also display a scroll bar 1115 to facilitate users to slide the scroll bar in the area to obtain undisplayed local apps.
[0221] It is understandable that when the first electronic device is connected to multiple electronic devices, such as connecting to the second electronic device and the third electronic device at the same time, the second area will display the areas of multiple electronic devices so that the user can select the APP corresponding to the electronic device in the area to which each electronic device belongs.
[0222] Furthermore, when the user clicks on any APP icon or APP name in the second area, the first electronic device will open the APP in response to the click operation of the APP icon or APP name. At this time, the display of the APP icon in the second area will change. The display change of the icon only operates in each area and does not affect each other.
[0223] As shown in FIG11(b), interface 1120 shows the interface of FIG11(a) after the user clicks the icon of media application B in area 1111. In response to clicking the icon of media application B in area 1111, the first electronic device will open media application B and display media application B as the currently running APP in the media playback center. Media application B will be deleted from area 1111. As shown in FIG11(b), the icon and name of media application B will not be displayed in area 1121; and the icon and name of media application X, which has been switched to background running, will be displayed in area 1114, the area displaying the local APP.
[0224] As can be seen from the above description, the second area of the second interface of the first electronic device includes a first sub-area and a second sub-area, wherein the first sub-area is used to display the icon of the target APP, and the second sub-area is used to display the icon of the media type APP installed on the first electronic device.
[0225] Specifically, the second area of the second interface of the first electronic device includes two sub-areas, namely the first sub-area and the second sub-area. Among them, the first sub-area is used to display the icon of the target APP of the second electronic device, and the user can select the APP installed on the second electronic device in this sub-area; the second sub-area is used to display the icon of the media type APP installed on the first electronic device, and the user can select the media type APP installed on the first electronic device in this sub-area. By distinguishing the areas of the first electronic device and the second electronic device by different sub-areas, the user can see the icons of different electronic devices in different areas, so that it is more convenient to select the APP installed on different electronic devices. As shown in (b) of Figure 11, the first sub-area 1121 displays the Huawei Music APP and media application A on the second electronic device, and the first sub-area 1121 displays the media application X, radio APP and media application Y on the first electronic device.
[0226] In one implementation, when the second area displays the target APP, the local APP and the target APP can be mixed and displayed together, that is, the area display is not based on the electronic device to which the APP belongs. It can be understood that the second area can display the target APPs under multiple devices in a mixed manner with the local APPs. As shown in (a) of Figure 12, the local APP installed on the first electronic device and the target APP installed on the second electronic device are mixed and displayed in the second area 1231. When there are too many APPs in the control 1231 to be fully displayed, the control 1231 can also display a scroll bar control 1232. In response to the user clicking the APP icon or APP name of the media application X in the control 1231, the media playback center displays the running APP and the APP display in the second area 1231 will change. The change effect is shown in (b) of Figure 12. Media application X will be displayed in the media playback center, indicating that the media playback center is running media application X. The Huawei Music APP will be displayed in the second area together with the target APP and local APP of other devices.
[0227] It is understood that when a user opens the media application APP3, which is not included in the M target applications and is included in the first whitelist, the second electronic device sends an update message to the first electronic device. The update message includes updated information about the M target applications, including information about APP3. The first electronic device receives the update message from the second electronic device, and because the update message includes information about APP3, the first electronic device can display the icon for APP3 in the second area based on the update message.
[0228] Specifically, when the status of the target APP on the second electronic device changes, such as when the target APP is uninstalled or opened on the second electronic device, the second electronic device will actively send an update message to the first electronic device, and the update message is used to notify the first electronic device to update the target APP. The first electronic device receives the update message sent by the second electronic device, and displays the icon of the updated target APP in the target area according to the update message. Among them, the update message can be the data of the full target APP sent by the second electronic device, and the first electronic device updates the icons of all target APPs in the target area according to the data of the full target APP. This method is simple to implement, and the first electronic device can update the icons of the target APPs in the target area simply and quickly; or, the update message can be the data of a single target APP, and the first electronic device updates the icon of the single target APP according to the indication information of the single target APP in the update message. This method updates the icon of a single target APP, which can reduce the size of the interactive message between devices.
[0229] In one implementation, in response to the second electronic device opening the APP, the second electronic device sends update information to the first electronic device.
[0230] Specifically, as shown in Figure 14(c), the Huawei Music app is not displayed in the second area of the first electronic device, indicating that the Huawei Music app has not been run on the second electronic device. As shown in Figure 14(a), the second electronic device displays interface 1410, which includes an icon 1411 of the Huawei Music app. In response to detecting that the user clicks on icon 1411, the second electronic device opens the Huawei Music app on the second electronic device. As shown in Figure 14(b), interface 1420 shows that after the Huawei Music app is opened on the second electronic device, the screen of the second electronic device will display operating information of the Huawei Music app, such as playing albums, playing progress, playing controls, and other information.
[0231] When the second electronic device opens the Huawei Music app, the second electronic device will send a notification message to the first electronic device through the media framework of the second electronic device. After receiving the target app information, the first electronic device refreshes the second area of the media playback center and displays the Huawei Music app icon in the second area. As shown in (d) of Figure 14, the first electronic device displays interface 1440, and the second area 1441 of interface 1440 displays the Huawei Music app icon, which is displayed at the top of the second area in order of the most recent opening time.
[0232] It is understandable that if the Huawei Music APP is already displayed in the second area of the first electronic device, as shown in (f) in Figure 14, the Huawei Music APP displayed in the second area 1451 in the interface 1450 is not at the top. When the user opens the second electronic device again (such as switching from background running to foreground running), the second electronic device will still send update information to the first electronic device, and display the Huawei Music APP at the top of the second area according to the latest opening time, as shown in (e) in Figure 14, the Huawei Music APP displayed in the second area 1461 in the interface 1460 is at the top.
[0233] In this embodiment, when the state of the target APP on the second electronic device changes, the changed target APP information will be sent to the media framework of the first electronic device through the media framework of the second electronic device. If the media playback center needs to obtain the state change information of the target APP on the second electronic device, the media playback center needs to send a registration callback request to the media framework of the first electronic device. Through this registration callback method, the media framework of the first electronic device will send the changed target APP information to the module that sends the registration message after receiving the target APP state change information on the second electronic device.
[0234] For example, when the Huawei Music app is opened on the second electronic device, the media framework of the second electronic device will send the information of the Huawei Music app to the media framework of the first electronic device. Since the media playback center of the first electronic device has been registered with the media framework of the first electronic device, the media framework will send the received message of the Huawei Music app to the media playback control center. After receiving the message of the target app, the media playback control center will refresh the second area and display the latest icon of the target app. The specific steps are shown in Figure 15:
[0235] S1501: The running state of the APP of the second electronic device changes, and the media framework of the second electronic device is notified.
[0236] S1502: The media framework of the second electronic device receives and records the APP change status.
[0237] As shown above, the implementation process of S1501 and S1502 is consistent with that of steps S901 and S902 in FIG. 9 . For the specific implementation process, please refer to the introduction of FIG. 9 and will not be repeated here.
[0238] S1503: The media framework of the second electronic device actively sends information of the target APP to the media framework of the first electronic device.
[0239] S1504: The media playback center of the first electronic device sends a registration callback request to the media framework of the first electronic device.
[0240] Specifically, the registration callback request sent by the media playback center of the first electronic device to the media framework of the first electronic device is equivalent to a registration in the media framework. If there is any change information of the target APP, it needs to be notified to the media playback center.
[0241] S1505: The media framework of the first electronic device checks the registration module.
[0242] Specifically, after receiving the target APP information actively sent by the media framework of the second electronic device, the media framework of the first electronic device checks the modules registered in the media framework and sends the received target APP information to the registered modules.
[0243] S1506: The media framework of the first electronic device sends information of the target APP to the media playback center.
[0244] Specifically, the media framework of the first electronic device sends the target APP information to the media playback center according to the registration information of the media playback center.
[0245] S1507 , after receiving the second area of the second electronic device actively sent by the media framework of the first electronic device, the media center of the first electronic device refreshes the second area of the media playback center and displays it together with the local APP program.
[0246] The first electronic device obtaining the update message of the second electronic device is not limited to the process shown in Figure 15, and the embodiment of the present application does not impose any special restrictions on the specific form of implementing this technical solution.
[0247] In another implementation, in response to the first electronic device opening an APP installed on the second electronic device that is not among the M target APPs, the second area of the first electronic device displays an icon of the APP.
[0248] Specifically, as shown in Figure 16(a), media application B is not displayed in the second area of the first electronic device, indicating that media application B has not been opened on the first electronic device. As shown in Figure 16(a), the first electronic device displays interface 1610, which includes an icon 1612 of media application B installed on the second electronic device. In response to detecting that the user clicks on icon 1612, the first electronic device runs media application B on the first electronic device. As shown in Figure 16(b), the first electronic device interface 1620 includes a media playback control 1622, and the icon 1623 of media application B in control 1622 indicates that the running APP is media application B.
[0249] After the first electronic device runs media application B, it refreshes the second area of the media playback center and displays the icon of media application B. As shown in FIG16( b ), the icon of media application B is displayed at the top of second area 1621 on the display interface 1620 of the first electronic device.
[0250] It is understandable that when the target APP is uninstalled on the second electronic device, an update message will also be sent to notify the first electronic device. After receiving the message, the first electronic device refreshes the icon in the second area and no longer displays the uninstalled target APP.
[0251] Specifically, as shown in (a) of Figure 13, the second electronic device displays an interface 1310, which includes an icon 1311 of the Huawei Music APP, indicating that the Huawei Music APP is installed on the mobile phone. The second electronic device responds to the user's operation of uninstalling the application and enters the process of uninstalling the application. Specifically, the user's operation of uninstalling the APP may be: in response to detecting that the user presses and holds the application icon for a time greater than a third threshold, the second electronic device displays a list 1312, which includes an uninstall option 1313, and the user clicks the uninstall option 1313 to enter the uninstall process of the application. It should be noted that the method of uninstalling the application is not limited to this, and the user can also uninstall the application through the control center.
[0252] As shown in Figure 13(b), the second electronic device enters the uninstall process and may display an uninstall operation interface 1320. Uninstall operation interface 1320 may include a cancel button 1321 and an uninstall button 1322. It is understood that in response to the user clicking the cancel button 1321, the uninstall process is exited; in response to the user clicking the uninstall button 1322, the second electronic device uninstalls the Huawei Music app. The Huawei Music app will no longer be displayed on the interface of the second electronic device, and the interface 1310 in Figure 13(a) will no longer display the icon 1311.
[0253] After the second electronic device uninstalls the Huawei Music app, the second electronic device notifies the first electronic device through its media framework. After receiving the notification, the first electronic device refreshes the second area of the media playback center and deletes the Huawei Music app icon in the second area. As shown in Figure 13 (c), the first electronic device displays interface 1330, and icon 1332 in the second area of the interface is deleted. The effect after deletion is shown in Figure 13 (d).
[0254] It is understandable that, if the media playback center on the first electronic device is running the Huawei Music app, when the second electronic device uninstalls the Huawei Music app, the media playback center on the first electronic device will no longer display the running information of the Huawei Music app, and the media playback center of the first electronic device will be restored to a state where no app is running; or when the second electronic device uninstalls the Huawei Music app, the second electronic device detects that the media center of the first electronic device is running the Huawei Music app, and a prompt message pops up to inform the user whether to continue the uninstallation. The embodiments of the present application do not impose any special restrictions on the specific form of executing the uninstallation scheme.
[0255] It can be understood that performing the operation of uninstalling the target APP on the first electronic device will notify the second electronic device to uninstall the target APP. After performing the uninstall operation, the second electronic device will send an update message to notify the first electronic device. After receiving the message, the first electronic device refreshes the icon in the second area and no longer displays the uninstalled target APP.
[0256] Specifically, as shown in (a) of Figure 17, the first electronic device displays an interface 1710, which includes a second area 1711. The icon of media application B is displayed in the control 1711, and the interface also includes an icon 1712 of media application B. The first electronic device enters the process of uninstalling the application in response to the user performing the operation of uninstalling the application. Specifically, the user performs the operation of uninstalling the APP as follows: in response to detecting that the user presses and holds the application icon for a time greater than the fifth threshold, the first electronic device displays a list 1713, and the display list includes an uninstall option 1714. The user clicks the uninstall option 1714 to enter the uninstall process of the application. It should be noted that the method of uninstalling the application is not limited to this, and the user can also uninstall the application through the control center.
[0257] As shown in FIG17(b), the first electronic device displays interface 1720. In response to a user clicking on the Uninstall option 1714 in FIG17(a), media application B enters the uninstall confirmation process, and interface 1720 displays an uninstall confirmation control 1721. Uninstall operation interface 1721 may include a Cancel button 1722 and an Uninstall button 1723. It is understood that in response to the user clicking on the Cancel button 1722, the uninstall process is exited. In response to the user clicking on the Uninstall button 1723, the first electronic device notifies the second electronic device to uninstall media application B. If the uninstall is successful, the second electronic device notifies the first electronic device to delete the media application B icon, and media application B will no longer be displayed on the interface of the first electronic device. As shown in FIG17(c), the second area of interface 1731 displayed by the first electronic device no longer displays the media application B icon. If the uninstall fails on the second electronic device, the first electronic device deems the uninstall operation a failure and exits the uninstall process, but the media application B icon remains displayed on interface 1730.
[0258] Furthermore, when operating the APP of the second electronic device in the first electronic device, the first electronic device needs to send the start and uninstall operation instructions to the second electronic device, and the second electronic device sends an update message to notify the first electronic device to refresh the second area.
[0259] It is understandable that, if the media playback center on the first electronic device is running media application B, when the first electronic device uninstalls media application B, the media playback center on the first electronic device will no longer display the running information of media application B, and the media playback center of the first electronic device will be restored to a state where no APP is running; or when the first electronic device uninstalls Huawei media application B, the first electronic device detects that the media center of the second electronic device is running media application B, and a prompt message will pop up to inform the second electronic device that it is running, reminding the user whether to continue uninstalling. If the user continues to uninstall, the uninstall flow will be executed. The embodiments of the present application do not impose any special restrictions on the specific form of executing the uninstallation scheme.
[0260] In one implementation, the target APP information sent by the second electronic device to the first electronic device includes the media information currently being played by each target APP. The first electronic device displays the information of the latest media played by N target APPs based on the media information currently being played by the target APP, wherein the information of the latest media played by each target APP is displayed in association with the icon of the target APP.
[0261] Specifically, while displaying the media information of N target apps, the information of the latest media played by the target app is displayed in association with the icon of the target app. The user can select the app he wants to open from the N target apps based on the latest media information.
[0262] As shown in Figure 18, the first electronic device displays an interface 1810, which includes a second area 1813 of the second interface. In addition to displaying the target app icon and name, second area 1813 further displays the audio content played by the app. The user can quickly find the audio app they want to open based on the audio content displayed in the target app, thus avoiding the problem of not being able to see the audio content and having to click the target app icon to confirm the playback content in the running interface of the media playback center.
[0263] In one implementation, the second area can display information such as APP icons and names according to different sorting rules. It can be understood that the sorting rules do not distinguish between local APPs and shared applications, and local APPs and shared applications can be sorted together. Specifically, when the second area of the first electronic device displays APPs, it can be sorted according to the first sorting rule. The first sorting rule is sorted according to the opening time of the target APP, and can be displayed in the second area of the media playback control application in the order of opening time or in reverse order. Generally, the most recently opened ones will be at the top of the second area.
[0264] . As shown in (a1) of Figure 19, in interface 1910, in the second area of the media playback control application, media application B and media application A are sorted in reverse order of the most recent opening time, that is, media application B is opened after media application A. At this time, the user opens the Huawei Music APP on the second electronic device, and the first electronic device will receive an update message sent by the second electronic device. The update message contains information about the Huawei Music APP. The first electronic device will display the Huawei Music APP in the second area of the media playback control application according to the opening time of the Huawei Music APP. Because the opening time of the Huawei Audio APP is after media application B and media application A, according to the first sorting rule, Huawei Music will be displayed at the top of the second area. As shown in (a2) of Figure 19, in interface 1920, the icon of the Huawei Music APP is displayed at the top of the second area. The first sorting rule is a more commonly used sorting rule and is also the default sorting rule of the first electronic device. It is easier for users to understand and accept.
[0265] In one implementation, when displaying APPs, the second area of the first electronic device may sort the APPs according to a second sorting rule, where the second sorting rule sorts the APPs according to a usage scenario of the device.
[0266] Specifically, the first electronic device can be a different device, used in different usage scenarios, such as a smart cockpit, a home theater, etc. Even for the same type of device, the user's sorting demands are different in different usage scenarios. When the first electronic device is provided to the driver as a center console tablet in the smart cockpit, the first electronic device is more used as an audio playback device to provide auxiliary functions to the driver. At this time, the second area in the first electronic device will rank the audio type APP in the sorting revelation position. As shown in (b1) of Figure 19, in the interface 1910, the audio APP in the second area 1911 of the media playback application is displayed above the video APP. Optionally, for multiple APPs of the same type, a second sorting can be performed according to the first sorting rule. Similarly, when the first electronic device is provided to passengers as a tablet in the smart cockpit or a smart screen in a home theater scenario, the first electronic device is more used as a video playback device to provide video viewing functions to the driver or family members. At this time, the second area in the first electronic device will rank the video type APP in the sorting revelation position. As shown in (b2) of FIG19 , in the interface 1920 , the video APP is displayed above the audio APP in the second area 1921 of the media playback control application. Similarly, secondary sorting can also be performed according to the first sorting rule.
[0267] Optionally, the first electronic device can provide a scene configuration interface, and the user can select an appropriate scene on the scene configuration interface. For example, if the first electronic device is used as a center console tablet in a smart cockpit, it can provide the driver with a video viewing function when the vehicle is turned off and parked. In this case, the user can select the first electronic device's scene as home theater on the configuration interface. In this case, video apps will be prioritized over audio apps in the second area.
[0268] In one implementation, when displaying APPs, the second area of the first electronic device may perform sorting according to a third sorting rule, where the third sorting rule performs sorting based on user habits.
[0269] Specifically, the first electronic device may display APPs in a different order in the second area when different users log in to the first electronic device according to the usage of the logged-in user.
[0270] Specifically, if the first electronic device is a center console tablet in a smart cockpit, and the second device is a smartphone, the first user is accustomed to opening video apps on the smartphone. When the user enters the smart cockpit and connects the first electronic device (center console tablet) to the second electronic device, in response to the user's habit of opening video-type apps, the second area of the first electronic device will display the video apps that the second electronic device user has run at the starting position. As shown in (c) of Figure 19, the Huawei Video App and Video Application A that have been run on the second electronic device (smartphone) will be ranked ahead of the audio app.
[0271] Optionally, the user's usage habits can be saved on a second electronic device. The first electronic device is connected to the second electronic device, and the first electronic device and the second electronic device are logged in using the same account. At this time, the second electronic device synchronizes the user's usage habits to the first electronic device; or the user's usage habits can be saved on the server when used for operation. When logging in to the first electronic device, the user's usage habits are obtained by accessing the server and sorted according to the user's usage habits.
[0272] Optionally, when the user is a new user and has not yet saved the user's usage habit data on the electronic device or the server, the first electronic device can obtain the usage habits of the user who uses the first electronic device model from the server based on the model of the electronic device. For example, if a user purchases a smart screen and registers and logs in, most users purchase smart screens for the purpose of watching high-definition videos. When the user connects the smart screen to the mobile phone, the second area of the smart screen will list the APPs with high-definition video capabilities that the user has opened, making it easier for the user to start the video APP and providing the user with a better experience.
[0273] In one implementation, when displaying apps in the second area of the first electronic device, the apps may be sorted according to a fourth sorting rule, which sorts apps based on the number of times the first electronic device is connected to the second electronic device. For example, if the Huawei Music app belongs to the second electronic device and media application B belongs to the third electronic device, and the first electronic device has been connected to the second electronic device more times than the first electronic device has been connected to the third electronic device, the Huawei Music app belonging to the first electronic device will be sorted ahead of media application B.
[0274] As shown in Figure 19(d), the second electronic device is a smartphone, and the target app belonging to the second electronic device displays a phone thumbnail in the upper right corner. The third electronic device is a smartwatch, and the target app belonging to the third electronic device displays a watch thumbnail in the upper right corner. The first electronic device is docked with smartphones more often than smartwatches. In the second area, the Huawei Apps, Video App A, and Huawei Video belonging to the second electronic device are ranked before Media App Y and Media App A belonging to the third electronic device.
[0275] It is understood that when the first electronic device uses the fourth sorting rule, the sorting rule is not limited to the absolute number of times the first electronic device connects to other external devices, but can also be a relative number calculated by the processor of the first electronic device according to an algorithm, such as using a logarithmic formula on the absolute number of times to obtain a relative value (number of times) for comparison. Optionally, the algorithm used by the first electronic device can be configured by the server.
[0276] From the implementation of the above sorting, it can be seen that the first electronic device can be connected to multiple electronic devices at the same time. The target APPs of multiple electronic devices can be displayed in the second area of the first electronic device. Specifically, as shown in Figure 3, the first electronic device, as a smart tablet 300, can be connected to a mobile phone 301, a smart screen 302, a tablet 303, a laptop computer 304, etc. After the connection is completed, the first electronic device can obtain the target APP of each connected device and display it in the second area of the first electronic device.
[0277] It is understandable that when the second area in the first electronic device displays APP icons of multiple devices, they can be sorted according to the first to fourth sorting rules above, and the sorting rules are not described in detail here.
[0278] In one implementation, the media playback control application can also be an audio and video playback control application. When the target APP is displayed in the second area, it can be an audio APP or a video APP. As shown in Figure 20, in the interface 2010, in addition to displaying the audio APP, the second area 2011 also displays the icon 2012 of the Huawei video APP on the second electronic device. In one implementation, when the first electronic device is connected to the second electronic device, different user accounts can be used to log in to different electronic devices. When the devices are connected, the first electronic device is authorized to obtain the media application of the second electronic device. For example, if user 1 logs in to the first electronic device and user 2 logs in to the second electronic device, after the first electronic device and the second electronic device are connected, the second area of the media playback control application on the first electronic device can see the opened media application of the second electronic device. The embodiment of the present application does not impose any special restrictions on the user login scenario, that is, the user account of the login device can be the same user account or a different user account.
[0279] The above embodiments can be used alone or in combination with each other to achieve different technical effects.
[0280] In the embodiments provided in the present application above, the methods provided in the embodiments of the present application are introduced from the perspective of an electronic device as an execution subject. In order to implement the various functions in the methods provided in the embodiments of the present application above, the electronic device may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a function of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
[0281] FIG21 is a schematic diagram of the structure of a communication device for implementing media playback control provided in an embodiment of the present application. The device is applied to a first electronic device. The device provided in this embodiment includes:
[0282] Processing unit 2110, display unit 2120. Wherein:
[0283] A display unit, configured to display a first interface of a media playback control application on the first electronic device;
[0284] a processing unit configured to detect a first input operation applied to a first interface; and in response to the first input operation, obtain information of M target applications installed on a second electronic device, where the second electronic device is connected to the first electronic device, the M target applications being applications of a media type that has been opened on the second electronic device, where the media type is an audio type or a video type, and M is a positive integer;
[0285] The display unit is further configured to display a second interface of the media playback control application based on information of N target applications among the M target applications, where the second interface includes icons of the N target applications;
[0286] The processing unit is also used to detect a second input operation acting on the first icon, where the first icon is an icon of the first application among N target applications; in response to the second input operation, obtain media data of the first application running on the second electronic device and play the media data.
[0287] FIG22 is a schematic diagram of the structure of a communication device for implementing media playback control provided in an embodiment of the present application. The device is applied to a second electronic device. The device provided in this embodiment includes:
[0288] Processing unit 2210, display unit 2220. Wherein:
[0289] a processing unit, configured to send information of M target applications installed on a second electronic device to the first electronic device via the communication unit, where the first electronic device is connected to the second electronic device, where the M target applications are media type applications that have been opened on the second electronic device, where the media type is an audio type or a video type, and where M is a positive integer;
[0290] The processing unit is also used to receive a first request message sent by the first electronic device through the communication unit, where the first request message is used to request media data of the first application among M target applications; and send the media data of the first application to the first electronic device through the communication unit.
[0291] The device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effects are similar and will not be described here.
[0292] An embodiment of the present application further provides an electronic device, comprising: a display screen, a processor, a memory, one or more sensors, a power button, an application, and a computer program. The above-mentioned components can be connected via one or more communication buses. The one or more computer programs are stored in the above-mentioned memory and configured to be executed by the one or more processors, and the one or more computer programs include instructions, which can be used to enable the electronic device to perform the various steps of the interface display method in the above-mentioned embodiments.
[0293] For example, the processor may be the processor 110 shown in FIG1 , the memory may be the internal memory 121 shown in FIG1 and / or an external memory connected to the electronic device, the display may be the display 194 shown in FIG1 , the sensor may be one or more sensors in the sensor module 180 shown in FIG1 , and the power button may be the power button 141 shown in FIG1 . This embodiment of the present application does not impose any restrictions on this.
[0294] In addition, an embodiment of the present application further provides a graphical user interface (GUI) on an electronic device, which specifically includes a graphical user interface displayed by the electronic device when executing the above-mentioned method embodiments.
[0295] As used in the above embodiments, the terms “when…” or “after…” may be interpreted to mean “if…” or “after…” or “in response to determining…” or “in response to detecting…”, depending on the context. Similarly, the phrases “upon determining…” or “if (stated condition or event) is detected” may be interpreted to mean “if determining…” or “in response to determining…” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.
[0296] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)). In the absence of conflict, the solutions of the above embodiments can be used in combination.
Claims
1. A method for implementing media playback control, the method being applied to a first electronic device, characterized in that: The method comprises: Displaying a first interface of a media playback control application on a first electronic device; Detecting a first input operation on the first interface; In response to the first input operation, obtaining information of M target applications installed on a second electronic device, the second electronic device being connected to the first electronic device, the M target applications being media type applications on the second electronic device, the media type being an audio type or a video type, and M being a positive integer; Displaying a second interface of the media playback control application according to information of N target applications among the M target applications, wherein the second interface includes icons of the N target applications; detecting a second input operation acting on a first icon, where the first icon is an icon of a first application among the N target applications; In response to the second input operation, media data of the first application running on the second electronic device is acquired and the media data is played.
2. The method according to claim 1, characterized in that The M target applications have been opened on the second electronic device.
3. The method according to claims 1-2, characterized in that: The second interface includes a first area and a second area, the first area is used to display the status of media playback, and the second area includes icons of the N target applications.
4. The method according to claim 3, characterized in that The method further comprises: In response to the second input operation, the first icon and a state of media playback of the first application are displayed in the first area.
5. The method according to any one of claims 3 or 4, characterized in that: The method further comprises: In response to the second input operation, the display information of the second area is updated, and the updated display information does not include the first icon.
6. The method according to claim 5, characterized in that The method comprises: detecting a third input operation acting on a second icon in the second area, where the second icon is an icon of a second application among the N target applications; In response to the third input operation, acquiring media data of the second application running on the second electronic device and playing the media data; Displaying the second icon and the media playback status of the second application in the first area; The display information of the second area is updated, wherein the updated display information includes the first icon but does not include the second icon.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: A device type icon is displayed, where the device type icon is used to indicate the type of the second electronic device, and the device type icon is displayed in association with the icons of the N target applications.
8. The method according to any one of claims 1 to 7, characterized in that: The method comprises: The information of the media played most recently by the N target applications is displayed, wherein the information of the media played most recently by each target application is displayed in association with an icon of the target application.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: receiving an update message sent by the second electronic device, wherein the update message includes information of a third application, and the third application does not belong to the M target applications; The icon of the third application is displayed in the second area according to the update message.
10. The method according to any one of claims 1 to 9, characterized in that: The order in which the icons of the N target applications are displayed is consistent with the order in which the target applications were most recently opened.
11. The method according to any one of claims 3 to 10, characterized in that: The method comprises: An icon of at least one media type application installed on the first electronic device is displayed in the second area.
12. A system for implementing media playback control, the system comprising a first electronic device and a second electronic device, characterized in that: The first electronic device is used for: Displaying a first interface of a media playback control application on a first electronic device; In response to detecting a first input operation acting on the first interface, obtaining M target applications installed on the second electronic device The second electronic device is connected to the first electronic device, the M target applications are media type applications on the second electronic device, the media type is an audio type or a video type, and M is a positive integer; Displaying a second interface of the media playback control application according to information of N target applications among the M target applications, wherein the second interface includes icons of the N target applications; detecting a second input operation acting on a first icon, where the first icon is an icon of a first application among the N target applications; In response to the second input operation, acquiring media data of the first application running on the second electronic device and playing the media data; The second electronic device is used for: Sending information of the M target applications to the first electronic device; receiving a first request message sent by the first electronic device, where the first request message is used to request media data of the first application; The media data of the first application is sent to the first electronic device according to the first request message.
13. The system according to claim 12, characterized in that The M target applications have been opened on the second electronic device.
14. The system according to claim 12 or 13, characterized in that The first electronic device further displays a device type icon, where the device type icon is used to indicate the type of the second electronic device, and the device type icon is displayed in association with the icons of the N target applications.
15. The system according to any one of claims 12 to 14, characterized in that: The first electronic device is further used to receive an update message sent by the second electronic device, where the update message includes information of a second application, and the second application does not belong to the M target applications; The first electronic device displays the icon of the second application in the second area according to the update message.
16. The method according to any one of claims 12 to 15, characterized in that: The M target applications belong to a first whitelist of the second electronic device, where the first whitelist includes applications of one or more media types; The second electronic device is further used for: Open a second application, where the second application does not belong to the M target applications and belongs to the first whitelist; An update message is sent to the first electronic device, where the update message includes updated information of the M target applications, and the updated information of the M target applications includes information of the second application.
17. A method for implementing media playback control, the method being applied to a second electronic device, characterized in that: The method comprises: Sending information of M target applications installed on the second electronic device to the first electronic device, where the first electronic device is connected to the second electronic device, the M target applications are media type applications on the second electronic device, the media type is an audio type or a video type, and M is a positive integer; receiving a first request message sent by the first electronic device, where the first request message is used to request media data of a first application among the M target applications; The media data of the first application is sent to the first electronic device.
18. The method according to claim 17, characterized in that The M target applications have been opened on the second electronic device.
19. The method according to claim 17 or 18, characterized in that The M target applications belong to a first whitelist, and the first whitelist includes applications of one or more media types; Open a second application, where the second application does not belong to the M target applications and belongs to the first whitelist; An update message is sent to the first electronic device, where the update message includes updated information of the M target applications, and the updated information of the M target applications includes information of the second application.
20. The method according to claim 19, characterized in that The applications in the M target applications are the most recent M applications in the first whitelist determined according to the most recent opening time of the applications.
21. The method according to any one of claims 17 to 20, characterized in that: When sending, the information of the M target applications is sorted by the most recent opening time of each target application.
22. The method according to any one of claims 17 to 21, characterized in that: The target application information includes information about the latest media played by the target application.
23. An electronic device, characterized in that: include: one or more processors; one or more memories; display screen; the one or more memories store one or more computer programs, and the one or more computer programs include instructions, which, when executed by the one or more processors, enable the electronic device to execute the method described in any one of claims 1-11 or claims 17-22.
24. A computer-readable storage medium comprising computer instructions, which, when executed on an electronic device, causes the electronic device to execute the method according to any one of claims 1 to 11 or claims 17 to 22.
25. A computer program product, when executed on a computer, causes the computer to execute the method of any one of claims 1 to 11 or claims 17 to 22.
Citation Information
Patent Citations
User interface integration method and vehicle-mounted device
CN111309414A
Music application program control method and device and electronic equipment
CN111831190A
Application switching method and device, electronic equipment and readable storage medium
CN112148178A
Screen projection method, screen projection device, electronic equipment, vehicle machine and screen projection system
CN113419697A
Screen projection method and equipment based on virtual screen
CN114884990A
