Media content display method and device, electronic equipment, storage medium and program product
By setting the image and text content areas in the media content display interface, and adjusting the area size in response to the preset trigger operation, the problem of a single display method in the existing technology is solved, and convenient area adjustment and display effect improvement are achieved.
Patent Information
- Application Number
- CN202410841308.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-08
AI Technical Summary
The existing media content display method is relatively simple and lacks the convenience of adjusting the size of the image content and text content display area, resulting in poor display effects.
Set the first area and the second area in the media content display interface to display image content and text content respectively, and adjust the area sizes of the two areas through preset trigger operations to maintain the stability of the interface and avoid occlusion of images and text content to achieve Flexible adjustment.
It enriches the display methods of media content, simplifies image and text content area size adjustment operations, improves the display effect, and avoids interface switching and content occlusion.
Smart Images

Figure CN118747052A_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 media content. Background Art
[0002] Currently, in some applications, the image content and at least part of the text content of the media content can be displayed in the media content display interface. However, the display method of the media content is relatively simple. Summary of the invention
[0003] The embodiments of the present disclosure provide a method, device, electronic device, storage medium and program product for displaying media content, so as to enrich the display mode of media content.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for displaying media content, including:
[0005] Displaying first media content in a media content display interface, wherein the media content display interface includes a first area and a second area, the first area is used to display image content of the first media content, and the second area is used to display at least part of text content of the first media content;
[0006] In response to a preset trigger operation acting on the media content display interface, the media content display interface is kept displayed, and the area size of the first area and the area size of the second area are adjusted.
[0007] In a second aspect, the embodiments of the present disclosure further provide a device for displaying media content, including:
[0008] A media content display module, configured to display first media content in a media content display interface, wherein the media content display interface includes a first area and a second area, the first area is configured to display image content of the first media content, and the second area is configured to display at least part of text content of the first media content;
[0009] The size adjustment module is used to keep displaying the media content display interface and adjust the area size of the first area and the area size of the second area in response to a preset trigger operation acting in the media content display interface.
[0010] In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
[0011] one or more processors;
[0012] a memory for storing one or more programs,
[0013] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for displaying media content as described in the embodiment of the present disclosure.
[0014] In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for displaying media content as described in the embodiments of the present disclosure.
[0015] 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 media content as described in the embodiments of the present disclosure.
[0016] The media content display method, device, electronic device, storage medium and program product provided by the embodiments of the present disclosure support adjusting the area size of the image content display area and the area size of the text content display area of the media content in the media content display interface without the need for interface switching and without causing occlusion between the image content and the text content. It can enrich the display method of the media content, simplify the operations required to adjust the area size of the image content display area and the area size of the text content display area, and improve the display effect of the image content and the text content of the media content. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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.
[0018] Figure 1 A flowchart of a method for displaying media content provided by an embodiment of the present disclosure;
[0019] Figure 2 A schematic diagram of a media content display interface provided by an embodiment of the present disclosure;
[0020] Figure 3 A schematic diagram of another media content display interface provided by an embodiment of the present disclosure;
[0021] Figure 4 A schematic diagram of a text content switching process provided by an embodiment of the present disclosure;
[0022] Figure 5 A schematic diagram of moving a target content provided by an embodiment of the present disclosure;
[0023] Figure 6A flowchart of another method for displaying media content provided by an embodiment of the present disclosure;
[0024] Figure 7 A schematic diagram of a process of adjusting the area size of a first area and the area size of a second area provided in an embodiment of the present disclosure;
[0025] Figure 8 A schematic diagram of another process of adjusting the area size of a first area and the area size of a second area provided in an embodiment of the present disclosure;
[0026] Fig. 9 A structural block diagram of a media content display device provided in an embodiment of the present disclosure;
[0027] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] 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.
[0029] 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.
[0030] 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.
[0031] 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.
[0032] 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".
[0033] 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.
[0034] 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.
[0035] Figure 1 A flowchart of a method for displaying media content provided in an embodiment of the present disclosure. The method can be executed by a media content display device, wherein the device can be implemented by software and / or hardware and can be configured in an electronic device, typically, a mobile phone or a tablet computer. The method for displaying media content provided in an embodiment of the present disclosure is suitable for scenarios where image content and text content of media content are displayed in different areas of a media content display interface, such as adjusting the area sizes of an image content display area and a text content display area in a media content display interface. Figure 1 As shown, the media content display method provided in this embodiment may include:
[0036] S101. Display first media content in a media content display interface, wherein the media content display interface includes a first area and a second area, the first area is used to display image content of the first media content, and the second area is used to display at least part of text content of the first media content.
[0037] The media content display interface may be an interface for displaying media content, such as an interface that supports switching to display different media content based on the corresponding media content stream. The media content display interface is provided with a first area and a second area. The first area and the second area are different areas in the media content display interface. The first area may be understood as an image content display area, i.e., an area in the media content display interface for displaying the image content of the currently displayed media content. The second area may be understood as a text content display area, i.e., an area in the media content display interface for displaying the text content of the currently displayed media content.
[0038] The first media content can be understood as the media content currently displayed in the media content display interface. For example, the first media content can be the media content displayed in the media content display interface when a preset trigger operation is received. The first media content may include image content and text content. Among them, the image content can be understood as image-type content, such as video content and / or picture content. The text content can be understood as text-type content, and this text content can contain at least one character.
[0039] Specifically, the media content may be displayed in the media content display interface, such as displaying image content and text content of the media content in different areas of the media content display interface.
[0040] Taking the display of the first media content in the media content display interface as an example, when the first media content is displayed in the media content display interface, the image content of the first media content can be displayed in the first area 20 of the media display interface, and the text content of the first media content can be displayed in the second area 21 of the media content display interface, such as Figure 2 At this time, illustratively, there may be no overlapping area between the first area 20 and the second area 21.
[0041] S102: In response to a preset triggering operation acting on the media content display interface, keep displaying the media content display interface, and adjust the area size of the first area and the area size of the second area.
[0042] Among them, the preset trigger operation can be a trigger operation for indicating adjustment of the area size of the first area and the area size of the second area in the media content display interface. The execution method of the preset trigger operation is not limited. For example, the preset trigger operation can be to trigger the image content displayed in the first area, trigger the text content displayed in the second area, trigger a certain control or slide in a certain direction, etc. The area size of a certain area (such as the first area and / or the second area) can be understood as the size of this area, such as the width and / or height of this area, etc.
[0043] Specifically, when a preset trigger operation acting on the media content display interface is received, the media content display interface can be kept displayed, and the area size of the first area 20 and the area size of the second area 21 in the media content display interface can be adjusted. For example, when a preset trigger operation acting on the media content display interface is received, the area height and / or area width of the first area 20 in the media content display interface can be adjusted without switching the currently displayed interface, and the area height and / or area width of the second area 21 in the media content display interface can be adjusted, such as Figure 3 As shown (the figure takes the adjustment of the height of the first area 20 and the height of the second area 21 as an example). At this time, illustratively, after the area size is adjusted, there may be no overlapping area between the first area 20 and the second area 21.
[0044] In this embodiment, when adjusting the area size of the first area, you can adjust only the area width or the area height of the first area, or you can adjust both the area width and the area height of the first area; when adjusting the area size of the second area, you can adjust only the area width or the area height of the second area, or you can adjust both the area width and the area height of the second area. The specific settings can be made according to needs.
[0045] Exemplarily, when adjusting the area size of the first area and the area size of the second area, the area size of one of the two areas may be adjusted, and the area size of the other area may be adaptively adjusted based on the area size of the area. For example, the area height of one of the two areas may be adjusted, and the area height of the other area may be adjusted based on the adjusted area height of the area; and / or, the area width of one of the two areas may be adjusted, and the area width of the other area may be adaptively adjusted based on the adjusted area width of the area. Thus, it is avoided that an additional blank area appears in the media content display interface due to adjusting the area size of the first area and the area size of the second area, and it is avoided that the content displayed in the two areas is blocked.
[0046] Optionally, adjusting the area size of the first area and the area size of the second area includes: keeping the area width of the first area and the area width of the second area unchanged, and adjusting the area height of the first area and the area height of the second area; and / or keeping the area height of the first area and the area height of the second area unchanged, and adjusting the area width of the first area and the area width of the second area.
[0047] For example, when adjusting the area size of the first area and the area size of the second area, the area width of the first area and the area width of the second area can be kept unchanged, and only the area height of the first area and the area height of the second area can be adjusted; or the area height of the first area and the area height of the second area can be kept unchanged, and only the area width of the first area and the area width of the second area can be adjusted.
[0048] As an optional example, it can be preset whether to adjust the area height of the first area and the area height of the second area, or to adjust the area width of the first area and the area width of the second area when adjusting the area size of the first area and the area size of the second area.
[0049] As another optional example, it can be determined whether to adjust the area height of the first area and the area height of the second area or to adjust the area width of the first area and the area width of the second area when adjusting the area size of the first area and the area size of the second area based on the relative position relationship between the first area and the second area in the media content display interface.
[0050] For example, when the first area and the second area are arranged vertically, such as when the first area is located above or below the second area, the area width of the first area and the area width of the second area can be kept unchanged in response to a preset trigger operation, and the area height of the first area and the area height of the second area can be adjusted, such as Figure 3 For example, when adjusting the area height of the first area and the area height of the second area, the sum of the area height of the first area and the area height of the second area can be kept unchanged, and the area height of one of the first area and the second area can be increased according to the received preset trigger operation, and the area height of the other area can be reduced.
[0051] When the first area and the second area are arranged horizontally, such as when the first area is located on the left or right side of the second area, the area height of the first area and the area height of the second area can be kept unchanged, and the area width of the first area and the area width of the second area can be adjusted in response to a preset trigger operation. For example, when adjusting the area width of the first area and the area width of the second area, the sum of the area width of the first area and the area width of the second area can be kept unchanged, and the area width of one of the first area and the second area can be increased according to the received preset trigger operation, and the area width of the other area can be reduced.
[0052] In this embodiment, after adjusting the area size of a certain area (such as the first area and / or the second area), the content displayed in this area can be adaptively adjusted based on the adjusted size, such as adjusting the display size of the content displayed in this area, and / or increasing or decreasing the content displayed in this area to meet the user's needs of viewing the content in this area at different display sizes or viewing more or less content in this area.
[0053] Optionally, the method for displaying media content may further include: in response to adjustment of the area size of the first area, enlarging or reducing the image content displayed in the first area according to the adjusted area size of the first area; and / or, in response to adjustment of the area size of the second area, increasing or decreasing the text content displayed in the second area according to the adjusted area size of the second area.
[0054] Specifically, when the area size of the first area is adjusted, the image content displayed in the first area can be scaled according to the adjusted area size of the first area. For example, when the area size of the first area is reduced, the display size of the image content displayed in the first area can be reduced according to the reduced area size of the first area. Figure 3 As shown; when the area size of the first area increases, the display size of the image content displayed in the first area can be increased according to the increased area size of the first area.
[0055] When the area size of the second area is adjusted, the display parameters of the text content in the second area can be kept unchanged, and the image content displayed in the second area can be increased or decreased according to the adjusted area size of the second area. For example, when the area size of the second area is increased, the text content displayed in the second area can be increased according to the increased area size of the second area. Figure 3 When the size of the second area is reduced, the text content displayed in the second area can be reduced according to the reduced size of the second area. The display parameters of the text content may include, for example, the font size, character spacing and / or line spacing of the text content when it is displayed.
[0056] When adjusting the display size of the image content displayed in the first area, the aspect ratio of the image content can be kept unchanged. Exemplarily, if the aspect ratio of the currently displayed image content is greater than the aspect ratio of the adjusted area size of the first area, the aspect ratio of the currently displayed image content can be kept unchanged, and the width of the currently displayed image content can be adjusted to be equal to the adjusted area width of the first area; if the aspect ratio of the currently displayed image content is equal to the aspect ratio of the adjusted area size of the first area, the aspect ratio of the currently displayed image content can be kept unchanged, and the size of the currently displayed image content can be adjusted to be equal to the adjusted area size of the first area; if the aspect ratio of the currently displayed image content is less than the aspect ratio of the adjusted area size of the first area, the aspect ratio of the currently displayed image content can be kept unchanged, and the height of the currently displayed image content can be adjusted to be equal to the adjusted area height of the first area.
[0057] It should be noted that when the area size of the first area and the area size of the second area are adjusted in response to a preset trigger operation, the hierarchical relationship between the image content displayed in the first area and the text content displayed in the second area will not be adjusted. For example, if the image content displayed in the first area and the text content displayed in the second area are in the same display layer before adjustment, the image content displayed in the first area and the text content displayed in the second area will still be in the same display layer after adjustment.
[0058] In addition, if Figure 2 and Figure 3 As shown, before and after the area size of the first area and the area size of the second area are adjusted, a progress indicator control 22 of the first media content can be displayed in the media content display interface. This progress indicator control 22 can be used to indicate and / or adjust the display progress of the image content of the first media content.
[0059] The media content display method provided in this embodiment displays the first media content in a media content display interface, wherein the media content display interface includes a first area and a second area, the first area is used to display the image content of the first media content, and the second area is used to display the text content of the first media content; in response to a preset trigger operation acting in the media content display interface, the media content display interface is kept displayed, and the area size of the first area in the media content display interface and the area size of the second area in the media content display interface are adjusted. This embodiment utilizes the above technical solution to support the adjustment of the area size of the image content display area of the media content and the area size of the text content display area of the media content in the media content display interface, without the need for interface switching, and without causing occlusion between the image content and the text content, which can enrich the display method of the media content, simplify the operations required to adjust the area size of the image content display area and the area size of the text content display area, and improve the display effect of the image content and the text content of the media content.
[0060] In some optional embodiments, the image content includes at least two picture contents, and after adjusting the area size of the first area and the area size of the second area, it also includes: in response to a picture content switching operation acting on the media content display interface, switching the picture content displayed in the first area.
[0061] The picture content switching operation may be a triggering operation for indicating switching of the picture content displayed in the first area. The execution method of the picture content switching operation is not limited. For example, the picture content switching operation may be an operation of sliding along a first direction in the media content display interface or an operation of triggering a picture content switching control, etc. The first direction may be, for example, horizontal or vertical. The following description will be made by taking the first direction being horizontal as an example. The sliding operation along the first direction may be performed within the first area, within the second area, or outside the first area and the second area.
[0062] In the present embodiment, for the case where the image content of the first media content includes at least two picture contents, before and after adjusting the area size of the first area and the area size of the second area, the user can be supported to switch the picture content currently displayed in the first area by performing a picture content switching operation. For example, the user is supported to slide in the first area and / or the second area to switch the picture content currently displayed in the first area. The user does not need to perform the picture content switching operation only in the second area. This can reduce the difficulty of executing the picture content switching operation and provide convenience for the user to switch the picture content displayed in the second area.
[0063] Specifically, for the situation where the image content of the first media content includes multiple picture contents, such as the situation where the image content of the first media content is a picture set, and this picture set includes multiple picture contents, when a picture content switching operation acting on the media content display interface is received, the picture content currently displayed in the first area can be switched according to this picture content switching operation.
[0064] For example, when it is detected that the current user is swiping to the left within the first area, the second area, and / or outside the first area and the second area of the media content display interface, the picture content currently displayed in the first area can be switched to the next picture content according to the arrangement order of the picture contents in the first media content; when it is detected that the current user is swiping to the right within the first area, the second area, and / or outside the first area and the second area of the media content display interface, the picture content currently displayed in the first area can be switched to the previous picture content according to the arrangement order of the picture contents in the first media content.
[0065] In some optional embodiments, in the case where only part of the text content of the first media content is displayed in the second area, the media content display method further includes: in response to a text content switching operation performed in the second area, switching the text content displayed in the second area.
[0066] The text content switching operation may be a triggering operation for indicating switching of the text content displayed in the first area. The execution method of the text content switching operation is not limited. For example, the text content switching operation may include an operation of sliding along a second direction in the second area or an operation of triggering a text content switching control, etc. The second direction may be different from the first direction. For example, when the first direction is horizontal, the second direction may be vertical; when the first direction is vertical, the second direction may be horizontal, and so on. The following description takes the second direction being vertical as an example.
[0067] In this embodiment, when only part of the text content of the first media content is displayed in the second area, that is, when the text content of the first media content is not fully displayed in the second area, the user can be supported to switch the text content currently displayed in the second area by executing a text content switching operation. Thus, the entire text content of the first media content can be viewed without switching to other interfaces, which can simplify the operations required to fully view the text content of the media content currently displayed in the media content display interface, and provide convenience for the user to continue to view the media content in the media content display interface.
[0068] Specifically, in the case where only part of the first media content is displayed in the second area, when a text content switching operation acting on the second area is received, the text content displayed in the second area may be switched.
[0069] For example, Figure 4 As shown, in the case where only part of the text content of the first media content is displayed in the second area 21, when it is detected that the current user slides up in the second area 21, the text content currently displayed in the second area 21 can be controlled to move upward, so that the text content located after the currently displayed text content in the first media content is moved into the second area 21 for display; when it is detected that the current user slides down in the second area 21, the text content currently displayed in the second area 21 can be controlled to move downward, so that the text content located before the currently displayed text content in the first media content is moved into the second area 21 for display.
[0070] It can be understood that, when the area size of the second area is not adjusted (such as when the area size of the second area is its default area size) and after the area size of the second area is adjusted (such as when the area size of the second area is not its default area size), the user can be supported to switch the text content displayed in the second area through a text content switching operation when only part of the text content of the first media content is displayed in the second area; or, it can also be supported to switch the text content displayed in the second area through a text content switching operation only after the area size of the second area is adjusted (such as when the area size of the second area is an increased area size), and when the area size of the second area is not adjusted (such as when the area size of the second area is its default area size), the user is not supported to switch the text content displayed in the second area through a text content switching operation when only part of the text content of the first media content is displayed in the second area. The specific settings can be made as needed.
[0071] In some optional embodiments, the media content display method may further include: in response to a target sliding operation acting within the media content display interface, controlling the target content of the first media content to move, the target content including the image content and at least part of the text content; in response to the situation that the moving distance of the target content is greater than or equal to a preset distance at the end of the target sliding operation, controlling the target content to move out of the media content display interface, and displaying the second media content in the media content display interface.
[0072] The target sliding operation may be a triggering operation for controlling the movement of the first media content currently displayed in the media content display interface to switch the media content currently displayed in the media content display interface. The sliding direction of the target sliding operation may be horizontal or vertical, etc., which may be set as required. The following takes the sliding direction of the target sliding operation as vertical as an example.
[0073] The target content may be the content contained in the media content currently displayed in the media content display interface. The target content may include the image content and text content currently displayed in the media content display interface, and may also include interactive controls associated with the media content currently displayed in the media content display interface, such as like controls, comment controls, favorite controls and / or share controls for the currently displayed media content.
[0074] The preset distance can be understood as the minimum distance that the target content needs to move when switching the currently displayed media content in the media content display interface by sliding trigger. It can be flexibly set as needed, such as the preset distance can be set to 60px, 64px or 70px, etc.
[0075] The second media content may be the media content displayed in the media content display interface after switching, and may be the previous media content or the next media content of the first media content in the media content stream corresponding to the media content display interface, and may be specifically determined based on the sliding direction of the target sliding operation.
[0076] In this embodiment, before or after adjusting the area size of the first area and the area size of the second area, the user can be supported to slide and switch the media content currently displayed in the media content display interface.
[0077] Specifically, when a target sliding operation is received in the media content display interface, the image content and at least part of the text content of the first media content currently displayed can be controlled to move along the sliding direction of the target sliding operation. As the image content and at least part of the text content of the first media content move, part of the second media content can be moved into the media content display interface, such as Figure 5 As shown (the figure takes sliding upward as an example). In addition, Figure 5 As shown, sliding prompt information can also be displayed on the upper layer of the second media content moved into the media content display interface to prompt the user to slide to switch the media content.
[0078] When the target sliding operation is completed, if the moving distance of the image content and at least part of the text content of the first media content is greater than or equal to the preset distance, the image content and at least part of the text content can be controlled to continue to move out of the media content display interface along the sliding direction of the target sliding operation, and the image content and at least part of the text content of the second media content can be controlled to move into the media content display interface to display the second media content in the media content display interface, such as displaying the image content of the second media content in the first area of the media content display interface, and displaying at least part of the image content of the second media content in the second area of the media content display interface.
[0079] In addition, when the target sliding operation is completed, if the moving distance of the image content and at least part of the text content of the first media content is less than a preset distance, this image content and at least part of the content can be controlled to move in the opposite direction of the sliding direction of the target sliding operation back to the state before the target sliding operation was received, thereby continuing to display the image content and at least part of the text content of the first media content in the media content display interface.
[0080] In this embodiment, during the execution of the target sliding operation, the movement parameters of the target content can be determined according to the mapping relationship between the sliding parameters of the target sliding operation and the movement parameters of the target content. When the target sliding operation acts within the second area of the media content or outside the second area, the mapping relationship between the sliding parameters and the movement parameters of the target content can be the same or different.
[0081] Exemplarily, in the case where both the target sliding operation and the text content switching operation are vertical sliding operations, if the second area in the current state does not support the user switching the text content displayed in the second area through the text content switching operation, such as when the entire text content of the first media content is displayed in the second area, or only part of the text content of the first media content is displayed in the second area and the current area size of the second area is the default area size when it is not adjusted, when the target sliding operation acts within the second area and outside the second area, the sliding parameters and the movement parameters of the target content can have the same mapping relationship.
[0082] For the case where both the target sliding operation and the text content switching operation are vertical sliding operations, if the second area supports the user to switch the text content displayed in the second area through the text content switching operation in the current state, such as when only part of the text content of the first media content is displayed in the second area and the current area size of the second area is not its default area size, when the target sliding operation acts within the second area and outside the second area, there may be different mapping relationships between its sliding and the movement parameters of the target content. Thus, the target sliding operation has different damping effects when it acts within the second area and outside the second area, which facilitates the user to distinguish between the target sliding operation acting within the second area and the target sliding operation acting outside the second area. In addition, it is also convenient for the user to distinguish between the target sliding operation acting within the second area and the text content switching operation acting within the second area, for example, the mapping relationship between the text content switching operation acting within the second area and the movement parameters of the text content, and the mapping relationship between the target sliding operation acting outside the second area and the movement parameters of the target content can be the same.
[0083] At this time, optionally, the target sliding operation includes a first sliding operation acting within the second area and / or a second sliding operation acting outside the second area, and the first sliding operation and the second sliding operation have different mapping relationships with moving parameters of the target content, and the moving parameters include at least one of moving distance, moving speed and moving acceleration.
[0084] The first sliding operation may be a target sliding operation acting within the second area, such as an upward sliding operation when the last line of text content of the first media content is displayed in the second area, etc. The second sliding operation may be a target sliding operation acting outside the second area, such as a vertical sliding operation acting outside the second area, etc.
[0085] The first sliding operation and the second sliding operation may have different mapping relationships with the movement parameters of the target content, that is, the first sliding operation and the second sliding operation may have different damping effects. For example, when the first sliding operation and the second sliding operation have the same sliding speed and sliding distance, the movement parameters of the target content during the first sliding operation may be greater than or less than the movement parameters of the target content during the second sliding operation, and the movement parameters may include, for example, the movement distance, the movement speed, and / or the movement acceleration, etc.
[0086] In order to avoid the situation where the user mistakenly switches the first media content to the second media content when performing a text content switching operation on the first media content, optionally, when the first sliding operation and the second sliding operation have the same sliding parameter, the movement parameter corresponding to the first sliding operation is smaller than the movement parameter corresponding to the second sliding operation, wherein the sliding parameter includes a sliding speed and a sliding distance. That is, when the first sliding operation and the second sliding operation have the same sliding speed and sliding distance, the movement parameter of the target content during the execution of the first sliding operation can be smaller than the movement parameter of the target content during the execution of the second sliding operation.
[0087] It should be noted that when the media content currently displayed in the media content display interface is switched from the first media content to the second media content, the first area can be displayed as the default area size of the first area, and the second area can be displayed as the default area size of the second area; the area size of the first area and the area size of the second area can also be kept unchanged, which is not limited in this embodiment.
[0088] Figure 6A flow chart of another method for displaying media content provided for an embodiment of the present disclosure. The scheme in this embodiment can be combined with one or more optional schemes in the above-mentioned embodiments. Optionally, in response to a preset trigger operation acting in the media content display interface, the media content display interface is kept displayed, and the area size of the first area and the area size of the second area are adjusted, including: in response to a first trigger operation acting in the media content display interface, the media content display interface is kept displayed, the area size of the first area is reduced, and the area size of the second area is increased; and / or, in response to a second trigger operation acting in the media content display interface, the media content display interface is kept displayed, the area size of the first area is increased, and the area size of the second area is reduced.
[0089] Correspondingly, such as Figure 6 As shown, the media content display method provided in this embodiment may include:
[0090] S201. Display first media content in a media content display interface, and execute S202 or S203, wherein the media content display interface includes a first area and a second area, the first area is used to display image content of the first media content, and the second area is used to display at least part of text content of the first media content.
[0091] S202: In response to a first trigger operation acting on the media content display interface, keep displaying the media content display interface, reduce the area size of the first area, and increase the area size of the second area.
[0092] Among them, the first trigger operation can be a trigger operation for indicating to increase the area size of the second area. The execution method of the first trigger operation is not limited, such as the first trigger operation can be an operation of clicking a certain position or sliding in a certain direction. Optionally, the first trigger operation includes a first click trigger operation, and the first click trigger operation acts on the text content or the expansion control of the text content. This first click operation can be understood as a first trigger operation performed by clicking, such as clicking the text content displayed in the second area or the operation of displaying controls corresponding to the text content displayed in the second area.
[0093] In this embodiment, the user can be supported to increase the area size of the second area by executing the first trigger operation. For example, when the current area size of the second area is the default area size of the second area and only part of the text content of the first media content is displayed in the second area, the user can be supported to increase the area size of the second area by executing the first trigger operation to increase the text content displayed in the second area.
[0094] Specifically, when a first trigger operation acting on the media content display interface is received, the media content display interface can be displayed in response to the first trigger operation, the area size of the second area can be increased, and the area size of the first area can be reduced according to the area size of the second area.
[0095] For example, taking the vertical arrangement of the first area 20 and the second area 21 in the media content display interface as an example, when the current area size of the second area 21 is the default area size and only part of the text content of the first media content is displayed in the second area 21, an expansion control 23 may be further displayed in the second area 21, such as Figure 7 The first picture and Figure 8 Thus, when it is detected that the current user clicks on the text content displayed in the second area 21 or the expansion control 23 displayed in the second area 21, the area width of the first area 20 and the area width of the second area 21 can be kept unchanged, the area height of the second area 21 can be increased, and the area height of the first area 20 can be reduced according to the increased area height of the second area 21, as shown in FIG. Figure 7 The second picture and Figure 8 As shown in the second picture.
[0096] In this embodiment, when the area size of the second area is increased in response to the first trigger operation, the method for determining the area size of the second area after the increase is not limited. Optionally, the area size of the second area after the increase is a preset area size; or, the area size of the second area after the increase is associated with the text content and / or the preset aspect ratio of the first area. For example, the area size of the second area can be increased to a preset area size; or, the area size of the second area can be increased to a area size determined based on the text content of the first media content and / or the preset aspect ratio of the first area.
[0097] The method of determining the enlarged area size of the second area based on the text content of the first media content and / or the preset aspect ratio of the first area can be flexibly set as needed.
[0098] In some examples, the minimum area size that the second area needs to be adjusted to in order to fully display the text content of the first media content in the second area can be determined based on the current display parameters of the text content of the first media content in the second area and the total number of characters of the text content of the first media content, and this minimum area size is used as the area size of the second area after it is enlarged. Thus, after the area size of the second area is increased, all the text content of the first media content can be fully displayed in the second area. At this time, optionally, the area size of the second area after the increase is associated with the preset aspect ratio of the text content and / or the first area, including: after the area size of the second area is increased, the text content is fully displayed in the second area.
[0099] In some examples, the aspect ratio to which the first region can be reduced can be preset, such as the maximum aspect ratio to which the first region can be reduced when the region height of the first region is reduced in response to the first trigger operation, and / or the minimum aspect ratio to which the first region can be reduced when the region width of the first region is reduced in response to the first trigger operation, as the preset aspect ratio of the first region. Thus, after receiving the first trigger operation, the minimum region size to which the first region can be reduced can be determined based on the preset aspect ratio, the maximum region size to which the second region can be increased can be determined based on the minimum region size to which the first region can be reduced, and the maximum region size can be used as the region size after the second region is increased. In this case, after the region size of the second region is increased, the first region can have a preset aspect ratio. At this time, optionally, the region size after the second region is increased is associated with the preset aspect ratio of the text content and / or the first region, including: after the region size of the second region is increased, the first region has a preset aspect ratio.
[0100] In some embodiments, the area size of the second area can be preset to be increased to the minimum area size to which it needs to be increased when the text content is fully displayed, or the area size of the second area can be increased to the maximum area size to which it can be increased.
[0101] In other embodiments, the enlarged area size of the second area can be determined based on the relative size between the minimum area size to which the second area needs to be enlarged when the text content is fully displayed and the maximum area size to which the second area can be enlarged, so as to display more text content as much as possible and avoid wasting display space while ensuring the display effect of the image content.
[0102] At this time, optionally, reducing the area size of the first area and increasing the area size of the second area includes: if the first area size is less than or equal to the second area size, increasing the area size of the second area to the first area size, and reducing the area size of the first area based on the first area size; if the first area size is greater than the second area size, increasing the area size of the second area to the second area size, and reducing the first area to have a preset aspect ratio, wherein the first area size is the minimum area size of the second area when the text content is fully displayed, and the second area size is the area size of the second area when the first area has the preset aspect ratio.
[0103] For example, after receiving the first trigger operation, the minimum area size to which the second area needs to be adjusted when the text content of the first media content is fully displayed can be determined based on the total number of characters in the text content of the first media content, as the first area size; and the maximum area size to which the second area can be adjusted can be determined based on the preset aspect ratio of the first area, as the second area size. After determining the first area size and the second area size, the relative size between the first area size and the second area size can be determined.
[0104] If the first area size is smaller than or equal to the second area size, then in response to the first trigger operation, the area size of the second area can be increased to the first area size, and based on the first area size, the area size of the first area can be reduced, such as Figure 7 As shown in the second picture.
[0105] If the first region size is larger than the second region size, the region size of the second region may be increased to the second region size in response to the first trigger operation, and the region size of the first region may be reduced to have a preset aspect ratio according to the second region size, such as Figure 8 As shown in the second picture.
[0106] In some embodiments, after receiving the first trigger operation, the amount of text content not displayed in the first area may not be considered, as long as the text content of the first media content is not fully displayed in the first area, that is, in response to the first trigger operation, the area size of the second area is increased and the area size of the first area is reduced to avoid the situation where the text content displayed in the second area blocks the image content displayed in the first area. At this time, optionally, reducing the area size of the first area and increasing the area size of the second area includes: if only part of the text content of the first media content is displayed in the second area, then reducing the area size of the first area and increasing the area size of the second area.
[0107] In some embodiments, after receiving the first trigger operation, the amount of text content not displayed in the first area can be considered. Only when the number of text content lines not displayed in the second area is greater than the preset number of lines, in response to the first trigger operation, the area size of the second area is increased and the area size of the first area is reduced. When the number of text content lines not displayed in the second area is less than or equal to the preset number of lines, exemplarily, the area size of the first area may not be reduced, and the above-mentioned undisplayed text content may be updated and displayed in the second area, etc., so as to improve the display effect of the image content and reduce the operations required to adjust the area size. At this time, optionally, the reducing the area size of the first area and increasing the area size of the second area include: if the number of text content lines in the text content that are not displayed in the second area is greater than the preset number of lines, then reducing the area size of the first area and increasing the area size of the second area. Among them, the specific value of the preset number of lines is not limited. For example, the preset number of lines can be set to a value such as 1, 2 or 3.
[0108] S203: In response to a second trigger operation acting on the media content display interface, keep displaying the media content display interface, increase the area size of the first area, and reduce the area size of the second area.
[0109] The second trigger operation may be a trigger operation for indicating the reduction of the area size of the second area, such as a trigger operation for restoring the area size of the second area to its default area size before it is enlarged. The execution method of the second trigger operation is not limited, such as the second trigger operation may be an operation of clicking a certain position or sliding in a certain direction. Optionally, the second trigger operation includes a second click trigger operation and / or a preset sliding trigger operation, the second click trigger operation acts on the text content, the folding control of the text content, or the image content, and the preset sliding trigger operation acts within the first area and / or the second area.
[0110] The second click operation may be a second trigger operation performed by clicking, such as clicking the text content displayed in the second area, the collapse control corresponding to the text content displayed in the second area, or the image content displayed in the second area after increasing the area size of the second area by the first trigger operation. The preset sliding operation may be a second trigger operation performed by sliding, and the preset sliding operation may be applied to the first area and / or the second area. Taking the application in the second area as an example, the preset sliding operation may be a sliding down operation when the first line of text content of the first media content is displayed in the second area.
[0111] In this embodiment, the user can be supported to reduce the area size of the second area by executing a second trigger operation. For example, after increasing the area size of the second area, the user can be supported to reduce the area size of the second area by executing a second trigger operation, such as restoring the area size of the second area to its default area size before the increase, so as to increase the display size of the image content displayed in the first area.
[0112] Specifically, when a second trigger operation acting on the media content display interface is received, the media content display interface can be displayed in response to the second trigger operation, the area size of the first area can be increased, and the area size of the second area can be reduced, such as restoring the area size of the first area to its default area size before it is reduced, and restoring the area size of the second area to its default area size before it is increased.
[0113] For example, taking the vertical arrangement of the first area 20 and the second area 21 in the media content display interface as an example, after increasing the area size of the second area 21 in response to the first trigger operation, a collapse control 30 may be displayed in the second area 21, such as switching the expansion control 23 displayed in the second area 21 to the collapse control 30, such as Figure 7 As shown in the second figure, Figure 8 Thus, when it is detected that the current user clicks the text content displayed in the second area 21, the retract control 22 displayed in the second area 21, or the non-control position of the first area 20, or when it is detected that the current user slides down in the second area 21 when the first line of text content of the first media content is displayed in the second area 21, the area width of the first area 20 and the area width of the second area 21 can be kept unchanged, the area height of the first area 20 can be increased, and the area height of the second area 21 can be reduced, such as Figure 7 The first picture and Figure 8 As shown in the first picture.
[0114] In some embodiments, increasing the area size of the second area can support displaying the first preset control and / or the second preset control in the second area, so that the user can interact based on the displayed first preset control and / or the second preset control. At this time, optionally, the method for displaying media content may also include: in response to a first trigger operation acting in the media content display interface, maintaining the display of the first preset control displayed in the second area, and, when the current condition meets the display condition of the second preset control, adding the display of the second preset control in the second area; and / or, in response to a second trigger operation acting in the media content display interface, maintaining the display of the first preset control and the second preset control in the second area.
[0115] The first preset control may be a preset control displayed in the second area before receiving the first trigger operation. The second preset control may be a preset control not displayed in the second area before receiving the first trigger operation. Exemplarily, the second preset control may be a preset control dynamically displayed in the second area, such as a preset control that is not displayed when the first media content is initially displayed but is displayed in the second area after a preset display condition is met.
[0116] For example, when the first trigger operation is received, the area size of the second area can be increased, and the first preset control displayed in the second area can continue to be displayed in the second area; and / or, after the area size of the second area is increased, when the current condition meets the display condition of a second preset control, the second preset control can be added and displayed in the second area. And, when the second trigger operation is received, the area size of the second area can be reduced, and the first preset control and / or the second preset control displayed in the second area can be kept displayed.
[0117] In some embodiments, after increasing the area size of the second area, the first preset control and the second preset control may not be displayed in the second area, so as to further increase the text content displayed in the second area. At this time, optionally, the method for displaying media content may also include: in response to a first trigger operation acting in the media content display interface, canceling the display of the first preset control displayed in the second area, and, when the current condition meets the display condition of the second preset control, keeping the second preset control not displayed in the second area; and / or, in response to a second trigger operation acting in the media content display interface, re-displaying the first preset control in the second area, and adding the display of the second preset control in the second area.
[0118] Exemplarily, when the first trigger operation is received, the area size of the second area can be increased, and if there is a first preset control that has been displayed in the first area, the first preset control is cancelled; and / or, after the area size of the second area is increased, when the current condition meets the display condition of a second preset control, the second preset control is not added to the second area. And, when the second trigger operation is received, the area size of the second area can be reduced, and if there is a first preset control that was cancelled in response to the first trigger operation, the first preset control can be re-displayed in the second area; if there is a second preset control that meets its display condition after the area size of the second area is increased, the second preset control can be further added to the second area.
[0119] The media content display method provided in this embodiment not only supports the user to increase the area size of the text content display area in the media content display interface and reduce the area size of the image content display area in the media content display interface through a first trigger operation; but also supports the user to increase the area size of the image content display area in the media content display interface and reduce the area size of the text content display area in the media content display interface through a second trigger operation, thereby further enriching the display method of media content and satisfying the user's needs to view more text content and the needs to view the details of image content.
[0120] Fig. 9 This is a structural block diagram of a media content display device provided in an embodiment of the present disclosure. The device can be implemented by software and / or hardware, and can be configured in an electronic device, typically a mobile phone or a tablet computer, and can display the image content and text content of the media content in different areas of the media content display interface by executing the media content display method, such as adjusting the area size of the image content display area and the text content display area in the media content display interface. Fig. 9 As shown, the media content display device provided in this embodiment may include: a media content display module 901 and a size adjustment module 902, wherein
[0121] A media content display module 901, configured to display first media content in a media content display interface, wherein the media content display interface includes a first area and a second area, the first area being configured to display image content of the first media content, and the second area being configured to display at least part of text content of the first media content;
[0122] The size adjustment module 902 is used to keep displaying the media content display interface and adjust the area size of the first area and the area size of the second area in response to a preset trigger operation acting on the media content display interface.
[0123] The media content display device provided in this embodiment displays the first media content in the media content display interface through the media content display module, wherein the media content display interface includes a first area and a second area, the first area is used to display the image content of the first media content, and the second area is used to display the text content of the first media content; the size adjustment module responds to the preset trigger operation acting in the media content display interface, keeps displaying this media content display interface, and adjusts the area size of the first area in the media content display interface and the area size of the second area in the media content display interface. This embodiment uses the above technical solution to support the adjustment of the area size of the image content display area of the media content and the area size of the text content display area of the media content in the media content display interface, without the need for interface switching, and will not cause occlusion between the image content and the text content, which can enrich the display method of the media content, simplify the operations required to adjust the area size of the image content display area and the area size of the text content display area, and improve the display effect of the image content and the text content of the media content.
[0124] Optionally, the size adjustment module 902 includes: a first size adjustment unit, used to respond to a first trigger operation acting within the media content display interface, keep displaying the media content display interface, reduce the area size of the first area, and increase the area size of the second area; and / or, a second size adjustment unit, used to respond to a second trigger operation acting within the media content display interface, keep displaying the media content display interface, increase the area size of the first area, and reduce the area size of the second area.
[0125] Optionally, the enlarged region size of the second region is a preset region size; or, the enlarged region size of the second region is associated with the text content and / or a preset aspect ratio of the first region.
[0126] Optionally, the enlarged area size of the second area is associated with the text content and / or a preset aspect ratio of the first area, including: after the area size of the second area is enlarged, the text content is fully displayed in the second area; and / or after the area size of the second area is enlarged, the first area has a preset aspect ratio.
[0127] Optionally, the first size adjustment unit can be used to: if the first area size is less than or equal to the second area size, increase the area size of the second area to the first area size, and reduce the area size of the first area based on the first area size; if the first area size is larger than the second area size, increase the area size of the second area to the second area size, and reduce the first area to have a preset aspect ratio, wherein the first area size is the minimum area size of the second area when the text content is fully displayed, and the second area size is the area size of the second area when the first area has the preset aspect ratio.
[0128] Optionally, the first size adjustment unit can be used to: when only part of the text content of the first media content is displayed in the second area, reduce the area size of the first area and increase the area size of the second area; or, when the number of text content lines in the text content that are not displayed in the second area is greater than a preset number of lines, reduce the area size of the first area and increase the area size of the second area.
[0129] Furthermore, the media content display device may also include: a first control display module, which is used to keep displaying the first preset control displayed in the second area in response to a first trigger operation acting in the media content display interface, and, when the current condition meets the display condition of the second preset control, add the second preset control to the second area for display; and / or, a second control display module, which is used to keep displaying the first preset control and the second preset control in the second area in response to a second trigger operation acting in the media content display interface.
[0130] Furthermore, the media content display device may also include: a third control display module, which is used to cancel the display of the first preset control displayed in the second area in response to a first trigger operation acting in the media content display interface, and, when the current condition meets the display condition of the second preset control, keep the second preset control not displayed in the second area; and / or, a fourth control display module, which is used to re-display the first preset control in the second area in response to a second trigger operation acting in the media content display interface, and add the display of the second preset control in the second area.
[0131] Optionally, the first trigger operation includes a first click trigger operation, which acts on the text content or the expansion control of the text content; and / or the second trigger operation includes a second click trigger operation and / or a preset sliding trigger operation, which acts on the text content, the collapse control of the text content or the image content, and the preset sliding trigger operation acts within the first area and / or the second area.
[0132] Optionally, the size adjustment module 902 can be specifically used to: keep the area width of the first area and the area width of the second area unchanged, and adjust the area height of the first area and the area height of the second area; and / or keep the area height of the first area and the area height of the second area unchanged, and adjust the area width of the first area and the area width of the second area.
[0133] Furthermore, the media content display device may also include: an image content adjustment module, which is used to respond to the adjustment of the area size of the first area and enlarge or reduce the image content displayed in the first area according to the adjusted area size of the first area; and / or, a text content adjustment module, which is used to respond to the adjustment of the area size of the second area and increase or decrease the text content displayed in the second area according to the adjusted area size of the second area.
[0134] Furthermore, the media content display device may also include: a movement control module, used to control the target content of the first media content to move in response to a target sliding operation acting on the media content display interface, the target content including the image content and at least part of the text content; a media content switching module, used to control the target content to move out of the media content display interface in response to the movement distance of the target content being greater than or equal to a preset distance at the end of the target sliding operation, and display the second media content in the media content display interface.
[0135] Optionally, the target sliding operation includes a first sliding operation acting within the second area and / or a second sliding operation acting outside the second area, and the first sliding operation and the second sliding operation have different mapping relationships with movement parameters of the target content, and the movement parameters include at least one of moving distance, moving speed and moving acceleration.
[0136] Optionally, when the first sliding operation and the second sliding operation have the same sliding parameter, the movement parameter corresponding to the first sliding operation is smaller than the movement parameter corresponding to the second sliding operation, wherein the sliding parameter includes a sliding speed and a sliding distance.
[0137] Furthermore, the media content display device may also include: a picture content switching module, which is used for including at least two picture contents in the image content, and after adjusting the area size of the first area and the area size of the second area, responding to the picture content switching operation acting on the media content display interface, switching the picture content displayed in the first area.
[0138] Furthermore, the media content display device may also include: a text content switching module, which is used to switch the text content displayed in the second area in response to a text content switching operation performed in the second area when only part of the text content of the first media content is displayed in the second area.
[0139] The media content display device provided in the embodiment of the present disclosure can execute the media content display method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of executing the media content display method. For technical details not fully described in this embodiment, please refer to the media content display method provided in any embodiment of the present disclosure.
[0140] 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.10 The 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.
[0141] like Fig.10As 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.
[0142] 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.
[0143] 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.
[0144] 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.
[0145] 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.
[0146] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0147] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: displays first media content in a media content display interface, wherein the media content display interface includes a first area and a second area, the first area is used to display image content of the first media content, and the second area is used to display at least part of the text content of the first media content; in response to a preset trigger operation acting on the media content display interface, keeps displaying the media content display interface, and adjusts the area size of the first area and the area size of the second area.
[0148] 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).
[0149] 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.
[0150] 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.
[0151] 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.
[0152] 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.
[0153] According to one or more embodiments of the present disclosure, Example 1 provides a method for displaying media content, including:
[0154] Displaying first media content in a media content display interface, wherein the media content display interface includes a first area and a second area, the first area is used to display image content of the first media content, and the second area is used to display at least part of text content of the first media content;
[0155] In response to a preset trigger operation acting on the media content display interface, the media content display interface is kept displayed, and the area size of the first area and the area size of the second area are adjusted.
[0156] According to one or more embodiments of the present disclosure, Example 2 is the method according to Example 1, wherein in response to a preset trigger operation acting in the media content display interface, the media content display interface is kept displayed, and the area size of the first area and the area size of the second area are adjusted, including:
[0157] In response to a first trigger operation acting in the media content display interface, keep displaying the media content display interface, reduce the area size of the first area, and increase the area size of the second area; and / or
[0158] In response to a second trigger operation acting on the media content display interface, the media content display interface is kept displayed, the area size of the first area is increased, and the area size of the second area is reduced.
[0159] According to one or more embodiments of the present disclosure, Example 3 is the method according to Example 2, wherein the size of the second area after the area is enlarged is a preset area size; or
[0160] The enlarged area size of the second area is associated with the text content and / or a preset aspect ratio of the first area.
[0161] According to one or more embodiments of the present disclosure, Example 4 is the method according to Example 3, wherein the enlarged area size of the second area is associated with the preset aspect ratio of the text content and / or the first area, including:
[0162] After the area size of the second area is increased, the text content is fully displayed in the second area; and / or
[0163] After the area size of the second area is increased, the first area has a preset aspect ratio.
[0164] According to one or more embodiments of the present disclosure, Example 5 is the method according to Example 4, wherein reducing the area size of the first area and increasing the area size of the second area includes:
[0165] If the first region size is smaller than or equal to the second region size, increasing the region size of the second region to the first region size, and reducing the region size of the first region according to the first region size;
[0166] If the first region size is larger than the second region size, the region size of the second region is increased to the second region size, and the first region is reduced to have a preset aspect ratio,
[0167] The first area size is the minimum area size of the second area when the text content is fully displayed, and the second area size is the area size of the second area when the first area has the preset aspect ratio.
[0168] According to one or more embodiments of the present disclosure, Example 6, according to the method of Example 2, reducing the area size of the first area and increasing the area size of the second area, includes:
[0169] If only a portion of the text content of the first media content is displayed in the second area, reducing the area size of the first area and increasing the area size of the second area; or
[0170] If the number of text content lines in the text content that are not displayed in the second area is greater than a preset number of lines, the area size of the first area is reduced, and the area size of the second area is increased.
[0171] According to one or more embodiments of the present disclosure, Example 7 is the method according to Example 2, further comprising:
[0172] In response to a first trigger operation acting in the media content display interface, maintaining display of the first preset control displayed in the second area, and, when a current condition satisfies a display condition of the second preset control, additionally displaying the second preset control in the second area; and / or
[0173] In response to a second trigger operation acting within the media content display interface, the first preset control and the second preset control are kept displayed in the second area.
[0174] According to one or more embodiments of the present disclosure, Example 8 is the method according to Example 2, further comprising:
[0175] In response to a first trigger operation acting in the media content display interface, canceling the display of the first preset control displayed in the second area, and when the current condition meets the display condition of the second preset control, keeping the second preset control not displayed in the second area; and / or
[0176] In response to a second trigger operation acting in the media content display interface, the first preset control is re-displayed in the second area, and the second preset control is additionally displayed in the second area.
[0177] According to one or more embodiments of the present disclosure, Example 9 is based on the method described in Example 2, wherein the first trigger operation includes a first click trigger operation, and the first click trigger operation acts on the text content or an expansion control of the text content; and / or
[0178] The second trigger operation includes a second click trigger operation and / or a preset sliding trigger operation, the second click trigger operation acts on the text content, the folding control of the text content or the image content, and the preset sliding trigger operation acts within the first area and / or the second area.
[0179] According to one or more embodiments of the present disclosure, Example 10 is a method according to any one of Examples 1 to 9, wherein adjusting the area size of the first area and the area size of the second area includes:
[0180] Keeping the area width of the first area and the area width of the second area unchanged, and adjusting the area height of the first area and the area height of the second area; and / or
[0181] The region height of the first region and the region height of the second region are kept unchanged, and the region width of the first region and the region width of the second region are adjusted.
[0182] According to one or more embodiments of the present disclosure, Example 11 is a method according to any one of Examples 1-9, further comprising:
[0183] In response to the adjustment of the area size of the first area, enlarging or reducing the image content displayed in the first area according to the adjusted area size of the first area; and / or
[0184] In response to the adjustment of the area size of the second area, the text content displayed in the second area is increased or decreased according to the adjusted area size of the second area.
[0185] According to one or more embodiments of the present disclosure, Example 12 is a method according to any one of Examples 1-9, further comprising:
[0186] In response to a target sliding operation in the media content display interface, controlling target content of the first media content to move, the target content including the image content and at least part of the text content;
[0187] In response to the movement distance of the target content being greater than or equal to a preset distance when the target sliding operation is completed, the target content is controlled to move out of the media content display interface, and a second media content is displayed in the media content display interface.
[0188] According to one or more embodiments of the present disclosure, Example 13 is based on the method described in Example 12, wherein the target sliding operation includes a first sliding operation acting within the second area and / or a second sliding operation acting outside the second area, and the first sliding operation and the second sliding operation have different mapping relationships with movement parameters of the target content, and the movement parameters include at least one of moving distance, moving speed and moving acceleration.
[0189] According to one or more embodiments of the present disclosure, Example 14 is based on the method described in Example 13, when the first sliding operation and the second sliding operation have the same sliding parameters, the movement parameter corresponding to the first sliding operation is smaller than the movement parameter corresponding to the second sliding operation, wherein the sliding parameters include sliding speed and sliding distance.
[0190] According to one or more embodiments of the present disclosure, Example 15 is a method according to any one of Examples 1-9, wherein the image content includes at least two picture contents, and after adjusting the area size of the first area and the area size of the second area, further comprising:
[0191] In response to a picture content switching operation performed in the media content display interface, the picture content displayed in the first area is switched.
[0192] According to one or more embodiments of the present disclosure, Example 16 is a method according to any one of Examples 1-9, wherein for a case where only part of the text content of the first media content is displayed in the second area, the method further includes:
[0193] In response to a text content switching operation performed in the second area, the text content displayed in the second area is switched.
[0194] According to one or more embodiments of the present disclosure, Example 17 provides a media content presentation device, including:
[0195] A media content display module, configured to display first media content in a media content display interface, wherein the media content display interface includes a first area and a second area, the first area is configured to display image content of the first media content, and the second area is configured to display at least part of text content of the first media content;
[0196] The size adjustment module is used to keep displaying the media content display interface and adjust the area size of the first area and the area size of the second area in response to a preset trigger operation acting in the media content display interface.
[0197] According to one or more embodiments of the present disclosure, Example 18 provides an electronic device, including:
[0198] one or more processors;
[0199] a memory for storing one or more programs,
[0200] When the one or more programs are executed by the one or more processors, the one or more processors implement the media content display method as described in any one of Examples 1-16.
[0201] According to one or more embodiments of the present disclosure, Example 19 provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for presenting media content as described in any one of Examples 1-16.
[0202] According to one or more embodiments of the present disclosure, Example 20 provides a computer program product. When the computer program product is executed by a computer, the computer implements the method for displaying media content as described in any one of Examples 1-16.
[0203] 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.
[0204] 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.
[0205] 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 media content, It is characterized in that include: Displaying first media content in a media content display interface, wherein the media content display interface includes a first area and a second area, the first area is used to display image content of the first media content, and the second area is used to display at least part of text content of the first media content; In response to a preset trigger operation acting on the media content display interface, the media content display interface is kept displayed, and the area size of the first area and the area size of the second area are adjusted.
2. The method according to claim 1, It is characterized in that The step of maintaining the display of the media content display interface and adjusting the area size of the first area and the area size of the second area in response to a preset trigger operation in the media content display interface comprises: In response to a first trigger operation acting in the media content display interface, keep displaying the media content display interface, reduce the area size of the first area, and increase the area size of the second area; and / or In response to a second trigger operation acting on the media content display interface, the media content display interface is kept displayed, the area size of the first area is increased, and the area size of the second area is reduced.
3. The method according to claim 2, It is characterized in that The enlarged area size of the second area is a preset area size; or The enlarged area size of the second area is associated with the text content and / or a preset aspect ratio of the first area.
4. The method according to claim 3, It is characterized in that The enlarged area size of the second area is associated with the text content and / or a preset aspect ratio of the first area, including: After the area size of the second area is increased, the text content is fully displayed in the second area; and / or After the area size of the second area is increased, the first area has a preset aspect ratio.
5. The method according to claim 4, It is characterized in that The reducing the area size of the first area and increasing the area size of the second area includes: If the first region size is smaller than or equal to the second region size, increasing the region size of the second region to the first region size, and reducing the region size of the first region according to the first region size; If the first region size is larger than the second region size, the region size of the second region is increased to the second region size, and the first region is reduced to have a preset aspect ratio, The first area size is the minimum area size of the second area when the text content is fully displayed, and the second area size is the area size of the second area when the first area has the preset aspect ratio.
6. The method according to claim 2, It is characterized in that The reducing the area size of the first area and increasing the area size of the second area includes: If only a portion of the text content of the first media content is displayed in the second area, reducing the area size of the first area and increasing the area size of the second area; or If the number of text content lines in the text content that are not displayed in the second area is greater than a preset number of lines, the area size of the first area is reduced, and the area size of the second area is increased.
7. The method according to claim 2, It is characterized in that Also includes: In response to a first trigger operation acting in the media content display interface, maintaining display of the first preset control displayed in the second area, and, when a current condition satisfies a display condition of the second preset control, additionally displaying the second preset control in the second area; and / or In response to a second trigger operation acting within the media content display interface, the first preset control and the second preset control are kept displayed in the second area.
8. The method according to claim 2, It is characterized in that Also includes: In response to a first trigger operation acting in the media content display interface, canceling the display of the first preset control displayed in the second area, and when the current condition meets the display condition of the second preset control, keeping the second preset control not displayed in the second area; and / or In response to a second trigger operation acting in the media content display interface, the first preset control is re-displayed in the second area, and the second preset control is additionally displayed in the second area.
9. The method according to claim 2, It is characterized in that The first trigger operation includes a first click trigger operation, and the first click trigger operation acts on the text content or an expansion control of the text content; and / or The second trigger operation includes a second click trigger operation and / or a preset sliding trigger operation, the second click trigger operation acts on the text content, the folding control of the text content or the image content, and the preset sliding trigger operation acts within the first area and / or the second area.
10. The method according to any one of claims 1 to 9, It is characterized in that The adjusting the area size of the first area and the area size of the second area includes: Keeping the area width of the first area and the area width of the second area unchanged, and adjusting the area height of the first area and the area height of the second area; and / or The region height of the first region and the region height of the second region are kept unchanged, and the region width of the first region and the region width of the second region are adjusted.
11. The method according to any one of claims 1 to 9, It is characterized in that Also includes: In response to the adjustment of the area size of the first area, enlarging or reducing the image content displayed in the first area according to the adjusted area size of the first area; and / or In response to the adjustment of the area size of the second area, the text content displayed in the second area is increased or decreased according to the adjusted area size of the second area.
12. The method according to any one of claims 1 to 9, It is characterized in that Also includes: In response to a target sliding operation in the media content display interface, controlling target content of the first media content to move, the target content including the image content and at least part of the text content; In response to the movement distance of the target content being greater than or equal to a preset distance when the target sliding operation is completed, the target content is controlled to move out of the media content display interface, and a second media content is displayed in the media content display interface.
13. The method according to claim 12, It is characterized in that The target sliding operation includes a first sliding operation acting within the second area and / or a second sliding operation acting outside the second area. The first sliding operation and the second sliding operation have different mapping relationships with movement parameters of the target content. The movement parameters include at least one of moving distance, moving speed and moving acceleration.
14. The method according to claim 13, It is characterized in that When the first sliding operation and the second sliding operation have the same sliding parameter, the movement parameter corresponding to the first sliding operation is smaller than the movement parameter corresponding to the second sliding operation, wherein the sliding parameter includes a sliding speed and a sliding distance.
15. The method according to any one of claims 1 to 9, It is characterized in that The image content includes at least two picture contents, and after adjusting the area size of the first area and the area size of the second area, the method further includes: In response to a picture content switching operation performed in the media content display interface, the picture content displayed in the first area is switched.
16. The method according to any one of claims 1 to 9, It is characterized in that In the case where only a portion of text content of the first media content is displayed in the second area, the method further includes: In response to a text content switching operation performed in the second area, the text content displayed in the second area is switched.
17. A device for displaying media content, It is characterized in that include: A media content display module, configured to display first media content in a media content display interface, wherein the media content display interface includes a first area and a second area, the first area is configured to display image content of the first media content, and the second area is configured to display at least part of text content of the first media content; The size adjustment module is used to keep displaying the media content display interface and adjust the area size of the first area and the area size of the second area in response to a preset trigger operation acting in the media content display interface.
18. 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 media content presentation method according to any one of claims 1 to 16.
19. 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 media content display method according to any one of claims 1 to 16 when executed.
20. 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 presenting media content according to any one of claims 1 to 16.
Citation Information
Patent Citations
Text display method and device, display equipment, electronic equipment and storage medium
CN116737044A
Human-computer interaction method and device based on user interface, equipment and storage medium
CN117270717A
Content display method and device, computer equipment and computer readable storage medium
CN117908716A
Image acquisition method and apparatus for information input page, and device and medium
WO2023237014A1
Cited By
Picture processing method and device, electronic equipment, storage medium and program product
CN120447818A
Media content display method and apparatus, electronic device, storage medium, and program product
WO2026002143A1
