Media content picture display method and device, electronic equipment, storage medium and program product
By determining the target display area according to the relationship between the interface size and the control area in the media content display interface, the problem of single display area in the prior art is solved, and a more flexible and effective media content display is achieved.
Patent Information
- Application Number
- CN202410947957.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-07-15
AI Technical Summary
In the prior art, the method of determining the screen display area in the media content display interface is relatively single and cannot meet the display needs in different scenarios.
By obtaining the media content display interface, determine the target screen display area, and decide whether to display interactive controls and media content in the screen display area at the same time according to the relationship between the interface size and the control area, and flexibly adjust the display area.
It enriches the way to determine the screen display area of the media content display page, meets the display needs in different scenarios, and improves the flexibility and effect of media content display.
Smart Images

Figure CN118921518A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a method, device, electronic device, storage medium, and program product for displaying a media content screen. Background Art
[0002] Currently, when displaying a media content display interface, especially when displaying a media content display interface on a tablet computer, the media content screen can be displayed in the screen display area of the media content display interface. However, the method for determining the screen display area in the media content display interface is relatively simple and cannot meet the display requirements in different scenarios. Summary of the invention
[0003] The embodiments of the present disclosure provide a method, device, electronic device, storage medium and program product for displaying a media content screen, so as to enrich the method of determining a screen display area in a media content display interface, so that the screen display area can meet the display requirements in different scenarios.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for displaying a media content screen, including:
[0005] Acquire a media content display interface to be displayed, wherein the media content display interface includes a first area and a second area, wherein at least part of the interactive controls of the media content display interface are displayed in the first area, and the second area is an original screen display area of the media content display interface;
[0006] Determining a target screen display area of the media content display interface, wherein whether the first area is included in the target screen display area is associated with an interface size of the media content display interface;
[0007] The media content display interface is displayed, and the target media content picture is displayed in the target picture display area.
[0008] In a second aspect, the embodiments of the present disclosure further provide a device for displaying a media content screen, including:
[0009] An interface acquisition module, used to acquire a 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 part of the interactive controls of the media content display interface, and the second area is an original screen display area of the media content display interface;
[0010] An area determination module, configured to determine a target screen display area of the media content display interface, wherein whether the first area is included in the target screen display area is associated with an interface size of the media content display interface;
[0011] 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.
[0012] In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
[0013] one or more processors;
[0014] a memory for storing one or more programs,
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for displaying a media content screen as described in the embodiment of the present disclosure.
[0016] In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method for displaying a media content screen as described in the embodiments of the present disclosure is implemented.
[0017] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product. When the computer program product is executed by a computer, the computer implements the method for displaying a media content screen as described in the embodiments of the present disclosure.
[0018] The media content screen display method, device, electronic device, storage medium and program product provided by the embodiments of the present disclosure determine whether the screen 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, and further determine whether the control area of the media content display interface is used to display both interactive controls and media content screens. This can enrich the method for determining the screen display area in the media content display page, so that the screen display area can meet the media content screen display requirements in different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent 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 A flowchart of a method for displaying a media content screen provided by an embodiment of the present disclosure;
[0021] Figure 2 A schematic diagram of a media content display interface provided by an embodiment of the present disclosure;
[0022] Figure 3A display schematic diagram of a target screen display area provided in an embodiment of the present disclosure;
[0023] Figure 4 A schematic diagram showing another target screen display area provided in an embodiment of the present disclosure;
[0024] Figure 5 A schematic diagram showing another target screen display area provided in an embodiment of the present disclosure;
[0025] Figure 6 A schematic diagram of a flow chart of another method for displaying a media content screen provided by an embodiment of the present disclosure;
[0026] Figure 7 A schematic diagram of an original media content screen provided by an embodiment of the present disclosure;
[0027] Figure 8 A schematic diagram of another original media content screen provided by an embodiment of the present disclosure;
[0028] Fig. 9 A structural block diagram of a device for displaying a media content screen provided by an embodiment of the present disclosure;
[0029] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0031] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0032] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part 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". The relevant definitions of other terms will be given in the following description.
[0033] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0034] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0035] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0036] It is understandable 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 relevant provisions.
[0037] Figure 1 A flowchart of a method for displaying a media content screen provided in an embodiment of the present disclosure. The method may be executed by a device for displaying a media content screen, wherein the device may be implemented by software and / or hardware, and may be configured in an electronic device, typically, in a tablet computer. The method for displaying a media content screen provided in an embodiment of the present 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 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 to determine whether it includes a control area of the media content display interface. Figure 1 As shown, the method for displaying a media content screen provided in this embodiment may include:
[0038] S101. Acquire a media content display interface to be displayed, wherein the media content display interface includes a first area and a second area, wherein at least part of interactive controls of the media content display interface are displayed in the first area, and the second area is an original screen display area of the media content display interface.
[0039] The media content display interface may be an interface for displaying media content, such as an interface for playing video content or for displaying a media content screen in the media content, etc. The media content display interface to be displayed may be understood as a media content display interface that currently needs to be displayed, such as a media content display interface indicated by a user, etc.
[0040] like Figure 2As shown (taking the first area 21 being located below the second area 22 as an example in the figure), the media content display interface may include the first area 21 and the second area 22, and the first area 21 and the second area 22 may be different areas of the media content display interface. For example, the first area 21 and the second area 22 of the media content display interface may not have overlapping areas. The first area 21 and the second area 22 of the media content display interface may be arranged vertically, such as the first area 21 of the media content display interface may be located above or below the second area 22 of the media content display interface, etc.; or, the first area 21 and the second area 22 of the media content display interface may also be arranged horizontally, such as the first area 21 of the media content display interface may be located on the left or right side of the second area 22 of the media content display interface, etc.
[0041] Among them, this first area 21 is used to display at least one interactive control in the media content display interface. The at least one interactive control may include, for example, an interface control and / or an interactive control. The interface control may be used to trigger the interface corresponding to the indication display. Exemplarily, the 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 may be used to trigger the display of the above-mentioned media content interface; the associated user interface control may be used to trigger the display of the associated user information of the current user, and the associated user may be a user with a preset association relationship with the current user; the message interface control may be used to trigger the display of the message interface, and the message interface may be used to display a conversation message list and / or a notification message; the personal interface control may be used to trigger the display of the current user's personal interface. The interactive control may be used to trigger interaction with the currently displayed media content. Exemplarily, the interactive control may include a like control, a share control, a comment control, and / or a favorite control, etc.
[0042] In some optional examples, such as Figure 2 As shown, the first area 21 can be displayed at the bottom of the media content display interface. At this time, the at least one interactive control displayed in the first area 21 can include an interface control. When the interface corresponding to the above-mentioned different interface controls is displayed, the bottom of the above-mentioned interface can include this first area 21 to facilitate users to switch pages.
[0043] The second area 22 is the original picture display area of the media content display interface, which can be used to display the media content picture of the media content to be displayed in the media content display interface. The original picture display area can be understood as the area originally set for displaying the media content picture.
[0044] In this embodiment, when a media content display interface needs to be displayed, the media content display interface to be displayed can be obtained so as to subsequently determine whether the target screen display area of the media content display interface includes the first area of the media content display interface based on the interface size of the media content display interface.
[0045] S102: Determine a target screen display area of the media content display interface, wherein whether the target screen display area includes the first area is associated with an interface size of the media content display interface.
[0046] The target screen display area can be understood as a screen area in the media content display interface that is determined based on the interface size of the media content display interface and is used to display the media content. The target screen 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 screen display area includes the first area of the media content display interface may be specifically associated with 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 in 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 this media content display interface.
[0048] After obtaining the interface size of the media content display interface to be displayed, it can be determined based on this interface size whether it is necessary to display part of the media content screen in the first area of the media content display interface when the target media content screen adopts a larger size in the width direction or the height direction (such as a size that matches the width or height of the media content display interface, etc.); if so, the first area and the second area can be used together as the target screen display area of the media content display interface; if not, only the second area can be used as the target screen display area of the media content display interface. At this time, it is sufficient to continue to display the interactive controls in the first area without displaying 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 screen display area includes the first area of the media content display interface may be determined based on the aspect ratio of the media content display interface and the screen height of the media content screen to be displayed.
[0050] In some examples, the first area and the second area are arranged vertically, and determining the target screen display area of the media content display interface includes at least one of the following: if the interface aspect ratio of the media content display interface is less than 1, or the interface 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, then the second area is used as the target screen display area; if the interface 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 the preset height threshold, then the target screen display area is determined based on the aspect ratio of the second area and the screen aspect ratio of the target media content screen.
[0051] Among them, the interface 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 the case of full-screen display, it can be the ratio between the width and height of the electronic device screen displayed. The interface height of the media content display interface can be understood as the height value of the media content display interface. In the case of full-screen display, it can be the screen height of the electronic device screen displayed. The preset height threshold can be set as needed. For example, the preset height threshold can be used to determine whether the corresponding electronic device is a medium-large screen electronic device (such as a medium-large screen tablet computer, etc.) in the horizontal screen state. For example, if the screen height of the electronic device is greater than or equal to the preset height threshold, the corresponding electronic device can be determined to be a medium-large screen electronic device; if the screen height of the electronic device is less than the preset height threshold, the corresponding 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 a height threshold such as 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 means that the media content display interface is a vertical view interface, and there is enough space in the height direction of the media content display interface to display the media content screen. Therefore, at this time, 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, such as Figure 2 shown.
[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 interface width of the media content display interface is greater than its interface height, which also means that the media content display interface is a landscape view interface. In this case, if the interface height of the media content display interface is relatively large, such as greater than a preset height threshold, it means that the electronic device on which the media content display interface is displayed is a medium or large screen electronic device with a relatively high height in landscape view, and there is enough space in the height direction of the media content display interface to display the media content screen. Therefore, at this time, 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, such as Figure 3 shown.
[0054] As an optional example, if the interface aspect ratio of the media content display interface is greater than or equal to 1, it means that the interface width of the media content display interface is greater than its interface height, which also means that the media content display interface is a landscape view interface. In this case, if the interface height of the media content display interface is relatively 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 relatively low height in the landscape view. There may or may not be sufficient 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, which can be specifically determined based on the area aspect ratio of the second area and the screen aspect ratio of the target media content screen.
[0055] In some implementations, when the first area and the second area are arranged vertically, the target area of the media content display interface may be determined based on the area aspect ratio of the second area and the screen aspect ratio of the target media content screen.
[0056] For example, if the aspect ratio of the target media content screen is greater than or equal to the area aspect ratio of the second area, it means that when the screen width of the target media content screen is equal to the area width of the second area, the area height of the second area is greater than or equal to the screen height of the target media content screen, and there is enough space in the second area to display the target media content screen, so that the second area can be used as the target screen display area of the media content display interface, such as Figure 4 shown.
[0057] For another example, if the aspect ratio of the target media content screen is smaller than the area aspect ratio of the second area, it means that when the screen width of the target media content screen is equal to the area width of the second area, the area height of the second area is smaller than the screen height of the target media content screen. At this time, there is not enough space in the second area to display the target media content screen, so the first area and the second area can be used together as the target screen display area of the media content display interface, such as Figure 5 shown.
[0058] At this time, optionally, determining the target screen display area based on the aspect ratio of the second area and the aspect ratio of the target media content screen includes at least one of the following: if the aspect ratio of the target media content screen is greater than or equal to the area aspect ratio of the second area, then using the second area as the target screen display area; if the aspect ratio of the target media content screen is less than the area aspect ratio of the second area, then using the combined area of the first area and the second area as the target screen display area.
[0059] In some examples, the first area and the second area are arranged horizontally, and determining the target screen display area of the media content display interface includes at least one of the following: if the interface aspect ratio of the media content display interface is greater than 1, or the interface aspect ratio of the media content display interface is less than or equal to 1 and the interface width of the media content display interface is greater than a preset width threshold, then the second area is used as the target screen display area; if the interface aspect ratio of the media content display interface is less than or equal to 1, and the interface width of the media content display interface is less than or equal to the preset width threshold, then the target screen display area is determined based on the aspect ratio of the second area and the screen aspect ratio of the target media content screen.
[0060] Among them, the interface width of the media content display interface can be understood as the width value of the media content display interface. In the case of full-screen display, it can be the screen width of the electronic device screen 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 computer, etc.) in the portrait state. For example, 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 a width threshold such as 800dp or 900dp.
[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, which also means that the media content display interface is a horizontal view interface, and there is enough space in the width direction of the media content display interface to display the media content screen. Therefore, at this time, 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.
[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 interface width of the media content display interface is less than its interface height, which also means that the media content display interface is a vertical view interface. In this case, if the interface width of the media content display interface is relatively large, such as greater than the preset width threshold, it means that the electronic device on which the media content display interface is displayed is a medium or large screen electronic device with a relatively large width in the vertical view, and there is enough space in the width direction of the media content display interface to display the media content screen. Therefore, at this time, 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.
[0063] As an optional example, if the interface aspect ratio of the media content display interface is less than or equal to 1, it means that the interface width of the media content display interface is less than its interface height, which also means that the media content display interface is a vertical view interface. In this case, if the interface width of the media content display interface is relatively 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 relatively small width in a vertical view. There may or may not be sufficient space in the width direction of the media content display interface to display the media content picture. Therefore, only the second area of the media content display interface can be used as the target picture display area of the media content display interface, or the first area and the second area can be used together as the target picture display area of the media content display interface, which can be specifically determined based on the area aspect ratio of the second area and the picture aspect ratio of the target media content picture.
[0064] In some implementations, when the first area and the second area are arranged horizontally, the target area of the media content display interface may also be determined based on the area aspect ratio of the second area and the screen aspect ratio of the target media content screen.
[0065] For example, if the aspect ratio of the target media content screen is less than or equal to the area aspect ratio of the second area, it means that when the screen height of the target media content screen is equal to the area height of the second area, the area width of the second area is greater than or equal to the screen width of the target media content screen, and there is sufficient space in the second area to display the target media content screen, so that the second area can be used as the target screen display area of the media content display interface.
[0066] For another example, if the aspect ratio of the target media content screen is greater than the aspect ratio of the second area, it means that when the screen height of the target media content screen is equal to the area height of the second area, the area width of the second area is smaller than the screen width of the target media content screen. At this time, there is not enough space in the second area to display the target media content screen, so the first area and the second area can be used together as the target screen display area of the media content display interface.
[0067] At this time, optionally, determining the target screen display area based on the aspect ratio of the second area and the aspect ratio of the target media content screen includes at least one of the following: if the aspect ratio of the target media content screen is less than or equal to the area aspect ratio of the second area, then using the second area as the target screen display area; if the aspect ratio of the target media content screen is greater than the area aspect ratio of the second area, then using the combined area of the first area and the second area as the target screen display area.
[0068] S103: Display the media content display interface, and display a target media content picture in the target picture display area.
[0069] In this embodiment, after the target screen display area of the media content display interface is determined, 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 picture in the target picture display area can be flexibly set. Optionally, the displaying of the target media content picture in the target picture display area includes: determining the target display position of the target media content picture according to the media content information displayed in the media content display interface, and displaying the target media content picture at the target display position in the target picture display area; or displaying the target media content picture at a preset display position in the target picture display area.
[0071] The media content information displayed in the media content display interface may be understood as relevant information of the media content currently displayed in the media content display interface, such as publisher information, release time information, and text content information of the currently displayed media content.
[0072] In some cases, if the media content screen is displayed at the preset display position of the target screen display area, the display of the media content information may cause a lot of obstruction to the media content screen displayed in the media content display interface, affecting the user's viewing of the media content screen. Therefore, in this embodiment, the target media content screen can be displayed at the preset display position of the target screen display area as needed, or it can be displayed at the target display position adjusted based on the display position of the media content information. The specific setting can be flexibly set according to needs.
[0073] In some examples, in the case where the first area and the second area are arranged vertically, the target display position of the target media content screen can be determined based on the media content information displayed in the media content display interface, and the target media content screen can be displayed at this target display position in the target screen display area. Among them, this target display position can be adjusted within a first preset coordinate range in the media content display interface, such as being set as needed within a preset vertical coordinate range of the media content display interface, and this preset vertical coordinate range is not limited, such as the maximum vertical coordinate value of this vertical coordinate range can be set to the bottom boundary coordinate of the navigation bar at the top of the media content display interface, etc.
[0074] In some examples, for the case where the first area and the second area are arranged horizontally, the target display position of the target media content screen can be determined based on the media content information displayed in the media content display interface, and the target media content screen is displayed at this target display position in the target screen display area. Among them, this target display position can be adjusted within the second preset coordinate range in the media content display interface, such as being set as needed within the preset horizontal coordinate range of the media content display interface, and this preset horizontal coordinate range is not limited. Here, the second preset coordinate range and the first preset coordinate range can be the same or different coordinate ranges, and this embodiment is not limited to this.
[0075] In some examples, the target media content picture may also be displayed at a preset display position in the target picture display area, such as overlapping the center point of the target media content picture with the center point of the target picture display area, and based on this, displaying the target media content picture in the target picture display area.
[0076] The method for displaying a media content screen provided in the present embodiment obtains a 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 part 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; determines a target screen display area of the media content display interface, wherein whether the first area of the media content display interface is included in the target screen display area is associated with the interface size of the media content display interface; displays the media content display interface, and displays the target media content screen in the target screen display area of the media content screen. The present embodiment utilizes the above technical solution to determine whether the screen 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, and further determines whether the control area of the media content display interface is used to display both the interactive controls and the media content screen, which can enrich the method for determining the screen display area in the media content display page, so that the screen display area can meet the media content screen display requirements in different scenarios.
[0077] Figure 6 A flowchart of another method for displaying a media content screen provided by an embodiment of the present disclosure. The solution in this embodiment can be combined with one or more optional solutions in the above embodiments. Optionally, before determining the target screen display area of the media content display interface, it also includes: performing preset processing on the original media content screen to be displayed to obtain the target media content screen, and the preset processing includes at least one of scaling processing and cropping processing.
[0078] Correspondingly, such as Figure 6 As shown, the method for displaying a media content screen provided in this embodiment may include:
[0079] S201. Acquire a media content display interface to be displayed, wherein the media content display interface includes a first area and a second area, wherein at least part of interactive controls of the media content display interface are displayed in the first area, and the second area is an original screen display area of the media content display interface.
[0080] S202: Perform a preset process on the original media content picture to be displayed to obtain the target media content picture, wherein the preset process includes at least one of a scaling process and a cropping process.
[0081] In this embodiment, a target media content picture displayed in a target picture display area of a media content interface may be processed based on the original media picture, so that a target picture display area of the media content display interface may be subsequently determined based on the target media content picture.
[0082] Among them, the original media content picture can be understood as the media content picture originally included in the currently displayed media content; the target media content picture can be understood as the media content picture obtained by performing preset processing on the original media content picture, and this preset processing may include scaling processing and / or cropping processing, etc., that is, the original media content picture can be scaled and / or cropped to obtain the target media content picture to be displayed.
[0083] In this embodiment, the original media content picture may be processed based on the different picture sizes of the original media content picture and the different sizes of the media content display interface to obtain the target media content picture.
[0084] In some embodiments, the pre-processing the original media content picture to be displayed to obtain the target media content picture includes: in the case where the picture aspect ratio of the original media content picture is smaller than the interface aspect ratio of the media content display interface, scaling the original media content picture in proportion to a picture width equal to an interface width of the media content display interface; if the ratio between the picture height of the original media content picture and the interface height of the media content display interface after scaling is greater than 1 and less than or equal to a first ratio threshold, cropping the scaled original media content picture according to the interface height to obtain the target media content picture; if the ratio between the picture height of the original media content picture and the interface height of the media content display interface after scaling is greater than the first ratio threshold, scaling the original media content picture in proportion to a picture height equal to an interface height of the media content display interface to obtain the target media content picture.
[0085] In the above implementation, if the aspect ratio of the original media content screen is smaller than the aspect ratio of the media content display interface, the original media content screen can be proportionally reduced to a screen width equal to the interface width of the media content display interface according to the interface width of the media content display interface, such as Figure 7 As shown. Since the aspect ratio of the original media content screen is smaller than the aspect ratio of the media content display interface, the height of the original media content screen after scaling must be higher than the height of the media content display interface, as shown. Figure 7 Shown in the shaded area.
[0086] In this case, if the height of the original media content picture after scaling is smaller than the height of the interface of the media content display interface, such as the ratio of the height of the original media content picture after scaling to the height of the interface of the media content display interface is greater than 1 and less than or equal to the first ratio threshold, then cropping the protruding portion will not affect the integrity of the media content picture too much. Therefore, the protruding portion can be cropped at this time, such as cropping the same height above and below the original media content picture so that the height of the cropped picture is equal to the height of the interface of the media content display interface, and the cropped media content picture is used as the target media content picture to be displayed.
[0087] If the height of the original media content picture after scaling is larger than the interface height of the media content display interface, such as the ratio of the height of the original media content picture after scaling to the interface height of the media content display interface is greater than a first ratio threshold, cropping the protruding portion will have a significant impact on the integrity of the media content picture. Therefore, the protruding portion may not be cropped at this time. For example, based on the interface height of the media content display interface, the original media content picture may be proportionally scaled to a picture height value equal to the interface height value of the media content display interface, and the scaled media content picture may be used as the target media content picture to be displayed.
[0088] The first ratio threshold value may be set as required, for example, the first ratio threshold value may be set to a value such as 1.08 or 1.09.
[0089] In some embodiments, the preset processing of the original media content picture to be displayed to obtain the target media content picture includes: in the case where the picture aspect ratio of the original media content picture is greater than the interface aspect ratio of the media content display interface, scaling the original media content picture in proportion so that the picture height is equal to the interface height of the media content display interface; if the ratio between the picture width of the original media content picture and the interface width of the media content display interface after scaling is greater than 1 and less than or equal to a second ratio threshold, cropping the scaled original media content picture according to the interface width to obtain the target media content picture; if the ratio between the picture width of the original media content picture and the interface width of the media content display interface after scaling is greater than the second ratio threshold, scaling the original media content picture in proportion so that the picture width is equal to the interface width of the media content display interface to obtain the target media content picture.
[0090] In the above implementation, if the aspect ratio of the original media content screen is greater than the aspect ratio of the media content display interface, the original media content screen can be proportionally reduced according to the interface height of the media content display interface so that the screen height is equal to the interface height of the media content display interface. Figure 8 As shown. Since the aspect ratio of the original media content screen is greater than the aspect ratio of the media content display interface, the width of the original media content screen after scaling must be wider than the width of the media content display interface, as shown. Figure 8 Shown in the shaded area.
[0091] In this case, if the width of the original media content picture after scaling is smaller than the excess width of the interface width of the media content display interface, such as the ratio of the width of the original media content picture after scaling to the interface width of the media content display interface is greater than 1 and less than or equal to the second ratio threshold, cropping the wider part will not affect the picture integrity of the media content picture too much. Therefore, the excess part can be cropped at this time, such as cropping the same height on the left and right sides of the original media content picture so that the cropped picture width is equal to the interface width of the media content display interface, and the cropped media content picture is used as the target media content picture to be displayed.
[0092] If the width of the original media content picture after scaling is larger than the interface width of the media content display interface, such as the ratio of the width of the original media content picture after scaling to the interface width of the media content display interface is greater than a second ratio threshold, cropping the wider part will have a greater impact on the picture integrity of the media content picture. Therefore, the wider part may not be cropped at this time. For example, based on the interface width of the media content display interface, the original media content picture may be proportionally scaled to a picture width value equal to the interface width value of the media content display interface, and the scaled media content picture may be used as the target media content picture to be displayed.
[0093] The second ratio threshold may be set as required, for example, the first ratio threshold may be set to a value such as 1.08 or 1.09, etc., which may be the same as or different from the first ratio threshold.
[0094] In addition, if the aspect ratio of the original media content screen is equal to the aspect ratio of the media content display interface, the original media content screen may not be cropped. For example, the original media content screen may be scaled proportionally according to the interface size of the media content display interface, and the scaled media content screen may be used as the target media content screen to be displayed.
[0095] S203: Determine a target screen display area of the media content display interface, wherein whether the target screen display area includes the first area is associated with an interface size of the media content display interface.
[0096] S204: Display the media content display interface, and display the target media content picture in the target picture display area.
[0097] The method for displaying a media content screen provided in this embodiment can further enrich the display methods of the media content screen, and increase the display size of the media content screen without affecting the integrity of the media content screen as much as possible, thereby improving the display effect of the media content screen.
[0098] Fig. 9 The structural block diagram of a media content screen display device provided by the embodiment of the present disclosure. The device can be implemented by software and / or hardware, and can be configured in an electronic device, typically, can be configured in a tablet computer, and can adjust the screen display area in the media content display interface based on the interface size of the media content display interface by executing the media content screen display method, such as adjusting whether the screen display area in the media content display interface includes the control area at the bottom of the media content display interface based on the interface size of the media content display interface. Fig. 9 As shown, the media content screen display device provided in this embodiment may include: an interface acquisition module 901, a region determination module 902 and a screen display module 903, wherein:
[0099] The interface acquisition module 901 is used to acquire a 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 part of the interactive controls of the media content display interface, and the second area is an original screen display area of the media content display interface;
[0100] An area determination module 902 is used to determine a target screen display area of the media content display interface, wherein whether the first area is included in the target screen display area is associated with an interface size of the media content display interface;
[0101] The picture display module 903 is used to display the media content display interface and display the target media content picture in the target picture display area.
[0102] The display device of the media content screen provided in the present embodiment obtains the media content display interface to be displayed through the interface acquisition module, and the media content display interface includes a first area and a second area, and at least part of the 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; the target screen display area of the media content display interface is determined through the area determination module, wherein whether the first area of the media content display interface is included in the target screen display area is associated with the interface size of the media content display interface; the media content display interface is displayed through the screen display module, and the target media content screen is displayed in the target screen display area of the media content screen. The present embodiment utilizes the above technical solution to determine whether the screen 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, and then determines whether the control area of the media content display interface is used to display the interactive controls and the media content screen at the same time, which can enrich the determination method of the screen display area in the media content display page, so that the screen display area can meet the media content screen display requirements in different scenarios.
[0103] Optionally, the first area and the second area are arranged vertically, and the area determination module 902 includes at least one of the following: a first determination unit, used to use the second area as the target screen display area when the interface aspect ratio of the media content display interface is less than 1, or when the interface 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; a second determination unit, used to determine the target screen display area based on the aspect ratio of the second area and the aspect ratio of the target media content screen when the interface 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.
[0104] Optionally, the second determination unit can be specifically used to perform at least one of the following: if the aspect ratio of the target media content screen is greater than or equal to the area aspect ratio of the second area, then the second area is used as the target screen display area; if the aspect ratio of the target media content screen is less than the area aspect ratio of the second area, then the merged area of the first area and the second area is used as the target screen display area.
[0105] Optionally, the first area and the second area are arranged horizontally, and the area determination module 902 includes at least one of the following: a third determination unit, used to use the second area as the target screen display area when the interface aspect ratio of the media content display interface is greater than 1, or when the interface aspect ratio of the media content display interface is less than or equal to 1 and the interface width of the media content display interface is greater than a preset width threshold; a fourth determination unit, used to determine the target screen display area based on the aspect ratio of the second area and the screen aspect ratio of the target media content screen when the interface aspect ratio of the media content display interface is less than or equal to 1 and the interface width of the media content display interface is less than or equal to a preset width threshold.
[0106] Optionally, the fourth determination unit can be specifically used to perform at least one of the following: if the aspect ratio of the target media content screen is less than or equal to the area aspect ratio of the second area, then the second area is used as the target screen display area; if the aspect ratio of the target media content screen is greater than the area aspect ratio of the second area, then the merged area of the first area and the second area is used as the target screen display area.
[0107] Optionally, the screen display module 903 can 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 screen display device may also include: a screen processing module, which is 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 to obtain the target media content screen, and the preset processing includes at least one of scaling processing and cropping processing.
[0109] Optionally, the picture processing module can be specifically used to: in the case where the picture aspect ratio of the original media content picture is smaller than the interface aspect ratio of the media content display interface, proportionally scale the original media content picture so that the picture width is equal to the interface width of the media content display interface; if the ratio between the picture height of the original media content picture and the interface height of the media content display interface after scaling is greater than 1 and less than or equal to a first ratio threshold, then crop the scaled original media content picture 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 and the interface height of the media content display interface after scaling is greater than the first ratio threshold, then scale the original media content picture so that the picture height is equal to the interface height of the media content display interface to obtain the target media content picture.
[0110] Optionally, the picture processing module can be specifically used to: in the case where the picture aspect ratio of the original media content picture is greater than the interface aspect ratio of the media content display interface, proportionally scale the original media content picture so that the picture height is equal to the interface height of the media content display interface; if the ratio between the picture width of the original media content picture and the interface width of the media content display interface after scaling is greater than 1 and less than or equal to a second ratio threshold, then crop the scaled original media content picture 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 and the interface width of the media content display interface after scaling is greater than the second ratio threshold, then scale the original media content picture so that the picture width is equal to the interface width of the media content display interface to obtain the target media content picture.
[0111] The media content screen display device provided in the embodiment of the present disclosure can execute the media content screen display method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of executing the media content screen display method. For technical details not described in detail in this embodiment, please refer to the media content screen display method provided in any embodiment of the present disclosure.
[0112] Reference below Fig.10 , which shows a schematic diagram of the structure of an electronic device (e.g., terminal device) 1000 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0113] like Fig.10 As shown, the electronic device 1000 may include a processing device (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. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0114] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 The electronic device 1000 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0115] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1009, or installed from a storage device 1008, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0116] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0117] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0118] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0119] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a 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 part 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; determines a target screen display area of the media content display interface, wherein whether the target screen display area includes the first area is associated with the interface size of the media content display interface; and displays the media content display interface, and displays a target media content screen in the target screen display area.
[0120] Computer program code for performing the operations of the present disclosure may 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, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate 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 a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0121] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0122] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, constitute a limitation on the unit itself.
[0123] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0124] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] According to one or more embodiments of the present disclosure, Example 1 provides a method for displaying a media content screen, including:
[0126] Acquire a media content display interface to be displayed, wherein the media content display interface includes a first area and a second area, wherein at least part of the interactive controls of the media content display interface are displayed in the first area, and the second area is an original screen display area of the media content display interface;
[0127] Determining a target screen display area of the media content display interface, wherein whether the first area is included in the target screen display area is associated with an interface size of the media content display interface;
[0128] The media content display interface is displayed, and the target media content picture is displayed in the target picture display area.
[0129] According to one or more embodiments of the present disclosure, Example 2 is the method according to Example 1, wherein the first area and the second area 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 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, the second area is used as the target screen display area;
[0131] If the interface 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, the target screen display area is determined based on the aspect ratio of the second area and the screen aspect ratio of the target media content screen.
[0132] According to one or more embodiments of the present disclosure, Example 3 is the method according to Example 2, wherein determining the target screen display area according to the aspect ratio of the second area and the screen aspect ratio of the target media content screen includes at least one of the following:
[0133] If the picture aspect ratio of the target media content picture is greater than or equal to the area aspect ratio of the second area, taking the second area as the target picture display area;
[0134] If the picture aspect ratio of the target media content picture is smaller than the area aspect ratio of the second area, a combined area of the first area and the second area is used as the target picture display area.
[0135] According to one or more embodiments of the present disclosure, Example 4 is the method according to Example 1, wherein the first area and the second area 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 the aspect ratio of the media content display interface is less than or equal to 1 and the interface width of the media content display interface is greater than a preset width threshold, the second area is used as the target screen display area;
[0137] If the interface aspect ratio of the media content display interface is less than or equal to 1, and the interface width of the media content display interface is less than or equal to a preset width threshold, the target screen display area is determined based on the aspect ratio of the second area and the screen aspect ratio of the target media content screen.
[0138] According to one or more embodiments of the present disclosure, Example 5 is the method according to Example 4, wherein determining the target screen display area according to the aspect ratio of the second area and the screen aspect ratio of the target media content screen includes at least one of the following:
[0139] If the picture aspect ratio of the target media content picture is less than or equal to the area aspect ratio of the second area, using the second area as the target picture display area;
[0140] If the picture aspect ratio of the target media content picture is greater than the area aspect ratio of the second area, a combined area of the first area and the second area is used as the target picture display area.
[0141] According to one or more embodiments of the present disclosure, Example 6 is the method according to Example 1, wherein displaying the target media content picture in the target picture display area includes:
[0142] Determine a target display position of the target media content picture according to the media content information displayed in the media content display interface, and display the target media content picture at the target display position in the target picture display area; or
[0143] The target media content picture is displayed at a preset display position in the target picture display area.
[0144] According to one or more embodiments of the present disclosure, Example 7 is a method according to any one of Examples 1-6, and before determining the target screen display area of the media content display interface, further comprising:
[0145] The original media content picture to be displayed is subjected to a preset process to obtain the target media content picture, wherein the preset process includes at least one of a scaling process and a cropping process.
[0146] According to one or more embodiments of the present disclosure, Example 8 is the method according to Example 7, wherein the step of performing preset processing on the original media content screen to be displayed to obtain the target media content screen includes:
[0147] In case that the aspect ratio of the original media content screen is smaller than the aspect ratio of the media content display interface, the original media content screen is proportionally scaled so that the screen width is equal to the interface width of the media content display interface;
[0148] If the ratio between the screen height of the original media content screen after scaling and the interface height of the media content display interface is greater than 1 and less than or equal to a first ratio threshold, the scaled original media content screen is cropped according to the interface height to obtain a target media content screen;
[0149] If the ratio of the screen height of the original media content screen to the interface height of the media content display interface after scaling is greater than a first ratio threshold, the original media content screen is scaled proportionally so that the screen height is equal to the interface height of the media content display interface to obtain a target media content screen.
[0150] According to one or more embodiments of the present disclosure, Example 9 is the method according to Example 7, wherein the step of performing preset processing on the original media content screen to be displayed to obtain the target media content screen includes:
[0151] In case that the aspect ratio of the original media content screen is greater than the aspect ratio of the media content display interface, the original media content screen is proportionally scaled so that the screen height is equal to the interface height of the media content display interface;
[0152] If the ratio between the screen width of the original media content screen after scaling and the interface width of the media content display interface is greater than 1 and less than or equal to a second ratio threshold, the scaled original media content screen is cropped according to the interface width to obtain a target media content screen;
[0153] If the ratio of the screen width of the original media content screen to the interface width of the media content display interface after scaling is greater than a second ratio threshold, the original media content screen is scaled proportionally so that the screen width is equal to the interface width of the media content display interface to obtain a target media content screen.
[0154] According to one or more embodiments of the present disclosure, Example 10 provides a device for displaying a media content screen, including:
[0155] An interface acquisition module, used to acquire a 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 part of the interactive controls of the media content display interface, and the second area is an original screen display area of the media content display interface;
[0156] An area determination module, configured to determine a target screen display area of the media content display interface, wherein whether the first area is included in the target screen display area is associated with an 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 the present disclosure, Example 11 provides an electronic device, including:
[0159] one or more processors;
[0160] a memory for storing 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 the method for displaying the media content screen as described in any one 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, which, when executed by a processor, implements the method for displaying a media content screen as described in any one of Examples 1-9.
[0163] According to one or more embodiments of the present disclosure, Example 13 provides a computer program product. When the computer program product is executed by a computer, the computer implements the method for displaying a media content screen as described in any one of Examples 1-9.
[0164] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0165] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0166] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, 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. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for displaying a media content screen, It is characterized in that include: Acquire a media content display interface to be displayed, wherein the media content display interface includes a first area and a second area, wherein at least part of the interactive controls of the media content display interface are displayed in the first area, and the second area is an original screen display area of the media content display interface; Determining a target screen display area of the media content display interface, wherein whether the first area is included in the target screen display area is associated with an interface size of the media content display interface; The media content display interface is displayed, and the target media content picture is displayed in the target picture display area.
2. The method according to claim 1, It is characterized in that The first area and the second area are arranged vertically, and the determining of the target screen 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 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, the second area is used as the target screen display area; If the interface 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, the target screen display area is determined based on the aspect ratio of the second area and the screen aspect ratio of the target media content screen.
3. The method according to claim 2, It is characterized in that The determining the target screen display area according to the aspect ratio of the second area and the screen aspect ratio of the target media content screen includes at least one of the following: If the picture aspect ratio of the target media content picture is greater than or equal to the area aspect ratio of the second area, taking the second area as the target picture display area; If the picture aspect ratio of the target media content picture is smaller than the area aspect ratio of the second area, a combined area of the first area and the second area is used as the target picture display area.
4. The method according to claim 1, It is characterized in that The first area and the second area are arranged horizontally, and the determining of the target screen 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 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, the second area is used as the target screen display area; If the interface aspect ratio of the media content display interface is less than or equal to 1, and the interface width of the media content display interface is less than or equal to a preset width threshold, the target screen display area is determined based on the aspect ratio of the second area and the screen aspect ratio of the target media content screen.
5. The method according to claim 4, It is characterized in that The determining the target screen display area according to the aspect ratio of the second area and the screen aspect ratio of the target media content screen includes at least one of the following: If the picture aspect ratio of the target media content picture is less than or equal to the area aspect ratio of the second area, using the second area as the target picture display area; If the picture aspect ratio of the target media content picture is greater than the area aspect ratio of the second area, a combined area of the first area and the second area is used as the target picture display area.
6. The method according to claim 1, It is characterized in that The displaying of the target media content picture in the target picture display area includes: Determine a target display position of the target media content picture according to the media content information displayed in the media content display interface, and display the target media content picture at the target display position in the target picture display area; or The target media content picture is displayed at a preset display position in the target picture display area.
7. The method according to any one of claims 1 to 6, It is characterized in that Before determining the target screen display area of the media content display interface, the method further includes: The original media content picture to be displayed is subjected to a preset process to obtain the target media content picture, wherein the preset process includes at least one of a scaling process and a cropping process.
8. The method according to claim 7, It is characterized in that The performing preset processing on the original media content picture to be displayed to obtain the target media content picture includes: In case that the aspect ratio of the original media content screen is smaller than the aspect ratio of the media content display interface, the original media content screen is proportionally scaled so that the screen width is equal to the interface width of the media content display interface; If the ratio between the screen height of the original media content screen after scaling and the interface height of the media content display interface is greater than 1 and less than or equal to a first ratio threshold, the scaled original media content screen is cropped according to the interface height to obtain a target media content screen; If the ratio of the screen height of the original media content screen to the interface height of the media content display interface after scaling is greater than a first ratio threshold, the original media content screen is scaled proportionally so that the screen height is equal to the interface height of the media content display interface to obtain a target media content screen.
9. The method according to claim 7, It is characterized in that The performing preset processing on the original media content picture to be displayed to obtain the target media content picture includes: In case that the aspect ratio of the original media content screen is greater than the aspect ratio of the media content display interface, the original media content screen is proportionally scaled so that the screen height is equal to the interface height of the media content display interface; If the ratio between the screen width of the original media content screen after scaling and the interface width of the media content display interface is greater than 1 and less than or equal to a second ratio threshold, the scaled original media content screen is cropped according to the interface width to obtain a target media content screen; If the ratio of the screen width of the original media content screen to the interface width of the media content display interface after scaling is greater than a second ratio threshold, the original media content screen is scaled proportionally so that the screen width is equal to the interface width of the media content display interface to obtain a target media content screen.
10. A device for displaying a media content screen, It is characterized in that include: An interface acquisition module, used to acquire a 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 part of the interactive controls of the media content display interface, and the second area is an original screen display area of the media content display interface; An area determination module, configured to determine a target screen display area of the media content display interface, wherein whether the first area is included in the target screen display area is associated with an interface size of the media content display interface; 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.
11. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for displaying a media content screen according to any one of claims 1 to 9.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for displaying a media content screen according to any one of claims 1 to 9 when executed.
13. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the method for displaying a media content screen according to any one of claims 1 to 9.
Citation Information
Patent Citations
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
Content display method, device and equipment, computer readable storage medium and product
CN117032513A
Common User Interface Structure
US20090140977A1
Cited By
Media content picture display method and apparatus, electronic device, storage medium, and program product
WO2026016460A1
