WO2022100508A1 - 视频的显示方法及装置 - Google Patents

视频的显示方法及装置 Download PDF

Info

Publication number
WO2022100508A1
WO2022100508A1 PCT/CN2021/128725 CN2021128725W WO2022100508A1 WO 2022100508 A1 WO2022100508 A1 WO 2022100508A1 CN 2021128725 W CN2021128725 W CN 2021128725W WO 2022100508 A1 WO2022100508 A1 WO 2022100508A1
Authority
WO
WIPO (PCT)
Prior art keywords
video content
height information
video
displayed
display interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2021/128725
Other languages
English (en)
French (fr)
Inventor
顾佳怡
叶馨
闫东一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Publication of WO2022100508A1 publication Critical patent/WO2022100508A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region

Definitions

  • the present disclosure relates to the field of multimedia display, and in particular, to a video display method, device, electronic device and storage medium.
  • the content area, location and specific content of a video work can be identified.
  • creators often insert subtitles at the top and bottom of the video to help explain the content.
  • the user understands the content, and the video area itself only occupies a small part of the screen.
  • most of the works are filled with black bottoms up and down, so that the video works in the single column of the short video application or in the viewing scene of sliding up and down. The size is consistent, and the viewing experience is unified.
  • the playback interface of the mainstream short video software processes the video content area, and also includes the following parts: top navigation, work information area (usually located in the lower left corner), operation area (usually including entries such as attention, likes, forwarding, comments, etc.) , bottom entry.
  • top navigation work information area (usually located in the lower left corner)
  • operation area usually including entries such as attention, likes, forwarding, comments, etc.
  • bottom entry For works with a three-stage black background (the top and bottom are filled with black background, and the middle is the video content area), the filling of the black background may make the upper and lower heights of the video content not in line with the optimal display, making key video information or content. Obstructed by the displayed work description or operation area.
  • the present disclosure provides a video display method, device, electronic device and storage medium.
  • a video display method including: acquiring a video to be displayed, wherein the video content of the video to be displayed does not fill a device display interface; acquiring non-video content displayed in the device display interface; In the case that the non-video content occludes the video content displayed at the preset position, the display position of the video content in the device display interface is adjusted to reduce the occlusion of the video content by the non-video content.
  • the step of adjusting the display position of the video content in the device display interface includes: acquiring a free area in the device display interface, The idle area is not occupied by non-video content; the video content is moved to the direction where the idle area is located.
  • the free area is located above the video content
  • the step of moving the video content to the direction of the free area includes: acquiring height information of the video content; acquiring free height information corresponding to the free area; when the free height information is less than or equal to In the case of the height information of the video content, move the video content upward to reduce the occlusion of the non-video content to the video content; when the idle height information is greater than the height information of the video content, move the video content upward to make the video content at the idle height. within the area.
  • the step of moving the video content upward to reduce the occlusion of the video content by the non-video content includes: moving the video content upward so that the video content is at the top of the free area.
  • the step of moving the video content upward so that the video content is located within the free area comprises: moving the video content upward so that the bottom of the video content is located in the free area bottom of the area.
  • the step of obtaining the idle height information corresponding to the idle area includes: obtaining overall height information of the display interface of the device; obtaining occupied height information occupied by non-video content; based on the overall height information other than the occupied height information Remaining height information, determine idle height information.
  • the step of acquiring idle height information corresponding to the idle area includes: acquiring overall height information of the device display interface and occupied height information occupied by non-video content; acquiring reserved height information, where the reserved height information includes: top Reserved height and bottom reserved height; determine the remaining height information in the overall height information except the occupied height information, and the remaining height information includes: the top position and the bottom position; move the top position down to the top reserved height, and set the bottom Move the position up to the reserved height at the bottom to adjust the remaining height information; based on the adjusted remaining height information, determine the idle height information.
  • the non-video content includes prompt information and/or operation controls.
  • a video display device comprising: a first acquisition unit configured to acquire a video to be displayed, wherein the video content of the video to be displayed does not fill a device display interface; a second acquisition unit The unit is configured to acquire the non-video content displayed in the device display interface; the adjustment unit is configured to adjust the video content in the device display interface when the non-video content blocks the video content displayed at the preset position. Display position to reduce occlusion of video content by non-video content.
  • the adjustment unit is further configured to: acquire a free area in the display interface of the device, wherein the free area is not occupied by non-video content; and move the video content to the direction where the free area is located.
  • the free area is located above the video content
  • the adjustment unit is further configured to: acquire height information of the video content; acquire free height information corresponding to the free area; when the free height information is less than or equal to the height information of the video content down, move the video content up so that the bottom of the video content moves out of the range occluded by non-video content; if the idle height information is greater than the height information of the video content, move the video content up so that the video content is located in the idle area .
  • the adjustment unit is further configured to move the video content upwards so that the top of the video content is at the top of the free area.
  • the adjustment unit is further configured to move the video content upward so that the bottom of the video content is located at the bottom of the free area when the free height information is greater than the height information of the video content.
  • the adjustment unit is further configured to: obtain overall height information of the display interface of the device; obtain occupied height information occupied by the non-video content; and determine the remaining height information except the occupied height information in the overall height information Idle altitude information.
  • the adjustment unit is further configured to: obtain overall height information of the display interface of the device and occupied height information occupied by non-video content; obtain reserved height information, where the reserved height information includes: a top reserved height and a bottom reserved height Reserve height; determine the remaining height information in the overall height information except the occupied height information, the remaining height information includes: the top position and the bottom position; by moving the top position down to the top reserved height, and moving the bottom position up The height is reserved at the bottom to adjust the remaining height information; based on the adjusted remaining height information, the idle height information is determined.
  • the non-video content includes prompt information and/or operation controls.
  • an electronic device including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the above method for displaying video .
  • a storage medium when instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the above-described video display method.
  • a computer program product comprising a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the above method for displaying video .
  • the video to be displayed is acquired, wherein the video content of the video to be displayed does not fill the device display interface; the non-video content displayed in the device display interface is acquired; the non-video content will affect the video displayed in the preset position.
  • the content is occluded, adjust the display position of the video content on the device display interface to reduce the occlusion of the video content by the non-video content.
  • the above solution adaptively adjusts the height of the video content in the device display interface according to the covering of the video content by the non-video content, so that the video content can be occluded by other content in the interface as little as possible, so that the viewing user can obtain more
  • the complete information avoids that the video display application in the related art is used in the video display page, and other content provided by the application will block the video content.
  • Fig. 1 is a flow chart of a method for displaying video according to an exemplary embodiment.
  • Fig. 2 is a schematic diagram showing a video to be displayed according to an exemplary embodiment.
  • Fig. 3 is a schematic diagram of moving video content up according to an exemplary embodiment.
  • Fig. 4 is a schematic diagram of acquiring idle height information according to an exemplary embodiment.
  • Fig. 5 is another schematic diagram of moving video content up according to an exemplary embodiment.
  • Fig. 6 is a schematic diagram showing yet another method of moving video content up according to an exemplary embodiment.
  • Fig. 7 is a schematic diagram showing a display content containing text above according to an exemplary embodiment.
  • Fig. 8 is a block diagram of a video display device according to an exemplary embodiment.
  • FIG. 9 is a block diagram of an electronic device 800 for executing the above-mentioned video display method according to an exemplary embodiment.
  • the solutions in the embodiments of the present disclosure may be executed by a designated application program installed on the smart terminal.
  • the corresponding codes may be used to implement them, for example, for iOS systems, Android systems, or Windows systems system, the method steps in the embodiments of the present disclosure may be implemented through different codes.
  • the smart terminal can access the server of the specified application program through the network to complete the following steps of requesting data (for example, obtaining the video to be displayed) , which can be a wireless network or a cellular network.
  • FIG. 1 is a flowchart of a method for displaying video according to an exemplary embodiment.
  • the method for displaying video can be applied to an electronic device, such as a vehicle-mounted device, a mobile device, a computer device, and the like.
  • an electronic device such as a vehicle-mounted device, a mobile device, a computer device, and the like.
  • a video display method is provided.
  • the video display method is applied to a specified application program, and includes the following steps.
  • step S11 the video to be displayed is acquired, and the video content of the video to be displayed does not fill the device display interface.
  • the above-mentioned video to be displayed may be a video requested from the server according to the user's operation on the application.
  • the user enters the video browsing interface after starting the specified application, and the application acquires the video to be displayed from the server according to a preset algorithm, and displays it to the user on the video browsing interface.
  • the video content in the video to be displayed may be a horizontal video, for example, a video with a width:height of about 16:9.
  • the entire device display interface cannot be filled, and the blank area can be filled with black.
  • Fig. 2 is a schematic diagram showing a video to be displayed according to an exemplary embodiment.
  • the video to be displayed is vertically divided into three segments, including the video content in the middle, and the video content above and below the video content. Fill the base color.
  • step S12 the non-video content displayed in the device display interface is acquired.
  • the above-mentioned non-video content may be display content provided by an application, or may be display content provided by a device system.
  • the device display interface while displaying the video to be displayed, the device display interface also superimposes other content provided by the application on the video to be displayed, such as prompt information or operation controls, and these contents are displayed on the video to be displayed.
  • the display interface of the device in addition to the video to be displayed, it also includes: top navigation (same city, follow and discovery, currently in the discovery interface), work information (lower left corner), operation controls (follow, like, retweet and comment entry) and bottom entry. This information is displayed on the upper layer of the video to be displayed for the user to view or operate. Among them, it can be noticed that the focus operation control in this example has occluded the video content.
  • the application display interface When the specified application is displayed on some devices, the application display interface will fill the device display interface of the entire device, and will not display some information provided by the device's own system, but some devices will always keep displaying some information provided by the device's own system. information.
  • the display content provided by the device system is also superimposed, still in conjunction with FIG. 2, at the top of the current display interface , in addition to the top navigation provided by the application, it also includes time information, network information, and battery information. These information are display contents provided by the device's own system, and these display contents also belong to the above-mentioned non-video contents.
  • step S13 when the non-video content occludes the video content displayed at the preset position, the display position of the video content in the device display interface is adjusted to reduce the occlusion of the video content by the non-video content.
  • the above-mentioned preset position is the default position for displaying video content in the device display interface, which may be the middle of the video display interface.
  • the video content will be covered. In this case, the entire video content will be displayed on the device display interface. to adjust the display position. In the case where the non-video content will not block the video content, there is no need to adjust the position of the video content in the device interface.
  • the video content is displayed in a default position in the device display interface. Since the video content is blocked due to the existence of the operation controls, the video content can be moved upward, and the specific effect can be shown in FIG. 3 . Obviously, when the video content is moved up on the device display interface, the video content avoids the position where the operation controls are located, so that the video content is completely displayed on the device display interface.
  • the above solution can reduce the occlusion of video content by non-video content by moving the video content, but the occlusion still exists.
  • the above solution can completely avoid the occlusion of the video content by the non-video content by moving the video content. But no matter which of the above situations, the solution can reduce the occlusion of video content by non-video content.
  • the process of adjusting the display position of the video content in the device display interface can be visually displayed in the device display interface, or it can only be used as an execution step and not displayed in the device display interface, that is, the device Only the final result after the position adjustment is displayed on the display interface, which will be described separately below.
  • the video content in response to acquiring the video to be displayed and the non-video content, the video content is first displayed in a default position in the device display interface, and the video content is blocked by the non-video content.
  • adjust the display position of the video content in the device display interface For example, users switch video content by swiping up and down.
  • the application obtains the current video and non-video content to be displayed, first displays the video content in the default position according to the method shown in Figure 2, and then detects that the video content is being followed by the control Block, and then adjust the position of the video content in the device display interface to obtain the result shown in FIG. 3 .
  • the video content in response to acquiring the video and non-video content to be displayed, the video content is not displayed in the above-mentioned default position, and it is first judged whether the video content is displayed in the default position, whether it will be displayed in the default position. Obstructed by non-video content. In the case where the video content is displayed in the default position will be blocked by non-video content, adjust the position of the video content in the device display interface and then display it, that is, the process of moving the video content is not displayed, but directly The results shown in Figure 3 are displayed.
  • the video to be displayed is acquired, wherein the video content of the video to be displayed does not fill the device display interface; the non-video content displayed in the device display interface is acquired; If the video content at the preset position is blocked, adjust the display position of the video content on the device display interface to reduce the blocking of the video content by the non-video content.
  • the above solution adjusts the position of the video content in the device display interface under the circumstance that the video content displayed in the preset position will be blocked by the non-video content, thereby realizing the adaptive adjustment of the position of the video content in the device display interface , thereby reducing the occlusion of video content by non-video content, and in some cases, the occlusion of video content by non-video content can be completely avoided, avoiding the video display application in the video display page, other content provided by the application will be The video content is blocked, so that the viewing user can obtain more complete video information.
  • the step of adjusting the display position of the video content in the device display interface includes: acquiring a free area in the device display interface, The idle area is not occupied by non-video content; the video content is moved to the direction where the idle area is located.
  • the above-mentioned free area may be an area in the display interface of the device that is not blocked by non-video content.
  • the direction in which the free area is located above is used to indicate the direction of the free area relative to the video content. For example, if the free area is above the video content, move the video content upward; if the free area is below the video content, move the video content downward.
  • the above solution determines the direction of the free area, and moves the video content to the direction of the free area, so as to minimize the conflict between the video content and the non-video content in the display position, thereby reducing the coverage of the video content by the non-video content.
  • the step of adjusting the display position of the video content in the device display interface according to the height information of the video content includes: obtaining the height information of the video content; obtaining the idle height information corresponding to the idle area; when the idle height information is less than or equal to In the case of the height information of the video content, move the video content up so that the bottom of the video content moves out of the range occluded by the non-video content; if the idle height information is greater than the height information of the video content, move the video content up to Keep the video content within the free area.
  • the above-mentioned free height information may be obtained by subtracting the height of the upper end of the free area from the height of the lower end of the free area not occupied by the non-video content.
  • h is the height information of the video content
  • H1 is the idle height information
  • there is no non-video content in the idle area corresponding to H1 that is, the video content is displayed in the area corresponding to H1, no obscured by any non-video content.
  • the free height information is less than or equal to the height information of the video content, it is difficult to display all the video content in the free area, so the video content can be appropriately moved up to avoid non-video content.
  • the free height information is greater than the height information of the video content, the video content can be completely displayed in the free area, so the video content is moved to the free area for display, so that the occlusion of non-video content can be completely avoided.
  • the step of moving the video content upward so that the bottom of the video content moves out of the range occluded by the non-video content includes: moving the video content upward , so that the top of the video content is on top of the free area.
  • the step of moving the video content upward so that the bottom of the video content moves out of the range occluded by the non-video content includes: moving the video content upward , so that the top of the video content is on top of the free area.
  • the idle height information when the idle height information is less than or equal to the height information of the video content, it means that the height of the video content is relatively high. Move to the top of the free area according to the top position of the video content.
  • the position of the top of the video content is y2
  • the first target position is the top y1 of the idle height information
  • the video content is moved up so that the top of the video content reaches the first target position, That is, to move y2 to y1, the effect of moving up is shown in Figure 5.
  • the video content when the free height information of the free area is less than or equal to the height information of the video content, the video content is moved up so that the top of the video content reaches the top of the free area, so as to prevent the video content from being blocked by non-video content to the greatest extent. The content is blocked, thereby ensuring the user's viewing experience.
  • the step of moving the video content upward so that the video content is located in the free area includes: moving the video content upward so that the bottom of the video content is located in the free area bottom of.
  • the free height information when the free height information is greater than the height information of the video content, it means that the free area has enough space to place the video content. In order to display the video content in a proper position, the bottom of the video content can be moved up Bottom of free area.
  • the position of the bottom of the video content is y3, the second target position is the top y4 of the idle height information, and the video content is moved up so that the bottom of the video content reaches the second target position , that is, to move y3 to y4, the effect of moving up is shown in Figure 6.
  • the video content that has been moved up will not be blocked by non-video content, nor will it be too close to the displayed content above, so as to ensure the user's viewing experience.
  • the video content when the free height information of the free area is greater than the height information of the video content, the video content is moved up so that the bottom of the video content reaches the bottom of the free area, so as to avoid the video content being replaced by the non-video content.
  • the video content On the basis of occlusion, the video content is displayed in a position with better visual effect in the device display interface, which further improves the user's viewing experience.
  • the step of acquiring the idle height information in the device display interface includes: acquiring overall height information of the device display interface; acquiring occupied height information occupied by non-video content; based on the overall height information except for the occupied height information The remaining height information of , determine the idle height information.
  • the non-video content includes: prompt information and/or operation controls
  • the occupied height information includes: prompt information and/or height information of the operation controls.
  • H1 screen height - system information height * (0 or 1) - mobile phone bottom safe area height * (or) - bottom Information height*(or) - top navigation height or top bar return button height - operation area height.
  • (0 or 1) is used to indicate the presence or absence of the height before (0 or 1). Since non-video content can be different on different systems, choose 1 to multiply the previous height in the presence of the non-video content, and 0 to multiply the previous height in the absence of the non-video content .
  • the height of buttons such as top navigation height or top bar return is used to indicate that buttons such as top navigation height and top bar return are non-video content in the same position in different interfaces. When the current device display interface includes top navigation, the top navigation is subtracted. height; when the current device display interface includes buttons such as the top bar return, subtract the height of the top bar return buttons.
  • the above screen height is the overall height information, and the sum of the system information height, the bottom safe area of the mobile phone, the bottom information height, the top navigation height or the top bar return button height and the height of the operation area is the above occupied height information.
  • the system information indicates the system time, signal and power displayed at the top of Figure 2;
  • the safety area at the bottom of the mobile phone indicates the position of the bottom horizontal line in Figure 2, and the device can be called up by swiping up on this position.
  • the bottom information is used to represent the information about the video content in the lower part of Figure 2;
  • the top navigation is used to represent the sliding navigation controls shown at the top in Figure 2: Same City, follow and Discover, by sliding left and right, you can access Same City, Follow and Switch between discoveries; buttons such as top bar return are not shown in Figure 2;
  • the operation area represents the area where the attention, like, comment and forward controls are located on the lower right side of Figure 2.
  • the idle area in the device display interface and the idle height information corresponding to the idle area are obtained, so that how to adjust the position of the video content in the device display interface can be determined according to the idle height information.
  • the above-mentioned top reserved height and bottom reserved height may be the same height.
  • the above-mentioned remaining height information may be H1 in FIG. 2 .
  • Fig. 4 is a schematic diagram of acquiring idle height information according to an exemplary embodiment.
  • the idle height information be H2
  • the top reserved height For A the reserved height at the bottom is B.
  • the upper end of the remaining height information H1 is moved downward by a height A to reach the position y1
  • the bottom of the remaining height information H2 is moved upward by a height B to reach the position y4.
  • H2 screen height - system information height * (0 or 1) - mobile phone bottom safe area height * (or) - bottom information height * (or) - top navigation Height or top bar return, etc.
  • Button height-operation area height-A-B As shown in Figure 4, by setting the reserved height information, there is a certain distance between the idle area and the non-video content above and below, so as to prevent the video content from being too close to the non-video content above or below and affecting the user. perception experience.
  • the above scheme sets the reserved height at the top and the reserved height at the bottom, so that when the video content is moved, at least the distance indicated by the reserved height is maintained between the video content and the non-video content at the upper or lower end, thereby avoiding The distance between the upper end of the video content and the non-video content above is too close, or the distance between the lower end of the video content and the non-video content below is too close, thereby improving the display effect of the video content.
  • the video content includes a video body and text.
  • the above-mentioned text may be text that changes with the playback of the video content, such as subtitles of the video content.
  • the video content includes the video body and the text
  • the height of the video content includes the sum of the height of the video body and the height of the text.
  • the height occupied by the text may be the distance between the upper end of the video body and the upper end of the text
  • the height occupied by the text may be the distance between the lower end of the video body and the text distance from the bottom.
  • Some videos to be displayed contain text for explaining the video. In such a case, the text is blocked, which will also affect the viewing effect.
  • the above solution uses the text as part of the video content, and its occupied The height is also calculated in the height information of the video content, so that when the video content is moved, the text contained in the video content will also avoid being occluded by the non-video content.
  • FIG. 7 is a schematic diagram showing text contained above display content according to an exemplary embodiment.
  • the height information h of the video content includes the sum of the height h1 of the video body and the height h2 occupied by the text.
  • Fig. 8 is a block diagram of a video display device according to an exemplary embodiment.
  • a video display apparatus is provided, and the apparatus includes a first acquisition unit 81 , a second acquisition unit 82 and an adjustment unit 83 .
  • the first obtaining unit 81 is configured to obtain the video to be displayed, wherein the video content of the video to be displayed does not fill the device display interface.
  • the second obtaining unit 82 is configured to obtain the non-video content displayed in the display interface of the device.
  • the adjustment unit 83 is configured to adjust the display position of the video content in the device display interface to reduce the occlusion of the video content by the non-video content when the non-video content may occlude the video content displayed at the preset position.
  • the adjustment unit is further configured to: acquire a free area in the display interface of the device, wherein the free area is not occupied by non-video content; and move the video content to the direction where the free area is located.
  • the free area is located above the video content
  • the adjusting unit is further configured to: acquire height information of the video content; acquire free height information corresponding to the free area; when the free height information is less than or equal to the height information of the video content down, move the video content up so that the bottom of the video content moves out of the range occluded by non-video content; if the idle height information is greater than the height information of the video content, move the video content up so that the video content is located in the idle area .
  • the adjustment unit is further configured to move the video content upwards so that the top of the video content is at the top of the free area.
  • the adjustment unit is further configured to move the video content upward so that the bottom of the video content is located at the bottom of the free area in the case that the free height information is greater than the height information of the video content.
  • the adjustment unit is further configured to: obtain overall height information of the display interface of the device; obtain occupied height information occupied by the non-video content; and determine the remaining height information except the occupied height information in the overall height information Idle altitude information.
  • the adjustment unit is further configured to: obtain overall height information of the display interface of the device and occupied height information occupied by non-video content; obtain reserved height information, where the reserved height information includes: a top reserved height and a bottom reserved height Reserved height; determine the remaining height information except the occupied height information in the overall height information, and the remaining height information includes: the top position and the bottom position; by moving the top position down to the top reserved height, and moving the bottom position up to the bottom reserved height The remaining height information is adjusted to adjust the remaining height information; based on the adjusted remaining height information, it is determined to obtain the idle height information.
  • the non-video content includes: prompt information and/or operation controls
  • the occupied height information includes: prompt information and/or height information of the operation controls.
  • the video content includes a video body and text.
  • the embodiments of the present disclosure further provide an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute The instruction is to implement the video display method according to the first aspect of the embodiment of the present disclosure.
  • FIG. 9 is a block diagram of an electronic device 800 for executing the above-mentioned video display method according to an exemplary embodiment.
  • a storage medium including instructions such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the apparatus 800 to complete the above method.
  • the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical disk data storage devices, etc.
  • the electronic device can execute the data processing method described in the first aspect of the embodiment of the present disclosure.
  • the embodiments of the present disclosure further provide a computer program product, comprising a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute The instruction is to implement the video display processing method described in the first aspect of the embodiment of the present disclosure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开关于一种视频的显示方法及装置,涉及多媒体显示领域,该方法包括:获取待显示视频,其中,待显示视频的视频内容未充满设备显示界面;获取设备显示界面中显示的非视频内容;在非视频内容对显示于预设位置的视频内容产生遮挡的情况下,调整视频内容在设备显示界面中的显示位置,以减少非视频内容对视频内容的遮挡。

Description

视频的显示方法及装置
相关申请的交叉引用
本申请基于申请号为202011257027.0、申请日为2020年11月10日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及多媒体显示领域,尤其涉及一种视频的显示方法、装置、电子设备及存储介质。
背景技术
随着短视频应用的普及,越来越多的用户习惯在移动设备上浏览视频作品。
相关技术中,可以对视频作品内容区域、的位置和具体内容进行识别,对于横版视频作品(宽:高≈16:9),创作者往往在视频的上下方插入字幕来对内容进行解释帮助用户进行内容理解,而视频区域本身只占了屏幕的很小一部分,对于这种作品大多数都采用上下黑底填充的方式,使得在短视频应用的单列或者上下滑动的观看场景下视频作品的尺寸一致,观看体验得到统一。然后主流的短视频软件的播放界面处理视频内容区、还包括如下几部分内容:顶部导航、作品信息区(通常位于左下角)、操作区(通常包括关注、点赞、转发、评论等入口)、底部入口。对于黑底三段式(上下填充为黑底,中间为视频内容区)的作品而言,黑底的填充使得视频内容的上下高度可能不太符合最优的展示,使得关键的视频信息或内容被显示的作品描述或操作区所遮挡。
发明内容
本公开提供一种视频的显示方法、装置、电子设备及存储介质。
根据本公开实施例的第一方面,提供一种视频的显示方法,包括:获取待显示视频,其中,待显示视频的视频内容未充满设备显示界面;获取设备显示界面中显示的非视频内容;在非视频内容对显示于预设位置的视频内容产生遮挡的情况下,调整视频内容在设备显示界面中的显示位置,以减少非视频内容对视频内容的遮挡。
在一些实施例中,在非视频内容会对显示于预设位置的视频内容产生遮挡的情况下,调整视频内容在设备显示界面中的显示位置的步骤包括:获取设备显示界面中的空闲区域,其中,空闲区域未被非视频内容占用;将视频内容向空闲区域所在的方向移动。
在一些实施例中,空闲区域位于视频内容上方,将视频内容向空闲区域所在的方向移动的步骤包括:获取视频内容的高度信息;获取空闲区域对应的空闲高度信息;在空闲高度信息小于或等于视频内容的高度信息的情况下,向上移动视频内容,以减少非视频内容对视频内容的遮挡;在空闲高度信息大于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容位于空闲区域内。
在一些实施例中,在空闲高度信息小于或等于视频内容的高度信息的情况下,向上移动视频内容,以减少非视频内容对视频内容的遮挡的步骤包括:向上移动视频内容,以使视频内容的顶部处于空闲区域的顶部。
在一些实施例中,在空闲高度信息大于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容位于空闲区域内的步骤包括:向上移动视频内容,以使视频内容的底部位于空闲区域的底部。
在一些实施例中,获取空闲区域对应的空闲高度信息的步骤包括:获取设备显示界面的整体高度信息;获取非视频内容所占用的占用高度信息;基于整体高度信息中除占用高度信息之外的剩余高度信息,确定空闲高度信息。
在一些实施例中,获取空闲区域对应的空闲高度信息的步骤包括:获取设备显示界面的整体高度信息和非视频内容所占用的占用高度信息;获取预留高度信息,预留高度信息包括:顶部预留高度和底部预留高度;确定整体高度信息中除占用高度信息之外的剩余高度信息,剩余高度信息包括:顶部位置和底部位置;通过将顶部位置下移顶部预留高度,并将底部位置上移底部预留高度,来调整剩余高度信息;基于调整后的剩余高度信息,确定空闲高度信息。
在一些实施例中,非视频内容包括:提示信息和/或操作控件。
根据本公开实施例的第二方面,提供一种视频的显示装置,包括:第一获取单元,被配置为获取待显示视频,其中,待显示视频的视频内容未充满设备显示界面;第二获取单元,被配置为获取设备显示界面中显示的非视频内容;调整单元,被配置为在非视频内容对显示于预设位置的视频内容产生遮挡的情况下,调整视频内容在设备显示界面中的显示位置,以减少非视频内容对视频内容的遮挡。
在一些实施例中,调整单元进一步被配置为:获取设备显示界面中的空闲区域,其中,空闲区域未被非视频内容占用;将视频内容向空闲区域所在的方向移动。
在一些实施例中,空闲区域位于视频内容上方,调整单元进一步被配置为:获取视频内容的高度信息;获取空闲区域对应的空闲高度信息;在空闲高度信息小于或等于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容的底部移出被非视频内容所遮挡的范围;在空闲高度信息大于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容位于空闲区域内。
在一些实施例中,调整单元进一步被配置为:向上移动视频内容,以使视频内容的顶部处于空闲区域的顶部。
在一些实施例中,调整单元进一步被配置为:在空闲高度信息大于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容的底部位于空闲区域的底部。
在一些实施例中,调整单元进一步被配置为:获取设备显示界面的整体高度信息;获取非视频内容所占用的占用高度信息;基于整体高度信息中除占用高度信息之外的剩余高度信息,确定空闲高度信息。
在一些实施例中,调整单元进一步被配置为:获取设备显示界面的整体高度信息和非视频内容所占用的占用高度信息;获取预留高度信息,预留高度信息包括:顶部预留高度和底部预留高度;确定整体高度信息中除占用高度信息之外的剩余高度信息,所述剩余高度信息包括:顶部位置和底部位置;通过将顶部位置下移顶部预留高度,并将底部位置上移底部预留高度,来调整剩余高度信息;基于调整后的剩余高度信息,确定空闲高度信息。
在一些实施例中,非视频内容包括:提示信息和/或操作控件。
根据本公开实施例的第三方面,提供一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为执行指令,以实现上述的视频的显示方法。
根据本公开实施例的第四方面,提供一种存储介质,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如上述的视频的显示方法。
根据本公开实施例的第五方面,提供一种计算机程序产品,包括处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为执行指令,以实现上述的视频的显示方法。
本公开上述实施例中,获取待显示视频,其中,待显示视频的视频内容未充满设备显示界面;获取设备显示界面中显示的非视频内容;在非视频内容会对显示于预设位置的视频内容产生遮挡的情况下,调整视频内容在设备显示界面中的显示位置,以减少非视频内容对视频内容的遮挡。上述方案根据非视频内容对视频内容的遮盖情况适应性调整视频内容在设备显示界面中的高度,可以使视频内容尽量少的被界面中的其他内容所遮挡,进而使得观看的用户能获得更为完整的信息,避免了相关技术中视频展示应用在视频展示的页面内,应用所提供的其他内容会对视频内容造成遮挡。
附图说明
图1是根据一示例性实施例示出的一种视频的显示方法的流程图。
图2是根据一示例性实施例示出的一种展示待显示视频的示意图。
图3是根据一示例性实施例示出的一种将视频内容上移的示意图。
图4是根据一示例性实施例示出的一种获取空闲高度信息的示意图。
图5是根据一示例性实施例示出的另一种将视频内容上移的示意图。
图6是根据一示例性实施例示出的又一种将视频内容上移的示意图。
图7是据一示例性实施例示出的一种显示内容上方包含文字的示意图。
图8是根据一示例性实施例示出的一种视频的显示装置的框图。
图9是根据一示例性实施例示出的一种用于执行上述视频的显示方法的电子设备800的框图。
具体实施方式
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
本公开实施例中的方案可以由安装在智能终端上的指定应用程序来执行,对于具有不同系统的智能终端,可以采用与之匹配的代码来实现,例如,对于iOS系统、Android系统、或Windows系统,可以通过不同的代码实现本公开实施例中的方法步骤。
需要注意的是,为了实现本公开实施例中的方案,在一些情况下,智能终端可以通过网络访问指定应用程序的服务器,来完成下述一些对数据进行请求的步骤(例如获取待显示视频),可以为无线网络,也可以为蜂窝网络。
图1是根据一示例性实施例示出的一种视频的显示方法的流程图,该视频的显示方法可以应用于电子设备,该电子设备例如可以为车载设备、移动设备、计算机设备等。如图1所示,根据本公开实施例的第一方面,提供一种视频的显示方法,该视频的显示方法应用于指定的应用程序中,包括以下步骤。
在步骤S11中,获取待显示视频,待显示视频的视频内容未充满设备显示界面。
在一些实施例中,上述待显示视频可以为根据用户在应用程序上的操作从服务端请求得到的视频。例如,用户启动指定应用程序后进入视频浏览界面,应用程序从服务端根据预设算法获取待显示视频,并在该视频浏览界面展示给用户。
待显示视频中的视频内容可以为横版视频,例如宽:高约为16:9的视频。在横版视频内容显示在竖版设备的设备显示界面的情况下,无法充满整个设备显示界面,空白区域可以通过黑色来填充。
图2是根据一示例性实施例示出的一种展示待显示视频的示意图,结合图2所示,待显示视频在纵向分为三段,包括中间的视频内容,以及处于视频内容上方和下方的填充底色。
在步骤S12中,获取设备显示界面中显示的非视频内容。
上述非视频内容可以是应用提供的显示内容,也可以是设备系统提供的显示内容。
在一些实施例中,设备显示界面在显示待显示视频的同时,还在待显示视频上层叠加显 示应用所提供的其他内容,例如提示信息或操作控件,这些内容显示在待显示视频之上。结合图2所示,该设备显示界面中,除了待显示视频,还包括:顶部导航(同城、关注和发现,当前处于发现界面)、作品信息(左下角)、操作控件(关注、点赞、转发和评论入口)以及底部入口。这些信息显示在待显示视频的上层,以便用户查看或操作。其中,可以注意到的是,该示例中的关注操作控件已经对视频内容产生了遮挡。
在指定应用在一些设备上显示的情况下,应用显示界面会充满整个设备的设备显示界面,而不会显示设备自身系统提供的一些信息,但一些设备仍然会始终保持显示设备自身系统提供的一些信息。在一些实施例中,在待显示视屏的上层,除了叠加有应用程序所提供的其他显示内容之外,还叠加有设备系统提供的显示内容,仍结合图2所示,在当前显示界面的顶部,除了应用程序所提供的顶部导航,还包括时间信息、网络信息和电量信息,这些信息是设备自身系统提供的显示内容,这些显示内容也属于上述的非视频内容。
在步骤S13中,在非视频内容对显示于预设位置的视频内容产生遮挡的情况下,调整视频内容在设备显示界面中的显示位置,以减少非视频内容对视频内容的遮挡。
在一些实施例中,上述预设位置即为设备显示界面中用于显示视频内容的默认位置,可以为视频显示界面的中部。在任意一个非视频内容与视频内容的位置相重合的情况下,由于非视频内容叠加在视频内容上方,因此都会对视频内容产生遮盖,在该种情况下,对整视频内容在设备显示界面中的显示位置进行调整。而在非视频内容不会对视频内容的产生遮挡的情况下,无需调整视频内容在设备界面中的位置。
结合图2所示,视频内容显示在设备显示界面中的一个默认位置,由于操作控件的存在使视频内容被遮挡,可以将视频内容向上移动,具体效果可以如图3所示。显然,将视频内容在设备显示界面中上移,视频内容避开了操作控件所在的位置,从而使视频内容完整的显示在设备显示界面中。
需要说明的是,在一些情况下,例如在视频内容所占的区域较大的情况下,上述方案通过移动视频内容,可以减少非视频内容对视频内容的遮挡,但仍然存在遮挡的情况,而在另一些情况下,例如在视频内容所占的区域较小的情况下,上述方案通过移动视频内容,可以完全避免非视频内容对视频内容的遮挡。但无论处于上述哪一种情况,通过该方案均可以减少非视频内容对视频内容的遮挡。
还需要注意的是,调整视频内容在设备显示界面中的显示位置这一过程,可以是可视化的展示在设备显示界面中,也可以仅作为执行步骤并不显示在设备显示界面中,也即设备显示界面中仅显示位置调整后的最终结果,下面分别进行说明。
在一些实施例中,对于上述步骤S13,可以是响应于获取到待显示视频和非视频内容, 先将视频内容显示在设备显示界面中的一个默认位置,在非视频内容对视频内容造成了遮挡的情况下,则调整视频内容在设备显示界面中的显示位置。例如,用户通过上下滑动切换视频内容。响应于用户向上滑动或向下滑动,应用程序获取到当前的待显示视频和非视频内容,先按照图2所示出的方式,将视频内容显示在默认位置,然后检测到视频内容被关注控件遮挡,再调整视频内容在设备显示界面中的位置,得到图3所示出的结果。
在一些实施例中,对于上述步骤S13,可以是响应于获取到待显示视频和非视频内容,并不将视频内容显示于上述的默认位置,而且首先判断将视频内容显示于默认位置,是否会被非视频内容所遮挡。在将视频内容显示于默认位置会被非视频内容所遮挡的情况下,则调整视频内容在设备显示界面中的位置后再进行显示,也即,并不显示视频内容移动的过程,而是直接显示如图3所示的结果。
由此可知,在本公开上述实施例中,获取待显示视频,其中,待显示视频的视频内容未充满设备显示界面;获取设备显示界面中显示的非视频内容;在非视频内容会对显示于预设位置的视频内容产生遮挡的情况下,调整视频内容在设备显示界面中的显示位置,以减少非视频内容对视频内容的遮挡。上述方案在显示于预设位置的视频内容会被非视频内容所遮挡的情况下,调整视频内容在设备显示界面中的位置,从而实现了对视频内容在设备显示界面中的位置进行自适应调整,进而减少了非视频内容对视频内容的遮挡,且在一些情况下,可以完全避免非视频内容对视频内容的遮挡,避免了视频展示应用在视频展示的页面内,应用所提供的其他内容会对视频内容造成遮挡,使得观看的用户能获得更为完整的视频信息。
在一些实施例中,在非视频内容会对显示于预设位置的视频内容产生遮挡的情况下,调整视频内容在设备显示界面中的显示位置的步骤包括:获取设备显示界面中的空闲区域,其中,空闲区域未被非视频内容占用;将视频内容向空闲区域所在的方向移动。
在一些实施例中,上述空闲区域可以是设备显示界面中未被非视频内容遮挡的区域。上述空闲区域所在的方向用于表示空闲区域相对于视频内容的方向。例如,空闲区域位于视频内容上方,则将视频内容向上方移动;空闲区域位于视频内容的下方,则将视频内容向下方移动。
上述方案确定空闲区域所在的方向,将视频内容向空闲区域所在的方向移动,从而可以最大程度的减少视频内容和非视频内容在显示位置上的冲突,进而减少非视频内容对视频内容的遮盖。
在一些实施例中,根据视频内容的高度信息调整视频内容在设备显示界面中的显示位置的步骤包括:获取视频内容的高度信息;获取空闲区域对应的空闲高度信息;在空闲高度信息小于或等于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容的底部移出 被非视频内容所遮挡的范围;在空闲高度信息大于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容位于空闲区域内。
在一些实施例中,上述空闲高度信息,可以根据未被非视频内容占用的空闲区域的下端的高度减去空闲区域上端的高度得到。
结合图2所示,h即为视频内容的高度信息,H1即为空闲高度信息,在H1对应的空闲区域中不存在任何非视频内容,也即在H1对应的区域内显示视频内容,不会被任何非视频内容所遮挡。
在空闲高度信息小于或等于视频内容的高度信息的情况下,视频内容难以全部显示在空闲区域内,因此可以将视频内容适当上移,使其能够避开非视频内容即可。在空闲高度信息大于视频内容的高度信息的情况下,视频内容可以完全显示在空闲区域,因此将视频内容移动至空闲区域内显示,从而可以完全避免非视频内容的遮挡。
在上述方案中,响应于确定空闲高度信息,根据空闲高度信息与视频内容的高度信息确定如何对视频内容进行移动,从而确定出对应的调整方式,以适应不同尺寸的视频内容。
在一些实施例中,在空闲高度信息小于或等于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容的底部移出被非视频内容所遮挡的范围的步骤包括:向上移动视频内容,以使视频内容的顶部处于空闲区域的顶部。
在一些实施例中,在空闲高度信息小于或等于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容的底部移出被非视频内容所遮挡的范围的步骤包括:向上移动视频内容,以使视频内容的顶部处于空闲区域的顶部。
在一些实施例中,在空闲高度信息小于或等于视频内容的高度信息的情况下,说明视频内容的高度较高,为了防止视频内容被非视频内容所遮挡,需要将视频内容尽量向上移动,因此根据视频内容的顶部位置移动至空闲区域的顶部。
在一些实施例中,结合图4所示,视频内容顶部的位置为y2,第一目标位置即为空闲高度信息的顶部y1,上移视频内容,以使视频内容的顶部到达第一目标位置,即为将y2移动至y1,上移的效果如图5所示。
本公开实施例上述方案在空闲区域的空闲高度信息小于或等于视频内容的高度信息的情况下,将视频内容上移使视频内容的顶部到达空闲区域的顶部,从而最大程度避免视频内容被非视频内容所遮挡,进而保证用户的观看体验。
在一些实施例中,在空闲高度信息大于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容位于空闲区域内的步骤包括:向上移动视频内容,以视频内容的底部位于空闲区域的底部。
在一些实施例中,在空闲高度信息大于视频内容的高度信息的情况下,说明空闲区域有足够的空间放置视频内容,为了使视频内容显示在合适的位置,可以将视频内容的底部上移至空闲区域的底部。
在一些实施例中,仍结合图4所示,视频内容底部的位置为y3,第二目标位置即为空闲高度信息的顶部y4,上移视频内容,以使视频内容的底部到达第二目标位置,即为将y3移动至y4,上移的效果如图6所示。上移后的视频内容不会被非视频内容遮挡,也不会距离上方的显示内容太近,从而保证用户的观看体验。
本公开实施例上述方案在空闲区域的空闲高度信息大于视频内容的高度信息的情况下,将视频内容上移使视频内容的底部到达空闲区域的底部,从而在实现了避免视频内容被非视频内容遮挡的基础上,将视频内容显示在设备显示界面中视觉效果较好的位置,进一步提升用户的观看体验。
在一些实施例中,获取设备显示界面中的空闲高度信息的步骤包括:获取设备显示界面的整体高度信息;获取非视频内容所占用的占用高度信息;基于整体高度信息中除占用高度信息之外的剩余高度信息,确定空闲高度信息。
在一些实施例中,非视频内容包括:提示信息和/或操作控件,占用高度信息包括:提示信息和/或操作控件的高度信息。
在一些实施例中,在非动态效果下,令上述空闲高度对应的空闲高度信息为H1,H1=屏幕高度-系统信息高度*(0 or 1)-手机底部安全区高度*(or)-底部信息高度*(or)-顶部导航高度or顶栏返回等按钮高度-操作区高度。在上述示例中,(0 or 1)用于表示(0 or 1)之前的高度存在或者不存在。由于不同系统上的非视频内容可以不同,因此在存在该非视频内容的情况下,选择1与之前的高度相乘,在不存在该非视频内容的情况下,选择0与之前的高度相乘。顶部导航高度or顶栏返回等按钮高度用于表示顶部导航高度与顶栏返回等按钮是不同界面中处于同一位置的非视频内容,在当前设备显示界面包括顶部导航的情况下,减去顶部导航的高度;在当前设备显示界面包括顶栏返回等按钮的情况下,减去顶栏返回等按钮的高度。
上述屏幕高度即为整体高度信息,系统信息高度、手机底部安全区、底部信息高度、顶部导航高度或顶栏返回等按钮高度以及操作区高度之和即为上述占用高度信息。结合图2所示,系统信息表示图2中顶部显示的系统时间、信号以及电量这些信息;手机底部安全区表示图2中底部横线所在的位置,通过在该位置上滑操作可以调出设备的系统控制页面;底部信息用于表示图2中下部介绍视频内容的信息;顶部导航用于表示图2中顶部示出的滑动导航控件:同城、关注和发现,通过左右滑动可以同城、关注和发现之间切换;顶栏返回等按 钮在图2中未示出;操作区表示图2中右下侧的关注、点赞、评论以及转发控件所在的区域。由此可见,上述公式中,用整体高度信息减去了所有非视频内容的高度信息,得到了空闲高度信息。
通过本公开上述实施例提供的方案,获得了设备显示界面中空闲区域,以及该空闲区域对应的空闲高度信息,从而能够根据该空闲高度信息确定如何调整视频内容在设备显示界面中的位置。
在一些实施例中,获取设备显示界面的整体高度信息和非视频内容所占用的占用高度信息;获取预留高度信息,预留高度信息包括:顶部预留高度和底部预留高度;确定整体高度信息中除占用高度信息之外的剩余高度信息,剩余高度信息包括:顶部位置和底部位置;通过将顶部位置下移顶部预留高度,并将底部位置上移底部预留高度,来调整剩余高度信息;基于调整后的剩余高度信息,确定空闲高度信息。
在一些实施例中,上述顶部预留高度和底部预留高度可以是相同的高度。结合图2所示,上述剩余高度信息可以为图2中的H1。
图4是根据一示例性实施例示出的一种获取空闲高度信息的示意图,在一些实施例中,结合图4所示,在图4的示例中,令空闲高度信息为H2,顶部预留高度为A,底部预留高度为B。将剩余高度信息H1的上端下移高度A到达位置y1,将剩余高度信息H2的底部上移高度B到达位置y4。令上述空闲高度对应的空闲高度信息为H2,即可得到H2=屏幕高度-系统信息高度*(0 or 1)-手机底部安全区高度*(or)-底部信息高度*(or)-顶部导航高度or顶栏返回等按钮高度-操作区高度-A-B。结合图4所示可知,通过设置预留高度信息,使得空闲区域与上方和下方的非视频内容之间都具有一定的距离,从而避免视频内容距离上方或下方的非视频内容太近而影响用户的观感体验。
上述方案设置顶部预留高度和底部预留高度,以使在对视频内容进行移动的情况下,视频内容与上端或下端的非视频内容之间至少保持了预留高度所指示的距离,从而避免视频内容的上端与上方的非视频内容距离过近,或视频内容的下端与下方的非视频内容距离过近,进而提高视频内容的显示效果。
在一些实施例中,在待显示视频包括文字的情况下,视频内容包括视频主体和文字。
在一些实施例中,上述文字可以为会跟随视频内容的播放而发生变化的文字,例如视频内容的字幕等。在待显示视频包括文字的情况下,视频内容包括视频主体和文字,视频内容的高度包括视频主体的高度与文字高度之和。在文字处于视频主体的上方的情况下,文字占用的高度可以为视频主体的上端距离文字上端的距离,在文字处于视频主体的下方的情况下,文字占用的高度可以为视频主体的下端距离文字下端的距离。
在一些待显示视频中,包含用于对视频进行解释说明的文字,在这样的情况下,文字被遮挡,也会影响观看效果,上述方案将文字也作为视频内容的一部分,则其所占的高度也计算在视频内容的高度信息内,从而在对视频内容进行移动的情况下,视频内容所包含的文字也会避免被非视频内容所遮挡。
图7是据一示例性实施例示出的一种显示内容上方包含文字的示意图,在这种示例中,视频内容的高度信息h包括视频主体的高度h1与文字所占用的高度h2之和。
图8是根据一示例性实施例示出的一种视频的显示装置的框图。参照图8,根据本公开实施例的第二方面,提供一种视频的显示装置,该装置包括第一获取单元81,第二获取单元82和调整单元83。
第一获取单元81被配置为获取待显示视频,其中,待显示视频的视频内容未充满设备显示界面。
第二获取单元82被配置为获取设备显示界面中显示的非视频内容。
调整单元83被配置为在非视频内容会对显示于预设位置的视频内容产生遮挡的情况下,调整视频内容在设备显示界面中的显示位置,以减少非视频内容对视频内容的遮挡。
在一些实施例中,调整单元进一步被配置为:获取设备显示界面中的空闲区域,其中,空闲区域未被非视频内容占用;将视频内容向空闲区域所在的方向移动。
在一些实施例中,空闲区域位于视频内容上方,调整单元进一步被配置为:获取视频内容的高度信息;获取空闲区域对应的空闲高度信息;在空闲高度信息小于或等于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容的底部移出被非视频内容所遮挡的范围;在空闲高度信息大于视频内容的高度信息的情况下,向上移动视频内容,以使视频内容位于空闲区域内。
在一些实施例中,调整单元进一步被配置为:向上移动视频内容,以使视频内容的顶部处于空闲区域的顶部。
在一些实施例中,调整单元进一步被配置为:在空闲高度信息大于视频内容的高度信息的情况下,向上移动视频内容,以视频内容的底部位于空闲区域的底部。
在一些实施例中,调整单元进一步被配置为:获取设备显示界面的整体高度信息;获取非视频内容所占用的占用高度信息;基于整体高度信息中除占用高度信息之外的剩余高度信息,确定空闲高度信息。
在一些实施例中,调整单元进一步被配置为:获取设备显示界面的整体高度信息和非视频内容所占用的占用高度信息;获取预留高度信息,预留高度信息包括:顶部预留高度和底 部预留高度;确定整体高度信息中除占用高度信息之外的剩余高度信息,剩余高度信息包括:顶部位置和底部位置;通过将顶部位置下移顶部预留高度,并将底部位置上移底部预留高度,来调整所述剩余高度信息;基于调整后的剩余高度信息,确定得到空闲高度信息。
在一些实施例中,非视频内容包括:提示信息和/或操作控件,占用高度信息包括:提示信息和/或操作控件的高度信息。
在一些实施例中,在待显示视频包括文字的情况下,视频内容包括视频主体和文字。
根据本公开实施例的第三方面,本公开实施例还提出了一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现如本公开实施例第一方面所述的视频的显示方法。
图9是根据一示例性实施例示出的一种用于执行上述视频的显示方法的电子设备800的框图。
根据本公开实施例的第四方面,还提供了一种包括指令的存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。在一些实施例中,存储介质可以是非临时性计算机可读存储介质,例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
当上述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如本公开实施例第一方面所述的数据处理方法。
根据本公开实施例的第五方面,本公开实施例还提出了一种计算机程序产品,包括处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现本公开实施例第一方面所述的视频的显示处理方法。
本公开所有实施例均可以单独被执行,也可以与其他实施例相结合被执行,均视为本公开要求的保护范围。

Claims (19)

  1. 一种视频的显示方法,包括:
    获取待显示视频,其中,所述待显示视频的视频内容未充满设备显示界面;
    获取所述设备显示界面中显示的非视频内容;
    在所述非视频内容对显示于预设位置的所述视频内容产生遮挡的情况下,调整所述视频内容在所述设备显示界面中的显示位置,以减少所述非视频内容对所述视频内容的遮挡。
  2. 根据权利要求1所述的视频的显示方法,其中所述在所述非视频内容对显示于预设位置的所述视频内容产生遮挡的情况下,调整所述视频内容在所述设备显示界面中的显示位置的步骤包括:
    获取所述设备显示界面中的空闲区域,其中,所述空闲区域未被所述非视频内容占用;
    将所述视频内容向所述空闲区域所在的方向移动。
  3. 根据权利要求2所述的视频的显示方法,其中所述空闲区域位于所述视频内容上方,所述将所述视频内容向所述空闲区域所在的方向移动的步骤包括:
    获取所述视频内容的高度信息;
    获取所述空闲区域对应的空闲高度信息;
    在所述空闲高度信息小于或等于所述视频内容的高度信息的情况下,向上移动所述视频内容,以使所述视频内容的底部移出被所述非视频内容所遮挡的范围;
    在所述空闲高度信息大于所述视频内容的高度信息的情况下,向上移动所述视频内容,以使所述视频内容位于所述空闲区域内。
  4. 根据权利要求3所述的视频的显示方法,其中所述在所述空闲高度信息小于或等于所述视频内容的高度信息的情况下,向上移动所述视频内容,以使所述视频内容的底部移出被所述非视频内容所遮挡的范围的步骤包括:
    向上移动所述视频内容,以使所述视频内容的顶部处于所述空闲区域的顶部。
  5. 根据权利要求3所述的视频的显示方法,其中所述在所述空闲高度信息大于所述视频内容的高度信息的情况下,向上移动所述视频内容,以使所述视频内容位于所述空闲区域内的步骤包括:
    向上移动所述视频内容,以使所述视频内容的底部位于所述空闲区域的底部。
  6. 根据权利要求3所述的视频的显示方法,其中所述获取所述空闲区域对应的空闲高度信息的步骤包括:
    获取所述设备显示界面的整体高度信息;
    获取所述非视频内容所占用的占用高度信息;
    基于所述整体高度信息中除所述占用高度信息之外的剩余高度信息,确定所述空闲高度信息。
  7. 根据权利要求3所述的视频的显示方法,其中所述获取所述空闲区域对应的空闲高度信息的步骤包括:
    获取所述设备显示界面的整体高度信息和所述非视频内容所占用的占用高度信息;
    获取预留高度信息,所述预留高度信息包括:顶部预留高度和底部预留高度;
    确定所述整体高度信息中除所述占用高度信息之外的剩余高度信息,所述剩余高度信息包括:顶部位置和底部位置;
    通过将所述顶部位置下移所述顶部预留高度,并将所述底部位置上移所述底部预留高度,来调整所述剩余高度信息;
    基于调整后的剩余高度信息,确定所述空闲高度信息。
  8. 根据权利要求1至7中任意一项所述的视频的显示方法,其中所述非视频内容包括:提示信息和/或操作控件。
  9. 一种视频的显示装置,包括:
    第一获取单元,被配置为获取待显示视频,其中,所述待显示视频的视频内容未充满设备显示界面;
    第二获取单元,被配置为获取所述设备显示界面中显示的非视频内容;
    调整单元,被配置为在所述非视频内容对显示于预设位置的所述视频内容产生遮挡的情况下,调整所述视频内容在所述设备显示界面中的显示位置,以减少所述非视频内容对所述视频内容的遮挡。
  10. 根据权利要求9所述的视频的显示装置,其中所述调整单元进一步被配置为:
    获取所述设备显示界面中的空闲区域,其中,所述空闲区域未被所述非视频内容占用;
    将所述视频内容向所述空闲区域所在的方向移动。
  11. 根据权利要求10所述的视频的显示装置,其中所述空闲区域位于所述视频内容上方,所述调整单元进一步被配置为:
    获取所述视频内容的高度信息;
    获取所述空闲区域对应的空闲高度信息;
    在所述空闲高度信息小于或等于所述视频内容的高度信息的情况下,向上移动所述视频内容,以使所述视频内容的底部移出被所述非视频内容所遮挡的范围;
    在所述空闲高度信息大于所述视频内容的高度信息的情况下,向上移动所述视频内容,以使所述视频内容位于所述空闲区域内。
  12. 根据权利要求11所述的视频的显示装置,其中所述调整单元进一步被配置为:
    向上移动所述视频内容,以使所述视频内容的顶部处于所述空闲区域的顶部。
  13. 根据权利要求11所述的视频的显示装置,其中所述调整单元进一步被配置为:
    在所述空闲高度信息大于所述视频内容的高度信息的情况下,向上移动所述视频内容,以使所述视频内容的底部位于所述空闲区域的底部。
  14. 根据权利要求11所述的视频的显示装置,其中所述调整单元进一步被配置为:
    获取所述设备显示界面的整体高度信息;
    获取所述非视频内容所占用的占用高度信息;
    基于所述整体高度信息中除所述占用高度信息之外的剩余高度信息,确定所述空闲高度信息。
  15. 根据权利要求11所述的视频的显示装置,其中所述调整单元进一步被配置为:
    获取所述设备显示界面的整体高度信息和所述非视频内容所占用的占用高度信息;
    获取预留高度信息,所述预留高度信息包括:顶部预留高度和底部预留高度;
    确定所述整体高度信息中除所述占用高度信息之外的剩余高度信息,所述剩余高度信息包括:顶部位置和底部位置;
    通过将所述顶部位置下移所述顶部预留高度,并将所述底部位置上移所述底部预留高度,来调整所述剩余高度信息;
    基于调整后的剩余高度信息,确定所述空闲高度信息。
  16. 根据权利要求9至16中任意一项所述的视频的显示方法,其中所述非视频内容包括:提示信息和/或操作控件。
  17. 一种电子设备,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    获取待显示视频,其中,所述待显示视频的视频内容未充满设备显示界面;
    获取所述设备显示界面中显示的非视频内容;
    在所述非视频内容对显示于预设位置的所述视频内容产生遮挡的情况下,调整所述视频内容在所述设备显示界面中的显示位置,以减少所述非视频内容对所述视频内容的遮挡。
  18. 一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:
    获取待显示视频,其中,所述待显示视频的视频内容未充满设备显示界面;
    获取所述设备显示界面中显示的非视频内容;
    在所述非视频内容对显示于预设位置的所述视频内容产生遮挡的情况下,调整所述视频内容在所述设备显示界面中的显示位置,以减少所述非视频内容对所述视频内容的遮挡。
  19. 一种计算机程序产品,包括处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现以下步骤:
    获取待显示视频,其中,所述待显示视频的视频内容未充满设备显示界面;
    获取所述设备显示界面中显示的非视频内容;
    在所述非视频内容对显示于预设位置的所述视频内容产生遮挡的情况下,调整所述视频内容在所述设备显示界面中的显示位置,以减少所述非视频内容对所述视频内容的遮挡。
PCT/CN2021/128725 2020-11-10 2021-11-04 视频的显示方法及装置 Ceased WO2022100508A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011257027.0 2020-11-10
CN202011257027.0A CN112423086A (zh) 2020-11-10 2020-11-10 视频的显示方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022100508A1 true WO2022100508A1 (zh) 2022-05-19

Family

ID=74781680

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/128725 Ceased WO2022100508A1 (zh) 2020-11-10 2021-11-04 视频的显示方法及装置

Country Status (2)

Country Link
CN (1) CN112423086A (zh)
WO (1) WO2022100508A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12574602B2 (en) 2021-04-16 2026-03-10 Beijing Zitiao Network Technology Co., Ltd. Control display method, electronic device, and non-transitory computer-readable storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116324700A (zh) * 2020-10-15 2023-06-23 聚好看科技股份有限公司 显示设备及媒资播放方法
CN112423086A (zh) * 2020-11-10 2021-02-26 北京达佳互联信息技术有限公司 视频的显示方法、装置、电子设备及存储介质
CN119496940A (zh) * 2023-08-18 2025-02-21 北京有竹居网络技术有限公司 一种画面展示方法、装置、设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110037896A1 (en) * 2009-08-13 2011-02-17 Yung-Chih Lin Electronic Device and Method for Simultaneously Displaying Widget Window and Video Signal in Display Device
CN102301736A (zh) * 2011-07-06 2011-12-28 华为技术有限公司 视频播放内容切换的方法、装置及移动终端
CN105872710A (zh) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 视频播放方法、装置及客户端
CN109120981A (zh) * 2018-09-20 2019-01-01 北京达佳互联信息技术有限公司 信息列表展示方法、装置及存储介质
CN109618210A (zh) * 2018-11-08 2019-04-12 北京微播视界科技有限公司 视频画面调整方法、装置、计算机设备和可读存储介质
CN111294637A (zh) * 2020-02-11 2020-06-16 北京字节跳动网络技术有限公司 视频播放方法、装置、电子设备和计算机可读介质
CN112423086A (zh) * 2020-11-10 2021-02-26 北京达佳互联信息技术有限公司 视频的显示方法、装置、电子设备及存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019014859A1 (zh) * 2017-07-18 2019-01-24 华为技术有限公司 一种多任务操作方法及电子设备
CN108182030B (zh) * 2017-12-28 2020-12-15 深圳Tcl新技术有限公司 一种播放器控件隐藏方法及装置
CN109547644A (zh) * 2018-12-27 2019-03-29 维沃移动通信有限公司 一种信息显示方法及终端
CN109815367A (zh) * 2019-01-24 2019-05-28 北京字节跳动网络技术有限公司 展示页面的交互控制方法及装置
CN110784754A (zh) * 2019-10-30 2020-02-11 北京字节跳动网络技术有限公司 视频显示方法、装置和电子设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110037896A1 (en) * 2009-08-13 2011-02-17 Yung-Chih Lin Electronic Device and Method for Simultaneously Displaying Widget Window and Video Signal in Display Device
CN102301736A (zh) * 2011-07-06 2011-12-28 华为技术有限公司 视频播放内容切换的方法、装置及移动终端
CN105872710A (zh) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 视频播放方法、装置及客户端
CN109120981A (zh) * 2018-09-20 2019-01-01 北京达佳互联信息技术有限公司 信息列表展示方法、装置及存储介质
CN109618210A (zh) * 2018-11-08 2019-04-12 北京微播视界科技有限公司 视频画面调整方法、装置、计算机设备和可读存储介质
CN111294637A (zh) * 2020-02-11 2020-06-16 北京字节跳动网络技术有限公司 视频播放方法、装置、电子设备和计算机可读介质
CN112423086A (zh) * 2020-11-10 2021-02-26 北京达佳互联信息技术有限公司 视频的显示方法、装置、电子设备及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12574602B2 (en) 2021-04-16 2026-03-10 Beijing Zitiao Network Technology Co., Ltd. Control display method, electronic device, and non-transitory computer-readable storage medium

Also Published As

Publication number Publication date
CN112423086A (zh) 2021-02-26

Similar Documents

Publication Publication Date Title
WO2022100508A1 (zh) 视频的显示方法及装置
US11818440B2 (en) Method for displaying message on smart television, and smart television
US9047711B2 (en) Mobile terminal and 3D image control method thereof
CN103077361B (zh) 移动终端及其防窥视方法
US20140143691A1 (en) User interface generating apparatus and associated method
CN112153479A (zh) 弹幕区域的调整方法、装置、电子设备及存储介质
US11715445B2 (en) Display control adjustment method, and terminal, and computer-readable storage medium
CN108228073B (zh) 界面显示方法及装置
CN107835461B (zh) 焦点移动控制方法、智能电视及计算机可读存储介质
US20150185950A1 (en) Control device, control method, and program
CN106210852B (zh) 一种终端静态图层信息检测方法及终端
JP2016103823A (ja) 立体画像表示方法及び携帯端末
CN111447484B (zh) 电子节目指南epg的加载方法及装置、存储介质
CN115134649B (zh) 用于在视频内容内呈现交互式元素的方法和系统
CN109126131B (zh) 游戏画面显示方法、存储介质及终端
CN110119239B (zh) 一种输入法应用显示方法及装置
CN106599738A (zh) 终端设备的显示控制方法及装置
WO2015100594A1 (zh) 显示方法和终端
US11711507B2 (en) Information processing apparatus, program and information processing method
US20240176473A1 (en) Cross-process information processing method, and controller, terminal and storage medium
US20220319390A1 (en) Processing method and apparatus
EP4064016A1 (en) Interface display method of an application and apparatus
CN106713962B (zh) 视频展示方法、装置和终端设备
KR102120651B1 (ko) 터치스크린을 구비하는 디바이스에서 화면 표시 방법 및 장치
US8941648B2 (en) Mobile terminal and control method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21891034

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21891034

Country of ref document: EP

Kind code of ref document: A1