Recommended video display method and device, equipment and medium
By dynamically adjusting the resolution and position of the recommended video display area, using video clips of different resolutions, the problems of high costs and limited display forms in the existing technology are solved, and low-cost and diversified recommended video display is achieved, which is suitable for Real-time and non-full-screen scenes.
Patent Information
- Application Number
- CN202411283902.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-09-13
AI Technical Summary
The existing recommended video display methods require users to provide high-quality videos to present diverse display forms, resulting in high production costs and inability to adapt to real-time display and non-full-screen display scenarios.
By obtaining the recommended video sent by the server and its display area configuration information, dynamically adjusting the resolution and relative position of the recommended video display area, and enriching the display form using different resolutions of at least two video clips.
It reduces the production cost of serving users, realizes dynamic display and real-time display in non-full-screen areas, adapts to displays of different resolutions, and increases the attention of viewing users.
Smart Images

Figure CN119211647A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information display technology, and in particular to a method, device, equipment and medium for displaying recommended videos. Background Art
[0002] At present, when placing recommended videos, many users are not limited to the traditional display forms of recommended videos, but have higher demands to increase the attention of viewing users, thereby improving the delivery effect of recommended videos.
[0003] In the related art, in order to present more display forms of recommended videos, it is usually necessary for the publisher to provide higher quality recommended videos. For example, the 3D broken window effect of the recommended video can be displayed by using the recommended video with naked eye 3D broken window effect provided by the publisher, or by using the recommended video with synthesized RGB channel and Alpha channel.
[0004] However, the existing recommended video display method requires the publisher to spend a lot of production costs to generate high-quality recommended videos so that the recommended videos can be presented in more display forms. Some publishers are even unable to provide high-quality recommended videos, resulting in the recommended videos can only be displayed in traditional display forms. Summary of the invention
[0005] In order to solve the above technical problems, the present disclosure provides a recommended video display method, device, equipment and medium.
[0006] In a first aspect, the present disclosure provides a method for displaying a recommended video, comprising:
[0007] In response to the display operation of the recommended video, obtaining recommendation information sent by the server, the recommendation information including the recommended video and configuration information for adjusting the display area of the recommended video; wherein the recommended video includes at least two video clips, and the resolutions of the two adjacent video clips are different;
[0008] In the process of displaying the recommended video in the recommended video display area, based on the configuration information, comparing the regional resolution of the recommended video display area with the video resolution of the recommended video to obtain a resolution comparison result;
[0009] According to the resolution comparison result, the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution, and during the adjustment of the regional resolution of the recommended video display area, the relative position of the recommended video in the recommended video display area is adjusted.
[0010] In a second aspect, the present disclosure provides a recommended video display device, the device comprising:
[0011] an acquisition module, configured to acquire, in response to a display operation on a recommended video, recommendation information sent by a server, wherein the recommendation information includes the recommended video and configuration information for adjusting a display area of the recommended video; wherein the recommended video includes at least two video clips, and resolutions of two adjacent video clips are different;
[0012] A comparison module, configured to compare the regional resolution of the recommended video display area with the video resolution of the recommended video based on the configuration information during the process of displaying the recommended video in the recommended video display area, and obtain a resolution comparison result;
[0013] The adjustment module is used to adjust the regional resolution of the recommended video display area from the first resolution to the second resolution according to the resolution comparison result, and adjust the relative position of the recommended video in the recommended video display area during the regional resolution adjustment process of the recommended video display area.
[0014] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the device comprising:
[0015] one or more processors;
[0016] a storage device for storing one or more programs,
[0017] When one or more programs are executed by one or more processors, the one or more processors implement the method provided in the first aspect.
[0018] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method provided in the first aspect is implemented.
[0019] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0020] A method, device, equipment and medium for displaying recommended videos according to an embodiment of the present disclosure obtains recommendation information sent by a server in response to a display operation of a recommended video, wherein the recommendation information includes a recommended video and configuration information for adjusting a display area of the recommended video; wherein the recommended video includes at least two video clips, and the resolutions of the two adjacent video clips are different; in the process of displaying the recommended video in the recommended video display area, based on the configuration information, the regional resolution of the recommended video display area is compared with the video resolution of the recommended video to obtain a resolution comparison result; according to the resolution comparison result, the regional resolution of the recommended video display area is adjusted from a first resolution to a second resolution, and in the process of adjusting the regional resolution of the recommended video display area, the relative position of the recommended video in the recommended video display area is adjusted. Thus, in the process of displaying the recommended video, the resolution adjustment of the recommended video display area is triggered based on the comparison result of the configuration information, the regional resolution and the video resolution, so that the delivery user only needs to provide a low-cost recommended video to dynamically adjust the resolution of the recommended video display area to the viewing user, and adjust the relative position of the recommended video in the recommended video display area accordingly, thereby enriching the display form of the recommended video and helping to increase the viewing user's attention to the recommended video. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0023] Figure 1 A flowchart of a method for displaying recommended videos provided by an embodiment of the present disclosure;
[0024] Figure 2 A schematic diagram of a page of a client application provided by an embodiment of the present disclosure;
[0025] Figure 3 A schematic diagram of another page of a client application provided by an embodiment of the present disclosure;
[0026] Figure 4 A schematic diagram of a page of another client application provided in an embodiment of the present disclosure;
[0027] Figure 5 A logic diagram of a method for displaying recommended videos provided by an embodiment of the present disclosure;
[0028] Figure 6 A schematic diagram of the structure of a recommended video display device provided in an embodiment of the present disclosure;
[0029] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0031] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0032] The display format of recommended videos in related technologies still has problems such as being unable to display recommended videos in non-full screen and being unsuitable for real-time display scenarios. For example, when using a recommended video with a naked-eye 3D broken window effect provided by a user, only part of the information in the full-screen area can be left blank, and after superposition, it is displayed to make the naked eye look like a broken window; for another example, when using a recommended video that synthesizes the RGB channel and the Alpha channel, the client needs to integrate a third-party library when displaying the recommended video, and it needs to be downloaded locally in advance before it can be played. It does not support online playback, and if it is not downloaded in advance, it cannot be displayed.
[0033] In order to solve the above technical problems, the following Figure 1 The recommended video display method provided by the embodiment of the present disclosure is described. In the embodiment of the present disclosure, the recommended video display method can be executed by a client.
[0034] Figure 1 A flow chart of a method for displaying recommended videos provided by an embodiment of the present disclosure is shown.
[0035] like Figure 1 As shown, the recommended video display method may include the following steps.
[0036] S110. In response to a display operation on a recommended video, obtain recommendation information sent by a server, where the recommendation information includes the recommended video and configuration information for adjusting a display area of the recommended video; wherein the recommended video includes at least two video clips, and resolutions of two adjacent video clips are different.
[0037] In this embodiment, when the viewing user opens the page of the client application for the first time or switches the page of the client application or slides the page of the client application, a display operation for the recommended video is sent to the client. Based on the display operation, the client directly requests the recommendation information from the server through the wired network or the wireless network.
[0038] Specifically, methods for obtaining the display operation of the recommended video include but are not limited to one or more of the following combinations: in response to a page opening operation of a client application, using the page opening operation as a display operation for the recommended video; in response to a page switching operation of the client application, using the page switching operation as a display operation for the recommended video; in response to a page sliding operation of the client application, using the page sliding operation as a display operation for the recommended video.
[0039] The client application refers to an application for displaying recommended videos. Optionally, the client application includes but is not limited to any one of a video player application, an e-book application, a browser application, and the like.
[0040] The recommended video refers to the delivery video that the delivery user has uploaded to the server in advance. For example, the recommended video is the advertising video that the delivery user wants to deliver. Specifically, the recommended video includes one or more of the following combinations: video content synthesized with three color channels, video content synthesized with a transparency channel and three color channels, and video content superimposed with blank segments.
[0041] Optionally, the recommended video may include a key object. The key object is an object that is highlighted in the recommended video. The key object is often located at the focus of the recommended video, and may also be located at other positions in the recommended video. Optionally, the key object includes but is not limited to mobile phones, computers, tablets, cars, cosmetics, jewelry, etc.
[0042] The recommended video display area refers to an area on a page of a client application where recommended videos are displayed, such as an advertisement area on a home page of a video playback application, an advertisement area on a page of a movie channel, and the like.
[0043] Optionally, the position of the recommended video display area on the target page includes but is not limited to any one of the top position, the middle position and the bottom position. The shape of the recommended video display area includes but is not limited to a rectangle, a circle, a diamond, etc.
[0044] The configuration information refers to point information for adjusting the resolution of the recommended information display area.
[0045] Specifically, before displaying the recommended video, the server can detect the resolutions of different video frames from the recommended video, and divide the video frames with the same resolution into one video segment, so that the recommended video is divided into at least two video segments, and then generate configuration information for adjusting the display area of the recommended video according to the different resolutions of the two adjacent video segments.
[0046] The resolution of the video clip is determined according to the width and height pixels of the video clip.
[0047] In one case, the configuration information includes a region adjustment time point, which can be understood as a time point at which the recommended video display region is adjusted.
[0048] In another case, the configuration information includes the region adjustment time point and the video resolution of the recommended video at the region adjustment time point. The video resolution of the region adjustment time point can be understood as the resolution of the video clip of the recommended video at the region adjustment time point.
[0049] Optionally, the configuration information includes at least one group, and when the configuration information includes at least two groups, the time adjustment ranges included in each two groups of configuration information do not overlap. In this way, for any two groups of point information, the time will not overlap, so that the client can adjust the resolution of the recommended video display area in an orderly manner based on the configuration information.
[0050] S120. In the process of displaying the recommended video in the recommended video display area, based on the configuration information, the regional resolution of the recommended video display area is compared with the video resolution of the recommended video to obtain a resolution comparison result.
[0051] In this embodiment, after the client obtains the recommendation information, the recommended video in the recommended information is displayed in the recommended video display area. During the process of displaying the recommended video on the client, if the configuration information is identified from the recommendation information, the regional resolution of the recommended video display area and the video resolution of the recommended video are determined based on the configuration information, and then the regional resolution of the recommended video display area is compared with the video resolution of the recommended video to obtain a resolution comparison result.
[0052] The regional resolution of the recommended video display area and the video resolution of the recommended video refer to two resolutions at the same playback time. For example, when the recommended video is played to the regional adjustment time point, the regional resolution of the recommended video display area refers to the regional resolution of the recommended video display area at the regional adjustment time point, and the video resolution of the recommended video refers to the video resolution of the recommended video at the regional adjustment time point.
[0053] In this way, the client continuously compares the regional resolution with the video resolution based on the configuration information to continuously update the resolution comparison result.
[0054] S130. According to the resolution comparison result, adjust the regional resolution of the recommended video display area from the first resolution to the second resolution, and in the process of adjusting the regional resolution of the recommended video display area, adjust the relative position of the recommended video in the recommended video display area.
[0055] In this embodiment, the client triggers resolution adjustment of the recommended video display area based on the configuration information, the comparison result of the regional resolution and the video resolution, and specifically adjusts the regional resolution of the recommended video display area from the first resolution to the second resolution.
[0056] Specifically, based on the resolution comparison result, the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution. The specific implementation method includes but is not limited to the following method: if the regional resolution of the recommended video display area is adjusted in the direction to be adjusted, based on the comparison result, the recommended video display area is kept fixed at one end of the direction to be adjusted, and the recommended video display area is moved from the first position to the second position at the other end of the direction to be adjusted, so that the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution.
[0057] The direction to be adjusted is determined by the client based on the position of the recommended video display area in the target area. For example, if the recommended video display area is at the top of the target area, the direction to be adjusted is a downward adjustment direction; for another example, if the recommended video display area is at the middle of the target area, the direction to be adjusted includes an upward adjustment direction and a downward adjustment direction; for another example, if the recommended video display area is at the bottom of the target area, the direction to be adjusted includes an upward adjustment direction.
[0058] The recommended video display area at one end of the direction to be adjusted refers to a frame that does not move, and the recommended video display area at the other end of the direction to be adjusted refers to a frame that moves. Specifically, the target area is the area on the client application page other than the search area and the menu area, and the target area includes the recommended video display area and the display control.
[0059] For example, see Figure 2In the page schematic diagram of the client application shown, the recommended video display area 100 is displaying the recommended video, the recommended video display area 100 is at the top of the target area 200, the direction to be adjusted is the downward adjustment direction, one end of the recommended video display area in the direction to be adjusted is the upper frame 110 of the recommended video display area, and the other end of the recommended video display area in the direction to be adjusted is the lower frame 120 of the recommended video display area. Then, the electronic device keeps the upper frame 110 of the recommended video display area fixed, and moves the lower frame 120 of the recommended video display area from the first position to the second position, so that the regional resolution of the recommended video display area 100 is adjusted from the first resolution to the second resolution.
[0060] The first position and the second position are respectively the position of the recommended video display area before and after the other end of the adjustment direction is moved. When the recommended video display area is at the first position at the other end of the adjustment direction, the regional resolution of the recommended video display area is the first resolution; when the recommended video display area is at the second position at the other end of the adjustment direction, the regional resolution of the recommended video display area is the second resolution.
[0061] In order to make the recommended video fit the recommended video display area with adjusted regional resolution, during the process of adjusting the regional resolution of the recommended video display area, the client also adjusts the relative position of the recommended video in the recommended video display area.
[0062] The relative position may be determined based on the focus of the recommended video and the center point of the recommended video display area.
[0063] In some embodiments, during the process of adjusting the regional resolution of the recommended video display area, the relative position of the recommended video in the recommended video display area is adjusted, including: as the regional resolution of the recommended video display area is adjusted, the focus of the recommended video is moved to the center point of the recommended video display area, so that the relative position of the recommended video in the recommended video display area is adjusted.
[0064] Specifically, as the regional resolution of the recommended video display area is adjusted, the client determines the focus of the recommended video and determines the center point based on the four vertices of the recommended video display area. Then, if the client detects that the focus of the recommended video is not aligned with the center point of the recommended video display area, the focus of the recommended video is moved to the center point of the recommended video display area, so that the focus of the recommended video moves to the center point of the recommended video display area and remains aligned, thereby changing the relative position of the recommended video in the recommended video display area.
[0065] In other embodiments, during the process of adjusting the regional resolution of the recommended video display area, the relative position of the recommended video in the recommended video display area is adjusted, including: determining the target number of pixels between the focus of the recommended video and the center point of the recommended video display area as the regional resolution of the recommended video display area is adjusted; determining a target scaling factor corresponding to the target number of pixels from scaling factors corresponding to different numbers of pixels; and scaling the recommended video according to the target scaling factor to adjust the relative position of the recommended video in the recommended video display area.
[0066] The zoom factor refers to the ratio of enlarging or reducing the recommended video.
[0067] Specifically, as the regional resolution of the recommended video display area is adjusted, the client determines the focus of the recommended video and determines the center point based on the four vertices of the recommended video display area. Then, the client calculates the target number of pixels between the focus of the recommended video and the center point of the recommended video display area. Since the client has pre-configured corresponding scaling factors for different numbers of pixels, the client can determine the target scaling factor corresponding to the target number of pixels from the scaling factors corresponding to different numbers of pixels, and then scale the recommended video based on the target scaling factor, thereby changing the relative position of the recommended video in the recommended video display area.
[0068] Through the above method, the recommended video can be dynamically displayed in the non-full screen area, and there is no need to download the recommended video to the client locally, which is suitable for the scene of real-time display of the recommended video. In addition, during the resolution adjustment process of the recommended video display area, the relative position of the recommended video in the recommended video display area is adjusted accordingly, so that the recommended video is adapted to the recommended video display area with adjusted regional resolution, so that the recommended video display area focuses on displaying the recommended video.
[0069] A method for displaying a recommended video according to an embodiment of the present disclosure, in response to a display operation of a recommended video, obtains recommendation information sent by a server, wherein the recommendation information includes a recommended video and configuration information for adjusting a display area of the recommended video; wherein the recommended video includes at least two video clips, and the resolutions of the two adjacent video clips are different; in the process of displaying the recommended video in the recommended video display area, based on the configuration information, the regional resolution of the recommended video display area is compared with the video resolution of the recommended video to obtain a resolution comparison result; according to the resolution comparison result, the regional resolution of the recommended video display area is adjusted from a first resolution to a second resolution, and in the process of adjusting the regional resolution of the recommended video display area, the relative position of the recommended video in the recommended video display area is adjusted. Thus, in the process of displaying the recommended video, the resolution adjustment of the recommended video display area is triggered based on the comparison result of the configuration information, the regional resolution and the video resolution, so that the delivery user only needs to provide a low-cost recommended video to dynamically adjust the resolution of the recommended video display area to the viewing user, and adjust the relative position of the recommended video in the recommended video display area accordingly, thereby enriching the display form of the recommended video and facilitating the viewing user's attention to the recommended video.
[0070] In this embodiment, the method further includes: in the process of adjusting the regional resolution of the recommended video display area, adjusting the display position of the display control in the target area where the recommended video display area is located according to the adjustment size of the regional resolution of the recommended video display area.
[0071] The target area is the area on the page of the client application except the search area and the menu area, and the target area includes the recommended video display area and the display control.
[0072] Specifically, during the process of adjusting the regional resolution of the recommended video display area, the client determines the change in the regional resolution of the recommended video display area. If the change is a wide pixel change, the display position of the display control in the target area is moved based on the wide pixel change rate. If the change is a high pixel change, the display position of the display control in the target area is moved based on the high pixel change rate.
[0073] For example, see Figure 3 and Figure 4 , the client application page is composed of Figure 3 Changes to Figure 4 In the process of , the lower frame 120 of the recommended video display area 100 moves downward, the regional resolution of the recommended video display area becomes larger, specifically, the high pixel of the recommended video display area 100 becomes larger, then the client will Figure 3The display position of the display control 300 in the target area 200 is adjusted to Figure 4 The display position of the control 300 in the target area 200 is shown in FIG.
[0074] In this way, in the process of adjusting the regional resolution of the recommended video display area and the relative position of the recommended video in the recommended video display area, the client also adaptively adjusts the display position of the display control in the target area where the recommended video display area is located, enriching the display diversity of the client application and helping to improve the viewing experience of users.
[0075] In another embodiment of the present disclosure, steps S120 and S130 are refined.
[0076] In some embodiments, the configuration information includes a regional adjustment time point; accordingly, "based on the configuration information, comparing the regional resolution of the recommended video display area with the video resolution of the recommended video to obtain a resolution comparison result" in S120 includes: determining the video resolution of the recommended video at the regional adjustment time point based on the wide pixels and high pixels of the recommended video at the regional adjustment time point; comparing the regional resolution at the regional adjustment time point with the video resolution at the regional adjustment time point to obtain a resolution comparison result.
[0077] The video resolution of the recommended video at the region adjustment time point is the product of the width pixel and the height pixel of the recommended video at the region adjustment time point.
[0078] For example, the area adjustment time point is 0S, the width pixel of the recommended video at 0S is 6, and the height pixel is 1, then the video resolution of the recommended video at 0S is 6*1.
[0079] The regional resolution at the regional adjustment time point is the product of the width pixel and the height pixel of the recommended video display area at the regional adjustment time point.
[0080] For example, the area adjustment time point is 0S, the width pixel of the recommended video display area at 0S is 16, and the height pixel is 9, then the video resolution of the recommended video at 0S is 16*9.
[0081] In other embodiments, the configuration information includes the regional adjustment time point and the video resolution of the recommended video at the regional adjustment time point; accordingly, "based on the configuration information, comparing the regional resolution of the recommended video display area with the video resolution of the recommended video to obtain a resolution comparison result" in S120 includes: comparing the regional resolution at the regional adjustment time point with the video resolution at the regional adjustment time point to obtain a resolution comparison result.
[0082] In the above manner, when the configuration information is configured with different information, the client uses different methods to compare the regional resolution at the regional adjustment time point with the video resolution at the regional adjustment time point to accurately determine the resolution comparison result.
[0083] In this embodiment, the client may linearly adjust the regional resolution from the first resolution to the second resolution based on the resolution comparison result, so that the client evenly controls the change of the regional resolution.
[0084] In some embodiments, "according to the resolution comparison result, the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution" in S130, including: if the regional resolution at the regional adjustment time point is not equal to the video resolution at the regional adjustment time point, the regional resolution at the regional adjustment time point is adjusted from the first resolution to the video resolution at the regional adjustment time point; wherein, the video resolution at the regional adjustment time point is the second resolution.
[0085] Specifically, if the client determines that the regional resolution at the regional adjustment time point is not equal to the video resolution at the regional adjustment time point, the client linearly adjusts the recommended video display area from the first resolution to the video resolution at the regional adjustment time point.
[0086] Furthermore, when the client adjusts the regional resolution of the recommended video display area, the regional adjustment duration can also be determined, and depending on the regional adjustment duration, the regional resolution at the regional adjustment time point is adjusted from the first resolution to the video resolution at the regional adjustment time point. Optionally, the regional adjustment duration is the difference between adjacent regional adjustment time points, or the regional adjustment duration can be written into a configuration file by the server, and it is necessary to ensure that the time adjustment range of the regional resolution does not overlap.
[0087] Exemplarily, the regional adjustment time point is 0S, the regional resolution at 0S is 16*9, and the video resolution at 0S is 6*1, then the client determines that the regional resolution 16*9 at 0S is not equal to the video resolution 6*1, and then, the client starts to adjust the regional resolution from 0S, so that the recommended video display area is linearly adjusted from the first resolution 16*9 to the video resolution 6*1.
[0088] In other embodiments, "according to the resolution comparison result, the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution" in S130, including: if the regional resolution at the regional adjustment time point is equal to the video resolution at the regional adjustment time point, after adjusting the regional resolution at the regional adjustment time point from the first resolution to the preset standard resolution, continue to adjust from the preset standard resolution to the video resolution at the regional adjustment time point; wherein, the video resolution at the regional adjustment time point is the second resolution.
[0089] Specifically, if the client determines that the regional resolution at the regional adjustment time point is equal to the video resolution at the regional adjustment time point, the client adjusts the regional resolution starting from the regional adjustment time point, so that the recommended video display area is linearly adjusted from the first resolution to the preset standard resolution, and then continues to be adjusted from the preset standard resolution to the video resolution at the regional adjustment time point.
[0090] Furthermore, when the client adjusts the regional resolution of the recommended video display area, the regional adjustment duration can also be determined, and depending on the regional adjustment duration, the regional resolution at the regional adjustment time point is adjusted from the first resolution to the preset standard resolution, and then the video resolution at the regional adjustment time point is continuously adjusted from the preset standard resolution. Optionally, the regional adjustment duration is the difference between adjacent regional adjustment time points, or the regional adjustment duration can be written into a configuration file by the server, and it is necessary to ensure that the time adjustment range of the regional resolution does not overlap.
[0091] Exemplarily, the regional adjustment time point is 3S, the regional resolution at 3S is 6*1, the video resolution at 3S is 6*1, and the preset standard resolution is 16*9. The client determines that the regional resolution 6*1 at 3S is equal to the video resolution 6*1, then the client starts to adjust the regional resolution from 3S, so that the recommended video display area is linearly adjusted from the first resolution 6*1 to the preset standard resolution 16*9, and continues to linearly adjust from the preset standard resolution 16*9 to the video resolution 6*1 at 3S.
[0092] Through the above method, the client adjusts the regional resolution in an adaptive manner based on the different comparison results between the regional resolution of the recommended video display area and the video resolution of the recommended video, so that during the recommended video display process, the regional resolution of the recommended video display area can be flexibly and orderly adjusted, enriching the display form of the recommended video.
[0093] In yet another embodiment of the present disclosure, the overall interaction method between the client and the server is explained to explain the overall process of the recommended video display method.
[0094] Figure 5 A logical schematic diagram of a recommended video display method provided by an embodiment of the present disclosure is shown.
[0095] like Figure 5 As shown, the recommended video display method may include the following steps:
[0096] S1. Get recommended videos.
[0097] In this embodiment, the server obtains the delivery information uploaded by the user periodically or in real time through the first service module as a recommended video.
[0098] Optionally, the first service module can be understood as a video material system.
[0099] S2. Generate configuration information according to the recommended video, and combine the recommended video and the configuration information into recommendation information.
[0100] In this embodiment, the server detects the resolutions of different video frames from the recommended video through the first service module, and divides the video frames with the same resolution into one video segment, so that the recommended video is divided into at least two video segments, and then generates configuration information for adjusting the display area of the recommended video according to the different resolutions of the two adjacent video segments, and then based on the timestamp, the recommended video and the configuration information are combined into recommendation information.
[0101] The recommendation information includes a recommended video and configuration information for adjusting a display area of the recommended video. The recommended video includes at least two video clips, and resolutions of two adjacent video clips are different.
[0102] S3. Send recommendation information.
[0103] In this embodiment, the first service module of the server sends the recommendation information to the second service module of the server, so that the second service module of the server temporarily stores the recommendation information, so as to recall the recommendation information to the client later when the client displays the recommended video.
[0104] Optionally, the second service module can be understood as a video server.
[0105] S4. In response to the display operation of the recommended video, a display request is sent.
[0106] S5. Send recommendation information.
[0107] S6. Display the recommended video in the recommended video display area.
[0108] S7. Adjust the regional resolution of the recommended video display area, and adjust the relative position of the recommended video in the recommended video display area.
[0109] In this embodiment, when the client displays the recommended video in the recommended video display area, the client compares the regional resolution of the recommended video display area with the video resolution of the recommended video based on the configuration information, obtains the resolution comparison result, and adjusts the regional resolution of the recommended video display area from the first resolution to the second resolution according to the resolution comparison result. At the same time, during the process of adjusting the regional resolution of the recommended video display area, the relative position of the recommended video in the recommended video display area is adjusted.
[0110] Thus, the regional resolution of the recommended video display area can be flexibly adjusted, and the relative position of the recommended video in the recommended video display area can be adjusted accordingly. Therefore, the display form of the recommended video is enriched, which is conducive to increasing the viewing users' attention to the recommended video.
[0111] Figure 6 A structural schematic diagram of a recommended video display device provided by an embodiment of the present disclosure is shown.
[0112] like Figure 6 As shown, the recommended video display device 600 may include:
[0113] The acquisition module 610 is used to obtain the recommendation information sent by the server in response to the display operation of the recommended video, wherein the recommendation information includes the recommended video and the configuration information for adjusting the display area of the recommended video; wherein the recommended video includes at least two video clips, and the resolutions of the two adjacent video clips are different;
[0114] A comparison module 620 is used to compare the regional resolution of the recommended video display area with the video resolution of the recommended video based on the configuration information during the process of displaying the recommended video in the recommended video display area, and obtain a resolution comparison result;
[0115] The adjustment module 630 is used to adjust the regional resolution of the recommended video display area from the first resolution to the second resolution according to the resolution comparison result, and adjust the relative position of the recommended video in the recommended video display area during the regional resolution adjustment process of the recommended video display area.
[0116] A recommended video display device of an embodiment of the present disclosure obtains recommendation information sent by a server in response to a display operation of a recommended video, wherein the recommended information includes a recommended video and configuration information for adjusting a display area of the recommended video; wherein the recommended video includes at least two video clips, and the resolutions of the two adjacent video clips are different; in the process of displaying the recommended video in the recommended video display area, based on the configuration information, the regional resolution of the recommended video display area is compared with the video resolution of the recommended video to obtain a resolution comparison result; according to the resolution comparison result, the regional resolution of the recommended video display area is adjusted from a first resolution to a second resolution, and in the process of adjusting the regional resolution of the recommended video display area, the relative position of the recommended video in the recommended video display area is adjusted. Thus, in the process of displaying the recommended video, the resolution adjustment of the recommended video display area is triggered based on the comparison result of the configuration information, the regional resolution and the video resolution, so that the delivery user only needs to provide a low-cost recommended video to dynamically adjust the resolution of the recommended video display area to the viewing user, and adjust the relative position of the recommended video in the recommended video display area accordingly, thereby enriching the display form of the recommended video and helping to increase the viewing user's attention to the recommended video.
[0117] In some embodiments of the present disclosure, the configuration information includes a region adjustment time point;
[0118] Accordingly, the comparison module 620 includes:
[0119] A first determining unit, configured to determine a video resolution of the recommended video at the time point when the region is adjusted based on a width pixel and a height pixel of the recommended video at the time point when the region is adjusted;
[0120] The first acquisition unit is used to compare the regional resolution at the regional adjustment time point with the video resolution at the regional adjustment time point to acquire the resolution comparison result.
[0121] In some embodiments of the present disclosure, the configuration information includes a region adjustment time point and a video resolution of the recommended video at the region adjustment time point;
[0122] Accordingly, the comparison module 620 includes:
[0123] The second acquisition unit is used to compare the regional resolution at the regional adjustment time point with the video resolution at the regional adjustment time point to acquire the resolution comparison result.
[0124] In some embodiments of the present disclosure, the adjustment module 630 includes:
[0125] The first adjustment unit is used to linearly adjust the regional resolution from the first resolution to the second resolution based on the resolution comparison result.
[0126] In some embodiments of the present disclosure, the adjustment module 630 includes:
[0127] A second adjustment unit, configured to adjust the regional resolution at the regional adjustment time point from the first resolution to the video resolution at the regional adjustment time point if the regional resolution at the regional adjustment time point is not equal to the video resolution at the regional adjustment time point;
[0128] The video resolution at the area adjustment time point is the second resolution.
[0129] In some embodiments of the present disclosure, the adjustment module 630 includes:
[0130] A third adjustment unit is used for, if the regional resolution at the regional adjustment time point is equal to the video resolution at the regional adjustment time point, adjusting the regional resolution at the regional adjustment time point from the first resolution to a preset standard resolution, and then continuing to adjust from the preset standard resolution to the video resolution at the regional adjustment time point;
[0131] The video resolution at the area adjustment time point is the second resolution.
[0132] In some embodiments of the present disclosure, the adjustment module 630 includes:
[0133] A first moving unit is used for, if the regional resolution of the recommended video display area in the direction to be adjusted is adjusted, based on the comparison result, keeping the recommended video display area fixed at one end of the direction to be adjusted, and moving the recommended video display area from a first position to a second position at the other end of the direction to be adjusted, so that the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution.
[0134] In some embodiments of the present disclosure, the adjustment module 630 includes:
[0135] The second moving unit is used to move the focus of the recommended video to the center point of the recommended video display area as the regional resolution of the recommended video display area is adjusted, so that the relative position of the recommended video in the recommended video display area is adjusted.
[0136] In some embodiments of the present disclosure, the adjustment module 630 includes:
[0137] A second determining unit, configured to determine the number of pixel target points between the focus of the recommended video and the center point of the recommended video display area as the regional resolution of the recommended video display area is adjusted;
[0138] A third determining unit, configured to determine a target scaling factor corresponding to the target number of pixel points from scaling factors corresponding to different numbers of pixel points;
[0139] The scaling unit is used to scale the recommended video according to the target scaling factor so that the relative position of the recommended video in the recommended video display area is adjusted.
[0140] In some embodiments of the present disclosure, the device further includes:
[0141] The display control adjustment module is used to adjust the display position of the display control in the target area where the recommended video display area is located according to the adjustment size of the regional resolution of the recommended video display area during the regional resolution adjustment process of the recommended video display area.
[0142] In some embodiments of the present disclosure, the configuration information includes at least one group. When the configuration information includes at least two groups, the time adjustment ranges included in each two groups of configuration information do not overlap.
[0143] In some embodiments of the present disclosure, the device further includes:
[0144] A first response module, configured to respond to a page opening operation of a client application and use the page opening operation as a display operation for the recommended video;
[0145] A second response module, used to respond to a page switching operation of a client application and use the page switching operation as a display operation for the recommended video;
[0146] The third response module is used to respond to the page sliding operation of the client application and use the page sliding operation as a display operation for the recommended video.
[0147] In some embodiments of the present disclosure, the recommended video includes one or more of the following combinations:
[0148] The video content of three color channels is synthesized, the video content of transparency channel and three color channels is synthesized, and the video content of blank segments is superimposed.
[0149] It should be noted that Figure 6 The recommended video display device 600 shown can execute Figures 1 to 5 The various steps in the method embodiment shown in the figure are implemented Figures 1 to 5The various processes and effects in the method embodiment shown are not described in detail here.
[0150] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown. The electronic device may be the client or server described in the above embodiment.
[0151] like Figure 7 As shown, the electronic device may include a processor 701 and a memory 702 storing computer program instructions.
[0152] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0153] The memory 702 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 702 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 702 may be inside or outside the integrated gateway device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory. In a specific embodiment, the memory 702 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.
[0154] The processor 701 reads and executes the computer program instructions stored in the memory 702 to perform the steps of the recommended video display method provided in the embodiment of the present disclosure.
[0155] In one example, the electronic device may further include a transceiver 703 and a bus 704. Figure 7As shown, the processor 701, the memory 702 and the transceiver 703 are connected via a bus 704 and communicate with each other.
[0156] The bus 704 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 704 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0157] The following is an embodiment of a computer-readable storage medium provided in an embodiment of the present disclosure. The computer-readable storage medium and the recommended video display method of the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the computer-readable storage medium, please refer to the embodiment of the recommended video display method mentioned above.
[0158] This embodiment provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to perform a recommended video display method. The method includes:
[0159] In response to the display operation of the recommended video, obtaining recommendation information sent by the server, the recommendation information including the recommended video and configuration information for adjusting the display area of the recommended video; wherein the recommended video includes at least two video clips, and the resolutions of the two adjacent video clips are different;
[0160] In the process of displaying the recommended video in the recommended video display area, based on the configuration information, comparing the regional resolution of the recommended video display area with the video resolution of the recommended video to obtain a resolution comparison result;
[0161] According to the resolution comparison result, the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution, and during the adjustment of the regional resolution of the recommended video display area, the relative position of the recommended video in the recommended video display area is adjusted.
[0162] Of course, the storage medium containing computer executable instructions provided by the embodiment of the present disclosure is not limited to the above method operations, and the computer executable instructions can also execute related operations in the recommended video display method provided by any embodiment of the present disclosure.
[0163] Through the above description of the implementation methods, technicians in the relevant field can clearly understand that the present disclosure can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to enable a computer cloud platform (which can be a personal computer, server, or network cloud platform, etc.) to execute the recommended video display method provided by each embodiment of the present disclosure.
[0164] Note that the above are only preferred embodiments of the present disclosure and the technical principles used. Those skilled in the art will understand that the present disclosure is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present disclosure. Therefore, although the present disclosure is described in more detail through the above embodiments, the present disclosure is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present disclosure, and the scope of the present disclosure is determined by the scope of the appended claims.
Claims
1. A method for displaying recommended videos, characterized in that: Applied to a client, the method comprises: In response to the display operation of the recommended video, obtaining recommendation information sent by the server, the recommendation information including the recommended video and configuration information for adjusting the display area of the recommended video; wherein the recommended video includes at least two video clips, and the resolutions of the two adjacent video clips are different; In the process of displaying the recommended video in the recommended video display area, based on the configuration information, comparing the regional resolution of the recommended video display area with the video resolution of the recommended video to obtain a resolution comparison result; According to the resolution comparison result, the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution, and during the adjustment of the regional resolution of the recommended video display area, the relative position of the recommended video in the recommended video display area is adjusted.
2. The method according to claim 1, characterized in that The configuration information includes a time point for adjusting the area; Accordingly, based on the configuration information, comparing the regional resolution of the recommended video display area with the video resolution of the recommended video to obtain a resolution comparison result includes: Determine the video resolution of the recommended video at the time point when the area is adjusted based on the width pixel and the height pixel of the recommended video at the time point when the area is adjusted; The regional resolution at the regional adjustment time point is compared with the video resolution at the regional adjustment time point to obtain the resolution comparison result.
3. The method according to claim 1, characterized in that The configuration information includes a region adjustment time point and a video resolution of the recommended video at the region adjustment time point; Accordingly, based on the configuration information, comparing the regional resolution of the recommended video display area with the video resolution of the recommended video to obtain a resolution comparison result includes: The regional resolution at the regional adjustment time point is compared with the video resolution at the regional adjustment time point to obtain the resolution comparison result.
4. The method according to claim 2 or 3, characterized in that: The step of adjusting the regional resolution of the recommended video display area from the first resolution to the second resolution according to the resolution comparison result includes: Based on the resolution comparison result, the regional resolution is linearly adjusted from the first resolution to the second resolution.
5. The method according to claim 2 or 3, characterized in that: The step of adjusting the regional resolution of the recommended video display area from the first resolution to the second resolution according to the resolution comparison result includes: If the regional resolution at the regional adjustment time point is not equal to the video resolution at the regional adjustment time point, adjusting the regional resolution at the regional adjustment time point from the first resolution to the video resolution at the regional adjustment time point; The video resolution at the area adjustment time point is the second resolution.
6. The method according to claim 2 or 3, characterized in that: The step of adjusting the regional resolution of the recommended video display area from the first resolution to the second resolution according to the resolution comparison result includes: If the regional resolution at the regional adjustment time point is equal to the video resolution at the regional adjustment time point, after adjusting the regional resolution at the regional adjustment time point from the first resolution to the preset standard resolution, continue to adjust from the preset standard resolution to the video resolution at the regional adjustment time point; The video resolution at the area adjustment time point is the second resolution.
7. The method according to claim 1, characterized in that The step of adjusting the regional resolution of the recommended video display area from the first resolution to the second resolution according to the resolution comparison result includes: If the regional resolution of the recommended video display area is adjusted in the direction to be adjusted, based on the comparison result, the recommended video display area is kept fixed at one end of the direction to be adjusted, and the recommended video display area is moved from a first position to a second position at the other end of the direction to be adjusted, so that the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution.
8. The method according to claim 1, characterized in that In the process of adjusting the regional resolution of the recommended video display area, adjusting the relative position of the recommended video in the recommended video display area includes: As the regional resolution of the recommended video display area is adjusted, the focus of the recommended video is moved to the center point of the recommended video display area, so that the relative position of the recommended video in the recommended video display area is adjusted.
9. The method according to claim 1, characterized in that: In the process of adjusting the regional resolution of the recommended video display area, adjusting the relative position of the recommended video in the recommended video display area includes: As the regional resolution of the recommended video display area is adjusted, determining the number of pixel point targets between the focus of the recommended video and the center point of the recommended video display area; Determining a target scaling factor corresponding to the target number of pixels from scaling factors corresponding to different numbers of pixels; The recommended video is scaled according to the target scaling factor so that the relative position of the recommended video in the recommended video display area is adjusted.
10. The method according to claim 1, characterized in that Also includes: During the process of adjusting the regional resolution of the recommended video display area, the display position of the display control in the target area where the recommended video display area is located is adjusted according to the adjustment size of the regional resolution of the recommended video display area.
11. The method according to claim 1, characterized in that: The configuration information includes at least one group. When the configuration information includes at least two groups, the time adjustment ranges included in each two groups of configuration information do not overlap.
12. The method according to claim 1, characterized in that Also includes one or more of the following combinations: In response to a page opening operation of a client application, using the page opening operation as a display operation for the recommended video; In response to a page switching operation of a client application, using the page switching operation as a display operation for the recommended video; In response to a page sliding operation of a client application, the page sliding operation is used as a display operation for the recommended video.
13. The method according to claim 1, characterized in that The recommended videos include one or more of the following combinations: The video content of three color channels is synthesized, the video content of transparency channel and three color channels is synthesized, and the video content of blank segments is superimposed.
14. A recommended video display device, characterized in that: Configured on the client, the device includes: an acquisition module, configured to acquire, in response to a display operation on a recommended video, recommendation information sent by a server, wherein the recommendation information includes the recommended video and configuration information for adjusting a display area of the recommended video; wherein the recommended video includes at least two video clips, and resolutions of two adjacent video clips are different; A comparison module, configured to compare the regional resolution of the recommended video display area with the video resolution of the recommended video based on the configuration information during the process of displaying the recommended video in the recommended video display area, and obtain a resolution comparison result; The adjustment module is used to adjust the regional resolution of the recommended video display area from the first resolution to the second resolution according to the resolution comparison result, and adjust the relative position of the recommended video in the recommended video display area during the regional resolution adjustment process of the recommended video display area.
15. An electronic device, characterized in that: A client program for displaying recommended videos is installed, and the client program is used to execute the method according to any one of claims 1 to 13. The electronic device comprises: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the method described in any one of claims 1 to 13.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Recommendation information insertion method and device and storage medium
CN109862410A
Video playing method and device and storage medium
CN111372126A
Display control method, device and system of display screen
CN117908817A
Adaptive local contrast enhancement zone for scaled videos
EP3503018A1
Method for regulating scope of contents field accordingto resolution and system for executing the method
KR1020080017815A
