Search

US-12619349-B2 - Multimedia data playing method and electronic device

US12619349B2US 12619349 B2US12619349 B2US 12619349B2US-12619349-B2

Abstract

A method includes displaying N candidate devices, receiving a first selection operation that a user selects a second electronic device from the N candidate devices, and switch multimedia data associated with the first display interface to the second electronic device for playing or displaying the task.

Inventors

  • Yanan Zhang
  • Xuan Zhou
  • Mengdi Liu
  • Fei Ye
  • Guyu Xie

Assignees

  • HUAWEI TECHNOLOGIES CO., LTD.

Dates

Publication Date
20260505
Application Date
20240621
Priority Date
20181114

Claims (20)

  1. 1 . A method implemented by a first electronic device, the method comprising: displaying, by the first electronic device, a first display interface of a first application; displaying, by the first electronic device, a first interface comprising N device icons corresponding to N candidate devices for playing the first application, wherein N is a first integer greater than 0; receiving, by the first electronic device and from a user, a first selection operation selecting a second electronic device from the N candidate devices; sending, by the first electronic device and in response to the first selection operation and to the second electronic device, first multimedia data associated with the first application for the second electronic device to play the first multimedia data; while the first multimedia data is being played on the second electronic device, displaying, by the first electronic device, a second interface comprising M device icons and information indicating that the first multimedia data is being played on the second electronic device, wherein the M device icons correspond to M candidate devices for playing the first application, and wherein M is a second integer greater than 0; receiving, by the first electronic device and from the user, a second selection operation selecting a third electronic device from the M candidate devices; sending, by the first electronic device, to the third electronic device, and in response to the second selection operation, the first multimedia data to switch playing the first multimedia data from the second electronic device to the third electronic device; and updating, after sending the first multimedia data to the third electronic device, the second interface from indicating that the first multimedia data is being played on the second electronic device to indicating that the first multimedia data is being played on the third electronic device, wherein the M device icons displayed on the second interface comprise icons corresponding to the second electronic device and the third electronic device.
  2. 2 . The method of claim 1 , wherein after displaying the first display interface, the method further comprises: receiving, by the first electronic device and from the user, a first operation; displaying, by the first electronic device and in response to the first operation, a device switching button; and detecting, by the first electronic device and from the user, a second operation on the device switching button, and wherein displaying the first interface comprises displaying, by the first electronic device and in response to detecting the second operation, the first interface.
  3. 3 . The method of claim 1 , further comprising: displaying, by the first electronic device, a second display interface of a second application or a home screen; displaying, by the first electronic device, a fourth interface comprising X device icons corresponding to X candidate devices, wherein X is a third integer greater than 0; receiving, by the first electronic device and from the user, a third selection operation selecting a fourth electronic device from the X candidate devices; and sending, by the first electronic device, to the fourth electronic device, and in response to the third selection operation, second multimedia data associated with the second display interface for displaying the second display interface on the fourth electronic device.
  4. 4 . The method of claim 1 , wherein sending, by the first electronic device and in response to the first selection operation and to the second electronic device, the first multimedia data comprises sending audio data of the first application without sending display data of the first application, or wherein sending, in response to the second selection operation and to the third electronic device, the first multimedia data comprises sending the audio data without sending the display data.
  5. 5 . The method of claim 1 , wherein after sending, by the first electronic device, to the second electronic device, and in response to the first selection operation, the first multimedia data, the method further comprises: continuing, by the first electronic device, displaying the first display interface; or displaying, by the first electronic device, a third display interface other than the first display interface.
  6. 6 . The method of claim 1 , wherein the first interface is a multi-task window.
  7. 7 . The method of claim 1 , wherein the first interface comprises a name of the first application or a snapshot of the first application.
  8. 8 . A first electronic device, comprising: one or more processors; and one or more memories coupled to the one or more processors and configured to store instructions, which when executed by the one or more processors, cause the first electronic device to: display a first display interface of a first application; display a first interface comprising N device icons corresponding to N candidate devices for playing the first application, wherein N is a first integer greater than 0; receive, from a user, a first selection operation selecting a second electronic device from the N candidate devices; send, in response to the first selection operation and to the second electronic device, first multimedia data associated with the first application for the second electronic device to play the first multimedia data; while the first multimedia data is being played on the second electronic device, display a second interface comprising M device icons and information indicating that the first multimedia data is being played on the second electronic device, wherein the M device icons correspond to M candidate devices for playing the first application, and wherein M is a second integer greater than 0; receive, from the user, a second selection operation selecting a third electronic device from the M candidate devices; send, in response to the second selection operation and to the third electronic device, the first multimedia data to switch playing the first multimedia data from the second electronic device to the third electronic device; and update, after sending the first multimedia data to the third electronic device, the second interface from indicating that the first multimedia data is being played on the second electronic device to indicating that the first multimedia data is being played on the third electronic device, wherein the M device icons displayed on the second interface comprise icons corresponding to the second electronic device and the third electronic device.
  9. 9 . The first electronic device of claim 8 , wherein after displaying the first display interface, the instructions are further executed by the one or more processors to cause the first electronic device to: receive, from the user, a first operation; display, in response to the first operation, a device switching button; and detect, from the user, a second operation on the device switching button, and wherein displaying the first interface comprises displaying, in response to detecting the second operation, the first interface.
  10. 10 . The first electronic device of claim 8 , wherein the instructions are further executed by the one or more processors to cause the first electronic device to: display a second display interface of a second application or a home screen; display a third interface comprising X device icons corresponding to X candidate devices, wherein X is a third integer greater than 0; receive, from the user, a third selection operation selecting a fourth electronic device from the X candidate devices; and send, in response to the third selection operation and to the fourth electronic device, second multimedia data associated with the second display interface for displaying the second display interface on the fourth electronic device.
  11. 11 . The first electronic device of claim 8 , wherein the instructions are further executed by the one or more processors to cause the first electronic device to send, to the second electronic device, audio data of the first application without sending display data of the first application.
  12. 12 . The first electronic device of claim 8 , wherein after sending, in response to the first selection operation and to the second electronic device, the first multimedia data, the instructions are further executed by the one or more processors to cause the first electronic device to continue displaying the first display interface.
  13. 13 . The first electronic device of claim 8 , wherein the first interface is a multi-task window.
  14. 14 . The first electronic device of claim 8 , wherein the first interface comprises a name of the first application or a snapshot of the first application.
  15. 15 . A computer program product comprising instructions that are stored on a non-transitory computer-readable storage medium and that, when executed by one or more processors, cause a first electronic device to: display a first display interface of a first application; display a first interface comprising N device icons corresponding to N candidate devices for playing the first application, wherein N is a first integer greater than 0; receive, from a user, a first selection operation selecting a second electronic device from the N candidate devices; send, in response to the first selection operation and to the second electronic device, first multimedia data associated with the first application for the second electronic device to play the first multimedia data; while the first multimedia data is being played on the second electronic device, display a second interface comprising M device icons and information indicating that the first multimedia data is being played on the second electronic device, wherein the M device icons correspond to M candidate devices for playing the first application, and wherein M is a second integer greater than 0; receive, from the user, a second selection operation selecting a third electronic device from the M candidate devices; send, in response to the second selection operation and to the third electronic device, the first multimedia data to switch playing the first multimedia data from the second electronic device to the third electronic device; and update, after sending the first multimedia data to the third electronic device, the second interface from indicating that the first multimedia data is being played on the second electronic device to indicating that the first multimedia data is being played on the third electronic device, wherein the M device icons displayed on the second interface comprise icons corresponding to the second electronic device and the third electronic device.
  16. 16 . The computer program product of claim 15 , wherein after displaying the first display interface, the one or more processors are further configured to execute the instructions to: receive, from the user, a first operation; display, in response to the first operation, a device switching button; and detect, from the user, a second operation on the device switching button, and wherein displaying the first interface comprises displaying, in response to detecting the second operation, the first interface.
  17. 17 . The computer program product of claim 15 , wherein the one or more processors are further configured to execute the instructions to: display a second display interface of a second application or a home screen; display a third interface comprising X device icons corresponding to X candidate devices, wherein X is a third integer greater than 0; receive, from the user, a third selection operation selecting a fourth electronic device from the X candidate devices; and send, in response to the third selection operation and to the fourth electronic device, second multimedia data associated with the second display interface for displaying the second display interface on the fourth electronic device.
  18. 18 . The computer program product of claim 15 , wherein the one or more processors are further configured to execute the instructions to send, to the third electronic device, audio data without sending display data.
  19. 19 . The computer program product of claim 15 , wherein after sending, in response to the first selection operation and to the second electronic device, the first multimedia data, the one or more processors are further configured to execute the instructions to display a third display interface other than the first display interface.
  20. 20 . The computer program product of claim 15 , wherein the first interface is a multi-task window and comprises a name of the first application or a snapshot of the first application.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS This is a continuation of U.S. patent application Ser. No. 17/293,365 filed on May 12, 2021, now U.S. Pat. No. 12,019,864, which is a U.S. National Stage of International Patent Application No. PCT/CN2019/111158 filed on Oct. 15, 2019, which claims priority to Chinese Patent Application No. 201811355743.5 filed on Nov. 14, 2018. All of the aforementioned patent applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This application relates to the terminal field, and in particular, to a multimedia data playing method and an electronic device. BACKGROUND With the development of smart household technologies, a user or a family usually has a plurality of electronic devices that can communicate with each other. Various electronic devices usually have their own device characteristics. For example, mobile phones have better portability, television screens have better display effects, and speakers have better sound quality and sound effects. To make full use of device characteristics of different electronic devices, the electronic devices may implement interaction of multimedia data between the plurality of devices by using functions such as screen projection, airplay (wireless playing), or Bluetooth. Using the screen projection function as an example, a user may install screen projection software on a mobile phone, and send multimedia data such as photos and videos on the mobile phone to another controlled device (for example, a smart television) that supports the screen projection function for display. In an implementation, after the user selects the smart television as the controlled device, the mobile phone sends, in real time, data displayed on a screen of the mobile phone to the smart television for display. That is, displayed content on the mobile phone is completely the same as that on the smart television. This screen projection manner is prone to cause disclosure of private information on the mobile phone. In another implementation, after the user selects the smart television as the controlled device, the mobile phone may first prompt, in a form of a list or the like, the user to select an application to be screen-projected. After the user selects a specific application, the mobile phone may screen-project the application selected by the user onto the smart television for display. In this screen projection manner, the user needs to manually set specific to-be-screen-projected content before each screen projection, resulting in cumbersome operations in a screen projection process. SUMMARY This application provides a multimedia data playing method and an electronic device, to allow multimedia data in a first electronic device to be conveniently and quickly switched to a second electronic device for playing, thereby reducing an operation in a screen projection process, improving human-computer interaction efficiency, and enhancing intelligence of the electronic devices and friendliness of the electronic devices in interaction with persons. To achieve the foregoing objectives, the following technical solutions are used in this application. According to a first aspect, this application provides a multimedia data playing method, including: A first electronic device displays a first display interface; subsequently, the first electronic device may display a first prompt interface, where the first prompt interface includes N (N is an integer greater than 0) candidate devices; and if a first selection operation that a user selects a second electronic device from the N candidate devices is detected, the first electronic device switches only multimedia data associated with the first display interface to the second electronic device for playing. When the first display interface is an interface of a first application, the multimedia data associated with the first display interface includes one or any combination of the following: data on a display interface of the first application, and data of a video task or data of an audio task on the first display interface; other information (for example, information in a status bar) displayed simultaneously with the first display interface; and multimedia data of a video application on the first electronic device, multimedia data of an audio application on the first electronic device, data displayed on a home screen of the first electronic device, and multimedia data of an application that is running when the first electronic device displays the first display interface. That is, when an application is running in the first electronic device, the first electronic device may determine the application as an application whose multimedia data needs to be switched to another electronic device for playing, and prompt the user to select a candidate device to play the application. If the user selects a candidate device (that is, the second electronic device), the first electronic device may switch, at a per-applicatio