Media content picture display method and apparatus, electronic device, storage medium, and program product
By acquiring and analyzing the interface size of the media content display interface, determining the target screen display area, and adjusting the screen display area to include or exclude interactive controls, the problem of a single screen display area in existing technologies is solved, and a flexible media content display effect is achieved.
Patent Information
- Application Number
- PCT/CN2025/077006
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-15
- Filing Date
- 2025-02-12
- Publication Date
- 2026-01-22
AI Technical Summary
In existing technologies, the methods for determining the display area in media content display interfaces are relatively simple and cannot meet the display needs of different scenarios.
By obtaining the interface size of the media content display interface, it is determined whether the target screen display area includes the first area and the second area. Based on the interface size, the screen display area is adjusted to include or exclude the interactive control area, thus achieving flexible screen display.
It enriches the ways to determine the display area of media content display interface, meets the display needs of different scenarios, and increases the display size of media content without affecting the integrity of the image, thereby improving the display effect.
Smart Images

Figure CN2025077006_22012026_PF_FP_ABST
Abstract
Description
Methods, devices, electronic equipment, storage media, and program products for displaying media content images
[0001] This application claims priority to Chinese Patent Application No. 202410947957.0, filed on July 15, 2024, the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0002] This disclosure relates to a method, apparatus, electronic device, storage medium, and program product for displaying media content images. Background Technology
[0003] Currently, when displaying media content, especially on tablets, the media content can be shown in the designated display area. However, the method for determining this display area is rather simplistic and cannot meet the display needs of different scenarios. Summary of the Invention
[0004] This disclosure provides a method, apparatus, electronic device, storage medium, and program product for displaying media content, thereby enriching the ways to determine the display area in the media content display interface and enabling the display area to meet the display needs in different scenarios.
[0005] In a first aspect, embodiments of this disclosure provide a method for displaying media content images, including:
[0006] Obtain a media content display interface to be displayed, the media content display interface including a first area and a second area, the first area displaying at least some interactive controls of the media content display interface, and the second area being the original screen display area of the media content display interface;
[0007] Determine the target screen display area of the media content display interface, wherein whether the target screen display area includes the first area is related to the interface size of the media content display interface;
[0008] The media content display interface is displayed, and the target media content image is displayed in the target screen display area.
[0009] Secondly, embodiments of this disclosure also provide a media content display device, including:
[0010] The interface acquisition module is used to acquire the media content display interface to be displayed. The media content display interface includes a first area and a second area. The first area displays at least some of the interactive controls of the media content display interface, and the second area is the original screen display area of the media content display interface.
[0011] The region determination module is used to determine the target screen display area of the media content display interface, wherein whether the target screen display area includes the first region is related to the interface size of the media content display interface;
[0012] The screen display module is used to display the media content display interface and display the target media content screen in the target screen display area.
[0013] Thirdly, embodiments of this disclosure also provide an electronic device, including:
[0014] One or more processors;
[0015] Memory, used to store one or more programs.
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the media content display method as described in the embodiments of this disclosure.
[0017] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for displaying media content images as described in embodiments of this disclosure.
[0018] Fifthly, this disclosure also provides a computer program product that, when executed by a computer, enables the computer to implement the media content display method as described in this disclosure. Attached Figure Description
[0019] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0020] Figure 1 is a flowchart illustrating a method for displaying media content images according to an embodiment of this disclosure;
[0021] Figure 2 is a schematic diagram of a media content display interface provided in an embodiment of this disclosure;
[0022] Figure 3 is a schematic diagram of a target screen display area provided in an embodiment of this disclosure;
[0023] Figure 4 is a schematic diagram of another target screen display area provided in an embodiment of this disclosure;
[0024] Figure 5 is a schematic diagram of another target screen display area provided in an embodiment of this disclosure;
[0025] Figure 6 is a flowchart illustrating another method for displaying media content images provided in an embodiment of this disclosure;
[0026] Figure 7 is a schematic diagram of an original media content screen provided in an embodiment of this disclosure;
[0027] Figure 8 is a schematic diagram of another original media content screen provided in an embodiment of this disclosure;
[0028] Figure 9 is a structural block diagram of a media content display device provided in an embodiment of this disclosure; and
[0029] Figure 10 is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0030] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0031] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0032] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0033] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0034] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0035] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0036] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0037] Figure 1 is a flowchart illustrating a method for displaying media content screens according to an embodiment of this disclosure. This method can be executed by a media content screen display device, which can be implemented by software and / or hardware and can be configured in an electronic device, such as a tablet computer. The media content screen display method provided in this disclosure is applicable to scenarios where the screen display area in a media content display interface is adjusted based on the interface size of the media content display interface, such as whether the screen display area in the media content display interface includes the control area of the media content display interface. As shown in Figure 1, the media content screen display method provided in this embodiment may include:
[0038] S101. Obtain the media content display interface to be displayed, wherein the media content display interface includes a first area and a second area, wherein the first area displays at least some interactive controls of the media content display interface, and the second area is the original screen display area of the media content display interface.
[0039] A media content display interface can be an interface used to display media content, such as an interface for playing video content or displaying images from the media content. The media content display interface to be displayed can be understood as the interface where the media content needs to be displayed currently, such as the interface where the user indicates the media content to be displayed.
[0040] As shown in Figure 2 (taking the first area 21 located below the second area 22 as an example), the media content display interface may include a first area 21 and a second area 22. These two areas can be different regions of the media content display interface; for example, the first area 21 and the second area 22 may not overlap. The first area 21 and the second area 22 can be arranged vertically, such as the first area 21 being located above or below the second area 22; or they can be arranged horizontally, such as the first area 21 being located to the left or right of the second area 22.
[0041] The first area 21 is used to display at least one interactive control in the media content display interface. This at least one interactive control may include, for example, interface controls and / or interactive controls. The interface control can be used to trigger the display of the corresponding interface; for example, this interface control may include at least one of a media content display interface control, an associated user interface control, a shooting interface control, a message interface control, and a personal interface control. The media content display interface control can be used to trigger the display of the aforementioned media content interface; the associated user interface control can be used to trigger the display of the current user's associated user information, which can be a user with a preset association relationship with the current user; the message interface control can be used to trigger the display of a message interface, which can display a list of conversation messages and / or notification messages; the personal interface control can be used to trigger the display of the current user's personal interface. The interactive control can be used to trigger interaction with the currently displayed media content; for example, this interactive control may include a like control, a share control, a comment control, and / or a favorite control, etc.
[0042] In some optional examples, as shown in Figure 2, the first area 21 can be displayed at the bottom of the media content display interface. In this case, the at least one interactive control displayed in the first area 21 can include interface controls. When the interfaces corresponding to the different interface controls are displayed, the bottom of the interfaces can all include this first area 21 to facilitate page switching for the user.
[0043] This second area 22 is the original display area of the media content display interface, which can be used to display the media content to be displayed in the media content display interface. This original display area can be understood as the area originally set for displaying the media content.
[0044] In this embodiment, when it is necessary to display a media content display interface, the media content display interface to be displayed can be obtained so that the target screen display area of the media content display interface can be determined based on the interface size of the media content display interface to determine whether the target screen display area of the media content display interface includes the first area of the media content display interface.
[0045] S102. Determine the target screen display area of the media content display interface, wherein whether the target screen display area includes the first area is related to the interface size of the media content display interface.
[0046] The target display area can be understood as the area within the media content display interface used to display the media content, determined by the interface size of the media content display interface. The target display area includes at least the second area of the media content display interface, and may further include the first area of the media content display interface. Whether the target display area includes the first area of the media content display interface is specifically related to the interface size of the media content display interface.
[0047] Specifically, after obtaining the media content display interface to be displayed, the interface size of the media content display interface can be obtained. For example, when the media content display interface needs to be displayed in full screen on the electronic device on which it is displayed, the screen size of the electronic device on which the media content display interface is displayed can be obtained as the interface size of the media content display interface.
[0048] After obtaining the interface size of the media content display interface to be displayed, it is possible to determine whether it is necessary to display part of the media content in the first area of the media content display interface when the target media content screen is displayed with a larger size in the width or height direction (such as a size that matches the width or height of the media content display interface). If yes, the first area and the second area can be used together as the target screen display area of the media content display interface. If no, only the second area can be used as the target screen display area of the media content display interface. In this case, interactive controls can continue to be displayed in the first area, without having to display the media content screen in the first area of the media content display interface at the same time.
[0049] In some implementations, whether the target display area includes the first area of the media content display interface can be determined based on the aspect ratio of the media content display interface and the height of the media content screen to be displayed.
[0050] In some examples, the first region and the second region are arranged vertically. Determining the target display area of the media content display interface includes at least one of the following: if the aspect ratio of the media content display interface is less than 1, or if the aspect ratio of the media content display interface is greater than or equal to 1 and the height of the media content display interface is greater than a preset height threshold, then the second region is taken as the target display area; if the aspect ratio of the media content display interface is greater than or equal to 1 and the height of the media content display interface is less than or equal to a preset height threshold, then the target display area is determined based on the aspect ratio of the second region and the aspect ratio of the target media content screen.
[0051] The aspect ratio of the media content display interface can be understood as the ratio between the width and height of the media content display interface. In full-screen mode, it can be the ratio between the width and height of the screen of the electronic device on which it is displayed. The height of the media content display interface can be understood as its height value. In full-screen mode, it can be the screen height of the electronic device on which it is displayed. A preset height threshold can be set as needed. For example, a preset height threshold can be used to determine whether an electronic device is a medium-to-large screen electronic device (such as a medium-to-large screen tablet) in landscape mode. For instance, if the screen height of the electronic device is greater than or equal to the preset height threshold, the electronic device can be determined to be a medium-to-large screen electronic device; if the screen height of the electronic device is less than the preset height threshold, the electronic device can be determined to be a small screen electronic device. The specific value of the preset height threshold is not limited; for example, the preset height threshold can be set to 800dp or 900dp.
[0052] As an optional example, if the aspect ratio of the media content display interface is less than 1, it means that the width of the media content display interface is less than its height. This also indicates that the media content display interface is a portrait view, and there is sufficient space in the height direction to display the media content. Therefore, in this case, only the second area of the media content display interface can be used as the target display area, as shown in Figure 2.
[0053] As an optional example, if the aspect ratio of the media content display interface is greater than or equal to 1, it means that the width of the media content display interface is greater than its height. This also indicates that the media content display interface is a landscape view. In this case, if the height of the media content display interface is large, such as exceeding a preset height threshold, it means that the electronic device on which the media content display interface is displayed is a medium to large screen electronic device with a relatively high height in a landscape view, and there is sufficient space in the height direction of the media content display interface to display the media content image. Therefore, in this case, only the second area of the media content display interface can be used as the target image display area of the media content display interface, as shown in Figure 3.
[0054] As an optional example, if the aspect ratio of the media content display interface is greater than or equal to 1, it means that the width of the media content display interface is greater than its height. This also indicates that the media content display interface is a landscape view. In this case, if the height of the media content display interface is small, such as less than or equal to a preset height threshold, it means that the electronic device on which the media content display interface is displayed is a small-screen electronic device with a low height in landscape view. There may be or may not be enough space in the height direction of the media content display interface to display the media content screen. Therefore, only the second area of the media content display interface can be used as the target screen display area of the media content display interface, or the first area and the second area can be used together as the target screen display area of the media content display interface. Specifically, it can be determined based on the aspect ratio of the second area and the aspect ratio of the target media content screen.
[0055] In some implementations, when the first region and the second region are arranged vertically, the target region of the media content display interface can be determined based on the aspect ratio of the second region and the aspect ratio of the target media content screen.
[0056] For example, if the aspect ratio of the target media content image is greater than or equal to the aspect ratio of the second area, it means that when the width of the target media content image is equal to the width of the second area, the height of the second area is greater than or equal to the height of the target media content image. The second area has enough space to display the target media content image, so the second area can be used as the target image display area of the media content display interface, as shown in Figure 4.
[0057] For example, if the aspect ratio of the target media content image is less than that of the second area, it means that when the width of the target media content image is equal to the width of the second area, the height of the second area is less than the height of the target media content image. In this case, the second area does not have enough space to display the target media content image. Therefore, the first area and the second area can be used together as the target image display area of the media content display interface, as shown in Figure 5.
[0058] Optionally, determining the target display area based on the aspect ratio of the second region and the aspect ratio of the target media content image includes at least one of the following: if the aspect ratio of the target media content image is greater than or equal to the aspect ratio of the second region, then the second region is used as the target display area; if the aspect ratio of the target media content image is less than the aspect ratio of the second region, then the merged area of the first region and the second region is used as the target display area.
[0059] In some examples, the first region and the second region are arranged horizontally. Determining the target display area of the media content display interface includes at least one of the following: if the aspect ratio of the media content display interface is greater than 1, or if the aspect ratio of the media content display interface is less than or equal to 1 and the width of the media content display interface is greater than a preset width threshold, then the second region is taken as the target display area; if the aspect ratio of the media content display interface is less than or equal to 1 and the width of the media content display interface is less than or equal to a preset width threshold, then the target display area is determined based on the aspect ratio of the second region and the aspect ratio of the target media content screen.
[0060] The width of the media content display interface can be understood as the width value of the media content display interface. In full-screen display, it can be the screen width of the electronic device on which it is displayed. The preset width threshold can be set as needed. For example, the preset width threshold can be used to determine whether the corresponding electronic device is a medium-to-large screen electronic device (such as a medium-to-large screen tablet) in portrait mode. For instance, if the screen width of the electronic device is greater than or equal to the preset width threshold, the corresponding electronic device can be determined to be a medium-to-large screen electronic device; if the screen width of the electronic device is less than the preset width threshold, the corresponding electronic device can be determined to be a small screen electronic device. The specific value of the preset width threshold is not limited; for example, the preset width threshold can be set to 800dp or 900dp, etc.
[0061] As an optional example, if the aspect ratio of the media content display interface is greater than 1, it means that the width of the media content display interface is greater than its height. This also indicates that the media content display interface is a landscape view, and there is sufficient space in the width direction to display the media content. Therefore, in this case, only the second area of the media content display interface can be used as the target display area.
[0062] As an optional example, if the aspect ratio of the media content display interface is less than or equal to 1, it means that the width of the media content display interface is less than its height. This also indicates that the media content display interface is a portrait view. In this case, if the width of the media content display interface is large, such as exceeding a preset width threshold, it means that the electronic device on which the media content display interface is displayed is a medium to large screen electronic device with a large width in a portrait view, and there is sufficient space in the width direction of the media content display interface to display the media content. Therefore, in this case, only the second area of the media content display interface can be used as the target display area of the media content display interface.
[0063] As an optional example, if the aspect ratio of the media content display interface is less than or equal to 1, it means that the width of the media content display interface is less than its height. This also indicates that the media content display interface is a portrait view. In this case, if the width of the media content display interface is small, such as less than or equal to a preset width threshold, it means that the electronic device on which the media content display interface is displayed is a small-screen electronic device with a small width in a portrait view. There may be or may not be enough space in the width direction of the media content display interface to display the media content screen. Therefore, only the second area of the media content display interface can be used as the target screen display area of the media content display interface, or the first area and the second area can be used together as the target screen display area of the media content display interface. Specifically, it can be determined based on the aspect ratio of the second area and the aspect ratio of the target media content screen.
[0064] In some implementations, when the first region and the second region are arranged horizontally, the target region of the media content display interface can also be determined based on the aspect ratio of the second region and the aspect ratio of the target media content screen.
[0065] For example, if the aspect ratio of the target media content image is less than or equal to the aspect ratio of the second area, it means that when the height of the target media content image is equal to the height of the second area, the width of the second area is greater than or equal to the width of the target media content image. The second area has enough space to display the target media content image, so the second area can be used as the target image display area of the media content display interface.
[0066] For example, if the aspect ratio of the target media content image is greater than that of the second area, it means that when the height of the target media content image is equal to the height of the second area, the width of the second area is less than the width of the target media content image. In this case, the second area does not have enough space to display the target media content image, so the first area and the second area can be used together as the target image display area of the media content display interface.
[0067] Optionally, determining the target display area based on the aspect ratio of the second region and the aspect ratio of the target media content image includes at least one of the following: if the aspect ratio of the target media content image is less than or equal to the aspect ratio of the second region, then the second region is used as the target display area; if the aspect ratio of the target media content image is greater than the aspect ratio of the second region, then the merged area of the first region and the second region is used as the target display area.
[0068] S103. Display the media content display interface and display the target media content screen in the target screen display area.
[0069] In this embodiment, after determining the target screen display area of the media content display interface, the media content display interface can be displayed, and the target media content screen to be displayed can be displayed in the target screen display area of the media content display interface.
[0070] In this embodiment, the method of displaying the target media content image in the target screen display area can be flexibly set. Optionally, displaying the target media content image in the target screen display area includes: determining the target display position of the target media content image based on the media content information displayed in the media content display interface, and displaying the target media content image at the target display position in the target screen display area; or, displaying the target media content image at a preset display position in the target screen display area.
[0071] The media content information displayed in the media content display interface can be understood as the relevant information of the media content currently displayed in the media content display interface, such as the publisher information, publication time information, and text content information of the currently displayed media content.
[0072] In some cases, if the media content is displayed at a preset display position within the target display area, the display of the media content information may obstruct the media content displayed on the media content display interface, affecting the user's viewing experience. Therefore, in this embodiment, the target media content can be displayed at a preset display position within the target display area as needed, or at a target display position adjusted based on the media content information's display position; the specific setting can be flexibly configured according to requirements.
[0073] In some examples, for cases where the first and second areas are arranged vertically, the target display position of the target media content image can be determined based on the media content information displayed in the media content display interface, and the target media content image can be displayed at this target display position within the target image display area. This target display position can be adjusted within a first preset coordinate range in the media content display interface, such as by setting it as needed within a preset vertical coordinate range. This preset vertical coordinate range is not limited; for example, the maximum vertical coordinate value within this range can be set as the bottom boundary coordinate of the top navigation bar of the media content display interface.
[0074] In some examples, where the first and second areas are arranged horizontally, the target display position of the target media content image can be determined based on the media content information displayed in the media content display interface, and the target media content image can be displayed at this target display position within the target image display area. This target display position can be adjusted within a second preset coordinate range in the media content display interface, such as a preset horizontal coordinate range within the media content display interface, which is not limited. Here, the second preset coordinate range and the first preset coordinate range can be the same or different coordinate ranges; this embodiment does not impose any limitation on this.
[0075] In some examples, the target media content image can also be displayed at a preset display position in the target image display area, such as by overlapping the center point of the target media content image with the center point of the target image display area, and displaying the target media content image in the target image display area based on this.
[0076] The media content display method provided in this embodiment obtains a media content display interface to be displayed, which includes a first area and a second area. The first area displays at least some interactive controls of the media content display interface, and the second area is the original display area of the media content display interface. A target display area of the media content display interface is determined, wherein whether this target display area includes the first area of the media content display interface is related to the interface size of the media content display interface. The media content display interface is then displayed, and the target media content image is displayed in the target display area of this media content image. This embodiment utilizes the above technical solution to determine whether the display area of the media content display interface includes the control area of the media content display interface based on the interface size of the media content display interface, thereby determining whether the control area of the media content display interface is used to display both interactive controls and media content images. This enriches the way the display area in the media content display page is determined, enabling the display area to meet the media content image display needs in different scenarios.
[0077] Figure 6 is a flowchart illustrating another method for displaying media content images according to an embodiment of this disclosure. The solution in this embodiment can be combined with one or more optional solutions in the above embodiments. Optionally, before determining the target display area of the media content display interface, the method further includes: performing preset processing on the original media content image to be displayed to obtain the target media content image, wherein the preset processing includes at least one of scaling processing and cropping processing.
[0078] Accordingly, as shown in Figure 6, the method for displaying media content images provided in this embodiment may include:
[0079] S201. Obtain the media content display interface to be displayed, wherein the media content display interface includes a first area and a second area, wherein at least some interactive controls of the media content display interface are displayed in the first area, and the second area is the original screen display area of the media content display interface.
[0080] S202. Perform preset processing on the original media content image to be displayed to obtain the target media content image. The preset processing includes at least one of scaling processing and cropping processing.
[0081] In this embodiment, the target media content image can be processed based on the original media image to be displayed in the target image display area of the media content interface, so as to facilitate the subsequent determination of the target image display area of the media content display interface based on this target media content image.
[0082] The original media content image can be understood as the original media content image contained in the currently displayed media content; the target media content image can be understood as the media content image obtained by performing preset processing on the original media content image. This preset processing may include scaling and / or cropping, that is, the target media content image to be displayed can be obtained by scaling and / or cropping the original media content image.
[0083] In this embodiment, the original media content image can be processed based on the different screen sizes of the original media content image and the different screen sizes of the media content display interface to obtain the target media content image.
[0084] In some implementations, the step of pre-processing the original media content image to be displayed to obtain the target media content image includes: if the aspect ratio of the original media content image is smaller than the aspect ratio of the media content display interface, scaling the original media content image proportionally to make its width equal to the width of the media content display interface; if the ratio between the height of the scaled original media content image and the height of the media content display interface is greater than 1 and less than or equal to a first ratio threshold, then cropping the scaled original media content image according to the interface height to obtain the target media content image; if the ratio between the height of the scaled original media content image and the height of the media content display interface is greater than the first ratio threshold, then scaling the original media content image proportionally to make its height equal to the height of the media content display interface to obtain the target media content image.
[0085] In the above implementation, if the aspect ratio of the original media content image is smaller than that of the media content display interface, the original media content image can be proportionally reduced to a width equal to that of the media content display interface, as shown in Figure 7. Since the aspect ratio of the original media content image is smaller than that of the media content display interface, the height of the scaled-down original media content image will inevitably be higher than the height of the media content display interface, as shown by the shaded area in Figure 7.
[0086] In this case, if the difference between the height of the scaled-up original media content image and the height of the media content display interface is small, such as a ratio greater than 1 and less than or equal to the first ratio threshold, then cropping the excess portion will not significantly affect the integrity of the media content image. Therefore, the excess portion can be cropped, for example, by cropping the same height above and below the original media content image, so that the cropped image height is equal to the height of the media content display interface, and the cropped media content image is used as the target media content image to be displayed.
[0087] If the height of the scaled-up original media content image is significantly higher than the height of the media content display interface (e.g., the ratio between the scaled-up original media content image and the height of the media content display interface is greater than a first proportional threshold), cropping the excess portion would significantly impact the integrity of the media content image. Therefore, in this case, the excess portion can be left uncropped. For example, the original media content image can be scaled proportionally to match the height of the media content display interface, and the scaled-up media content image can be used as the target media content image to be displayed.
[0088] The first ratio threshold can be set as needed, such as 1.08 or 1.09.
[0089] In some implementations, the step of pre-processing the original media content image to be displayed to obtain the target media content image includes: if the aspect ratio of the original media content image is greater than the aspect ratio of the media content display interface, scaling the original media content image proportionally so that its height is equal to the height of the media content display interface; if the ratio between the width of the scaled original media content image and the width of the media content display interface is greater than 1 and less than or equal to a second ratio threshold, cropping the scaled original media content image according to the interface width to obtain the target media content image; if the ratio between the width of the scaled original media content image and the width of the media content display interface is greater than the second ratio threshold, scaling the original media content image proportionally so that its width is equal to the width of the media content display interface to obtain the target media content image.
[0090] In the above implementation, if the aspect ratio of the original media content image is greater than that of the media content display interface, the original media content image can be proportionally reduced to a height equal to that of the media content display interface, as shown in Figure 8. Since the aspect ratio of the original media content image is greater than that of the media content display interface, the width of the scaled-down original media content image will inevitably be wider than the width of the media content display interface, as shown by the shaded area in Figure 8.
[0091] In this case, if the difference between the original media content image's scaled-down width and the media content display interface's width is small—for example, if the ratio between the scaled-down width of the original media content image and the media content display interface's width is greater than 1 and less than or equal to the second ratio threshold—cropping the wider portion will not significantly affect the integrity of the media content image. Therefore, this wider portion can be cropped, such as by cropping the same height from the left and right sides of the original media content image, making the cropped image width equal to the media content display interface's width, and then using the cropped media content image as the target media content image to be displayed.
[0092] If the width of the original media content image after scaling is significantly wider than the width of the media content display interface (e.g., the ratio between the original media content image's scaled-down width and the media content display interface's width exceeds a second proportional threshold), cropping the wider portion would significantly impact the integrity of the media content image. Therefore, in this case, cropping of the wider portion is unnecessary. For example, the original media content image can be scaled proportionally to match the width of the media content display interface, and the scaled-down media content image can be used as the target media content image to be displayed.
[0093] The second proportional threshold can be set as needed. For example, the first proportional threshold can be set to a value such as 1.08 or 1.09. It can be the same as or different from the first proportional threshold.
[0094] In addition, if the aspect ratio of the original media content image is the same as that of the media content display interface, then the original media content image does not need to be cropped. For example, the original media content image can be scaled proportionally according to the size of the media content display interface, and the scaled media content image can be used as the target media content image to be displayed.
[0095] S203. Determine the target screen display area of the media content display interface, wherein whether the target screen display area includes the first area is related to the interface size of the media content display interface.
[0096] S204. Display the media content display interface and display the target media content screen in the target screen display area.
[0097] The media content display method provided in this embodiment can further enrich the display methods of media content images, and increase the display size of media content images and improve the display effect of media content images without affecting the integrity of the images as much as possible.
[0098] Figure 9 is a structural block diagram of a media content display device provided in an embodiment of this disclosure. This device can be implemented by software and / or hardware and can be configured in an electronic device, such as a tablet computer. It can adjust the display area of the media content display interface based on the interface size by executing a media content display method, such as adjusting whether the display area includes the control area at the bottom of the media content display interface. As shown in Figure 9, the media content display device provided in this embodiment may include: an interface acquisition module 901, an area determination module 902, and a display module 903, wherein...
[0099] The interface acquisition module 901 is used to acquire the media content display interface to be displayed. The media content display interface includes a first area and a second area. The first area displays at least some interactive controls of the media content display interface, and the second area is the original screen display area of the media content display interface.
[0100] The region determination module 902 is used to determine the target screen display area of the media content display interface, wherein whether the target screen display area includes the first region is related to the interface size of the media content display interface;
[0101] The screen display module 903 is used to display the media content display interface and display the target media content screen in the target screen display area.
[0102] The media content display device provided in this embodiment acquires a media content display interface to be displayed through an interface acquisition module. This media content display interface includes a first area and a second area. The first area displays at least some interactive controls of the media content display interface, and the second area is the original display area of the media content display interface. A target display area of the media content display interface is determined through an area determination module. Whether this target display area includes the first area of the media content display interface is related to the interface size of the media content display interface. The media content display interface is displayed through a display module, and the target media content image is displayed in the target display area of this media content image. This embodiment utilizes the above technical solution to determine whether the display area of the media content display interface includes the control area of the media content display interface based on the interface size of the media content display interface, thereby determining whether the control area of the media content display interface is used to display both interactive controls and media content images. This enriches the method of determining the display area in a media content display page, enabling the display area to meet the media content image display needs in different scenarios.
[0103] Optionally, the first region and the second region are arranged vertically, and the region determination module 902 includes at least one of the following: a first determination unit, configured to, when the aspect ratio of the media content display interface is less than 1, or when the aspect ratio of the media content display interface is greater than or equal to 1 and the interface height of the media content display interface is greater than a preset height threshold, determine the second region as the target screen display region; a second determination unit, configured to, when the aspect ratio of the media content display interface is greater than or equal to 1 and the interface height of the media content display interface is less than or equal to a preset height threshold, determine the target screen display region based on the aspect ratio of the second region and the aspect ratio of the target media content screen.
[0104] Optionally, the second determining unit may be specifically used to perform at least one of the following: if the aspect ratio of the target media content image is greater than or equal to the aspect ratio of the second region, then the second region is used as the target image display area; if the aspect ratio of the target media content image is less than the aspect ratio of the second region, then the merged area of the first region and the second region is used as the target image display area.
[0105] Optionally, the first region and the second region are arranged horizontally, and the region determination module 902 includes at least one of the following: a third determination unit, configured to, for the case where the aspect ratio of the media content display interface is greater than 1, or the aspect ratio of the media content display interface is less than or equal to 1 and the width of the media content display interface is greater than a preset width threshold, determine the second region as the target screen display region; a fourth determination unit, configured to, for the case where the aspect ratio of the media content display interface is less than or equal to 1 and the width of the media content display interface is less than or equal to a preset width threshold, determine the target screen display region based on the aspect ratio of the second region and the aspect ratio of the target media content screen.
[0106] Optionally, the fourth determining unit may be specifically used to perform at least one of the following: if the aspect ratio of the target media content image is less than or equal to the aspect ratio of the second region, then the second region is used as the target image display area; if the aspect ratio of the target media content image is greater than the aspect ratio of the second region, then the merged area of the first region and the second region is used as the target image display area.
[0107] Optionally, the screen display module 903 may be specifically used to: determine the target display position of the target media content screen based on the media content information displayed in the media content display interface, and display the target media content screen at the target display position in the target screen display area; or, display the target media content screen at a preset display position in the target screen display area.
[0108] Furthermore, the media content display device may also include: a screen processing module, used to perform preset processing on the original media content screen to be displayed before determining the target screen display area of the media content display interface, so as to obtain the target media content screen, wherein the preset processing includes at least one of scaling processing and cropping processing.
[0109] Optionally, the image processing module may be specifically used to: when the aspect ratio of the original media content image is smaller than the aspect ratio of the media content display interface, scale the original media content image proportionally to make its width equal to the width of the media content display interface; if the ratio between the height of the scaled original media content image and the height of the media content display interface is greater than 1 and less than or equal to a first ratio threshold, then crop the scaled original media content image according to the interface height to obtain the target media content image; if the ratio between the height of the scaled original media content image and the height of the media content display interface is greater than the first ratio threshold, then scale the original media content image proportionally to make its height equal to the height of the media content display interface to obtain the target media content image.
[0110] Optionally, the image processing module may be specifically used to: when the aspect ratio of the original media content image is greater than the aspect ratio of the media content display interface, scale the original media content image proportionally to make its height equal to the height of the media content display interface; if the ratio between the width of the scaled original media content image and the width of the media content display interface is greater than 1 and less than or equal to a second ratio threshold, then crop the scaled original media content image according to the interface width to obtain the target media content image; if the ratio between the width of the scaled original media content image and the width of the media content display interface is greater than the second ratio threshold, then scale the original media content image proportionally to make its width equal to the width of the media content display interface to obtain the target media content image.
[0111] The media content display device provided in this disclosure can execute the media content display method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the media content display method. Technical details not described in detail in this embodiment can be found in the media content display method provided in any embodiment of this disclosure.
[0112] Referring now to FIG10, a schematic diagram of the structure of an electronic device (e.g., a terminal device) 1000 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG10 is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present disclosure.
[0113] As shown in Figure 10, the electronic device 1000 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003. The RAM 1003 also stores various programs and data required for the operation of the electronic device 1000. The processing unit 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0114] Typically, the following devices can be connected to the I / O interface 1005: input devices 1006 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1008 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows electronic device 1000 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 10 shows an electronic device 1000 with various devices, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0115] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1009, or installed from storage device 1008, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of embodiments of this disclosure.
[0116] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0117] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0118] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0119] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: acquire a media content display interface to be displayed, the media content display interface including a first area and a second area, the first area displaying at least some interactive controls of the media content display interface, and the second area being the original screen display area of the media content display interface; determine a target screen display area of the media content display interface, wherein whether the target screen display area includes the first area is related to the interface size of the media content display interface; display the media content display interface and display the target media content screen in the target screen display area.
[0120] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0121] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0122] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of modules do not, in some cases, constitute a limitation on the unit itself.
[0123] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0124] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0125] According to one or more embodiments of this disclosure, Example 1 provides a method for displaying media content images, including:
[0126] Obtain a media content display interface to be displayed, the media content display interface including a first area and a second area, the first area displaying at least some interactive controls of the media content display interface, and the second area being the original screen display area of the media content display interface;
[0127] Determine the target screen display area of the media content display interface, wherein whether the target screen display area includes the first area is related to the interface size of the media content display interface;
[0128] The media content display interface is displayed, and the target media content image is displayed in the target screen display area.
[0129] According to one or more embodiments of this disclosure, Example 2, based on the method described in Example 1, wherein the first region and the second region are arranged vertically, and determining the target screen display area of the media content display interface includes at least one of the following:
[0130] If the aspect ratio of the media content display interface is less than 1, or if the aspect ratio of the media content display interface is greater than or equal to 1 and the height of the media content display interface is greater than a preset height threshold, then the second area will be used as the target screen display area.
[0131] If the aspect ratio of the media content display interface is greater than or equal to 1, and the height of the media content display interface is less than or equal to a preset height threshold, then the target display area is determined based on the aspect ratio of the second region and the aspect ratio of the target media content image.
[0132] According to one or more embodiments of this disclosure, Example 3, based on the method described in Example 2, involves determining the target display area based on the aspect ratio of the second region and the aspect ratio of the target media content image, including at least one of the following:
[0133] If the aspect ratio of the target media content image is greater than or equal to the aspect ratio of the second region, then the second region is used as the display area of the target image.
[0134] If the aspect ratio of the target media content image is less than that of the second region, then the merged area of the first and second regions will be used as the target image display area.
[0135] According to one or more embodiments of this disclosure, Example 4, based on the method described in Example 1, wherein the first region and the second region are arranged horizontally, and determining the target screen display area of the media content display interface includes at least one of the following:
[0136] If the aspect ratio of the media content display interface is greater than 1, or if the aspect ratio of the media content display interface is less than or equal to 1 and the width of the media content display interface is greater than a preset width threshold, then the second area will be used as the target screen display area.
[0137] If the aspect ratio of the media content display interface is less than or equal to 1, and the width of the media content display interface is less than or equal to a preset width threshold, then the target display area is determined based on the aspect ratio of the second region and the aspect ratio of the target media content image.
[0138] According to one or more embodiments of this disclosure, Example 5 describes the method described in Example 4, wherein determining the target display area based on the aspect ratio of the second region and the aspect ratio of the target media content image includes at least one of the following:
[0139] If the aspect ratio of the target media content image is less than or equal to the aspect ratio of the second region, then the second region will be used as the target image display area.
[0140] If the aspect ratio of the target media content image is greater than that of the second region, then the merged area of the first region and the second region will be used as the target image display area.
[0141] According to one or more embodiments of this disclosure, Example 6 describes the method described in Example 1, wherein displaying the target media content image in the target image display area includes:
[0142] The target display position of the target media content image is determined based on the media content information displayed in the media content display interface, and the target media content image is displayed at the target display position in the target image display area; or
[0143] The target media content image is displayed at a preset display position in the target image display area.
[0144] According to one or more embodiments of this disclosure, Example 7, based on any one of Examples 1-6, further includes, before determining the target display area of the media content display interface:
[0145] The original media content image to be displayed is subjected to preset processing to obtain the target media content image. The preset processing includes at least one of scaling processing and cropping processing.
[0146] According to one or more embodiments of this disclosure, Example 8, based on the method described in Example 7, involves performing preset processing on the original media content image to be displayed to obtain the target media content image, including:
[0147] If the aspect ratio of the original media content image is smaller than the aspect ratio of the media content display interface, the original media content image is scaled proportionally to make its width equal to the width of the media content display interface.
[0148] If the ratio between the height of the scaled original media content image and the height of the media content display interface is greater than 1 and less than or equal to the first ratio threshold, then the scaled original media content image is cropped according to the interface height to obtain the target media content image.
[0149] If the ratio between the height of the original media content image and the height of the media content display interface after scaling is greater than a first ratio threshold, then the original media content image is scaled proportionally to make its height equal to the height of the media content display interface, thus obtaining the target media content image.
[0150] According to one or more embodiments of this disclosure, Example 9, based on the method described in Example 7, involves performing preset processing on the original media content image to be displayed to obtain the target media content image, including:
[0151] If the aspect ratio of the original media content image is greater than the aspect ratio of the media content display interface, the original media content image will be scaled proportionally so that its height is equal to the height of the media content display interface.
[0152] If the ratio between the width of the original media content image after scaling and the width of the media content display interface is greater than 1 and less than or equal to the second ratio threshold, then the original media content image after scaling is cropped according to the interface width to obtain the target media content image.
[0153] If the ratio between the width of the original media content image after scaling and the width of the media content display interface is greater than the second ratio threshold, then the original media content image is scaled proportionally to make its width equal to the width of the media content display interface, thus obtaining the target media content image.
[0154] According to one or more embodiments of this disclosure, Example 10 provides a media content display device, including:
[0155] The interface acquisition module is used to acquire the media content display interface to be displayed. The media content display interface includes a first area and a second area. The first area displays at least some of the interactive controls of the media content display interface, and the second area is the original screen display area of the media content display interface.
[0156] The region determination module is used to determine the target screen display area of the media content display interface, wherein whether the target screen display area includes the first region is related to the interface size of the media content display interface;
[0157] The screen display module is used to display the media content display interface and display the target media content screen in the target screen display area.
[0158] According to one or more embodiments of this disclosure, Example 11 provides an electronic device, including:
[0159] One or more processors;
[0160] Memory, used to store one or more programs.
[0161] When the one or more programs are executed by the one or more processors, the one or more processors implement a method for displaying media content images as described in any of Examples 1-9.
[0162] According to one or more embodiments of the present disclosure, Example 12 provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements a method for displaying media content images as described in any of Examples 1-9.
[0163] According to one or more embodiments of this disclosure, Example 13 provides a computer program product that, when executed by a computer, causes the computer to implement a method for displaying media content images as described in any of Examples 1-9.
[0164] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0165] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0166] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for displaying a media content frame, comprising: obtaining a media content display interface to be displayed, the media content display interface comprising a first region and a second region, the first region displaying at least part of an interactive control of the media content display interface, and the second region being an original frame display region of the media content display interface; determining a target frame display region of the media content display interface, wherein whether the target frame display region contains the first region is associated with a size of the media content display interface; displaying the media content display interface and displaying a target media content frame in the target frame display region.
2. The method of claim 1, wherein, The first region and the second region are arranged vertically, and the determining of the target frame display region of the media content display interface comprises at least one of the following: if an aspect ratio of the media content display interface is less than 1, or if the aspect ratio of the media content display interface is greater than or equal to 1 and a height of the media content display interface is greater than a preset height threshold, the second region is taken as the target frame display region; if the aspect ratio of the media content display interface is greater than or equal to 1 and the height of the media content display interface is less than or equal to the preset height threshold, the target frame display region is determined according to an aspect ratio of the second region and an aspect ratio of the target media content frame.
3. The method of claim 2, wherein, The determining of the target frame display region according to the aspect ratio of the second region and the aspect ratio of the target media content frame comprises at least one of the following: if the aspect ratio of the target media content frame is greater than or equal to an aspect ratio of the second region, the second region is taken as the target frame display region; if the aspect ratio of the target media content frame is less than the aspect ratio of the second region, a combined region of the first region and the second region is taken as the target frame display region.
4. The method of claim 1, wherein, The first region and the second region are arranged horizontally, and the determining of the target frame display region of the media content display interface comprises at least one of the following: if the aspect ratio of the media content display interface is greater than 1, or if the aspect ratio of the media content display interface is less than or equal to 1 and a width of the media content display interface is greater than a preset width threshold, the second region is taken as the target frame display region; if the aspect ratio of the media content display interface is less than or equal to 1 and the width of the media content display interface is less than or equal to the preset width threshold, the target frame display region is determined according to an aspect ratio of the second region and an aspect ratio of the target media content frame.
5. The method of claim 4, wherein, The determining of the target frame display region according to the aspect ratio of the second region and the aspect ratio of the target media content frame comprises at least one of the following: if the aspect ratio of the target media content frame is less than or equal to an aspect ratio of the second region, the second region is taken as the target frame display region; If a picture aspect ratio of the target media content picture is greater than an area aspect ratio of the second region, a merged region of the first region and the second region is taken as the target picture display region.
6. The method according to any one of claims 1 to 5, wherein, The displaying the target media content picture in the target picture display region comprises: determining a target display position of the target media content picture according to media content information displayed in the media content display interface, and displaying the target media content picture at the target display position of the target picture display region; or displaying the target media content picture at a preset display position of the target picture display region.
7. The method according to any one of claims 1-6, wherein, Before the determining the target picture display region of the media content display interface, the method further comprises: performing preset processing on a to-be-displayed original media content picture to obtain the target media content picture, the preset processing comprising at least one of scaling processing and clipping processing.
8. The method of claim 7, wherein, The performing preset processing on the to-be-displayed original media content picture to obtain the target media content picture comprises: if a picture aspect ratio of the original media content picture is less than an interface aspect ratio of the media content display interface, scaling the original media content picture proportionally to make a picture width of the original media content picture equal to an interface width of the media content display interface; if a ratio between a picture height of the original media content picture after scaling and an interface height of the media content display interface is greater than 1 and less than or equal to a first proportion threshold, clipping the original media content picture after scaling according to the interface height to obtain a target media content picture; if the ratio between the picture height of the original media content picture after scaling and the interface height of the media content display interface is greater than the first proportion threshold, scaling the original media content picture proportionally to make a picture height of the original media content picture equal to the interface height of the media content display interface to obtain a target media content picture.
9. The method of claim 7, wherein, The performing preset processing on the to-be-displayed original media content picture to obtain the target media content picture comprises: if a picture aspect ratio of the original media content picture is greater than an interface aspect ratio of the media content display interface, scaling the original media content picture proportionally to make a picture height of the original media content picture equal to an interface height of the media content display interface; if a ratio between a picture width of the original media content picture after scaling and an interface width of the media content display interface is greater than 1 and less than or equal to a second proportion threshold, clipping the original media content picture after scaling according to the interface width to obtain a target media content picture; if the ratio between the picture width of the original media content picture after scaling and the interface width of the media content display interface is greater than the second proportion threshold, scaling the original media content picture proportionally to make a picture width of the original media content picture equal to the interface width of the media content display interface to obtain a target media content picture.
10. An apparatus for displaying a media content picture, comprising: An interface obtaining module configured to obtain a media content display interface to be displayed, the media content display interface comprising a first region and a second region, the first region displaying at least part of an interactive control of the media content display interface, and the second region being an original picture display region of the media content display interface; A region determining module configured to determine a target picture display region of the media content display interface, wherein whether the target picture display region contains the first region is associated with an interface size of the media content display interface; A picture display module configured to display the media content display interface and display a target media content picture in the target picture display region. 11.An electronic device comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, wherein the computer program is executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
12. A computer readable storage medium storing computer instructions, wherein, The computer instructions are used to enable the processor to perform the method of any one of claims 1-9 when executed.
13. A computer program product comprising a computer program, wherein, The computer program implements the method of any one of claims 1-9 when executed by the processor. The computer program implements the method of any one of claims 1-9 when executed by the processor.
Citation Information
Patent Citations
Method, apparatus, device, medium and program product for displaying a media content picture
CN118921518B
Content display method and device, electronic equipment and storage medium
CN112256169A
Media content display method and device, electronic equipment and storage medium
CN115933921A
Media content display method and device, electronic equipment and storage medium
CN116302268A
Media content picture display method and device, electronic equipment, storage medium and program product
CN118921518A