CN111726666A - Video display control method and device - Google Patents

Video display control method and device Download PDF

Info

Publication number
CN111726666A
CN111726666A CN201910202981.0A CN201910202981A CN111726666A CN 111726666 A CN111726666 A CN 111726666A CN 201910202981 A CN201910202981 A CN 201910202981A CN 111726666 A CN111726666 A CN 111726666A
Authority
CN
China
Prior art keywords
video display
display area
mobile equipment
mobile device
video
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.)
Pending
Application number
CN201910202981.0A
Other languages
Chinese (zh)
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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910202981.0A priority Critical patent/CN111726666A/en
Publication of CN111726666A publication Critical patent/CN111726666A/en
Pending 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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a video display control method and device, and relates to the technical field of computers. One embodiment of the method comprises: when a horizontal and vertical screen switching event of the mobile equipment is monitored, adjusting the size of a video display area; in the process of switching horizontal and vertical screens of the mobile equipment, the display direction of the adjusted video display area is kept unchanged; and after the horizontal and vertical screen switching of the mobile equipment is finished, displaying the adjusted video display area at the designated position of the mobile equipment. The implementation mode improves the smoothness of the video switching process and the comfort level of a user when the mobile equipment switches horizontal and vertical screens.

Description

Video display control method and device
Technical Field
The invention relates to the technical field of computers, in particular to a video display control method and device.
Background
With the development of mobile internet technology, the demand for video media content is more and more strong, so the demand for the viewing experience of video is higher and higher. At present, people mostly use mobile devices to play videos, and because the mobile devices are often switched (mainly, the switching between horizontal and vertical screens) due to different handheld modes during use, the display mode of the played videos needs to be switched in a full-half screen mode, and the switching mode is as follows: the method comprises the steps of vertical screen display of the equipment, half screen display of the video, horizontal screen display of the equipment and full screen display of the video.
The existing scheme for video switching during horizontal and vertical screen switching of mobile equipment is to monitor horizontal and vertical screen switching events and then switch the video display mode according to the state (horizontal screen or vertical screen) of the equipment. The existing video switching scheme mainly comprises the following steps:
1. the page shows videos according to the current state (horizontal screen or vertical screen) of the mobile device;
2. monitoring the horizontal and vertical screen switching event of the mobile equipment, and if monitoring the horizontal and vertical screen switching event, then:
a) acquiring the current horizontal and vertical screen states of the mobile equipment;
b) loading a switching animation: firstly, calculating the size of a video after screen turning according to the size of a screen and the size of the video (the size of the video refers to the size of a display area when the video is played); then, according to the current video size, the video size after screen turning and the position, determining the animation switching process (the video display before and after screen turning has a fixed coordinate position on the corresponding page); then, starting animation switching (the animation duration is determined according to the actual screen turning time);
c) switching animation to stop, and displaying the video after screen turning;
d) continuously monitoring horizontal and vertical screen switching events;
3. and (6) ending.
Fig. 1 is a schematic diagram of a process and effect of video switching in the prior art. As can be seen from fig. 1, in the prior art, when video switching is performed, firstly, horizontal and vertical screen switching is performed on a mobile device, and after the mobile device is switched, a player and a video rotate, so that the rotation process of the player and the video can be clearly seen.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the whole process of switching the horizontal and vertical screens of the mobile equipment, the user feels that the video in the whole video conversion process is visually rotated, so that the smoothness of the switching process is low, the visual comfort of the user is poor, and the user experience is poor. In addition, in the prior art, the video in playing is not processed, so that frame skipping may occur after the video conversion is completed, which causes video incoherence and affects user experience.
Disclosure of Invention
In view of this, embodiments of the present invention provide a video display control method and apparatus, which can improve the smoothness of a video switching process when a mobile device switches between horizontal and vertical screens, and the visual comfort and experience of a user; meanwhile, the consistency of the video can be kept, and the user experience is further improved.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a video display control method.
A video display control method, comprising: when a horizontal and vertical screen switching event of the mobile equipment is monitored, adjusting the size of a video display area; in the process of switching horizontal and vertical screens of the mobile equipment, the display direction of the adjusted video display area is kept unchanged; and after the horizontal and vertical screen switching of the mobile equipment is finished, displaying the adjusted video display area at the designated position of the mobile equipment.
Optionally, the horizontal and vertical screen switching event includes a current state of the mobile device, and the state of the mobile device includes a horizontal screen and a vertical screen; the video display area size adjustment includes: and adjusting the size of a video display area according to the current state of the mobile equipment.
Optionally, the adjusting the size of the video display area according to the current state of the mobile device includes: determining a state to be switched of the mobile equipment according to the current state of the mobile equipment; and adjusting the size of the video display area to the size of the video display area corresponding to the state to be switched.
Optionally, the keeping unchanged of the display direction of the adjusted video display area comprises: acquiring a rotation angle of the mobile equipment; and reversely rotating the adjusted video display area relative to the mobile equipment by an angle equal to the rotation angle so as to keep the display direction of the adjusted video display area unchanged.
Optionally, the performing the video display area resizing comprises: determining a position reference point of the video display area according to the horizontal and vertical screen switching event; and based on the position reference point, adjusting the size of a video display area according to the current state of the mobile equipment.
Optionally, the landscape and portrait screen switching event further comprises steering of the mobile device; and, determining a position reference point of the video display area according to the horizontal and vertical screen switching event comprises: if the current state of the mobile equipment is vertical screen and the turning direction is right turning, the position reference point is the top right corner vertex of the mobile equipment and the video display area before turning; if the current state of the mobile equipment is vertical screen and the turning direction is left turning, the position reference point is the top point of the left corner of the mobile equipment and the video display area before turning; if the current state of the mobile equipment is a horizontal screen and the turning direction is a right turning, the position reference point is the top point of the mobile equipment and the upper left corner of the video display area before turning; and if the current state of the mobile equipment is a transverse screen and the turning direction is a left turning, the position reference point is the vertex of the upper right corner of the mobile equipment and the video display area before turning.
Optionally, based on the location reference point, resizing a video display area according to a current state of the mobile device comprises: determining a state to be switched of the mobile equipment according to the current state of the mobile equipment; determining a relative vertex of a positional reference point of the video display area; and adjusting the size of the video display area to the size of the video display area corresponding to the state to be switched along the direction of a diagonal line formed by the position reference point and the relative vertex.
Optionally, when the rotation angle of the mobile device is 90 degrees, the display direction of the adjusted video display area is kept unchanged by reversely rotating the adjusted video display area relative to the mobile device within a time length t until the position reference point rotates to a first mobile device vertex adjacent to the position reference point on the mobile device, wherein the time length t is the time when the mobile device rotates.
Optionally, the reversely rotating the adjusted video display area relative to the mobile device within the time length t includes: determining a direction opposite to the turning direction of the mobile device as a rotation direction of the adjusted video display area; obtaining a first mobile device vertex on the mobile device adjacent to the location reference point along the rotation direction; and rotating the adjusted video display area within the time length t by taking the connecting line of the vertex corresponding to the position reference point on the mobile equipment and the vertex of the first mobile equipment as the diameter.
Optionally, before performing the video display area resizing, the method further includes: intercepting a video frame picture before the mobile equipment rotates, amplifying the picture to be in a screen size, and then performing Gaussian blur processing to generate a background layer and displaying the background layer on the lower layer of the video; and, after displaying the adjusted video display area at the designated location of the mobile device, further comprising: and removing the background image layer.
Optionally, before performing the video display area resizing, the method further includes: placing the video in a paused state; and, after displaying the adjusted video display area at the designated location of the mobile device, further comprising: and restoring the video to the state before the horizontal and vertical screen switching operation.
According to another aspect of the embodiments of the present invention, there is provided a video display control apparatus.
A video display control apparatus comprising: the size adjusting module is used for adjusting the size of the video display area when a horizontal and vertical screen switching event of the mobile equipment is monitored; the direction processing module is used for keeping the display direction of the adjusted video display area unchanged in the process of switching horizontal and vertical screens of the mobile equipment; and the video display module is used for displaying the adjusted video display area at the appointed position of the mobile equipment after the horizontal and vertical screen switching of the mobile equipment is completed.
According to yet another aspect of an embodiment of the present invention, there is provided an electronic device for video display control.
An electronic device for video display control, comprising: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the video display control method provided by the embodiment of the invention.
According to yet another aspect of embodiments of the present invention, a computer-readable medium is provided.
A computer-readable medium, on which a computer program is stored, which, when executed by a processor, implements a video display control method provided by an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: when a horizontal and vertical screen switching event of the mobile equipment is monitored, firstly, adjusting the size of a video display area; then, in the process of switching horizontal and vertical screens of the mobile equipment, the display direction of the adjusted video display area is kept unchanged; finally, after the horizontal and vertical screen switching of the mobile equipment is completed, the adjusted video display area is displayed at the designated position of the mobile equipment, and the rotation and switching of the video picture cannot be seen visually in the process of steering the mobile equipment, so that the smoothness of the video switching process when the horizontal and vertical screen switching of the mobile equipment is performed, and the visual comfort and the experience of a user are improved. Meanwhile, in the process of video switching, the video frame picture before the mobile device rotates is subjected to Gaussian blur processing and is displayed on the screen of the mobile device as a background picture layer, so that the visual impact caused by the rotation of the player and the video can be reduced in the process of video conversion, and the visual comfort of a user is improved. And in the process of video switching by rotating the video, the video is in a pause state, so that the condition of frame skipping after video switching can not occur, the condition of video discontinuity is avoided, and the user experience is further improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a process and effect of video switching in the prior art;
FIG. 2 is a schematic diagram of the main steps of a video display control method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of the process and effect of video switching according to the embodiment of the present invention;
FIG. 4 is a schematic diagram of the main blocks of a video display control apparatus according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In order to solve the problems in the prior art, the invention provides a video display control method and a video display control device, which can improve the smoothness of a video switching process when a mobile device switches horizontal and vertical screens, and the visual comfort and experience of a user; meanwhile, the consistency of the video can be kept, and the user experience is further improved.
Fig. 2 is a schematic diagram of main steps of a video display control method according to an embodiment of the present invention. As shown in fig. 2, the video display control method according to the embodiment of the present invention mainly includes the following steps S201 to S203.
Step S201: when a horizontal and vertical screen switching event of the mobile equipment is monitored, adjusting the size of a video display area;
step S202: in the process of switching horizontal and vertical screens of the mobile equipment, the display direction of the adjusted video display area is kept unchanged;
step S203: and after the horizontal and vertical screen switching of the mobile equipment is finished, displaying the adjusted video display area at the designated position of the mobile equipment.
According to the embodiment of the invention, the display direction of the video display area after the size adjustment is kept unchanged, and the sudden video rotation during the horizontal and vertical screen switching of the video can be avoided, so that the video switching process is more smooth, the visual comfort of the video display action during the horizontal and vertical screen switching is greatly improved, and the experience is better.
According to one embodiment of the invention, the landscape and portrait screen switching event includes a current state of the mobile device, and the state of the mobile device includes a landscape screen and a portrait screen. The adjusting the size of the video display area may specifically include: and adjusting the size of the video display area according to the current state of the mobile equipment.
In the use process of the mobile device, because the existing mobile devices are all rectangular, the most common states of the mobile device mainly comprise a horizontal screen (the width of the screen is larger than the height) and a vertical screen (the height of the screen is larger than the width). Generally, when the mobile device rotates, it is considered to perform horizontal and vertical screen switching. When the horizontal screen and the vertical screen are switched, the size of the video display area needs to be adjusted according to whether the current state of the mobile equipment is the horizontal screen or the vertical screen.
Specifically, the resizing the video display area according to the current state of the mobile device comprises:
determining a state to be switched of the mobile equipment according to the current state of the mobile equipment;
and adjusting the size of the video display area to the size of the video display area corresponding to the state to be switched.
For example: and if the current state of the mobile equipment is a horizontal screen, determining that the state to be switched of the mobile equipment is a vertical screen, and adjusting the size of the video display area to the size of the video display area corresponding to the vertical screen state. And if the current state of the mobile equipment is the vertical screen, determining that the state to be switched of the mobile equipment is the horizontal screen, and adjusting the size of the video display area to the size of the video display area corresponding to the horizontal screen state. The size of the video display area in the horizontal screen or vertical screen state of the mobile device is generally preset and stored in the system, and when the size of the video display area needs to be adjusted, the size of the video display area can be directly adjusted according to the preset size of the video display area, and calculation is not needed every time.
According to another embodiment of the present invention, the keeping of the display direction of the adjusted video display area in step S202 may be specifically performed in the following manner:
acquiring a rotation angle of the mobile equipment;
the display direction of the adjusted video display area is kept unchanged by rotating the adjusted video display area in the reverse direction relative to the mobile device by an angle equal to the rotation angle.
Because the gravity sensing devices are installed in the mobile device, when the mobile device rotates, the gravity sensing devices can sense the change of the display direction of the mobile device, and the angle of the change of the display direction of the mobile device is defined as the rotation angle of the mobile device. In order to keep the video display direction viewed by human eyes unchanged during the rotation of the mobile device, the adjusted video display area needs to be rotated in a reverse direction relative to the mobile device, and the reverse rotation angle is equal to the rotation angle of the mobile device. In a specific implementation process, the angular speed of the adjusted video display area rotating reversely relative to the mobile device may be equal to the angular speed of the mobile device rotating, so as to further reduce the perception of human eyes for video conversion. Specifically, the rotation angle of the mobile device can be sensed through a gravity sensing device installed in the mobile device, and the angular velocity of the rotation of the mobile device is calculated according to the rotation angle and the rotation time of the mobile device, so that the angular velocity of the reverse rotation of the adjusted video display area is determined; the angular velocity of the rotation of the mobile device can be directly sensed through a velocity sensing device and a gravity sensing device which are installed in the mobile device, so that the angular velocity of the reverse rotation of the video display area after adjustment is determined. In addition, the angular velocity of the mobile device rotation may also be determined by other algorithms, which are not limited by the present invention.
According to another embodiment of the present invention, in step S201, when the size of the video display area is adjusted, the position reference point of the video display area may be specifically determined according to the horizontal and vertical screen switching event; then, based on the position reference point, video display area resizing is performed according to the current state of the mobile device.
Wherein the horizontal and vertical screen switching event further comprises steering of the mobile device; moreover, the specific determination of the position reference point of the video display area according to the horizontal and vertical screen switching event includes the following situations:
if the current state of the mobile equipment is vertical screen and the steering is right turning, the position reference point is the top right corner vertex of the mobile equipment and the video display area before turning;
if the current state of the mobile equipment is vertical screen and the steering is left turning, the position reference point is the top point of the left corner of the mobile equipment and the video display area before turning;
if the current state of the mobile equipment is a horizontal screen and the turning direction is a right turning, the position reference point is the top point of the mobile equipment and the upper left corner of the video display area before turning;
if the current state of the mobile device is the horizontal screen and the turning direction is the left turning, the position reference point is the vertex of the upper right corner of the mobile device and the video display area before the turning.
In this embodiment, after the location reference point is determined, the video display area may be resized according to the current state of the mobile device based on the location reference point. Specifically, the following steps may be included:
determining a state to be switched of the mobile equipment according to the current state of the mobile equipment;
determining the relative vertex of the position reference point of the video display area;
and adjusting the size of the video display area to the size of the video display area corresponding to the state to be switched along the direction of a diagonal line formed by the position reference point and the opposite vertex.
The size of the video display area of the mobile equipment in different states (horizontal screen or vertical screen) can be preset, and when the size of the video display area needs to be adjusted, the preset size is directly obtained and adjusted to display. In order to specify the positional information of the rotation of the video display area by the positional reference point, it is necessary to perform the adjustment of the size of the video display area along the direction of the diagonal line formed by the positional reference point and the opposite vertex thereof while keeping the positional reference point unchanged when performing the adjustment of the size of the video display area. Therefore, when the size of the video display area is adjusted, the picture seen by human eyes is only enlarged, and the sudden feeling caused by picture switching can not be caused, so that the picture switching is more natural and smooth, and the comfort level of the human eyes is higher.
In yet another embodiment of the present invention, the display orientation of the adjusted video display area is maintained by rotating the adjusted video display area in a reverse direction relative to the mobile device for a time period t until the location reference point rotates to a first mobile device vertex on the mobile device adjacent to the location reference point, when the rotation angle of the mobile device is 90 degrees, wherein the time period t is the time the mobile device rotates.
The reversely rotating the adjusted video display area within the time length t relative to the mobile device may specifically include:
determining a direction opposite to the turning direction of the mobile device as a rotation direction of the adjusted video display area;
acquiring a first mobile device vertex adjacent to the position reference point on the mobile device along the rotating direction;
and rotating the adjusted video display area within the time length t by taking the connecting line of the vertex corresponding to the position reference point on the mobile equipment and the vertex of the first mobile equipment as the diameter.
According to an embodiment of the present invention, before the video display area is adjusted in step S201, a video frame picture before the mobile device rotates may be captured, the picture is enlarged to a screen size, and then a gaussian blur process is performed to generate a background layer and display the background layer on a lower layer of the video; and removing the background layer after displaying the adjusted video display area at the designated position of the mobile device in step S203. Among them, Gaussian Blur (also called Gaussian smoothing) is a processing effect widely used in image processing software, and is generally used to reduce image noise and detail level, and the visual effect of an image generated by such a blurring technique is like observing an image through a semi-transparent screen. Therefore, the video frame picture before the mobile equipment rotates is subjected to Gaussian blur processing and is displayed on the screen of the mobile equipment as the background layer, so that the visual impact caused by the rotation of the player and the video can be reduced in the video rotation switching process, and the visual comfort of a user is improved.
According to another embodiment of the present invention, before performing the video display area resizing in step S201, the video may also be in a paused state; then, after the adjusted video display area is displayed at the designated position of the mobile device in step S203, the video is restored to the state before the horizontal/vertical screen switching operation. If the video is in the pause state before the video display area is adjusted in size, the video display area can be directly adjusted in size without other operations, and the pause state of the video does not need to be adjusted after the video display area is rotated and displayed at the specified position of the mobile device. If the video is not in the pause state but in the play state before the video is resized, the video needs to be in the pause state, and after the video display area is rotated and displayed at the designated position of the mobile device, the video is restored from the pause state to the play state before the horizontal and vertical screen switching operation to continue playing of the video. In the process of rotating the adjusted video display area to switch the video, the video is in a pause state, so that the condition of frame skipping after video switching can not occur, the condition of video discontinuity is avoided, and the user experience is improved.
The technical solution of the present invention is described below with reference to a specific embodiment.
Fig. 3 is a schematic diagram of the process and effect of video switching according to an embodiment of the present invention. Fig. 3 illustrates a process of video switching when the mobile device is rotated to a different angle during the process of converting the mobile device from portrait to landscape. As shown in fig. 3, the process of performing video switching according to the embodiment of the present invention mainly includes the following steps:
1. displaying the vertical screen video: displaying a video according to the current state of the mobile equipment, wherein the video is displayed in a half-screen mode when the mobile equipment is in a vertical screen mode, and is displayed in a full-screen mode when the mobile equipment is in a horizontal screen mode, and the video display area has a fixed size and relative position coordinates on the display screen of the mobile equipment when the two display modes are adopted;
2. monitoring a horizontal and vertical screen switching event of the mobile equipment: monitoring a horizontal and vertical screen switching event provided by a system of a mobile device, and if the event occurs (generally, when a vertical rotation angle of the mobile device deviates by a certain degree, the mobile device is considered to start horizontal and vertical screen switching, wherein in an ideal state, the certain degree should be as small as possible, and in an actual application process, the certain degree can be set by the system, for example, 30 degrees, and the like, and the case shown in the embodiment is the case in the ideal state):
a) and determining a position reference point of the video display area according to the steering information of the mobile equipment in the horizontal and vertical screen switching event. In this embodiment, the current state of the mobile device is vertical, and the turning direction is right turning, so that the mobile device before turning and the top right corner vertex of the video display area are determined as the position reference points of the video display area, such as the device x point and the video display area x point in fig. 3;
b) the method comprises the steps of enabling a video to be in a pause state, adjusting the size of a video display area (the size of a display area when the video is played) from the size when a mobile device is in a vertical screen to the size when the mobile device is in a horizontal screen, then capturing a video frame picture before the mobile device rotates, amplifying the picture to be in a screen size, and then carrying out Gaussian blur processing to generate a background picture layer and display the background picture layer on the lower layer of the video. The background layer is displayed on the screen of the mobile device in a full screen mode and rotates synchronously with the mobile device. Wherein, when the video display area is adjusted, the video display area is adjusted along the direction of a diagonal line formed by the position reference point and the opposite vertex of the position reference point on the video display area;
c) and performing screen turning operation on the video and the player thereof according to the adjusted size, specifically: first, determining a direction opposite to the turning direction of the mobile device as a rotation direction of the adjusted video display area; secondly, along the rotating direction, acquiring a first mobile device vertex (namely, a device y point in the figure 3) adjacent to the common vertex (namely, a device x point in the figure 3) on the mobile device; then, starting the animation of the video switching process, wherein the animation time length is t (namely: the time for the mobile device to switch between horizontal and vertical screens), the position reference point x point of the video display area starts to rotate in the direction opposite to the screen switching direction of the mobile device by taking the connecting line of the common vertex x point on the mobile device and the vertex y point of the first mobile device as a diameter until the position reference point x point of the video display area reaches the position of the vertex y point of the first mobile device adjacent to the x point of the mobile device. In the switching process of the video, the video display area rotates step by step within the time t, and when the x point of the video display area rotates to the y point of the mobile equipment, the rotating animation stops;
d) removing the Gaussian fuzzy background layer, recovering the switched video to be in a state before horizontal and vertical screen switching operation, if the state before the horizontal and vertical screen switching operation is a pause state, not needing to operate, and if the state before the horizontal and vertical screen switching operation is a play state, continuing to play the video;
e) continuously monitoring horizontal and vertical screen switching events;
3. and (6) ending.
In the description of the implementation process of the embodiment in fig. 3, the order of the three operations of placing the video in the pause state, adjusting the size of the video display area, and adding the background layer in step b) is not limited to the order described in the embodiment, and may be any order; likewise, the sequence of the two operations of removing the background layer in step d) and restoring the switched video to the state before the horizontal and vertical screen switching operation may also be any sequence, which does not affect the specific implementation of the technical solution of the present invention.
According to another aspect of the present invention, there is also provided a video display control apparatus for realizing video display control by executing the aforementioned video display control method. Fig. 4 is a schematic diagram of main blocks of a video display control apparatus according to an embodiment of the present invention. As shown in fig. 4, the video display control apparatus 400 according to the embodiment of the present invention mainly includes a resizing module 401, a direction processing module 402, and a video display module 403.
A size adjustment module 401, configured to perform size adjustment on a video display area when a horizontal-vertical screen switching event of the mobile device is monitored;
a direction processing module 402, configured to keep the display direction of the adjusted video display area unchanged during the process of switching between horizontal and vertical screens of the mobile device;
and a video display module 403, configured to display the adjusted video display area at a specified position of the mobile device after the horizontal and vertical screen switching of the mobile device is completed.
According to the technical scheme of the embodiment of the invention, when the horizontal and vertical screen switching event of the mobile equipment is monitored, the size of the video display area is firstly adjusted; then, in the process of switching horizontal and vertical screens of the mobile equipment, the display direction of the adjusted video display area is kept unchanged; finally, after the horizontal and vertical screen switching of the mobile equipment is completed, the adjusted video display area is displayed at the designated position of the mobile equipment, and the rotation and switching of the video picture cannot be seen visually in the process of steering the mobile equipment, so that the smoothness of the video switching process when the horizontal and vertical screen switching of the mobile equipment is performed, and the visual comfort and the experience of a user are improved. Meanwhile, in the process of video switching, the video frame picture before the mobile device rotates is subjected to Gaussian blur processing and is displayed on the screen of the mobile device as a background picture layer, so that the visual impact caused by the rotation of the player and the video can be reduced in the process of video conversion, and the visual comfort of a user is improved. And in the process of video switching by rotating the video, the video is in a pause state, so that the condition of frame skipping after video switching can not occur, the condition of video discontinuity is avoided, and the user experience is further improved.
Fig. 5 illustrates an exemplary system architecture 500 to which the video display control method or video display control apparatus of an embodiment of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 501, 502, 503. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the video display control method provided by the embodiment of the present invention is generally executed by the server 505, and accordingly, the video display control apparatus is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device or server implementing an embodiment of the invention is shown. The terminal device or the server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware. The described units or modules may also be provided in a processor, and may be described as: a processor includes a resizing module, a direction processing module, and a video display module. The names of these units or modules do not in some cases constitute a limitation on the units or modules themselves, for example, the resizing module may also be described as a "module for performing video display area resizing when a horizontal-vertical screen switching event of the mobile device is listened to".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: when a horizontal and vertical screen switching event of the mobile equipment is monitored, adjusting the size of a video display area; in the process of switching horizontal and vertical screens of the mobile equipment, the display direction of the adjusted video display area is kept unchanged; and after the horizontal and vertical screen switching of the mobile equipment is finished, displaying the adjusted video display area at the designated position of the mobile equipment.
According to the technical scheme of the embodiment of the invention, when the horizontal and vertical screen switching event of the mobile equipment is monitored, the size of the video display area is firstly adjusted; then, in the process of switching horizontal and vertical screens of the mobile equipment, the display direction of the adjusted video display area is kept unchanged; finally, after the horizontal and vertical screen switching of the mobile equipment is completed, the adjusted video display area is displayed at the designated position of the mobile equipment, and the rotation and switching of the video picture cannot be seen visually in the process of steering the mobile equipment, so that the smoothness of the video switching process when the horizontal and vertical screen switching of the mobile equipment is performed, and the visual comfort and the experience of a user are improved. Meanwhile, in the process of video switching, the video frame picture before the mobile device rotates is subjected to Gaussian blur processing and is displayed on the screen of the mobile device as a background picture layer, so that the visual impact caused by the rotation of the player and the video can be reduced in the process of video conversion, and the visual comfort of a user is improved. And in the process of video switching by rotating the video, the video is in a pause state, so that the condition of frame skipping after video switching can not occur, the condition of video discontinuity is avoided, and the user experience is further improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A video display control method, comprising:
when a horizontal and vertical screen switching event of the mobile equipment is monitored, adjusting the size of a video display area;
in the process of switching horizontal and vertical screens of the mobile equipment, the display direction of the adjusted video display area is kept unchanged;
and after the horizontal and vertical screen switching of the mobile equipment is finished, displaying the adjusted video display area at the designated position of the mobile equipment.
2. The method of claim 1, wherein the landscape and portrait screen switching event comprises a current state of the mobile device, wherein the state of the mobile device comprises landscape and portrait screens;
the video display area size adjustment includes:
and adjusting the size of a video display area according to the current state of the mobile equipment.
3. The method of claim 2, wherein resizing the video display area according to the current state of the mobile device comprises:
determining a state to be switched of the mobile equipment according to the current state of the mobile equipment;
and adjusting the size of the video display area to the size of the video display area corresponding to the state to be switched.
4. The method of claim 1, wherein maintaining the display orientation of the adjusted video display region comprises:
acquiring a rotation angle of the mobile equipment;
and reversely rotating the adjusted video display area relative to the mobile equipment by an angle equal to the rotation angle so as to keep the display direction of the adjusted video display area unchanged.
5. The method of claim 2, wherein resizing the video display area comprises:
determining a position reference point of the video display area according to the horizontal and vertical screen switching event; and based on the position reference point, adjusting the size of a video display area according to the current state of the mobile equipment.
6. The method of claim 5, wherein the landscape and portrait toggle event further comprises a steering of the mobile device;
and, determining a position reference point of the video display area according to the horizontal and vertical screen switching event comprises:
if the current state of the mobile equipment is vertical screen and the turning direction is right turning, the position reference point is the top right corner vertex of the mobile equipment and the video display area before turning;
if the current state of the mobile equipment is vertical screen and the turning direction is left turning, the position reference point is the top point of the left corner of the mobile equipment and the video display area before turning;
if the current state of the mobile equipment is a horizontal screen and the turning direction is a right turning, the position reference point is the top point of the mobile equipment and the upper left corner of the video display area before turning;
and if the current state of the mobile equipment is a transverse screen and the turning direction is a left turning, the position reference point is the vertex of the upper right corner of the mobile equipment and the video display area before turning.
7. The method of claim 5 or 6, wherein resizing the video display area according to the current state of the mobile device based on the location reference point comprises:
determining a state to be switched of the mobile equipment according to the current state of the mobile equipment;
determining a relative vertex of a positional reference point of the video display area;
and adjusting the size of the video display area to the size of the video display area corresponding to the state to be switched along the direction of a diagonal line formed by the position reference point and the relative vertex.
8. The method of claim 5 or 6, wherein the display direction of the adjusted video display area is maintained by rotating the adjusted video display area in a reverse direction relative to the mobile device for a time period t until the position reference point rotates to a first mobile device vertex on the mobile device adjacent to the position reference point when the rotation angle of the mobile device is 90 degrees, wherein the time period t is the time when the mobile device rotates.
9. The method of claim 8, wherein rotating the adjusted video display area in a reverse direction with respect to the mobile device for the duration t comprises:
determining a direction opposite to the turning direction of the mobile device as a rotation direction of the adjusted video display area;
obtaining a first mobile device vertex on the mobile device adjacent to the location reference point along the rotation direction;
and rotating the adjusted video display area within the time length t by taking the connecting line of the vertex corresponding to the position reference point on the mobile equipment and the vertex of the first mobile equipment as the diameter.
10. The method of claim 1, further comprising, prior to performing the video display area resizing:
intercepting a video frame picture before the mobile equipment rotates, amplifying the picture to be in a screen size, and then performing Gaussian blur processing to generate a background layer and displaying the background layer on the lower layer of the video;
and, after displaying the adjusted video display area at the designated location of the mobile device, further comprising:
and removing the background image layer.
11. The method of claim 1, further comprising, prior to performing the video display area resizing:
placing the video in a paused state;
and, after displaying the adjusted video display area at the designated location of the mobile device, further comprising:
and restoring the video to the state before the horizontal and vertical screen switching operation.
12. A video display control apparatus, comprising:
the size adjusting module is used for adjusting the size of the video display area when a horizontal and vertical screen switching event of the mobile equipment is monitored;
the direction processing module is used for keeping the display direction of the adjusted video display area unchanged in the process of switching horizontal and vertical screens of the mobile equipment;
and the video display module is used for displaying the adjusted video display area at the appointed position of the mobile equipment after the horizontal and vertical screen switching of the mobile equipment is completed.
13. An electronic device controlled by a video display, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-11.
14. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-11.
CN201910202981.0A 2019-03-18 2019-03-18 Video display control method and device Pending CN111726666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910202981.0A CN111726666A (en) 2019-03-18 2019-03-18 Video display control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910202981.0A CN111726666A (en) 2019-03-18 2019-03-18 Video display control method and device

Publications (1)

Publication Number Publication Date
CN111726666A true CN111726666A (en) 2020-09-29

Family

ID=72562994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910202981.0A Pending CN111726666A (en) 2019-03-18 2019-03-18 Video display control method and device

Country Status (1)

Country Link
CN (1) CN111726666A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747228A (en) * 2021-09-17 2021-12-03 四川启睿克科技有限公司 Method for realizing intelligent rotary television dynamic screen saver
CN113891137A (en) * 2021-09-27 2022-01-04 武汉斗鱼网络科技有限公司 Barrage display method and system during switching of horizontal and vertical video screens

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110001762A1 (en) * 2009-07-02 2011-01-06 Inventec Appliances Corp. Method for adjusting displayed frame, electronic device, and computer readable medium thereof
CN104811785A (en) * 2015-04-01 2015-07-29 乐视致新电子科技(天津)有限公司 Control method and device for displaying graphical user interface of intelligent terminal
CN108234763A (en) * 2017-12-29 2018-06-29 广州优视网络科技有限公司 Horizontal/vertical screen switching method, device and terminal
WO2019031771A1 (en) * 2017-08-11 2019-02-14 Samsung Electronics Co., Ltd. Display device for visualizing contents as the display is rotated and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110001762A1 (en) * 2009-07-02 2011-01-06 Inventec Appliances Corp. Method for adjusting displayed frame, electronic device, and computer readable medium thereof
CN104811785A (en) * 2015-04-01 2015-07-29 乐视致新电子科技(天津)有限公司 Control method and device for displaying graphical user interface of intelligent terminal
WO2019031771A1 (en) * 2017-08-11 2019-02-14 Samsung Electronics Co., Ltd. Display device for visualizing contents as the display is rotated and control method thereof
CN108234763A (en) * 2017-12-29 2018-06-29 广州优视网络科技有限公司 Horizontal/vertical screen switching method, device and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747228A (en) * 2021-09-17 2021-12-03 四川启睿克科技有限公司 Method for realizing intelligent rotary television dynamic screen saver
CN113747228B (en) * 2021-09-17 2023-09-15 四川启睿克科技有限公司 Method for realizing intelligent rotary television dynamic screen protection
CN113891137A (en) * 2021-09-27 2022-01-04 武汉斗鱼网络科技有限公司 Barrage display method and system during switching of horizontal and vertical video screens
CN113891137B (en) * 2021-09-27 2023-06-16 武汉斗鱼网络科技有限公司 Bullet screen display method and system during switching of horizontal and vertical video screens

Similar Documents

Publication Publication Date Title
WO2020186935A1 (en) Virtual object displaying method and device, electronic apparatus, and computer-readable storage medium
US9223534B1 (en) Client side detection of motion vectors for cross-platform display
US8763054B1 (en) Cross-platform video display
CN107204023B (en) Method and apparatus for avoiding distortion of graphics drawn in canvas
US8776152B1 (en) Cloud-based cross-platform video display
US10044979B2 (en) Acquiring regions of remote shared content with high resolution
WO2020007113A1 (en) Method and device for loading image
CN111277893B (en) Video processing method and device, readable medium and electronic equipment
CN112051961A (en) Virtual interaction method and device, electronic equipment and computer readable storage medium
WO2022022689A1 (en) Interaction method and apparatus, and electronic device
CN111198610A (en) Method, device and equipment for controlling field of view of panoramic video and storage medium
CN115278275B (en) Information display method, apparatus, device, storage medium, and program product
CN110519645B (en) Video content playing method and device, electronic equipment and computer readable medium
CN116091672A (en) Image rendering method, computer device and medium thereof
CN111726666A (en) Video display control method and device
CN114339363B (en) Picture switching processing method and device, computer equipment and storage medium
CN111710047A (en) Information display method and device and electronic equipment
CN111352560B (en) Screen splitting method and device, electronic equipment and computer readable storage medium
CN114860139A (en) Video playing method, video playing device, electronic equipment, storage medium and program product
CN115379105B (en) Video shooting method, device, electronic equipment and storage medium
US9250782B1 (en) Using split windows for cross-platform document views
CN113810755B (en) Panoramic video preview method and device, electronic equipment and storage medium
US9367931B1 (en) Motion vectors for cross-platform display
WO2022127524A1 (en) Video conference presentation method and apparatus, and terminal device and storage medium
CN117319725A (en) Subtitle display method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination