Search

EP-4742020-A1 - DISPLAY METHOD AND ELECTRONIC DEVICE

EP4742020A1EP 4742020 A1EP4742020 A1EP 4742020A1EP-4742020-A1

Abstract

This application provides a display method and an electronic device. The method is applied to the electronic device. The method includes: determining a plurality of pieces of media content in response to a received first operation; and displaying a first interface in response to a received second operation, where the first interface includes a first area and a second area, the first area includes a plurality of pieces of first media content, the second area includes the plurality of pieces of media content, and the plurality of pieces of first media content are included in the plurality of pieces of media content. The first operation is used to select the plurality of pieces of media content, and the second operation indicates to compare the plurality of pieces of media content; or the first operation is used to select at least two pieces of media content, the plurality of pieces of media content include the at least two pieces of media content, media content other than the at least two pieces of media content in the plurality of pieces of media content is determined based on the at least two pieces of media content, and the second operation indicates to compare the at least two pieces of media content. The method can enhance a display effect and comparison efficiency of media content.

Inventors

  • TANG, Yingzhi

Assignees

  • Huawei Technologies Co., Ltd.

Dates

Publication Date
20260513
Application Date
20240827

Claims (20)

  1. A display method, applied to an electronic device, wherein the method comprises: determining a plurality of pieces of media content in response to a received first operation; and displaying a first interface in response to a received second operation, wherein the first interface comprises a first area and a second area, the first area comprises a plurality of pieces of first media content, the second area comprises the plurality of pieces of media content, and the plurality of pieces of first media content are comprised in the plurality of pieces of media content, wherein the first operation is used to select the plurality of pieces of media content, and the second operation indicates to compare the plurality of pieces of media content; or the first operation is used to select at least two pieces of media content, the plurality of pieces of media content comprise the at least two pieces of media content, media content other than the at least two pieces of media content in the plurality of pieces of media content is determined based on the at least two pieces of media content, and the second operation indicates to compare the at least two pieces of media content.
  2. The method according to claim 1, wherein the media content is at least one of the following types of content: a picture, an animated image, a video, and an audio.
  3. The method according to claim 1 or 2, wherein a size of a display area occupied by each of the plurality of pieces of first media content in the first area is greater than a size of a display area occupied in the second area.
  4. The method according to any one of claims 1 to 3, wherein a similarity between any media content other than the at least two pieces of media content in the plurality of pieces of media content and any media content in the at least two pieces of media content is greater than or equal to a specified similarity threshold.
  5. The method according to any one of claims 1 to 4, wherein the plurality of pieces of first media content in the second area have a first mark, and the first mark indicates that the plurality of pieces of first media content are simultaneously displayed in the first area and the second area.
  6. The method according to any one of claims 1 to 5, wherein the media content other than the at least two pieces of media content in the second area has a second mark, and the second mark is used to mark media content automatically selected by the electronic device.
  7. The method according to any one of claims 1 to 6, wherein after displaying the first interface in response to the received second operation, the method further comprises: updating second media content in the first area to third media content in response to a received third operation, wherein the second media content is one of the plurality of pieces of first media content, and the third media content is one of the plurality of pieces of media content other than the plurality of pieces of first media content.
  8. The method according to any one of claims 1 to 6, wherein after displaying the first interface in response to the received second operation, the method further comprises: additionally displaying fourth media content in the first area in response to a received fourth operation, wherein the fourth media content is one of the plurality of pieces of media content other than the plurality of pieces of first media content.
  9. The method according to any one of claims 1 to 6, wherein after displaying the first interface in response to the received second operation, the method further comprises: in response to a received fifth operation, zooming in fifth media content for display; or in response to a received sixth operation, zooming out fifth media content for display, wherein the fifth media content is any one of the plurality of pieces of first media content.
  10. The method according to any one of claims 1 to 6, wherein after displaying the first interface in response to the received second operation, the method further comprises: in response to a received seventh operation, zooming in the plurality of pieces of first media content for display, wherein zoom-in ratios of the plurality of pieces of first media content are the same; or in response to a received eighth operation, zooming out the plurality of pieces of first media content for display, wherein zoom-out ratios of the plurality of pieces of first media content are the same.
  11. The method according to any one of claims 1 to 6, wherein after displaying the first interface in response to the received second operation, the method further comprises: adjusting a display location of sixth media content in response to a received ninth operation; or changing display locations of sixth media content and seventh media content in response to a received tenth operation, wherein the sixth media content is one of the plurality of pieces of first media content, and the seventh media content is another one of the plurality of pieces of first media content.
  12. The method according to any one of claims 1 to 6, wherein after displaying the first interface in response to the received second operation, the method further comprises: deleting eighth media content in the first area in response to a received eleventh operation, wherein the eighth media content is one of the plurality of pieces of first media content.
  13. The method according to claim 12, wherein before determining the plurality of pieces of media content in response to the received first operation, the method further comprises: displaying a second interface, wherein the second interface comprises the plurality of pieces of media content; and after deleting the eighth media content in the first area in response to the received eleventh operation, the method further comprises: displaying a third interface in response to a received twelfth operation, wherein the third interface comprises media content other than the eighth media content in the plurality of pieces of media content.
  14. The method according to any one of claims 1 to 6, wherein after displaying the first interface in response to the received second operation, the method further comprises: adding a third mark to ninth media content in the first area in response to a received thirteenth operation, wherein the ninth media content is one of the plurality of pieces of first media content.
  15. The method according to claim 14, wherein before determining the plurality of pieces of media content in response to the received first operation, the method further comprises: displaying a second interface, wherein the second interface comprises the plurality of pieces of media content; and after adding the third mark to the ninth media content in the first area in response to the received thirteenth operation, the method further comprises: displaying a fourth interface in response to a received fourteenth operation, wherein the fourth interface comprises the plurality of pieces of media content, and the ninth media content in the plurality of pieces of media content has the third mark.
  16. The method according to any one of claims 1 to 6, wherein after displaying the first interface in response to the received second operation, the method further comprises: updating tenth media content in the first area in response to a received fifteenth operation, wherein the tenth media content is one of the plurality of pieces of first media content.
  17. The method according to claim 16, wherein before determining the plurality of pieces of media content in response to the received first operation, the method further comprises: displaying a second interface, wherein the second interface comprises the plurality of pieces of media content; and after updating the tenth media content in the first area in response to the received fifteenth operation, the method further comprises: displaying a fifth interface in response to a received sixteenth operation, wherein the fifth interface comprises: media content other than the tenth media content in the plurality of pieces of media content, and updated tenth media content.
  18. The method according to claim 1, wherein the media content is a video or an audio; and after displaying the first interface in response to the received second operation, the method further comprises: starting to play eleventh media content from a first location of the eleventh media content, and starting to play twelfth media content from a second location of the twelfth media content, wherein the eleventh media content is one of the plurality of pieces of first media content, the twelfth media content is another one of the plurality of pieces of first media content, and a similarity between media content at the first location of the eleventh media content and media content at the second location of the twelfth media content is greater than or equal to a specified threshold.
  19. An electronic device, wherein the electronic device comprises a display, a memory, and one or more processors; and the memory is configured to store computer program code, and the computer program code comprises computer instructions; and when the computer instructions are executed by the one or more processors, the electronic device is caused to perform the method according to any one of claims 1 to 18.
  20. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is run on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 18.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to Chinese Patent Application No. 202311103287.6, filed with the China National Intellectual Property Administration on August 29, 2023 and entitled "DISPLAY METHOD AND ELECTRONIC DEVICE", which is incorporated herein by reference in its entirety. TECHNICAL FIELD This application relates to the field of electronic device technologies, and in particular, to a display method and an electronic device. BACKGROUND Currently, users can compare a plurality of pictures by displaying the plurality of pictures simultaneously on a personal computer (personal computer, PC). However, this method has a poor display effect, and the users can only simultaneously view and compare the plurality of pictures displayed on the PC, resulting in low efficiency of viewing and comparing the pictures. In addition, some electronic devices such as mobile phones cannot provide the users with a function of displaying a plurality of pictures for comparison, and the users can only view and compare the pictures one by one. Currently, most electronic devices cannot display media content (for example, a video) of another type for comparison. Therefore, the electronic devices currently have a poor effect in displaying the media content. SUMMARY This application provides a display method and an electronic device, to display media content for comparison, thereby enhancing a display effect and comparison efficiency of the media content. According to a first aspect, this application provides a display method, applied to an electronic device, where the method includes: determining a plurality of pieces of media content in response to a received first operation; and displaying a first interface in response to a received second operation, where the first interface includes a first area and a second area, the first area includes a plurality of pieces of first media content, the second area includes the plurality of pieces of media content, and the plurality of pieces of first media content are included in the plurality of pieces of media content, where the first operation is used to select the plurality of pieces of media content, and the second operation indicates to compare the plurality of pieces of media content; or the first operation is used to select at least two pieces of media content, the plurality of pieces of media content include the at least two pieces of media content, media content other than the at least two pieces of media content in the plurality of pieces of media content is determined based on the at least two pieces of media content, and the second operation indicates to compare the at least two pieces of media content. In the method, the electronic device can display the plurality of pieces of media content for comparison in the first area of the first interface, so that the media content can be displayed for comparison. This further enhances a display effect and comparison efficiency of the media content. In addition, when displaying the plurality of pieces of media content for comparison in the first area of the first interface, the electronic device may further display, in the second area of the first interface, the plurality of pieces of media content that are being compared and at least one other piece of media content. Therefore, more media content can be displayed on a media content comparison interface, and the display effect of the media content can be further enhanced. The at least one other piece of media content may be used as a candidate media content participating in comparison, namely, media content to participate in comparison, which can provide convenience for a user to adjust media content participating in comparison, thereby enhancing the comparison efficiency. In the method, media content in the first area may be media content that is participating in comparison. When the first operation is used to select the plurality of pieces of media content, media content in the second area other than the plurality of pieces of media content that are participating in comparison may be media content selected by the user. When the first operation is used to select the at least two pieces of media content, media content in the second area other than media content that is participating in comparison may be media content selected by the user or media content automatically determined by the electronic device. The media content is displayed in the second area, so that more to-be-selected media content can be provided for the user in addition to the media content that participates in comparison, to compare and display the media content more conveniently and efficiently, thereby further enhancing the display effect and the comparison efficiency of the media content. In a possible design, the media content is at least one of the following types of content: a picture, an animated image, a video, and an audio. In the method, the media content may be a plurality