[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2022183869A1 - 显示方法、终端及存储介质 - Google Patents

显示方法、终端及存储介质 Download PDF

Info

Publication number
WO2022183869A1
WO2022183869A1 PCT/CN2022/073261 CN2022073261W WO2022183869A1 WO 2022183869 A1 WO2022183869 A1 WO 2022183869A1 CN 2022073261 W CN2022073261 W CN 2022073261W WO 2022183869 A1 WO2022183869 A1 WO 2022183869A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
size
video
display
virtual keyboard
Prior art date
Application number
PCT/CN2022/073261
Other languages
English (en)
French (fr)
Inventor
叶秋强
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP22762337.8A priority Critical patent/EP4300979A4/en
Publication of WO2022183869A1 publication Critical patent/WO2022183869A1/zh
Priority to US18/454,653 priority patent/US20230409195A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • 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/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • 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/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas

Definitions

  • the present application relates to the field of video playback in the communication field, and in particular, to a display method, a terminal and a storage medium.
  • the user when a user watches a video through a terminal such as a mobile phone, the user can click a set input box to wake up the virtual keyboard, and input comment information in the set input box through the virtual keyboard.
  • the comment information It is displayed on the video playback interface in the form of a bullet screen.
  • the virtual keyboard will block the video screen.
  • embodiments of the present application provide a display method, a terminal, and a storage medium.
  • the embodiment of the present application provides a display method, including:
  • the display area of the display screen is divided into at least a first area and a second area; the first area and the second area do not overlap;
  • the video is played in the first area, and the virtual keyboard is loaded in the second area.
  • the embodiment of the present application also provides a terminal, including:
  • the splitting unit is configured to divide the display area of the display screen into at least a first area and a second area when it is detected that the virtual keyboard is awakened while playing the video; the first area and the second area are not overlapping;
  • the display unit is configured to play the video in the first area, and load the virtual keyboard in the second area.
  • Embodiments of the present application also provide a terminal, including: a processor and a memory configured to store a computer program that can run on the processor,
  • the processor is configured to execute the steps of the above display method when running the computer program.
  • An embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above display method are implemented.
  • the display area of the display screen is at least divided into a first area and a second area that do not overlap; the video is played in the first area, and Load the virtual keyboard in the second area.
  • the video and the virtual keyboard are loaded into different areas, instead of superimposing the virtual keyboard on the video screen for display, the user can watch the complete video screen in the first area, and the displayed virtual keyboard will not block the playing video screen. It will not affect the user's viewing of the video.
  • FIG. 1 is a schematic diagram of a video playback interface provided in the related art
  • FIG. 2 is a schematic diagram of an implementation flowchart of a display method provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a display area of a display screen provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a display area of a display screen according to another embodiment of the present application.
  • FIG. 5 is a schematic diagram of a playback window of a video provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a playback window of a video provided by another embodiment of the present application.
  • FIG. 7 is an interface change diagram in the process of playing a video provided by an embodiment of the present application.
  • FIG. 8 is an interface change diagram in the process of playing a video provided by an embodiment of the present application.
  • FIG. 9 is a diagram of interface changes in the process of playing a video provided by another embodiment of the present application.
  • FIG. 10 is a diagram of interface changes in the process of playing a video provided by yet another embodiment of the application.
  • FIG. 11 is a diagram of interface changes in the process of playing a video provided by another embodiment of the application.
  • FIG. 12 is a schematic diagram of an implementation flowchart of a display method provided by another embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a terminal provided by another embodiment of the present application.
  • an embodiment of the present application provides a display method, including: in the case of detecting that the virtual keyboard is woken up while playing a video, dividing the display area of the display screen into at least a first area and a second area. ; The first area and the second area do not overlap; the video is played in the first area, and the virtual keyboard is loaded in the second area; thus, the virtual keyboard can be prevented from being superimposed on the video Display on the screen to prevent the displayed virtual keyboard from blocking the video screen.
  • dividing the display area of the display screen into at least a first area and a second area includes:
  • the display area is divided into at least the first area and the second area in the first direction; wherein,
  • the first direction represents the length direction or the width direction of the display screen.
  • the display area is divided into at least the first area and the first area in the first direction based on the first aspect ratio of the video and the second aspect ratio of the display screen.
  • Two areas including:
  • the first aspect ratio is smaller than the second aspect ratio, dividing the display area into at least the first area and the second area in the length direction of the display screen; or ,
  • the display area is divided into at least the first area and the second area in the width direction of the display screen .
  • the method when the display area is divided into at least the first area and the second area in the first direction, the method further includes:
  • the first size and the second size are characterized as corresponding sizes in the first direction.
  • the method when the size of the first area and the second area in the first direction is determined based on the first size of the virtual keyboard and the second size of the video, the method include:
  • the first sum value is less than or equal to the third size of the display area in the first direction, determining that the first area and the second area are in the first area based on the second size dimension in the orientation; or,
  • the first sum value represents the sum of the second size and a minimum size supported by the virtual keyboard in the first direction.
  • the playing the video in the first area includes:
  • the video is zoomed and zoomed, it is played in the first area.
  • the method also includes:
  • dividing the display area of the display screen into at least a first area and a second area includes:
  • the display area of the display screen is divided into
  • the third area is configured to display content other than the video and the virtual keyboard.
  • the setting conditions include: the display screen of the dual-screen folding terminal is in an unfolded state.
  • the third area is configured to display the bullet screen information corresponding to the video.
  • the embodiment of the present application also provides a terminal, including:
  • the splitting unit is configured to divide the display area of the display screen into at least a first area and a second area when it is detected that the virtual keyboard is awakened while playing the video; the first area and the second area are not overlapping;
  • the display unit is configured to play the video in the first area, and load the virtual keyboard in the second area.
  • the splitting unit is specifically configured as:
  • the display area is divided into at least the first area and the second area in the first direction; wherein,
  • the first direction represents the length direction or the width direction of the display screen.
  • the splitting unit is specifically configured as:
  • the first aspect ratio is smaller than the second aspect ratio, dividing the display area into at least the first area and the second area in the length direction of the display screen; or ,
  • the display area is divided into at least the first area and the second area in the width direction of the display screen .
  • the terminal further includes:
  • a determining unit configured to determine the size of the first area and the second area in the first direction based on the first size of the virtual keyboard and the second size of the video;
  • the first size and the second size are characterized as corresponding sizes in the first direction.
  • the determining unit is specifically configured as:
  • the first sum value is less than or equal to the third size of the display area in the first direction, determining that the first area and the second area are in the first area based on the second size dimension in the orientation; or,
  • the first sum value represents the sum of the second size and a minimum size supported by the virtual keyboard in the first direction.
  • the terminal further includes:
  • the receiving unit is configured to receive the bullet screen information about the video input through the loaded virtual keyboard.
  • the splitting unit is specifically configured as:
  • the display area of the display screen is divided into a first area, a second area and a third area;
  • the third area is configured to display content other than the video and the virtual keyboard.
  • the setting conditions include: the display screen of the dual-screen folding terminal is in an unfolded state.
  • Embodiments of the present application also provide a terminal, including: a processor and a memory configured to store a computer program that can run on the processor,
  • the processor is configured to execute the steps of any one of the above display methods when running the computer program.
  • Embodiments of the present application further provide a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of any of the foregoing display methods.
  • the display method includes:
  • Step 201 in the case of detecting that the virtual keyboard is awakened while playing the video, divide the display area of the display screen into at least a first area and a second area; the first area and the second area do not overlap.
  • the user can play the video through the built-in video playing application (APP) of the terminal, and can also play the video through the built-in browser of the terminal.
  • APP video playing application
  • the user can wake up the virtual keyboard through the setting input box in the corresponding interactive interface.
  • the terminal divides the display area of the display screen into at least a first area and a second area when it is detected that the virtual keyboard is awakened in the process of playing the video.
  • the terminal can divide the display area of the display screen into a first area and a second area adjacent to the top and bottom in the width direction of the display screen.
  • the schematic diagram of the display area of the display screen is shown in Figure 3.
  • the terminal may also divide the display area of the display screen into a first area and a second area adjacent to the left and right in the length direction of the display screen.
  • the length direction and width direction mentioned here refer to the horizontal and vertical directions of the display screen when the user holds the terminal.
  • the size of the display screen is 1280 pixels*768 pixels
  • the size of the display screen in the length direction is 1280 pixels
  • the size in the width direction is 768 pixels.
  • the terminal is in the vertical direction.
  • the size of the display screen in the length direction is 768 pixels
  • the size in the width direction is 1280 pixels.
  • the terminal can divide the display area of the display screen into a first area and a second area; when the size of the display screen of the terminal is large, for example, when the display screen of the dual-screen folding terminal is unfolded In the state, the display area of the display screen is divided into a first area, a second area and a third area as shown in FIG. 4 .
  • the third area can be configured to display content other than video and virtual keyboard.
  • the first area is configured to display a video image
  • the second area is configured to load a virtual keyboard
  • the third area is configured to display the barrage corresponding to the video being played. information, or configured to display relevant information from the video playback page.
  • the priority is to ensure the complete display of the played video.
  • the third area is configured to display the bullet screen information corresponding to the video being played
  • the third area is adjacent to the first area up and down. In this way, the bullet screen information and the video screen are displayed separately, which can prevent the bullet screen information from being displayed on the video screen because the bullet screen information is suspended. , which affects the user's viewing of the video.
  • dividing the display area of the display screen into at least a first area and a second area includes:
  • the display area is divided into at least the first area and the second area in the first direction; wherein,
  • the first direction represents the length direction or the width direction of the display screen.
  • the aspect ratio is also called the aspect ratio, for example, 16:9 or 4:3.
  • the size of the video is taken as the reference here, and the first aspect ratio of the video and the second aspect ratio of the display screen are combined.
  • the comparison result is obtained, and based on the comparison result, the display area is divided into at least the first area and the second area in the length direction of the display screen; or, the display area is divided into at least the first area in the width direction of the display screen and the second area.
  • the terminal when the dual-screen folding terminal is in a fully expanded state, the terminal divides the display area into at least a first area and a second area adjacent to the top and bottom in the width direction of the display screen; when the dual-screen folding terminal is in a partially expanded state , and the length of the partially unfolded display screen is much greater than the width of the display screen, for example, when the aspect ratio of the partially unfolded display screen is greater than the set threshold, the terminal divides the display area into at least left and right in the length direction of the display screen Adjacent first area and second area.
  • the display area is at least divided in the first direction based on the first aspect ratio of the video and the second aspect ratio of the display screen. Divided into the first area and the second area, including:
  • the first aspect ratio is smaller than the second aspect ratio, dividing the display area into at least the first area and the second area in the length direction of the display screen; or ,
  • the display area is divided into at least the first area and the second area in the width direction of the display screen .
  • the first aspect ratio when a video is played in full screen, when the first aspect ratio is 16:9 and the second aspect ratio is 18:9 or 21:9, at least the first area is divided in the length direction of the display screen and the second area, to divide the display area of the display screen into a first area and a second area adjacent to the left and right; when the first aspect ratio is 4:3 and the second aspect ratio is 1:1, At least a first area and a second area are divided in the width direction of the display screen, so that the display area of the display screen is divided into the first area and the second area which are adjacent up and down.
  • the method when the display area is divided into at least the first area and the second area in the first direction, the method further includes:
  • the first size and the second size are characterized as corresponding sizes in the first direction.
  • the first size of the virtual keyboard refers to the corresponding size when the virtual keyboard is not scaled, and the first size of the virtual keyboard is set and stored in the local database.
  • Second aspect ratio of the display screen (horizontal resolution ⁇ horizontal pixel length): (vertical resolution ⁇ vertical pixel length).
  • the sizes mentioned in the embodiments of this application are all measured in pixels, and the size in the length direction of the display screen represents the product between the number of horizontal pixels and the length of the horizontal pixels; the size in the width direction of the display screen represents the vertical direction The product between the number of pixels and the vertical pixel length.
  • the size in the length direction of the display screen represents the number of pixels in the horizontal direction, and the size in the width direction of the display screen represents the number of pixels in the vertical direction.
  • the terminal determines the horizontal resolution of the video based on the first aspect ratio of the video and the second aspect ratio of the display screen, and compares the horizontal resolution of the video with the horizontal resolution of the video.
  • the product between the horizontal pixel lengths is determined as the frame length supported by the video, and the length of the first area and the length of the second area are determined based on the length of the virtual keyboard and the frame length supported by the video.
  • the sum of the length of the first area and the length of the second area is less than or equal to the length of the video playback window, and the length of the video playback window is less than or equal to the length of the display screen.
  • the terminal determines the vertical resolution of the video based on the first aspect ratio of the video and the second aspect ratio of the display screen, and calculates the vertical resolution of the video by the length of the vertical pixels.
  • the product is determined as the screen width supported by the video, and the width of the first area and the width of the second area are determined based on the width of the virtual keyboard and the screen width supported by the video.
  • the sum of the width of the first area and the width of the second area is less than or equal to the width of the video playback window, and the width of the video playback window is less than or equal to the width of the display screen.
  • the playback window of the video corresponds to the display area of the display screen.
  • the width of the playback window of the video is equal to the width of the display area of the display screen.
  • the width of the video playback window may be smaller than the width of the display area of the display screen.
  • the size of the second area in the first direction is greater than or equal to the minimum size supported by the virtual keyboard in the first direction.
  • the size of the second area in the first direction is generally smaller than or equal to the first size of the virtual keyboard in the first direction, and larger than or equal to the minimum size supported by the virtual keyboard in the first direction. Leave more area in the video's playback window to play the video.
  • the display area of the display screen is larger, and the screen of the video is not reduced or the reduction ratio of the screen is smaller than the set value.
  • the determined size of the second area in the first direction may be larger than the second size of the virtual keyboard in the first direction, so that the enlarged virtual keyboard is loaded in the second area.
  • the size of the first region in the first direction is larger than the size of the second region in the first direction.
  • the The methods described include:
  • the first sum value is less than or equal to the third size of the display area in the first direction, determining that the first area and the second area are in the first area based on the second size dimension in the orientation; or,
  • the first sum value represents the sum of the second size and a minimum size supported by the virtual keyboard in the first direction.
  • the terminal calculates the sum of the second size of the video in the first direction and the minimum size supported by the virtual keyboard in the first direction to obtain the first sum value, and compares the calculated first sum value with the video playback window in the first The third dimension in one direction is compared, and the comparison result is obtained.
  • the comparison result indicates that the first sum value is less than or equal to the third size, it indicates that the video playback window can also display the complete video screen and the virtual keyboard without reducing the video screen or the virtual keyboard.
  • the terminal The sizes of the first region and the second region in the first direction are determined based on the second size of the video.
  • the size of the first area in the first direction is larger than the second size of the video in the first direction, and the size of the second area in the first direction is equal to the size of the virtual keyboard in the first direction.
  • the size is upward, so that the enlarged video can be played in the first area.
  • the size in the first direction is equal to the second size of the video in the first direction, and the size of the second area in the first direction is larger than the size of the virtual keyboard in the first direction. In this way, you can Load the enlarged virtual keyboard in the second area. in,
  • the first area in the first direction is larger than the second size of the video in the first direction
  • the first area is configured for the terminal to play the video in full size; or the first area is configured for the terminal to play the video in the first
  • the video is played at the second size in one direction, and the extra area in the first area is left black, wherein the sum of the size of the black area in the first direction and the size of the video in the first direction is equal to the first direction.
  • the size of a region on the first side blackout processing can be performed on the top and bottom of the adjacent video screen, or blackout processing can be performed on the left and right sides of the adjacent video screen.
  • the comparison result indicates that the first sum value is greater than the third size, it indicates that the video playback window cannot display the complete video screen and the virtual keyboard without reducing the video screen or the virtual keyboard.
  • place the virtual keyboard in the The minimum size supported in the first direction is determined as the size of the second area in the first direction, so that the virtual keyboard is loaded in the second area according to the minimum size supported by the virtual keyboard.
  • Step 202 Play the video in the first area, and load the virtual keyboard in the second area.
  • the terminal plays a video in the first area of the display screen, and loads a virtual keyboard in the second area, so that the user can input the bullet screen information for the played video through the virtual keyboard.
  • the interface change diagram of the terminal in the process of playing the video is shown in FIG. 7 or FIG. 8 .
  • the bullet screen information corresponding to the played video is suspended and displayed in the On the screen of the first area; in FIG. 8 , the bullet screen information corresponding to the played video can be displayed in the black area in the first area, or can be displayed in the black area in the first area and the screen of the video at the same time.
  • the terminal can play the video in the first area based on the size of the first area in the first direction and the second size of the video in the first direction; based on the size of the second area in the first direction, the virtual keyboard At the first size in the first direction and the minimum size supported by the virtual keyboard in the first direction, the virtual keyboard is loaded in the second area.
  • the terminal When the size of the first area in the first direction is smaller than the size of the video in the first direction, the terminal reduces the size of the played video, and displays the reduced video image in the first area; when the first area is in the first area When the size in the first direction is equal to the size of the video in the first direction, the terminal does not perform screen scaling on the played video; when the size of the first area in the first direction is larger than the size of the video in the first direction, the terminal The video is enlarged, and the enlarged video image is displayed in the first area.
  • the second area in the first direction When the size of the second area in the first direction is equal to the minimum size supported by the virtual keyboard in the first direction, the second area is loaded with the minimum size supported by the virtual keyboard, that is, the display in the second area is The size of the virtual keyboard is equal to the minimum size supported by the virtual keyboard.
  • the size of the second area in the first direction is larger than the minimum size supported by the virtual keyboard in the first direction and smaller than the first size of the virtual keyboard in the first direction, based on the size of the second area in the first direction
  • the virtual keyboard is reduced, and the reduced virtual keyboard is loaded in the second area, and the size of the reduced virtual keyboard in the first direction is larger than the minimum height supported by the virtual keyboard in the first direction.
  • the virtual keyboard is not reduced.
  • the terminal when the first sum value is less than or equal to the third size, and the size of the first area in the first direction is larger than the second size of the video in the first direction, the terminal can The size of the video in the first direction and the first aspect ratio of the video are enlarged, and the enlarged video is played in the first area, so that the video is played in full size in the first area.
  • the terminal can also play the video in the first area according to the second size of the video in the first direction, and perform blackout processing on the extra area in the first area.
  • the size of the video picture in the first direction and the blackout The sum of the sizes of the regions in the first direction is equal to the size of the first regions in the first direction.
  • the terminal loads the virtual keyboard in the second area according to the first size of the virtual keyboard in the first direction or according to the minimum size supported by the virtual keyboard in the first direction.
  • the terminal when the first direction is the width direction of the display screen, the terminal is in the first direction according to the screen width of the video.
  • the video is played in the area, and the top and bottom of the adjacent video screen are left black, and the terminal loads the virtual keyboard in the second area according to the width of the virtual keyboard.
  • the width of the screen in the first area is equal to the screen width of the video, and is smaller than the width of the first area; the width of the virtual keyboard displayed in the second area is equal to the width of the virtual keyboard.
  • FIG. 10 a diagram of interface changes during video playback provided by another embodiment of the present application
  • the terminal plays the video in full size in the first area, and the terminal follows the virtual
  • the minimum width supported by the keyboard is loaded into the virtual keyboard in the second area.
  • the width of the screen in the first area is greater than that of the video
  • the width of the virtual keyboard displayed in the second area is equal to the minimum width supported by the virtual keyboard.
  • the terminal when the first sum value is less than or equal to the third size, and the size of the first area in the first direction is equal to the second size of the video in the first direction, the terminal is based on the video in the first direction.
  • the second size in the direction plays the video in the first area, the virtual keyboard is enlarged according to the size of the second area in the first direction, and the enlarged virtual keyboard is loaded in the second area.
  • the playing the video in the first area includes:
  • the video is zoomed and zoomed, it is played in the first area.
  • the terminal loads the virtual keyboard in the second area according to the minimum size supported by the virtual keyboard in the first direction;
  • the size in one direction scales the video, and the scaled video is played in the first area.
  • the terminal displayed in the second area The size of the virtual keyboard in the first direction is equal to the minimum size supported by the virtual keyboard.
  • the size of the first area in the first direction is equal to the second size of the video in the first direction, according to the first size of the video in the first direction.
  • the terminal when the first direction is the width direction of the display screen, the terminal will play the screen in the first area after the screen is reduced. ; load the virtual keyboard in the second area according to the minimum width supported by the virtual keyboard.
  • the terminal displays a complete video picture in the first area, and when the played video corresponds to the bullet screen information, the terminal can also display the bullet screen information corresponding to the played video in the first area.
  • the method further includes:
  • the virtual keyboard is centrally loaded in the second area.
  • the video is centrally played in the first area for the convenience of the user to watch
  • the virtual keyboard is centrally loaded in the second area to facilitate the user to operate the virtual keyboard with both hands.
  • the method further includes:
  • the terminal can receive the bullet screen information about the video input by the user through the virtual keyboard.
  • the terminal detects that the user triggers the sending instruction, it sends the bullet screen information input through the virtual keyboard to the server corresponding to the video, so that the server can receive the bullet screen information after receiving the video.
  • the received bullet screen information is broadcast, so that the user watching the video can view the corresponding bullet screen information.
  • the user can see the complete video screen.
  • the terminal displays the unsent bullet screen information in the second area.
  • the display area of the display screen is at least divided into a first area and a second area that do not overlap each other; when the video is played in the first area, And load the virtual keyboard in the second area.
  • the video and the virtual keyboard are loaded into different areas, instead of superimposing the virtual keyboard on the video screen for display, the user can watch the complete video screen in the first area, and the user can input the target object on the virtual keyboard loaded through the second area.
  • the virtual keyboard will not block the screen of the playing video, and will not affect the user to watch the video.
  • FIG. 12 shows a schematic flowchart of the implementation of the display method provided by the application embodiment of the present application. As shown in FIG. 12, the display method includes:
  • Step 1201 In the case of detecting that the virtual keyboard is awakened while playing the video, based on the height of the virtual keyboard and the vertical video resolution of the video, based on the first aspect ratio of the video and the display screen the second aspect ratio, the display area is divided into at least the first area and the second area in the first direction; wherein, the first direction represents the length direction or width direction of the display screen; so The first area and the second area do not overlap.
  • the horizontal screen display is mainly used.
  • the terminal detects the current display mode and play mode when it detects that the virtual keyboard is awakened while playing the video.
  • the display mode includes a horizontal screen display mode or a vertical screen display mode
  • the playback mode includes a full-screen playback mode and a non-full-screen playback mode.
  • the display area is displayed in the first direction. It is divided into at least a first area and a second area.
  • the specific implementation please refer to the above related description, which will not be repeated here.
  • Step 1202 Play a video in the first area, and load the virtual keyboard in the second area.
  • the terminal plays the video in the center of the first area, and loads the virtual keyboard in the center of the second area.
  • Step 1203 Receive the bullet screen information about the video input through the loaded virtual keyboard.
  • the embodiment of the present application further provides a terminal, as shown in FIG. 13 , the terminal includes:
  • the splitting unit 131 is configured to divide the display area of the display screen into at least a first area and a second area when it is detected that the virtual keyboard is awakened while playing the video; the first area and the second area do not overlap;
  • the display unit 132 is configured to play a video in the first area, and load the virtual keyboard in the second area.
  • the splitting unit 131 is specifically configured as:
  • the display area is divided into at least the first area and the second area in the first direction; wherein,
  • the first direction represents the length direction or the width direction of the display screen.
  • the splitting unit 131 is specifically configured as:
  • the first aspect ratio is smaller than the second aspect ratio, dividing the display area into at least the first area and the second area in the length direction of the display screen; or ,
  • the display area is divided into at least the first area and the second area in the width direction of the display screen .
  • the terminal further includes:
  • a determining unit configured to determine the size of the first area and the second area in the first direction based on the first size of the virtual keyboard and the second size of the video;
  • the first size and the second size are characterized as corresponding sizes in the first direction.
  • the determining unit is specifically configured as:
  • the first sum value is less than or equal to the third size of the display area in the first direction, determining that the first area and the second area are in the first area based on the second size dimension in the orientation; or,
  • the first sum value represents the sum of the second size and a minimum size supported by the virtual keyboard in the first direction.
  • the display unit 132 is specifically configured to: play the video in the first area after performing screen scaling on the video.
  • the terminal further includes: a receiving unit configured to receive the bullet screen information about the video input through the loaded virtual keyboard.
  • the splitting unit 131 is specifically configured to divide the display area of the display screen into a non-overlapping first area, a second area and a third area under the condition that the display screen satisfies a set condition area; wherein the third area is configured to display content other than the video and the virtual keyboard.
  • the setting conditions include: the display screen of the dual-screen folding terminal is in an unfolded state.
  • the third area is configured to display bullet screen information corresponding to the video.
  • the splitting unit 131 and the display unit 132 can be processed by processors in the terminal, such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), a microcontroller unit (MCU, Microcontroller Unit) or programmable gate array (FPGA, Field-Programmable Gate Array), etc.; the receiving unit can be realized through the processor and the communication interface.
  • processors in the terminal such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), a microcontroller unit (MCU, Microcontroller Unit) or programmable gate array (FPGA, Field-Programmable Gate Array), etc.
  • the receiving unit can be realized through the processor and the communication interface.
  • the processor needs to run the program stored in the memory to realize the functions of the above program modules.
  • the terminal provided in the above embodiment plays a video
  • only the division of the above program modules is used as an example for illustration.
  • the internal structure is divided into different program modules to perform all or part of the processing described above.
  • the terminal provided in the above-mentioned embodiments and the display method embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.
  • FIG. 14 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present application. As shown in FIG. 14 , the terminal 14 includes:
  • a communication interface 141 capable of information interaction with other devices such as network devices;
  • the processor 142 is connected to the communication interface 141 to realize information interaction with other devices, and is configured to execute the method provided by one or more technical solutions on the terminal side when running a computer program. And the computer program is stored on the memory 143 .
  • bus system 144 is configured to enable connection communication between these components.
  • bus system 144 also includes a power bus, a control bus, and a status signal bus.
  • the various buses are labeled as bus system 144 in FIG. 14 .
  • the memory 143 in the embodiment of the present application is configured to store various types of data to support the operation of the terminal 14 .
  • Examples of such data include: any computer program configured to operate on terminal 14 .
  • the memory 143 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
  • the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-only memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD-ROM, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be disk memory or tape memory.
  • RAM Random Access Memory
  • SRAM Static Random Access Memory
  • SSRAM Synchronous Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Enhanced Type Synchronous Dynamic Random Access Memory
  • SLDRAM Synchronous Link Dynamic Random Access Memory
  • DRRAM Direct Rambus Random Access Memory
  • the memory 143 described in the embodiments of the present application is intended to include, but not limited to, these and any other suitable types of memory.
  • the methods disclosed in the above embodiments of the present application may be applied to the processor 142 or implemented by the processor 142 .
  • the processor 142 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in the processor 142 or an instruction in the form of software.
  • the aforementioned processor 142 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • the processor 142 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of this application.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in the memory 143, and the processor 142 reads the program in the memory 143, and completes the steps of the foregoing method in combination with its hardware.
  • an embodiment of the present application further provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a memory 143 that stores a computer program, and the above-mentioned computer program can be stored by the processor 141 of the terminal. Execute to complete the steps of the foregoing method.
  • the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms. of.
  • the unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may all be integrated into one processing module, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above integration
  • the unit can be implemented either in the form of hardware or in the form of hardware plus software functional units.
  • the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute Including the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk and other various A medium on which program code can be stored.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk and other various A medium on which program code can be stored.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本申请实施例公开了一种显示方法、终端及存储介质,显示方法包括:在播放视频的同时检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为第一区域和第二区域;所述第一区域和所述第二区域不重叠;在所述第一区域播放所述视频,并在所述第二区域载入所述虚拟键盘。

Description

显示方法、终端及存储介质
相关申请的交叉引用
本申请基于申请号为202110236181.8,申请日为2021年03月03日的中国专利申请提出,并要求上述中国专利申请的优先权,上述中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及通信领域中的视频播放领域,具体涉及一种显示方法、终端及存储介质。
背景技术
相关技术中,用户在通过手机等终端观看视频时,用户可以点击设定的输入框唤醒虚拟键盘,通过虚拟键盘在设定的输入框输入评论信息,用户触发手机发送评论信息时,该评论信息以弹幕的形式显示在视频播放界面。在用户输入评论信息的过程中,虚拟键盘会遮挡视频画面。
发明内容
为解决相关技术问题,本申请实施例提供了一种显示方法、终端及存储介质。
本申请实施例提供了一种显示方法,包括:
在播放视频的同时检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为第一区域和第二区域;所述第一区域和所述第二区域不重叠;
在所述第一区域播放所述视频,并在所述第二区域载入所述虚拟键盘。
本申请实施例还提供了一种终端,包括:
拆分单元,配置为在播放视频的同时检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为第一区域和第二区域;所述第一区域和所述第二区域不重叠;
显示单元,配置为在所述第一区域播放所述视频,并在所述第二区域载入所述虚拟键盘。
本申请实施例还提供了一种终端,包括:处理器和配置为存储能够在处理器上运行的计算机程序的存储器,
其中,所述处理器配置为运行所述计算机程序时,执行上述显示方法的步骤。
本申请实施例还提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述显示方法的步骤。
在本申请实施例中,在播放视频的同时检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为不重叠的第一区域和第二区域;在第一区域播放视频,并在第二区域载入虚拟键盘。这样,视频和虚拟键盘载入至不同的区域,并非将虚拟键盘叠加在视频画面上进行显示,用户可以在第一区域观看完整的视频画面,显示的虚拟键盘不会遮挡播放的视频的画面,不会影响用户观看视频。
附图说明
图1为相关技术中提供的视频播放界面的示意图;
图2为本申请实施例提供的显示方法的实现流程示意图;
图3为本申请实施例提供的显示屏的显示区域的示意图;
图4为本申请另一实施例提供的显示屏的显示区域的示意图;
图5为本申请实施例提供的视频的播放窗口的示意图;
图6为本申请另一实施例提供的视频的播放窗口的示意图;
图7为本申请实施例提供的在播放视频的过程中的界面变化图;
图8为本申请实施例提供的在播放视频的过程中的界面变化图;
图9为本申请另一实施例提供的在播放视频的过程中的界面变化图;
图10为本申请再一实施例提供的在播放视频的过程中的界面变化图;
图11为本申请又一实施例提供的在播放视频的过程中的界面变化图;
图12为本申请另一实施例提供的显示方法的实现流程示意图;
图13为本申请实施例提供的终端的结构示意图;
图14为本申请另一实施例提供的终端的结构示意图。
具体实施方式
如图1所示,相关技术中,用户在观看视频的过程中唤醒视频播放终端的虚拟键盘时,虚拟键盘叠加在视频画面上进行显示,导致虚拟键盘遮挡视频画面。
为解决上述技术问题,本申请实施例提供了一种显示方法,包括:在播放视频的同时检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为第一区域和第二区域;所述第一区域和所述第二区域不重叠;在所述第一区域播放所述视频,并在所述第二区域载入所述虚拟键盘;由此,可以避免虚拟键盘叠加在视频画面上进行显示,避免显示的虚拟键盘遮挡视频画面。
上述方案中,所述将显示屏的显示区域至少划分为第一区域和第二区域,包括:
基于所述视频的第一长宽比和所述显示屏的第二长宽比,在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域;其中,
所述第一方向表征显示屏的长度方向或者宽度方向。
上述方案中,所述基于所述视频的第一长宽比和所述显示屏的第二长宽比,在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域,包括:
在所述第一长宽比小于所述第二长宽比的情况下,将所述显示区域在所述显示屏的长度方向上至少划分出所述第一区域和所述第二区域;或者,
在所述第一长宽比大于或等于所述第二长宽比的情况下,将所述显示区域在所述显示屏的宽度方向上至少划分出所述第一区域和所述第二区域。
上述方案中,所述在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域时,所述方法还包括:
基于所述虚拟键盘的第一尺寸和所述视频的第二尺寸,确定所述第一区域和所述第二区域在所述第一方向上的尺寸;
其中,所述第一尺寸和所述第二尺寸表征为在所述第一方向上的对应尺寸。
上述方案中,所述基于所述虚拟键盘的第一尺寸和所述视频的第二尺寸,确定所述第一区域和所述第二区域在所述第一方向上的尺寸时,所述方法包括:
在第一和值小于或等于所述显示区域在所述第一方向上的第三尺寸的情况下,基 于所述第二尺寸确定所述第一区域和所述第二区域在所述第一方向上的尺寸;或者,
在所述第一和值大于所述第三尺寸的情况下,将所述虚拟键盘在所述第一方向上支持的最小尺寸确定为所述第二区域在所述第一方向上的尺寸;其中,
所述第一和值表征所述第二尺寸与所述虚拟键盘在所述第一方向上支持的最小尺寸之和。
上述方案中,在所述第一和值大于所述第三尺寸的情况下,所述在所述第一区域播放视频,包括:
对所述视频进行画面缩放后,在所述第一区域播放。
上述方案中,所述方法还包括:
接收通过载入的所述虚拟键盘输入的关于所述视频的弹幕信息。
上述方案中,所述将显示屏的显示区域至少划分为第一区域和第二区域,包括:
在所述显示屏满足设定条件的情况下,将所述显示屏的显示区域划分为
第一区域、第二区域和第三区域;其中,
所述第三区域配置为显示除所述视频和所述虚拟键盘之外的内容。
上述方案中,所述设定条件包括:双屏折叠终端的显示屏处于展开状态。
上述方案中,所述第三区域配置为显示所述视频对应的弹幕信息。
本申请实施例还提供了一种终端,包括:
拆分单元,配置为在播放视频的同时检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为第一区域和第二区域;所述第一区域和所述第二区域不重叠;
显示单元,配置为在所述第一区域播放所述视频,并在所述第二区域载入所述虚拟键盘。
上述方案中,所述拆分单元具体配置为:
基于所述视频的第一长宽比和所述显示屏的第二长宽比,在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域;其中,
所述第一方向表征显示屏的长度方向或者宽度方向。
上述方案中,所述拆分单元具体配置为:
在所述第一长宽比小于所述第二长宽比的情况下,将所述显示区域在所述显示屏的长度方向上至少划分出所述第一区域和所述第二区域;或者,
在所述第一长宽比大于或等于所述第二长宽比的情况下,将所述显示区域在所述显示屏的宽度方向上至少划分出所述第一区域和所述第二区域。
上述方案中,所述终端还包括:
确定单元,配置为基于所述虚拟键盘的第一尺寸和所述视频的第二尺寸,确定所述第一区域和所述第二区域在所述第一方向上的尺寸;
其中,所述第一尺寸和所述第二尺寸表征为在所述第一方向上的对应尺寸。
上述方案中,所述确定单元具体配置为:
在第一和值小于或等于所述显示区域在所述第一方向上的第三尺寸的情况下,基于所述第二尺寸确定所述第一区域和所述第二区域在所述第一方向上的尺寸;或者,
在所述第一和值大于所述第三尺寸的情况下,将所述虚拟键盘在所述第一方向上支持的最小尺寸确定为所述第二区域在所述第一方向上的尺寸;其中,
所述第一和值表征所述第二尺寸与所述虚拟键盘在所述第一方向上支持的最小尺寸之和。
上述方案中,所述终端还包括:
接收单元,配置为接收通过载入的所述虚拟键盘输入的关于所述视频的弹幕信息。
上述方案中,所述拆分单元具体配置为:
在所述显示屏满足设定条件的情况下,将所述显示屏的显示区域划分为第一区域、第二区域和第三区域;其中,
所述第三区域配置为显示除所述视频和所述虚拟键盘之外的内容。
上述方案中,所述设定条件包括:双屏折叠终端的显示屏处于展开状态。
本申请实施例还提供了一种终端,包括:处理器和配置为存储能够在处理器上运行的计算机程序的存储器,
其中,所述处理器配置为运行所述计算机程序时,执行上述任一种上述显示方法的步骤。
本申请实施例还提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一种显示方法的步骤。
以下结合说明书附图及具体实施例对本申请的技术方案做进一步的详细阐述。
图2为本申请实施例提供的显示方法的实现流程示意图,其中,流程的执行主体为手机、平板等终端,终端的显示屏可以为折叠屏。如图2所示,显示方法包括:
步骤201:在播放视频的同时检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为第一区域和第二区域;所述第一区域和所述第二区域不重叠。
用户可以通过终端内置的视频播放应用(APP)播放视频,也可以通过终端内置的浏览器播放视频。用户在观看视频的过程中可以通过相应的交互界面中的设定输入框唤醒虚拟键盘。
终端在播放视频的过程中检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为第一区域和第二区域。
实际应用时,在全屏播放视频的场景下,终端可以在显示屏的宽度方向将显示屏的显示区域划分为上下邻接的第一区域和第二区域,显示屏的显示区域的示意图如图3所示;或者,终端也可以在显示屏的长度方向上将显示屏的显示区域划分为左右邻接的第一区域和第二区域。其中,这里所说的长度方向和宽度方向是指用户手持终端时显示屏的横向和纵向。例如,当显示屏的尺寸为1280像素*768像素时,终端处于横屏显示模式时显示屏在长度方向上的尺寸为1280像素,在宽度方向上的尺寸为768像素,对应地,终端处于竖屏显示模式时显示屏在长度方向上的尺寸为768像素,在宽度方向上的尺寸为1280像素。
在非全屏播放视频的场景下,终端可以将显示屏的显示区域划分为第一区域和第二区域;当终端的显示屏的尺寸较大时,例如,在双屏折叠终端的显示屏处于展开状态下,将显示屏的显示区域划分为如图4所示的第一区域、第二区域和第三区域。其中,第三区域可以配置为显示除视频和虚拟键盘之外的内容。
示例性地,当显示屏的显示区域被划分为3个区域时,第一区域配置为显示视频画面,第二区域配置为载入虚拟键盘,第三区域配置为显示播放的视频对应的弹幕信息,或者配置为显示视频播放页面中的相关资讯。实际应用时,优先保证完整显示播放的视频。当第三区域配置为显示播放的视频对应的弹幕信息时,第三区域与第一区域上下相邻,这样,弹幕信息和视频画面分离显示,可以避免因弹幕信息悬浮显示于视频画面,而影响用户观看视频。
在一些实施例中,所述将显示屏的显示区域至少划分为第一区域和第二区域,包括:
基于所述视频的第一长宽比和所述显示屏的第二长宽比,在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域;其中,
所述第一方向表征显示屏的长度方向或者宽度方向。
这里,长宽比也称宽高比,例如,16:9或4:3。考虑到视频的播放窗口在实际应用 时是可以随着视频的放大或缩小自适应变化的,所以这里统一以视频的尺寸为参照,将视频的第一长宽比和显示屏的第二长宽比进行比较,得到比较结果,并基于比较结果,在显示屏的长度方向将显示区域至少划分为第一区域和第二区域;或者,在显示屏的宽度方向将显示区域至少划分为第一区域和第二区域。
实际应用时,在双屏折叠终端处于完全展开状态的情况下,终端在显示屏的宽度方向将显示区域至少划分为上下邻接的第一区域和第二区域;在双屏折叠终端处于部分展开状态,且部分展开的显示屏的长度远大于显示屏的宽度的情况下,例如,部分展开的显示屏的长宽比大于设定阈值时,终端在显示屏的长度方向将显示区域至少划分为左右邻接的第一区域和第二区域。
为了最大视野范围内呈现视频画面,在一些实施例中,所述基于所述视频的第一长宽比和所述显示屏的第二长宽比,在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域,包括:
在所述第一长宽比小于所述第二长宽比的情况下,将所述显示区域在所述显示屏的长度方向上至少划分出所述第一区域和所述第二区域;或者,
在所述第一长宽比大于或等于所述第二长宽比的情况下,将所述显示区域在所述显示屏的宽度方向上至少划分出所述第一区域和所述第二区域。
例如,在全屏播放视频的情况下时,当第一宽高比为16:9,第二宽高比为18:9或21:9时,在显示屏的长度方向上至少划分出第一区域和所述第二区域,以将显示屏的显示区域划分为左右邻接的第一区域和第二区域;当第一宽高比为4:3,第二宽高比为1:1时,在显示屏的宽度方向上至少划分出第一区域和第二区域,以将显示屏的显示区域划分为上下邻接的第一区域和第二区域。
为了方便用户观看视频,在一些实施例中,所述在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域时,所述方法还包括:
基于所述虚拟键盘的第一尺寸和所述视频的第二尺寸,确定所述第一区域和所述第二区域在所述第一方向上的尺寸;
其中,所述第一尺寸和所述第二尺寸表征为在所述第一方向上的对应尺寸。
这里,虚拟键盘的第一尺寸是指未对虚拟键盘进行缩放时对应的尺寸,虚拟键盘的第一尺寸是设定的,存储在本地数据库。显示屏的第二长宽比=(横向分辨率×横向像素长度):(纵向分辨率×纵向像素长度)。本申请实施例提及的尺寸均以像素为度量单位,在显示屏的长度方向上的尺寸表征横向的像素个数与横向像素长度之间的乘积;在显示屏的宽度方向上的尺寸表征纵向的像素个数与纵向像素长度之间的乘积。或者,在显示屏的长度方向上的尺寸表征横向的像素个数,在显示屏的宽度方向上的尺寸表征纵向的像素个数。
实际应用时,当第一方向表征显示屏的长度方向时,终端基于视频的第一长宽比和显示屏的第二长宽比,确定出视频的横向分辨率,将视频的横向分辨率与横向像素长度之间的乘积确定为视频支持的画面长度,并基于虚拟键盘的长度和视频支持的画面长度确定出第一区域的长度和第二区域的长度。其中,第一区域的长度与第二区域的长度之和小于或等于视频播放窗口的长度,视频播放窗口的长度小于或等于显示屏的长度。
当第一方向表征显示屏的宽度方向时,终端基于视频的第一长宽比和显示屏的第二长宽比,确定出视频的纵向分辨率,将视频的纵向分辨率与纵向像素长度之间的乘积确定为视频支持的画面宽度,并基于虚拟键盘的宽度和视频支持的画面宽度确定出第一区域的宽度和第二区域的宽度。第一区域的宽度与第二区域的宽度之和小于或等于视频播放窗口的宽度,视频播放窗口的宽度小于或等于显示屏的宽度。如图5所示,在全屏播放视频的场景下,视频的播放窗口对应为显示屏的显示区域,此时,视频的播放窗口的 宽度与显示屏的显示区域的宽度相等。如图6所示,在非全屏播放视频的场景下,视频的播放窗口的宽度可以小于显示屏的显示区域的宽度。
实际应用时,为了能够在第二区域成功载入虚拟键盘,第二区域在第一方向上的尺寸大于或等于虚拟键盘在第一方向上支持的最小尺寸。
为了便于用户观看视频,第二区域在第一方向上的尺寸通常小于或等于虚拟键盘在第一方向上的第一尺寸,且大于或等于虚拟键盘在第一方向上支持的最小尺寸,这样可以在视频的播放窗口留出更多的区域播放视频。当然,在一些实施例中,为了便于视力不太好的用户辨识虚拟键盘上的字母和数字等信息,在显示屏的显示区域较大,且不对视频的画面进行缩小或者画面的缩小比例小于设定比例的情况下,确定出的第二区域在第一方向上的尺寸可以大于虚拟键盘在第一方向上的第二尺寸,以便在第二区域载入放大后的虚拟键盘。实际应用时,第一区域在第一方向上的尺寸大于第二区域在第一方向上的尺寸。
在一些实施例中,所述基于所述虚拟键盘的第一尺寸和所述视频的第二尺寸,确定所述第一区域和所述第二区域在所述第一方向上的尺寸时,所述方法包括:
在第一和值小于或等于所述显示区域在所述第一方向上的第三尺寸的情况下,基于所述第二尺寸确定所述第一区域和所述第二区域在所述第一方向上的尺寸;或者,
在所述第一和值大于所述第三尺寸的情况下,将所述虚拟键盘在所述第一方向上支持的最小尺寸确定为所述第二区域在所述第一方向上的尺寸;其中,
所述第一和值表征所述第二尺寸与所述虚拟键盘在所述第一方向上支持的最小尺寸之和。
这里,终端计算视频在第一方向上的第二尺寸与虚拟键盘在第一方向上支持的最小尺寸之和,得到第一和值,将计算出的第一和值与视频的播放窗口在第一方向上的第三尺寸进行比较,得到比较结果。
在比较结果表征第一和值小于或等于第三尺寸的情况下,表征在不缩小视频画面或虚拟键盘的情况下,视频的播放窗口也可以显示完整的视频画面和虚拟键盘,此时,终端基于视频的第二尺寸确定出第一区域和第二区域在第一方向上的尺寸。
实际应用时,为了便于用户观看视频,第一区域在第一方向上的尺寸大于视频在第一方向上的第二尺寸,且第二区域在第一方向上的尺寸等于虚拟键盘在第一方向上的尺寸,这样,可以在第一区域播放画面放大后的视频。为了便于用户使用虚拟键盘,在第一方向上的尺寸等于视频在第一方向上的第二尺寸,第二区域在第一方向上的尺寸大于虚拟键盘在第一方向上的尺寸,这样,可以在第二区域载入放大后的虚拟键盘。其中,
当第一区域在第一方向上的尺寸大于视频在第一方向上的第二尺寸时,第一区域配置为供终端进行视频全尺寸播放;或者第一区域配置为供终端按照视频的在第一方向上的第二尺寸播放视频,并在第一区域中多出的区域进行留黑处理,其中,留黑区域在第一方向上的尺寸与视频在第一方向上的尺寸之和等于第一区域在第一方上的尺寸。实际应用时,可以在临近视频画面的顶部和底部进行留黑处理,或者在临近视频画面的左侧和右侧进行留黑处理。
在比较结果表征第一和值大于第三尺寸的情况下,表征在不缩小视频画面或虚拟键盘的情况下,视频的播放窗口无法显示完整的视频画面和虚拟键盘,此时,将虚拟键盘在第一方向上支持的最小尺寸确定为第二区域在第一方向上的尺寸,从而按照虚拟键盘支持的最小尺寸在第二区域载入虚拟键盘。
步骤202:在所述第一区域播放所述视频,并在所述第二区域载入所述虚拟键盘。
这里,终端在显示屏的第一区域播放视频,在第二区域载入虚拟键盘,以便用户通过虚拟键盘输入针对播放的视频的弹幕信息。其中,当第一方向为显示屏的宽度方向时, 终端在播放视频的过程中的界面变化图如图7或图8所示,在图7中,播放的视频对应的弹幕信息悬浮显示于第一区域的画面上;在图8中,播放的视频对应的弹幕信息可以显示于第一区域中的黑色区域,也可以同时显示于第一区域中的黑色区域和视频的画面上。
实际应用时,终端可以基于第一区域在第一方向上的尺寸和视频在第一方向上的第二尺寸,在第一区域播放视频;基于第二区域在第一方向上的尺寸、虚拟键盘在第一方向上的第一尺寸和虚拟键盘在第一方向上支持的最小尺寸,在第二区域载入虚拟键盘。其中,
当第一区域在第一方向上的尺寸小于视频在第一方向上的尺寸时,终端对播放的视频进行画面缩小,并在第一区域显示缩小后的视频画面;当第一区域在第一方向上的尺寸等于视频在第一方向上的尺寸时,终端不对播放的视频进行画面缩放;当第一区域在第一方向上的尺寸大于视频在第一方向上的尺寸时,终端对播放的视频进行画面放大,并在第一区域显示放大后的视频画面。
当第二区域在第一方向上的尺寸等于虚拟键盘在第一方向上支持的最小尺寸时,在第二区域以虚拟键盘支持的最小尺寸进行载入,也就是说,在第二区域显示的虚拟键盘的尺寸等于虚拟键盘支持的最小尺寸。当第二区域在第一方向上的尺寸大于虚拟键盘在第一方向上支持的最小尺寸,且小于虚拟键盘在第一方向上的第一尺寸时,基于第二区域在第一方向上的尺寸对虚拟键盘进行缩小,并在第二区域载入缩小后的虚拟键盘,缩小后的虚拟键盘在第一方向上的尺寸大于虚拟键盘在第一方向上支持的最小高度。当第二区域在第一方向上的尺寸等于虚拟键盘在第一方向上的第一尺寸时,不对虚拟键盘进行缩小处理。
在一应用场景中,在第一和值小于或等于第三尺寸,且第一区域在第一方向上的尺寸大于视频在第一方向上的第二尺寸的情况下,终端可以按照第一区域在第一方向上的尺寸和视频的第一宽高比对视频的画面进行放大,在第一区域播放画面放大后的视频,从而在第一区域全尺寸播放视频。终端也可以按照视频在第一方向上的第二尺寸在第一区域播放视频,在第一区域中多出的区域进行留黑处理,此时,视频画面在第一方向上的尺寸与留黑区域在第一方向上的尺寸之和等于第一区域在第一方向上的尺寸。终端按照虚拟键盘在第一方向上的第一尺寸或按照虚拟键盘在第一方向上支持的最小尺寸,在第二区域载入虚拟键盘。
实际应用时,如图9示出的本申请另一实施例提供的在播放视频的过程中的界面变化图,当第一方向为显示屏的宽度方向时,终端按照视频的画面宽度在第一区域播放视频,并且在临近视频画面的顶部和底部进行留黑处理,终端按照虚拟键盘的宽度在第二区域载入虚拟键盘,此时,第一区域中的画面宽度等于视频的画面宽度,且小于第一区域的宽度;第二区域显示的虚拟键盘的宽度等于虚拟键盘的宽度。如图10示出的本申请再一实施例提供的在播放视频的过程中的界面变化图,当第一方向为显示屏的宽度方向时,终端在第一区域全尺寸播放视频,终端按照虚拟键盘支持的最小宽度在第二区域载入虚拟键盘,此时,第一区域中的画面宽度大于视频的画面宽度,第二区域显示的虚拟键盘的宽度等于虚拟键盘支持的最小宽度。
在一应用场景中,在第一和值小于或等于第三尺寸,且第一区域在第一方向上的尺寸等于视频在第一方向上的第二尺寸的情况下,终端按照视频在第一方向上的第二尺寸在第一区域播放视频,按照第二区域在第一方向上的尺寸对虚拟键盘进行放大,在第二区域载入放大后的虚拟键盘。
在一些实施例中,在所述第一和值大于所述第三尺寸的情况下,所述在所述第一区域播放视频,包括:
对所述视频进行画面缩放后,在所述第一区域播放。
这里,考虑到在第一和值大于第三尺寸的情况下,第二区域在第一方向上的尺寸等于虚拟键盘在第一方向上支持的最小尺寸,第一区域在第一方向上的尺寸等于第三尺寸与虚拟键盘在第一方向上支持的最小尺寸之间的差值,终端按照虚拟键盘在第一方向上支持的最小尺寸在第二区域载入虚拟键盘;基于第一区域在第一方向上的尺寸对视频进行画面缩放,在第一区域播放画面缩放后的视频。
在一应用场景中,在第一和值大于第三尺寸,且第二区域在第一方向上的尺寸等于虚拟键盘在第一方向上支持的最小尺寸的情况下,终端在第二区域显示的虚拟键盘在第一方向上的尺寸等于虚拟键盘支持的最小尺寸,当第一区域在第一方向上的尺寸等于视频在第一方向上的第二尺寸时,按照视频在第一方向上的第二尺寸在第一区域播放视频;当第一区域在第一方向上的尺寸大于视频在第一方向上的第二尺寸时,终端基于第一区域在第一方向上的尺寸对视频进行画面放大后,在第一区域播放;当第一区域在第一方向上的尺寸小于视频在第一方向上的第二尺寸时,终端基于第一区域在第一方向上的尺寸对视频进行画面缩小后,在第一区域播放。
实际应用时,如图11示出的本申请又一实施例提供的在播放视频的过程中的界面变化图,当第一方向为显示屏的宽度方向时,终端在第一区域播放画面缩小后的视频;按照虚拟键盘支持的最小宽度在第二区域载入虚拟键盘。
可以理解的是,终端在第一区域显示完整的视频画面,当播放的视频对应有弹幕信息时,还可以在第一区域显示播放的视频对应的弹幕信息。
为了方便用户观看视频和使用虚拟键盘,所述在所述第一区域播放视频,并在所述第二区域载入所述虚拟键盘时,所述方法还包括:
在所述第一区域居中播放所述视频;和/或,
在所述第二区域居中载入所述虚拟键盘。
这里,在第一区域居中播放视频是为了方便用户观看,在第二区域居中载入虚拟键盘,可以方便用户通过双手操作虚拟键盘。
在一些实施例中,所述方法还包括:
接收通过载入的所述虚拟键盘输入的关于所述视频的弹幕信息。
这里,终端可以接收用户通过虚拟键盘输入的关于视频的弹幕信息,终端检测到用户触发发送指令的情况下,将通过虚拟键盘输入的弹幕信息向视频对应的服务器发送,以便服务器在接收到终端发送的弹幕信息的情况下,广播接收到的弹幕信息,从而使得观看该视频的用户能够查看对应的弹幕信息。用户在输入弹幕信息的过程中,可以看到完整的视频画面。
需要说明的是,用户通过虚拟键盘输入弹幕信息的过程中,终端在第二区域显示未发送的弹幕信息。
在本申请实施例中,在播放视频的同时检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为互不重叠的第一区域和第二区域;在第一区域播放视频,并在第二区域载入虚拟键盘。这样,视频和虚拟键盘载入至不同的区域,并非将虚拟键盘叠加在视频画面上进行显示,用户可以在第一区域观看完整的视频画面,用户在通过第二区域载入的虚拟键盘输入针对播放的视频的弹幕信息的过程中,虚拟键盘不会遮挡播放的视频的画面,不会影响用户观看视频。
请参照图12,图12示出了本申请应用实施例提供的显示方法的实现流程示意图,如图12所示,显示方法包括:
步骤1201:在播放视频的同时检测到虚拟键盘被唤醒的情况下,基于所述虚拟键盘的高度和所述视频的纵向视频分辨率,基于所述视频的第一长宽比和所述显示屏的第二 长宽比,在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域;其中,所述第一方向表征显示屏的长度方向或者宽度方向;所述第一区域和所述第二区域不重叠。
考虑到在竖屏显示模式,且非全屏播放的应用场景下,终端内的虚拟键盘被唤醒时,通常不会导致虚拟键盘覆盖视频画面的情况,因此,在本实施例,主要针对横屏显示模式播放视频的应用场景,以及全屏播放视频的应用场景。
这里,终端在播放视频的同时检测到虚拟键盘被唤醒的情况下,检测当前的显示模式和播放模式。其中,显示模式包括横屏显示模式或竖屏显示模式,播放模式包括全屏播放模式和非全屏播放模式。
在当前的显示模式为横屏显示模式,或者当前的播放模式为全屏播放模式的情况下,基于视频的第一长宽比和显示屏的第二长宽比,在第一方向上将显示区域至少划分为第一区域和第二区域,具体实现方式请参照上述相关描述,此处不赘述。
步骤1202:在所述第一区域播放视频,并在所述第二区域载入所述虚拟键盘。
这里,终端在第一区域居中播放视频,在第二区域居中载入虚拟键盘。
步骤1203:接收通过载入的所述虚拟键盘输入的关于所述视频的弹幕信息。
为实现本申请实施例的方法,本申请实施例还提供了一种终端,如图13所示,该终端包括:
拆分单元131,配置为在播放视频的同时检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为第一区域和第二区域;所述第一区域和所述第二区域不重叠;
显示单元132,配置为在所述第一区域播放视频,并在所述第二区域载入所述虚拟键盘。
在一些实施例中,拆分单元131具体配置为:
基于所述视频的第一长宽比和所述显示屏的第二长宽比,在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域;其中,
所述第一方向表征显示屏的长度方向或者宽度方向。
在一些实施例中,拆分单元131具体配置为:
在所述第一长宽比小于所述第二长宽比的情况下,将所述显示区域在所述显示屏的长度方向上至少划分出所述第一区域和所述第二区域;或者,
在所述第一长宽比大于或等于所述第二长宽比的情况下,将所述显示区域在所述显示屏的宽度方向上至少划分出所述第一区域和所述第二区域。
在一些实施例中,终端还包括:
确定单元,配置为基于所述虚拟键盘的第一尺寸和所述视频的第二尺寸,确定所述第一区域和所述第二区域在所述第一方向上的尺寸;
其中,所述第一尺寸和所述第二尺寸表征为在所述第一方向上的对应尺寸。
在一些实施例中,所述确定单元具体配置为:
在第一和值小于或等于所述显示区域在所述第一方向上的第三尺寸的情况下,基于所述第二尺寸确定所述第一区域和所述第二区域在所述第一方向上的尺寸;或者,
在所述第一和值大于所述第三尺寸的情况下,将所述虚拟键盘在所述第一方向上支持的最小尺寸确定为所述第二区域在所述第一方向上的尺寸;其中,
所述第一和值表征所述第二尺寸与所述虚拟键盘在所述第一方向上支持的最小尺寸之和。
在一些实施例中,在所述第一和值大于所述第三尺寸的情况下,显示单元132具体配置为:对所述视频进行画面缩放后,在所述第一区域播放。
在一些实施例中,该终端还包括:接收单元,配置为接收通过载入的所述虚拟键盘 输入的关于所述视频的弹幕信息。
在一些实施例中,拆分单元131具体配置为:在所述显示屏满足设定条件的情况下,将所述显示屏的显示区域划分为不重叠的第一区域、第二区域和第三区域;其中,所述第三区域配置为显示除所述视频和所述虚拟键盘之外的内容。
在一些实施例中,所述设定条件包括:双屏折叠终端的显示屏处于展开状态。
在一些实施例中,所述第三区域配置为显示所述视频对应的弹幕信息。
实际应用时,拆分单元131和显示单元132可通过终端中的处理器,比如中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)、微控制单元(MCU,Microcontroller Unit)或可编程门阵列(FPGA,Field-Programmable Gate Array)等实现;接收单元可通过处理器和通信接口共同实现。当然,处理器需要运行存储器中存储的程序来实现上述各程序模块的功能。
需要说明的是:上述实施例提供的终端在播放视频时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的终端与显示方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
基于上述程序模块的硬件实现,且为了实现本申请实施例的方法,本申请实施例还提供了一种终端。图14为本申请实施例终端的硬件组成结构示意图,如图14所示,终端14包括:
通信接口141,能够与其它设备比如网络设备等进行信息交互;
处理器142,与所述通信接口141连接,以实现与其它设备进行信息交互,配置为运行计算机程序时,执行上述终端侧一个或多个技术方案提供的方法。而所述计算机程序存储在存储器143上。
当然,实际应用时,终端14中的各个组件通过总线系统144耦合在一起。可理解,总线系统144配置为实现这些组件之间的连接通信。总线系统144除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图14中将各种总线都标为总线系统144。
本申请实施例中的存储器143配置为存储各种类型的数据以支持终端14的操作。这些数据的示例包括:配置为在终端14上操作的任何计算机程序。
可以理解,存储器143可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced  Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器143旨在包括但不限于这些和任意其它适合类型的存储器。
上述本申请实施例揭示的方法可以应用于处理器142中,或者由处理器142实现。处理器142可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器142中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器142可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器142可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器143,处理器142读取存储器143中的程序,结合其硬件完成前述方法的步骤。
可选地,所述处理器142执行所述程序时实现本申请实施例的各个方法中由终端实现的相应流程,为了简洁,在此不再赘述。
在示例性实施例中,本申请实施例还提供了一种存储介质,即计算机存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的存储器143,上述计算机程序可由终端的处理器141执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
需要说明的是,本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (20)

  1. 一种显示方法,包括:
    在播放视频的同时检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为第一区域和第二区域;所述第一区域和所述第二区域不重叠;
    在所述第一区域播放所述视频,并在所述第二区域载入所述虚拟键盘。
  2. 根据权利要求1所述的方法,其中,所述将显示屏的显示区域至少划分为第一区域和第二区域,包括:
    基于所述视频的第一长宽比和所述显示屏的第二长宽比,在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域;其中,所述第一方向表征显示屏的长度方向或者宽度方向。
  3. 根据权利要求2所述的方法,其中,所述基于所述视频的第一长宽比和所述显示屏的第二长宽比,在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域,包括:
    在所述第一长宽比小于所述第二长宽比的情况下,将所述显示区域在所述显示屏的长度方向上至少划分出所述第一区域和所述第二区域;或者,
    在所述第一长宽比大于或等于所述第二长宽比的情况下,将所述显示区域在所述显示屏的宽度方向上至少划分出所述第一区域和所述第二区域。
  4. 根据权利要求2所述的方法,其中,所述在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域时,所述方法还包括:
    基于所述虚拟键盘的第一尺寸和所述视频的第二尺寸,确定所述第一区域和所述第二区域在所述第一方向上的尺寸;
    其中,所述第一尺寸和所述第二尺寸表征为在所述第一方向上的对应尺寸。
  5. 根据权利要求4所述的方法,其中,所述基于所述虚拟键盘的第一尺寸和所述视频的第二尺寸,确定所述第一区域和所述第二区域在所述第一方向上的尺寸时,所述方法包括:
    在第一和值小于或等于所述显示区域在所述第一方向上的第三尺寸的情况下,基于所述第二尺寸确定所述第一区域和所述第二区域在所述第一方向上的尺寸;或者,
    在所述第一和值大于所述第三尺寸的情况下,将所述虚拟键盘在所述第一方向上支持的最小尺寸确定为所述第二区域在所述第一方向上的尺寸;其中,
    所述第一和值表征所述第二尺寸与所述虚拟键盘在所述第一方向上支持的最小尺寸之和。
  6. 根据权利要求5所述的方法,其中,在所述第一和值大于所述第三尺寸的情况下,所述在所述第一区域播放视频,包括:
    对所述视频进行画面缩放后,在所述第一区域播放。
  7. 根据权利要求1至6任一项所述的方法,其中,所述方法还包括:
    接收通过载入的所述虚拟键盘输入的关于所述视频的弹幕信息。
  8. 根据权利要求1所述的方法,其中,所述将显示屏的显示区域至少划分为第一区域和第二区域,包括:
    在所述显示屏满足设定条件的情况下,将所述显示屏的显示区域划分为不重叠的第一区域、第二区域和第三区域;其中,
    所述第三区域配置为显示除所述视频和所述虚拟键盘之外的内容。
  9. 根据权利要求8所述的方法,其中,所述设定条件包括:双屏折叠终端的显示屏处于展开状态。
  10. 根据权利要求8所述的方法,其中,所述第三区域配置为显示所述视频对应的弹幕信息。
  11. 一种终端,包括:
    拆分单元,配置为在播放视频的同时检测到虚拟键盘被唤醒的情况下,将显示屏的显示区域至少划分为第一区域和第二区域;所述第一区域和所述第二区域不重叠;
    显示单元,配置为在所述第一区域播放所述视频,并在所述第二区域载入所述虚拟键盘。
  12. 根据权利要求11所述的终端,其中,所述拆分单元具体配置为:
    基于所述视频的第一长宽比和所述显示屏的第二长宽比,在第一方向上将所述显示区域至少划分为所述第一区域和所述第二区域;其中,所述第一方向表征显示屏的长度方向或者宽度方向。
  13. 根据权利要求12所述的终端,其中,所述拆分单元具体配置为:
    在所述第一长宽比小于所述第二长宽比的情况下,将所述显示区域在所述显示屏的长度方向上至少划分出所述第一区域和所述第二区域;或者,
    在所述第一长宽比大于或等于所述第二长宽比的情况下,将所述显示区域在所述显示屏的宽度方向上至少划分出所述第一区域和所述第二区域。
  14. 根据权利要求12所述的终端,其中,所述终端还包括:
    确定单元,配置为基于所述虚拟键盘的第一尺寸和所述视频的第二尺寸,确定所述第一区域和所述第二区域在所述第一方向上的尺寸;
    其中,所述第一尺寸和所述第二尺寸表征为在所述第一方向上的对应尺寸。
  15. 根据权利要求14所述的终端,其中,所述确定单元具体配置为:
    在第一和值小于或等于所述显示区域在所述第一方向上的第三尺寸的情况下,基于所述第二尺寸确定所述第一区域和所述第二区域在所述第一方向上的尺寸;或者,
    在所述第一和值大于所述第三尺寸的情况下,将所述虚拟键盘在所述第一方向上支持的最小尺寸确定为所述第二区域在所述第一方向上的尺寸;其中,
    所述第一和值表征所述第二尺寸与所述虚拟键盘在所述第一方向上支持的最小尺寸之和。
  16. 根据权利要求11至15任一项所述的终端,其中,所述终端还包括:
    接收单元,配置为接收通过载入的所述虚拟键盘输入的关于所述视频的弹幕信息。
  17. 根据权利要求11所述的终端,其中,所述拆分单元具体配置为:
    在所述显示屏满足设定条件的情况下,将所述显示屏的显示区域划分为第一区域、第二区域和第三区域;其中,
    所述第三区域配置为显示除所述视频和所述虚拟键盘之外的内容。
  18. 根据权利要求17所述的终端,其中,所述设定条件包括:双屏折叠终端的显示屏处于展开状态。
  19. 一种终端,包括:处理器和配置为存储能够在处理器上运行的计算机程序的存储器,
    其中,所述处理器配置为运行所述计算机程序时,执行权利要求1至10任一项所述的方法的步骤。
  20. 一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至10任一项所述的方法的步骤。
PCT/CN2022/073261 2021-03-03 2022-01-21 显示方法、终端及存储介质 WO2022183869A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22762337.8A EP4300979A4 (en) 2021-03-03 2022-01-21 DISPLAY METHOD, TERMINAL DEVICE AND STORAGE MEDIUM
US18/454,653 US20230409195A1 (en) 2021-03-03 2023-08-23 Display method, terminal device and non-transitory storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110236181.8 2021-03-03
CN202110236181.8A CN115037976A (zh) 2021-03-03 2021-03-03 显示方法、终端及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/454,653 Continuation US20230409195A1 (en) 2021-03-03 2023-08-23 Display method, terminal device and non-transitory storage medium

Publications (1)

Publication Number Publication Date
WO2022183869A1 true WO2022183869A1 (zh) 2022-09-09

Family

ID=83117852

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/073261 WO2022183869A1 (zh) 2021-03-03 2022-01-21 显示方法、终端及存储介质

Country Status (4)

Country Link
US (1) US20230409195A1 (zh)
EP (1) EP4300979A4 (zh)
CN (1) CN115037976A (zh)
WO (1) WO2022183869A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3182245A1 (en) * 2015-12-16 2017-06-21 Samsung Electronics Co., Ltd Method and apparatus for providing user interface of electronic device
CN107678667A (zh) * 2017-09-18 2018-02-09 维沃移动通信有限公司 一种虚拟键盘显示方法及移动终端
CN109600659A (zh) * 2018-12-17 2019-04-09 北京小米移动软件有限公司 播放视频时的操作方法、装置、设备及存储介质
CN111081156A (zh) * 2019-12-11 2020-04-28 中国电子科技集团公司第三十八研究所 一种智慧城市综合数据看板平台
CN111338555A (zh) * 2020-02-19 2020-06-26 上海闻泰电子科技有限公司 通过虚拟键盘实现输入的方法、装置、设备及存储介质
CN111857532A (zh) * 2020-07-30 2020-10-30 京东方科技集团股份有限公司 虚拟键盘显示方法、装置及电子设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669459B (zh) * 2020-04-23 2022-08-26 华为技术有限公司 键盘显示方法、电子设备和计算机可读存储介质
CN111601141A (zh) * 2020-04-30 2020-08-28 维沃移动通信有限公司 弹幕显示方法、装置、电子设备及可读存储介质
CN112416238A (zh) * 2020-11-30 2021-02-26 联想(北京)有限公司 信息处理方法、装置及电子设备和存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3182245A1 (en) * 2015-12-16 2017-06-21 Samsung Electronics Co., Ltd Method and apparatus for providing user interface of electronic device
CN107678667A (zh) * 2017-09-18 2018-02-09 维沃移动通信有限公司 一种虚拟键盘显示方法及移动终端
CN109600659A (zh) * 2018-12-17 2019-04-09 北京小米移动软件有限公司 播放视频时的操作方法、装置、设备及存储介质
CN111081156A (zh) * 2019-12-11 2020-04-28 中国电子科技集团公司第三十八研究所 一种智慧城市综合数据看板平台
CN111338555A (zh) * 2020-02-19 2020-06-26 上海闻泰电子科技有限公司 通过虚拟键盘实现输入的方法、装置、设备及存储介质
CN111857532A (zh) * 2020-07-30 2020-10-30 京东方科技集团股份有限公司 虚拟键盘显示方法、装置及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4300979A4 *

Also Published As

Publication number Publication date
CN115037976A (zh) 2022-09-09
US20230409195A1 (en) 2023-12-21
EP4300979A4 (en) 2024-10-02
EP4300979A1 (en) 2024-01-03

Similar Documents

Publication Publication Date Title
US10031712B2 (en) System and method for display mirroring
CN107728901B (zh) 界面显示方法、装置及终端
US9489165B2 (en) System and method for virtual displays
US10747416B2 (en) User terminal device and method for displaying thereof
CN107632874B (zh) 界面显示方法、装置及终端
US11853543B2 (en) Method and apparatus for controlling display of video call interface, storage medium and device
WO2022194211A1 (zh) 图像处理方法、装置、电子设备及可读存储介质
US11636824B2 (en) Display apparatus and control method thereof for variably displaying user interface
US20230362328A1 (en) Video frame insertion method and apparatus, and electronic device
CN111432261A (zh) 一种视频窗口画面显示方法及装置
CN113282262A (zh) 投屏显示画面的控制方法、装置、移动终端及存储介质
WO2023125273A1 (zh) 电子设备的图像显示方法、图像处理电路和电子设备
CN107436658B (zh) 一种降低温升的方法、计算机可读存储介质、移动终端
CN106940722B (zh) 一种图片显示方法及装置
US11610285B2 (en) Display method and device
WO2022183869A1 (zh) 显示方法、终端及存储介质
CN114356479A (zh) 一种页面渲染方法及装置
CN112540716A (zh) 智能座舱应用程序多屏幕间穿越的方法、装置和电子设备
US8693042B2 (en) Image copying method and device
CN111831198B (zh) 双屏触控方法及装置
CN115617225A (zh) 应用界面显示方法、装置、电子设备及存储介质
CN114785887A (zh) 投屏控制方法、装置、电子设备和计算机可读存储介质
CN115269077A (zh) 一种图片显示方法、模块、移动终端及存储介质
WO2024131306A1 (zh) 显示方法、装置、电子设备以及存储介质
US11698767B1 (en) Designated share window for sharing content data

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: 22762337

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022762337

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 202317065463

Country of ref document: IN

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2022762337

Country of ref document: EP

Effective date: 20230926