Recommended video display methods, devices, equipment and media
By dynamically adjusting the resolution and position of the recommended video display area, the problems of high cost and non-real-time playback in existing technologies are solved, enabling low-cost, diversified display and real-time recommended video display.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING IQIYI TECH CO LTD
- Filing Date
- 2024-09-13
- Publication Date
- 2026-07-03
AI Technical Summary
The existing recommended video display method requires users to provide high-quality videos to achieve diversified display, resulting in high costs and is not suitable for real-time online playback.
By obtaining the recommended videos and configuration information sent by the server, the resolution and relative position of the recommended video display area are dynamically adjusted. By comparing and adjusting the different resolutions of at least two video clips, non-full-screen display and real-time playback can be achieved.
It reduces video production costs, enriches presentation formats, increases viewer engagement, and is suitable for real-time display scenarios.
Smart Images

Figure CN119211647B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of information display technology, and in particular to a method, apparatus, device and medium for recommending video display. Background Technology
[0002] Currently, many advertisers have higher expectations for the display format of recommended videos than the traditional one, aiming to increase viewers' attention and thus improve the effectiveness of the recommended video campaign.
[0003] In related technologies, to enable recommended videos to be presented in more diverse formats, it is often necessary for users to provide higher-quality recommended videos. For example, using recommended videos provided by users that have a naked-eye 3D broken window effect, or using recommended videos that have been synthesized with RGB and alpha channels, can be used to display the 3D broken window effect of the recommended videos.
[0004] However, existing recommended video display methods require advertisers to spend a lot of production costs to generate high-quality recommended videos in order to present recommended videos in more display formats. In some cases, advertisers are unable to provide high-quality recommended videos, resulting in recommended videos being displayed only in traditional display formats. Summary of the Invention
[0005] To address the aforementioned technical problems, this disclosure provides a recommended video display method, apparatus, device, and medium.
[0006] Firstly, this disclosure provides a method for recommending video display, including:
[0007] In response to the operation of displaying the recommended video, the system obtains the recommendation information sent by the server. The recommendation information includes the recommended video and configuration information for adjusting the display area of the recommended video. The recommended video includes at least two video segments, and the resolutions of adjacent video segments are different.
[0008] During 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 the resolution comparison result;
[0009] Based on the resolution comparison results, the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution, and 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.
[0010] Secondly, this disclosure provides a recommended video display device, the device comprising:
[0011] The acquisition module is used to acquire recommendation information sent by the server in response to the operation of displaying the recommended video. The recommendation information includes the recommended video and configuration information for adjusting the display area of the recommended video. The recommended video includes at least two video segments, and the resolutions of adjacent video segments are different.
[0012] The comparison module 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 the resolution comparison result.
[0013] The adjustment module is used to adjust the regional resolution of the recommended video display area from a first resolution to a second resolution based on the resolution comparison result, and to adjust the relative position of the recommended video in the recommended video display area during the regional resolution adjustment process.
[0014] Thirdly, embodiments of this disclosure also provide an electronic device, the device comprising:
[0015] One or more processors;
[0016] 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 methods provided in the first aspect.
[0018] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the method provided in the first aspect.
[0019] The technical solution provided in this disclosure has the following advantages compared with the prior art:
[0020] This disclosure discloses a method, apparatus, device, and medium for displaying recommended videos. In response to a display operation of a recommended video, it acquires recommendation information sent by a server. The recommendation information includes a recommended video and configuration information for adjusting the display area of the recommended video. The recommended video comprises at least two video segments, with adjacent video segments having different resolutions. During the display of 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 during the regional resolution adjustment process, the relative position of the recommended video within the recommended video display area is adjusted. Therefore, during the display of the recommended video, the resolution adjustment of the recommended video display area is triggered based on the configuration information and the comparison result of the regional resolution and video resolution. This allows users to dynamically adjust the resolution of the recommended video display area for viewers and correspondingly adjust the relative position of the recommended video within the recommended video display area by providing low-cost recommended videos. This enriches the display format of recommended videos and helps increase viewers' attention to the recommended videos. Attached Figure Description
[0021] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0022] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 A flowchart illustrating a recommended video display method provided in this embodiment of the disclosure;
[0024] Figure 2 A schematic diagram of a client application provided in an embodiment of this disclosure;
[0025] Figure 3 A schematic diagram of another client application provided in this embodiment of the disclosure;
[0026] Figure 4 A schematic diagram of another client application provided in this disclosure embodiment;
[0027] Figure 5 A logical schematic diagram of a recommended video display method provided in an embodiment of this disclosure;
[0028] Figure 6 This is a schematic diagram of the structure of a recommended video display device provided in an embodiment of the present disclosure;
[0029] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0030] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0031] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0032] The recommended video display formats in related technologies still have limitations, such as the inability to display recommended videos in non-full-screen mode and their unsuitability for real-time display scenarios. For example, when using recommended videos with a naked-eye 3D broken window effect provided by the user, only a portion of the information in the full-screen area can be left blank, and the overlay effect is displayed to make it appear as if a broken window is visible to the naked eye. Another example is recommended videos that combine RGB and Alpha channels; the client needs to integrate a third-party library to display these videos, and the videos must be downloaded locally beforehand, as online playback is not supported. If the videos are not downloaded in advance, they cannot be displayed.
[0033] To solve the above technical problems, the following will be combined with... Figure 1 The recommended video display method provided in this disclosure embodiment will be described. In this disclosure embodiment, the recommended video display method can be executed by a client.
[0034] Figure 1 A flowchart illustrating a recommended video display method provided in an embodiment of this disclosure is shown.
[0035] like Figure 1 As shown, the recommended video display method may include the following steps.
[0036] S110. In response to the operation of displaying the recommended video, obtain the recommendation information sent by the server. The recommendation information includes the recommended video and configuration information for adjusting the display area of the recommended video. The recommended video includes at least two video segments, and the resolutions of the two adjacent video segments are different.
[0037] In this embodiment, when a user opens the client application page for the first time, switches between client application pages, or swipes on client application pages, a display operation for recommended videos is sent to the client. Based on the display operation, the client directly requests and obtains recommendation information from the server via a wired or wireless network.
[0038] Specifically, the methods for obtaining the recommended video display operation include, but are not limited to, one or more of the following combinations: responding to a page opening operation of the client application, using the page opening operation as the recommended video display operation; responding to a page switching operation of the client application, using the page switching operation as the recommended video display operation; responding to a page swiping operation of the client application, using the page swiping operation as the recommended video display operation.
[0039] Here, "client application" refers to the application that displays recommended videos. Optionally, client applications include, but are not limited to, any of the following: video playback applications, e-book applications, browser applications, etc.
[0040] Recommended videos refer to videos that advertisers pre-upload to the server. For example, a recommended video is an ad video that an advertiser wants to display. Specifically, recommended videos include one or more of the following combinations: video content composited with three color channels, video content composited with an opacity channel and three color channels, and video content overlaid with white space segments.
[0041] Optionally, recommended videos may include key objects. These key objects are the main focus of the recommended video, often located at the center of the video, but can also be placed in other locations within the video. Optionally, key objects include, but are not limited to, mobile phones, computers, tablets, cars, cosmetics, jewelry, etc.
[0042] The recommended video display area refers to the area on the client application page where recommended videos are displayed, such as the advertising area on the homepage of a video playback application or the advertising area on the movie channel page.
[0043] Optionally, the recommended video display area may be located at any of the following positions on the target page: top, middle, or bottom. The recommended shape of the video display area may include, but is not limited to, rectangles, circles, and rhombuses.
[0044] The configuration information refers to the location information used to adjust the resolution of the recommended information display area.
[0045] Specifically, before displaying recommended videos, the server can detect the resolution of different video frames in the recommended videos and divide video frames with the same resolution into a video segment, so that the recommended video is divided into at least two video segments. Then, based on the different resolutions of the two adjacent video segments, configuration information for adjusting the display area of the recommended video is generated.
[0046] The resolution of a video clip is determined by its width and height in pixels.
[0047] In one scenario, the configuration information includes the regional adjustment time point. This regional adjustment time point can be understood as the point at which the adjustment of the recommended video display area is initiated.
[0048] In another scenario, the configuration information includes the region adjustment time point and the video resolution of the recommended video at that time point. The video resolution at the region adjustment time point can be understood as the resolution of the video segment of the recommended video at that time point.
[0049] Optionally, the configuration information includes at least one set. When there are at least two sets of configuration information, the time adjustment ranges contained in each pair of configuration information do not overlap. In this way, the time will not overlap for any two sets of location information, allowing the client to adjust the resolution of the recommended video display area in an orderly manner based on the configuration information.
[0050] S120. During the process of displaying recommended videos 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 the resolution comparison result.
[0051] In this embodiment, after the client obtains the recommendation information, it displays the recommended videos from the recommendation information in the recommended video display area. During the process of displaying the recommended videos on the client, if 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. Then, the regional resolution of the recommended video display area and the video resolution of the recommended video are compared to obtain the 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 plays 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, while 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, so as to continuously update the resolution comparison results.
[0054] S130. Based on the resolution comparison results, adjust the regional resolution of the recommended video display area from the first resolution to the second resolution, and adjust the relative position of the recommended video in the recommended video display area during the regional resolution adjustment process.
[0055] In this embodiment, the client triggers a resolution adjustment for the recommended video display area based on the configuration information, the comparison between the regional resolution and the video resolution, specifically adjusting the regional resolution of the recommended video display area from the first resolution to the second resolution.
[0056] Specifically, based on the resolution comparison results, 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: when adjusting the regional resolution of the recommended video display area in the direction to be adjusted, based on the comparison results, one end of the recommended video display area in the direction to be adjusted is kept fixed, and the other end of the recommended video display area in the direction to be adjusted is moved from the first position to the second position, 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 within its target area. For example, if the recommended video display area is at the top of the target area, the direction to be adjusted is downward; if the recommended video display area is in the middle of the target area, the direction to be adjusted includes both upward and downward adjustments; and if the recommended video display area is at the bottom of the target area, the direction to be adjusted includes upward adjustments.
[0058] In this context, the recommended video display area at one end of the adjustment direction refers to the border that does not move, while at the other end refers to the border that moves. Specifically, the target area is the area on the client application page excluding the search and menu areas, and includes both the recommended video display area and the display controls.
[0059] For example, see Figure 2The illustrated client application page shows a recommended video display area 100 displaying a recommended video. This area is located at the top of the target area 200, and the adjustment direction is downwards. One end of this adjustment direction is the top border 110, and the other end is the bottom border 120. The electronic device keeps the top border 110 of the recommended video display area fixed and moves the bottom border 120 from a first position to a second position, thereby adjusting the regional resolution of the recommended video display area 100 from a first resolution to a second resolution.
[0060] The first position and the second position refer to the positions of the recommended video display area before and after moving to the other end of the adjustment direction, respectively. 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] To ensure that the recommended videos adapt to the recommended video display area where the regional resolution has been adjusted, the client also adjusts the relative position of the recommended videos within the recommended video display area during the regional resolution adjustment process.
[0062] The relative position can 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 adjustment of 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, moving the focus of the recommended video 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 resolution of the recommended video display area is adjusted, the client determines the focus of the recommended video and 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, it moves the focus of the recommended video to the center point of the recommended video display area to maintain alignment, thereby changing the relative position of the recommended video in the recommended video display area.
[0065] In other embodiments, during the adjustment of the regional resolution of the recommended video display area, adjusting the relative position of the recommended video within the recommended video display area includes: determining the target number of pixels between the focal point 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 pixel counts; and scaling the recommended video according to the target scaling factor to adjust the relative position of the recommended video within the recommended video display area.
[0066] The scaling factor refers to the ratio by which the recommended video is enlarged or reduced.
[0067] Specifically, as the resolution of the recommended video display area is adjusted, the client determines the focus of the recommended video and 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 pixel counts, it can determine the target scaling factor corresponding to the target number of pixels from the scaling factors corresponding to different pixel counts. Then, the client scales 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] The above method enables the dynamic display of recommended videos within non-full-screen areas, without requiring the videos to be downloaded to the client's local storage, making it suitable for scenarios requiring real-time video display. Furthermore, during the resolution adjustment of the recommended video display area, the relative position of the recommended video within that area is adjusted accordingly, ensuring the video fits the adjusted resolution and remains focused on displaying the recommended video.
[0069] This disclosure discloses a method for displaying recommended videos. In response to a display operation of a recommended video, it obtains recommendation information sent by a server. The recommendation information includes a recommended video and configuration information for adjusting the display area of the recommended video. The recommended video includes at least two video segments with different resolutions for adjacent segments. During the display of the recommended video in the display area, based on the configuration information, the regional resolution of the 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 display area is adjusted from a first resolution to a second resolution, and during this adjustment, the relative position of the recommended video within the display area is also adjusted. Therefore, during the display of the recommended video, the resolution adjustment of the display area is triggered based on the configuration information and the comparison result between the regional resolution and the video resolution. This allows users to dynamically adjust the resolution of the display area and the relative position of the recommended video within the display area for viewers by providing low-cost recommended videos. This enriches the display format of recommended videos and helps increase viewers' attention to them.
[0070] In this embodiment, the method further includes: during 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 client application page other than the search area and menu area. The target area includes the recommended video display area and display controls.
[0072] Specifically, during the process of adjusting the regional resolution of the recommended video display area, the client determines the amount of change in the regional resolution of the recommended video display area. If the amount of change is a change in width pixels, the display control is moved to the target area based on the rate of change in width pixels. If the amount of change is a change in height pixels, the display control is moved to the target area based on the rate of change in height pixels.
[0073] For example, see Figure 3 and Figure 4 On the client application's page, by Figure 3 Change to Figure 4 During the process, the bottom border 120 of the recommended video display area 100 moves downwards, thus increasing the regional resolution of the recommended video display area. Specifically, the high pixel count of the recommended video display area 100 increases. The client then adjusts the settings based on this change in the high pixel count of the recommended video display area 100. Figure 3The display position of control 300 in target area 200 is adjusted to Figure 4 The display position of control 300 in target area 200 is shown in the middle.
[0074] In this way, while adjusting the regional resolution of the recommended video display area and the relative position of the recommended video within the recommended video display area, the client also adaptively adjusts the display position of the control displayed in the target area where the recommended video display area is located, enriching the display diversity of the client application and improving the viewing experience.
[0075] In another embodiment of this disclosure, steps S120 and S130 are further refined.
[0076] In some embodiments, the configuration information includes the regional adjustment time point; correspondingly, S120, "based on the configuration information, compare the regional resolution of the recommended video display area with the video resolution of the recommended video to obtain a resolution comparison result", includes: determining the video resolution of the recommended video at the regional adjustment time point based on the width and height 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 and height pixels of the recommended video at the region adjustment time point.
[0078] For example, if the region adjustment time point is 0 seconds, and the recommended video at 0 seconds has a width of 6 pixels and a height of 1 pixel, then the recommended video at 0 seconds has a video resolution of 6*1.
[0079] The regional resolution at the regional adjustment time point is the product of the width and height pixels of the recommended video display area at the regional adjustment time point.
[0080] For example, if the region adjustment time point is 0 seconds, and the recommended video display area at 0 seconds has a width of 16 pixels and a height of 9 pixels, then the recommended video resolution at 0 seconds is 16*9.
[0081] In other embodiments, the configuration information includes the region adjustment time point and the video resolution of the recommended video at the region adjustment time point; correspondingly, S120 "based on the configuration information, compare the region resolution of the recommended video display area with the video resolution of the recommended video to obtain the resolution comparison result" includes: comparing the region resolution at the region adjustment time point with the video resolution at the region adjustment time point to obtain the resolution comparison result.
[0082] By using the above methods, when different configuration information is set, the client uses different methods to compare the regional resolution and the video resolution at the regional adjustment time point in order to accurately determine the resolution comparison result.
[0083] In this embodiment, the client can linearly adjust the regional resolution from the first resolution to the second resolution based on the resolution comparison results, so that the client can uniformly control the change of regional resolution.
[0084] In some embodiments, S130, "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; 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 time of regional adjustment is not equal to the video resolution at the time of regional adjustment, the client will linearly adjust the recommended video display area from the first resolution to the video resolution at the time of regional adjustment.
[0086] Furthermore, when adjusting the regional resolution of the recommended video display area on the client side, the regional adjustment duration can be determined, and based on the regional adjustment duration, the regional resolution at the time of regional adjustment can be adjusted from the first resolution to the video resolution at the time of regional adjustment. Optionally, the regional adjustment duration can be 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] For example, if the area adjustment time point is 0 seconds, the area resolution at 0 seconds is 16*9, and the video resolution at 0 seconds is 6*1, then the client determines that the area resolution of 16*9 and the video resolution of 6*1 at 0 seconds are not equal. Then, the client starts adjusting the area resolution from 0 seconds, so that the recommended video display area is linearly adjusted from the first resolution of 16*9 to the video resolution of 6*1.
[0088] In some other embodiments, S130, "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, it continues 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, then 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 adjusting the regional resolution of the recommended video display area on the client side, the regional adjustment duration can be determined. Based on this duration, the regional resolution at the adjustment time point is adjusted from the first resolution to the preset standard resolution, and then further adjusted from the preset standard resolution to the video resolution at the adjustment time point. Optionally, the regional adjustment duration can be the difference between adjacent regional adjustment time points, or the regional adjustment duration can be written into a configuration file on the server side. It is necessary to ensure that the time adjustment ranges of the regional resolutions do not overlap.
[0091] For example, if the area adjustment time point is 3 seconds, the area resolution at 3 seconds is 6*1, the video resolution at 3 seconds is 6*1, and the preset standard resolution is 16*9, then the client determines that the area resolution 6*1 at 3 seconds is equal to the video resolution 6*1. So the client starts adjusting the area resolution from 3 seconds, so that the recommended video display area is linearly adjusted from the first resolution 6*1 to the preset standard resolution 16*9, and then continues to be linearly adjusted from the preset standard resolution 16*9 to the video resolution 6*1 at 3 seconds.
[0092] In this way, the client adjusts the regional resolution according to the comparison results between the regional resolution of the recommended video display area and the video resolution of the recommended video, so as to flexibly and orderly adjust the regional resolution of the recommended video display area during the recommended video display process, thus enriching the display format of the recommended video.
[0093] In yet another embodiment of this disclosure, the overall interaction method between the client and the server is explained to illustrate the overall process of the recommended video display method.
[0094] Figure 5 A logical schematic diagram of a recommended video display method provided in an embodiment of this 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 user-uploaded content information periodically or in real time through the first service module, and uses it as recommended videos.
[0098] Optionally, the first service module can be understood as a video material system.
[0099] S2. Generate configuration information based on the recommended videos, and combine the recommended videos and configuration information into recommended information.
[0100] In this embodiment, the server detects the resolution of different video frames from the recommended video through the first service module, and divides video frames with the same resolution into a video segment, so that the recommended video is divided into at least two video segments. Then, based on the different resolutions of two adjacent video segments, configuration information for adjusting the display area of the recommended video is generated. Finally, based on the timestamp, the recommended video and the configuration information are combined to form recommendation information.
[0101] The recommendation information includes recommended videos and configuration information for adjusting the display area of the recommended videos. The recommended videos include at least two video clips, and the resolutions of the 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, which can be retrieved to the client when the recommended video is displayed on the client later.
[0104] Optionally, the second service module can be understood as a video server.
[0105] S4. In response to the operation of displaying the recommended video, send a display request.
[0106] S5. Send recommendation information.
[0107] S6. Display recommended videos 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 within the recommended video display area.
[0109] In this embodiment, during the process of displaying recommended videos 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] This allows for flexible adjustment of the regional resolution of the recommended video display area, and corresponding adjustment of the relative position of the recommended video within the display area. As a result, the display format of recommended videos is enriched, which helps to increase the attention of viewers to the recommended videos.
[0111] Figure 6 A schematic diagram of the structure of a recommended video display device provided in an embodiment of this 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 acquire recommendation information sent by the server in response to the operation of displaying the recommended video. The recommendation information includes the recommended video and configuration information for adjusting the display area of the recommended video. The recommended video includes at least two video segments, and the resolutions of adjacent video segments are different.
[0114] The 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 the resolution comparison result.
[0115] The adjustment module 630 is used to adjust the regional resolution of the recommended video display area from a first resolution to a second resolution based on the resolution comparison result, and to adjust the relative position of the recommended video in the recommended video display area during the regional resolution adjustment process.
[0116] An embodiment of this disclosure provides a recommended video display device. In response to a recommended video display operation, it acquires recommendation information sent by a server. The recommendation information includes a recommended video and configuration information for adjusting the display area of the recommended video. The recommended video comprises at least two video segments, with adjacent video segments having different resolutions. During the display of 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 during the regional resolution adjustment process, the relative position of the recommended video within the recommended video display area is adjusted. Therefore, during the display of the recommended video, the resolution adjustment of the recommended video display area is triggered based on the configuration information and the comparison result of the regional resolution and video resolution. This allows users to dynamically adjust the resolution of the recommended video display area for viewers and correspondingly adjust the relative position of the recommended video within the recommended video display area simply by providing a low-cost recommended video. This enriches the display format of recommended videos and helps increase viewers' attention to the recommended videos.
[0117] In some embodiments of this disclosure, the configuration information includes regional adjustment time points;
[0118] Correspondingly, the comparison module 620 includes:
[0119] The first determining unit is configured to determine the video resolution of the recommended video at the time point of adjustment in the region based on the width and height pixels of the recommended video at the time point of adjustment in the region.
[0120] The first acquisition unit is used to compare the regional resolution at the time point of the regional adjustment with the video resolution at the time point of the regional adjustment, and to obtain the resolution comparison result.
[0121] In some embodiments of this disclosure, the configuration information includes the region adjustment time point and the video resolution of the recommended video at the region adjustment time point;
[0122] Correspondingly, the comparison module 620 includes:
[0123] The second acquisition unit is used to compare the regional resolution at the time point of the regional adjustment with the video resolution at the time point of the regional adjustment, and to obtain the resolution comparison result.
[0124] In some embodiments of this disclosure, the adjustment module 630 includes:
[0125] The first adjustment unit is used to linearly adjust the region resolution from the first resolution to the second resolution based on the resolution comparison result.
[0126] In some embodiments of this disclosure, the adjustment module 630 includes:
[0127] The second adjustment unit is used to adjust the regional resolution of the regional adjustment time point from the first resolution to the video resolution of the regional adjustment time point if the regional resolution of the regional adjustment time point is not equal to the video resolution of the regional adjustment time point.
[0128] Wherein, the video resolution at the time point of the regional adjustment is the second resolution.
[0129] In some embodiments of this disclosure, the adjustment module 630 includes:
[0130] The third adjustment unit is used to adjust the regional resolution of the regional adjustment time point from the first resolution to the preset standard resolution if the regional resolution of the regional adjustment time point is equal to the video resolution of the regional adjustment time point, and then continue to adjust it from the preset standard resolution to the video resolution of the regional adjustment time point.
[0131] Wherein, the video resolution at the time point of the regional adjustment is the second resolution.
[0132] In some embodiments of this disclosure, the adjustment module 630 includes:
[0133] The first moving unit is configured to, based on the comparison result, keep one end of the recommended video display area fixed in the direction to be adjusted, and move the other end of the recommended video display area from a first position to a second position, so that the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution when the regional resolution of the recommended video display area is adjusted in the direction to be adjusted.
[0134] In some embodiments of this 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 this disclosure, the adjustment module 630 includes:
[0137] The second determining unit is used to determine the number of target 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.
[0138] The third determining unit is used to determine the target scaling factor corresponding to the target number of pixels from the scaling factors corresponding to different numbers of pixels;
[0139] A 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 this disclosure, the device further includes:
[0141] The display control adjustment module is used to adjust the display position of the display controls 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.
[0142] In some embodiments of this disclosure, the configuration information includes at least one set, and when there are at least two sets of configuration information, the time adjustment ranges contained in each pair of configuration information do not overlap.
[0143] In some embodiments of this disclosure, the device further includes:
[0144] The first response module is used to respond to the page opening operation of the client application and to treat the page opening operation as a display operation of the recommended video;
[0145] The second response module is used to respond to the page switching operation of the client application and to treat the page switching operation as a display operation of the recommended video.
[0146] The third response module is used to respond to the page swiping operation of the client application and to display the recommended video as the page swiping operation.
[0147] In some embodiments of this disclosure, the recommended video includes one or more of the following combinations:
[0148] The video content was composited with three color channels, composited with an opacity channel and three color channels, and overlaid with white space segments.
[0149] It should be noted that, Figure 6 The recommended video display device 600 shown can perform... Figures 1 to 5 The various steps in the method embodiment shown are implemented. Figures 1 to 5The processes and effects in the method embodiments shown are not described in detail here.
[0150] Figure 7 A schematic diagram of an electronic device provided in an embodiment of this disclosure is shown. This electronic device can be a client or server as described in the above embodiments.
[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), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0153] Memory 702 may include a large-capacity storage for information or instructions. For example, and not limitingly, memory 702 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 702 may include removable or non-removable (or fixed) media. Where appropriate, memory 702 may be internal or external to the integrated gateway device. In a particular embodiment, memory 702 is a non-volatile solid-state memory. In a particular embodiment, memory 702 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable programmable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0154] The processor 701 performs the steps of the recommended video display method provided in this disclosure embodiment by reading and executing computer program instructions stored in the memory 702.
[0155] In one example, the electronic device may also include a transceiver 703 and a bus 704. Wherein, as... Figure 7As shown, the processor 701, memory 702 and transceiver 703 are connected via bus 704 and communicate with each other.
[0156] Bus 704 includes hardware, software, or both. For example, and not limitingly, 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 Infinite Bandwidth 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, bus 704 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.
[0157] The following are embodiments of a computer-readable storage medium provided in this disclosure. This computer-readable storage medium belongs to the same inventive concept as the recommended video display method in the above embodiments. For details not described in detail in the embodiments of the computer-readable storage medium, please refer to the embodiments of the recommended video display method described above.
[0158] This embodiment provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a recommended video display method, the method comprising:
[0159] In response to the operation of displaying the recommended video, the system obtains the recommendation information sent by the server. The recommendation information includes the recommended video and configuration information for adjusting the display area of the recommended video. The recommended video includes at least two video segments, and the resolutions of adjacent video segments are different.
[0160] During 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 the resolution comparison result;
[0161] Based on the resolution comparison results, the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution, and 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.
[0162] Of course, the computer-executable instructions provided in the embodiments of this disclosure are not limited to the above-described method operations, but can also perform related operations in the recommended video demonstration method provided in any embodiment of this disclosure.
[0163] Based on the above description of the implementation methods, those skilled in the art can clearly understand that this disclosure can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This 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, hard disk, or optical disk, etc., including several instructions to cause a computer cloud platform (which may be a personal computer, server, or network cloud platform, etc.) to execute the recommended video demonstration methods provided in the various embodiments of this disclosure.
[0164] Note that the above description is merely a preferred embodiment and the technical principles employed in this disclosure. Those skilled in the art will understand that this disclosure is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this disclosure. Therefore, although this disclosure has been described in detail through the above embodiments, it is not limited to the above embodiments. Many other equivalent embodiments may be included without departing from the concept of this disclosure, and the scope of this disclosure is determined by the scope of the appended claims.
Claims
1. A method for recommending a video display, characterized by, Applied to a client, the method includes: In response to the operation of displaying the recommended video, the system obtains the recommendation information sent by the server. The recommendation information includes the recommended video and configuration information for adjusting the display area of the recommended video. The recommended video includes at least two video segments, and the resolutions of adjacent video segments are different. During 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 the resolution comparison result; Based on the resolution comparison results, the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution, and 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. During the process of adjusting the regional resolution of the recommended video display area, adjusting the relative position of the recommended video within the recommended video display area includes: As the 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, thereby adjusting the relative position of the recommended video within the recommended video display area; or, During the process of adjusting the regional resolution of the recommended video display area, adjusting the relative position of the recommended video within the recommended video display area includes: As the regional resolution of the recommended video display area is adjusted, the number of target pixels between the focus of the recommended video and the center point of the recommended video display area is determined. The target scaling factor corresponding to the target number of pixels is determined from the 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.
2. The method of claim 1, wherein, The configuration information includes the regional adjustment time point; Accordingly, the step of comparing the regional resolution of the recommended video display area with the video resolution of the recommended video based on the configuration information to obtain the resolution comparison result includes: Based on the width and height pixels of the recommended video at the time point of adjustment in the region, the video resolution of the recommended video at the time point of adjustment in the region is determined; The regional resolution at the time point of the regional adjustment is compared with the video resolution at the time point of the regional adjustment to obtain the resolution comparison result.
3. The method of claim 1, wherein, The configuration information includes the regional adjustment time point and the video resolution of the recommended video at the regional adjustment time point; Accordingly, the step of comparing the regional resolution of the recommended video display area with the video resolution of the recommended video based on the configuration information to obtain the resolution comparison result includes: The regional resolution at the time point of the regional adjustment is compared with the video resolution at the time point of the regional adjustment 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 based on the resolution comparison result includes: Based on the resolution comparison results, the resolution of the region 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 based on the resolution comparison result includes: If the regional resolution at the time point of regional adjustment is not equal to the video resolution at the time point of regional adjustment, the regional resolution at the time point of regional adjustment will be adjusted from the first resolution to the video resolution at the time point of regional adjustment. Wherein, the video resolution at the time point of the regional adjustment 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 based on the resolution comparison result includes: If the regional resolution at the time point of regional adjustment is equal to the video resolution at the time point of regional adjustment, the regional resolution at the time point of regional adjustment is adjusted from the first resolution to the preset standard resolution, and then adjusted from the preset standard resolution to the video resolution at the time point of regional adjustment. Wherein, the video resolution at the time point of the regional adjustment is the second resolution.
7. The method of claim 1, wherein, The step of adjusting the regional resolution of the recommended video display area from the first resolution to the second resolution based on 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 in the direction to be adjusted, and the other end of the recommended video display area in the direction to be adjusted is moved from the first position to the second position, so that the regional resolution of the recommended video display area is adjusted from the first resolution to the second resolution.
8. The method of claim 1, wherein, Also includes: During the process of adjusting the regional resolution of the recommended video display area, the display position of the 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.
9. The method of claim 1, wherein, The configuration information includes at least one set, and when there are at least two sets of configuration information, the time adjustment ranges contained in each pair of configuration information do not overlap.
10. The method of claim 1, wherein, It also includes one or more of the following combinations: In response to a page opening operation by the client application, the page opening operation is used as an operation to display the recommended video; In response to a page switching operation by the client application, the page switching operation is used as a display operation for the recommended video; In response to a page swiping operation in the client application, the page swiping operation is used as a display operation for the recommended video.
11. The method of claim 1, wherein, The recommended videos include one or more of the following combinations: The video content was composited with three color channels, composited with an opacity channel and three color channels, and overlaid with white space segments.
12. A video recommendation display device, characterized by comprising: Configured on a client, the device includes: The acquisition module is used to acquire recommendation information sent by the server in response to the operation of displaying the recommended video. The recommendation information includes the recommended video and configuration information for adjusting the display area of the recommended video. The recommended video includes at least two video segments, and the resolutions of adjacent video segments are different. The comparison module 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 the resolution comparison result. The adjustment module is used to adjust the regional resolution of the recommended video display area from a first resolution to a second resolution based on the resolution comparison result, and to adjust the relative position of the recommended video in the recommended video display area during the process of adjusting the regional resolution of the recommended video display area; The adjustment module includes: The second moving unit is configured 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; or, The adjustment module includes: The second determining unit is used to determine the number of target 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. The third determining unit is used to determine the target scaling factor corresponding to the target number of pixels from the scaling factors corresponding to different numbers of pixels; A 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.
13. An electronic device, comprising: include: processor; Memory, used to store executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the method of any one of claims 1-11.
14. A computer readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, the processor performs the method according to any one of claims 1-11.