CN110446110B - Video playing method, video playing device and storage medium - Google Patents

Video playing method, video playing device and storage medium Download PDF

Info

Publication number
CN110446110B
CN110446110B CN201910704913.4A CN201910704913A CN110446110B CN 110446110 B CN110446110 B CN 110446110B CN 201910704913 A CN201910704913 A CN 201910704913A CN 110446110 B CN110446110 B CN 110446110B
Authority
CN
China
Prior art keywords
picture
size
video
playing
window
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.)
Active
Application number
CN201910704913.4A
Other languages
Chinese (zh)
Other versions
CN110446110A (en
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.)
Shenzhen Tendzone Intelligent Technology Co ltd
Original Assignee
Shenzhen Tendzone Intelligent 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 Shenzhen Tendzone Intelligent Technology Co ltd filed Critical Shenzhen Tendzone Intelligent Technology Co ltd
Priority to CN201910704913.4A priority Critical patent/CN110446110B/en
Publication of CN110446110A publication Critical patent/CN110446110A/en
Application granted granted Critical
Publication of CN110446110B publication Critical patent/CN110446110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface

Abstract

The invention discloses a video playing method, which comprises the following steps: acquiring the canvas size of a video and the window size of a display window; when a first aspect ratio corresponding to the canvas size is not equal to a second aspect ratio corresponding to the window size, determining a target canvas size according to the canvas size and the window size, wherein the determined target canvas size is larger than the window size, and a third aspect ratio corresponding to the target canvas size is equal to the first aspect ratio; and playing the video in the display window according to the size of the target canvas. The invention also discloses a video playing device and a computer readable storage medium. The invention improves the watching experience of the user to the video.

Description

Video playing method, video playing device and storage medium
Technical Field
The present invention relates to the field of video playing, and in particular, to a video playing method, a video playing device, and a computer-readable storage medium.
Background
In a multimedia system, under the condition that the size of a display window is fixed, a normal play display mode mainly plays a single independent data stream by decoding, and under the condition that the aspect ratio of a data stream source is inconsistent with the aspect ratio of a displayed window rectangle, the traditional display processing modes have two types: one is to keep the image unchanged, and the image is rendered and displayed in the window rectangle by taking the width or height of the display window rectangle as a reference and maintaining the original aspect ratio of the image in the window rectangle, and the redundant part of the window is filled with background color; another is to stretch and deform the canvas of the video to be played to cover the entire display window.
However, these methods all cause that when the size of the video canvas is not consistent with that of the display window, the effect of video playing is not ideal, and therefore the viewing experience of the user on the video is affected.
Disclosure of Invention
The invention mainly aims to provide a video playing method, video playing equipment and a computer readable storage medium, which improve the watching experience of a user on videos.
In order to achieve the above object, the present invention provides a video playing method, which includes the following steps:
acquiring the canvas size of a video and the window size of a display window;
when a first aspect ratio corresponding to the canvas size is not equal to a second aspect ratio corresponding to the window size, determining a target canvas size according to the canvas size and the window size, wherein the determined target canvas size is larger than the window size, and a third aspect ratio corresponding to the target canvas size is equal to the first aspect ratio;
and playing the video in the display window according to the size of the target canvas.
Optionally, when the first aspect ratio corresponding to the canvas size is not equal to the second aspect ratio corresponding to the window size, the step of determining the target canvas size according to the canvas size and the window size includes:
when a first aspect ratio corresponding to the canvas size is larger than a second aspect ratio corresponding to the window size, taking the height in the window size as the height in the target canvas size, and determining the width in the target canvas size according to the ratio of the height in the window size to the height in the canvas size and the width in the canvas size;
and when the first aspect ratio corresponding to the canvas size is smaller than the second aspect ratio corresponding to the window size, taking the width in the window size as the width in the target canvas size, and determining the height in the target canvas size according to the ratio of the width in the window size to the width in the canvas size and the height in the canvas size.
Optionally, the step of playing the video in the display window according to the target canvas size includes:
adjusting the picture size of the playing picture of the video to the target canvas size;
determining a picture display area in the adjusted playing picture according to a preset rule and the window size;
and displaying the picture display area on the display window.
Optionally, the preset rule includes at least one of:
the central point of the playing picture is superposed with the central point of the display window;
when the video has subtitles, determining that the obtained picture display area comprises a subtitle picture area corresponding to the subtitles in the adjusted playing picture;
at least one overlapped corner exists between the playing picture and the display window.
Optionally, after the step of playing the video in the display window according to the target canvas size, the method further includes:
when receiving a control operation for controlling the scrolling of the playing picture, acquiring a target direction and a picture scrolling amplitude corresponding to the control operation;
acquiring a first picture area from a picture hiding area of the playing picture and a second picture area from a picture display area according to the target direction and the picture rolling amplitude, wherein the picture hiding area is determined from the playing picture according to the picture display area;
and displaying the first picture area and hiding the second picture area.
Optionally, after the step of playing the video in the display window according to the target canvas size, the method further includes:
determining a picture hiding area from the playing picture according to the picture display area;
and generating and outputting prompt information according to the hiding direction corresponding to the picture hiding area.
In order to achieve the above object, the present invention further provides a video playback device, including:
the video playing device comprises a memory, a processor and a video playing program which is stored on the memory and can run on the processor, wherein the video playing program realizes the steps of the video playing method when being executed by the processor.
In order to achieve the above object, the present invention further provides a computer readable storage medium, wherein a playing program of a video is stored on the computer readable storage medium, and when being executed by a processor, the playing program of the video implements the steps of the playing method of the video.
The video playing method, the video playing device and the computer readable storage medium provided by the invention are used for acquiring the canvas size of the video and the window size of the display window; when a first aspect ratio corresponding to the canvas size is not equal to a second aspect ratio corresponding to the window size, determining a target canvas size according to the canvas size and the window size, wherein the determined target canvas size is larger than the window size, and a third aspect ratio corresponding to the target canvas size is equal to the first aspect ratio; and playing the video in the display window according to the size of the target canvas. Therefore, the display window can be fully paved by the playing picture of the video without stretching and deforming, and the watching experience of the user on the video is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a video playing method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a video playing method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a video playing method according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a video playing method according to a fourth embodiment of the present invention;
fig. 6 is an exemplary diagram of a relative relationship between a display window and a playing frame according to an embodiment of a video playing method of the present invention.
FIG. 7 is a diagram illustrating an example of a relationship between a display window and a display frame according to another embodiment of the video playing method of the present invention;
FIG. 8 is a diagram illustrating a relative relationship between a display window and a display frame according to another embodiment of the video playing method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a video playing method, which can fully cover a display window without stretching and deforming the playing picture of a video, thereby improving the watching experience of a user on the video.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present invention;
the terminal of the embodiment of the invention can be a video playing device (such as a multimedia playing device, a conference all-in-one machine, a mobile phone, a flat panel, a television and the like), and also can be a server or a control terminal for controlling the video playing device.
As shown in fig. 1, the terminal may include: a processor 1001, such as a Central Processing Unit (CPU), a memory 1002, and a communication bus 1003. The communication bus 1003 is used for implementing connection communication between the components in the terminal. The memory 1002 may be a random-access memory (RAM-random-access memory) or a non-volatile memory (non-volatile memory), such as a disk memory. The memory 1002 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 1 is not intended to be limiting of the terminal of embodiments of the present invention and may include more or less components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1002, which is a kind of computer storage medium, may include therein a playback program of a video.
In the terminal shown in fig. 1, the processor 1001 may be configured to call a playing program of a video stored in the memory 1002, and perform the following operations:
acquiring the canvas size of a video and the window size of a display window;
when a first aspect ratio corresponding to the canvas size is not equal to a second aspect ratio corresponding to the window size, determining a target canvas size according to the canvas size and the window size, wherein the determined target canvas size is larger than the window size, and a third aspect ratio corresponding to the target canvas size is equal to the first aspect ratio;
and playing the video in the display window according to the size of the target canvas.
Further, the processor 1001 may call a playing program of the video stored in the memory 1002, and further perform the following operations:
when a first aspect ratio corresponding to the canvas size is larger than a second aspect ratio corresponding to the window size, taking the height in the window size as the height in the target canvas size, and determining the width in the target canvas size according to the ratio of the height in the window size to the height in the canvas size and the width in the canvas size;
and when the first aspect ratio corresponding to the canvas size is smaller than the second aspect ratio corresponding to the window size, taking the width in the window size as the width in the target canvas size, and determining the height in the target canvas size according to the ratio of the width in the window size to the width in the canvas size and the height in the canvas size.
Further, the processor 1001 may call a playing program of the video stored in the memory 1002, and further perform the following operations:
adjusting the picture size of the playing picture of the video to the target canvas size;
determining a picture display area in the adjusted playing picture according to a preset rule and the window size;
and displaying the picture display area on the display window.
Further, the processor 1001 may call a playing program of the video stored in the memory 1002, and further perform the following operations:
the central point of the playing picture is superposed with the central point of the display window;
when the video has subtitles, determining that the obtained picture display area comprises a subtitle picture area corresponding to the subtitles in the adjusted playing picture;
at least one overlapped corner exists between the playing picture and the display window.
Further, the processor 1001 may call a playing program of the video stored in the memory 1002, and further perform the following operations:
when receiving a control operation for controlling the scrolling of the playing picture, acquiring a target direction and a picture scrolling amplitude corresponding to the control operation;
acquiring a first picture area from a picture hiding area of the playing picture and a second picture area from a picture display area according to the target direction and the picture rolling amplitude, wherein the picture hiding area is determined from the playing picture according to the picture display area;
and displaying the first picture area and hiding the second picture area.
Further, the processor 1001 may call a playing program of the video stored in the memory 1002, and further perform the following operations:
determining a picture hiding area from the playing picture according to the picture display area;
and generating and outputting prompt information according to the hiding direction corresponding to the picture hiding area.
Referring to fig. 2, in an embodiment, the method for playing the video includes:
and step S10, acquiring the canvas size of the video and the window size of the display window.
In this embodiment, the terminal in this embodiment may be a video playing device (such as a multimedia playing device, a conference all-in-one machine, a mobile phone, a tablet, a television, and the like), or may be a server or a control terminal that controls the video playing device. When the terminal is a server or a control terminal, the terminal can acquire the window size of the display window from the video playing device and transmit the video data stream to the video playing device. The following description will take the example of the embodiment terminal as a video playing device.
Optionally, the canvas size of the video includes a width and a height (or a width and a length); the window size of the display window includes a width and a height (or a width and a length).
It should be noted that the size of the canvas size of the video is related to the resolution of the corresponding playing picture of the video; the window size of the display window corresponds to the window size of an application on the video playback device for playing the video.
Optionally, when detecting that a video needs to be played by the video playing device, the terminal may obtain a canvas size of the video to be played and a window size of a display window corresponding to the video playing device.
Step S20, when the first aspect ratio corresponding to the canvas size is not equal to the second aspect ratio corresponding to the window size, determining a target canvas size according to the canvas size and the window size, wherein the determined target canvas size is larger than the window size, and the third aspect ratio corresponding to the target canvas size is equal to the first aspect ratio.
Optionally, the first aspect ratio corresponding to the canvas size may be calculated according to a ratio of the width to the height in the canvas size; the second aspect ratio corresponding to the window size may be calculated from a ratio of the width and the height of the window size. Of course, since the canvas size of the video is predetermined, if the first aspect ratio exists in the data stream corresponding to the video, the first aspect ratio may be directly obtained; if the application for playing the video already has information corresponding to the second aspect ratio, the second aspect ratio can also be directly obtained through the application.
Optionally, the terminal may compare the first aspect ratio and the second aspect ratio after obtaining the two aspect ratios. When the first aspect ratio is not equal to the second aspect ratio (i.e., the first aspect ratio is greater than the second aspect ratio, or the first aspect ratio is less than the second aspect ratio), a target canvas size is determined from the canvas size and the window size.
Wherein, when the first aspect ratio is larger than the second aspect ratio, the height H in the window size is obtained2Height H as target canvas size3According to the height H in the window size2And a height H in the canvas size1The ratio between and the width W in the canvas size1Determining a width W in the target canvas size3(will width W)1Multiplied by the height H2And height H1The ratio therebetween). Width W in target canvas size3The specific calculation formula of (2) is as follows:
Figure GDA0003457763780000071
when the first aspect ratio is smaller than the second aspect ratio, then the width W in the window size is obtained2Width W as target canvas size3According to the width W in the window size2And a width W in the canvas size1The ratio between and the height H in the canvas size1Determining a height H in the target canvas size3(will height H)1Multiplied by the width W2And width W1The ratio therebetween). Height H in target canvas size3The specific calculation formula of (2) is as follows:
Figure GDA0003457763780000072
thus, whether the first aspect ratio is greater than the second aspect ratio or the first aspect ratio is less than the second aspect ratio, it can be achieved that the target canvas size determined to be greater than the window size (i.e., the product of the width and the height in the target canvas size, which is greater than the product of the width and the height in the window size) is achieved, and at the same time, the third aspect ratio (calculated from the ratio of the width and the height of the target canvas size) corresponding to the target canvas size is equal to the first aspect ratio of the canvas size.
And step S30, playing the video in the display window according to the size of the target canvas.
And adjusting the picture size of the playing picture of the video according to the target canvas size, namely taking the target canvas size as the picture size of the playing picture of the video. And playing the video in the display window based on the adjusted picture size.
Optionally, when the first aspect ratio corresponding to the canvas size is equal to the second aspect ratio corresponding to the window size, the window size may be directly used as the target canvas size, that is, the video is played in the display window according to the window size.
In an embodiment, when a first aspect ratio corresponding to the canvas size of a video is not equal to a second aspect ratio corresponding to the window size, the target canvas size is larger than the window size, a third aspect ratio corresponding to the target canvas size is equal to the first aspect ratio of the canvas size, and the video is played based on the target canvas size, so that the video playing picture can be fully paved with a display window without stretching deformation, and the watching experience of a user on the video is improved.
In a second embodiment, as shown in fig. 3, based on the embodiment shown in fig. 2, the step of playing the video in the display window according to the target canvas size includes:
and step S31, adjusting the picture size of the playing picture of the video to the target canvas size.
And step S32, determining a picture display area in the adjusted playing picture according to a preset rule and the window size.
Step S33, displaying the screen display area on the display window.
In this embodiment, because the target canvas size is larger than the window size, when the video is played in the display window based on the target canvas size, the playing picture of the video includes a picture hiding area that is not displayed in the display window, in addition to the picture display area corresponding to the display window (the display picture size corresponding to the picture display area is equal to the window size).
After the picture size of the playing picture of the video is adjusted to the target canvas size, a preset rule can be obtained, and a picture display area is determined in the adjusted playing picture according to the preset rule and the window size.
Optionally, the preset rule includes at least one of: the central point of the playing picture is superposed with the central point of the display window; when the video has subtitles, determining that the obtained picture display area comprises a subtitle picture area corresponding to the subtitles in the adjusted playing picture; at least one overlapped corner exists between the playing picture and the display window.
Optionally, when the preset rule is that the central point of the playing picture coincides with the central point of the display window, referring to fig. 6, the target canvas size is used as the picture size of the playing picture 20 of the video, and meanwhile, the central point of the playing picture 20 coincides with the central point of the display window 10, so that the picture middle area of the playing picture of the video can be displayed in the display window when the video is initially played based on the target canvas size.
Alternatively, when detecting that a subtitle exists in the video, referring to fig. 7, the terminal may first acquire the subtitle display area 30 corresponding to the subtitle in the adjusted playing picture 20, then determine a picture display area (the picture display area coincides with the display area of the display window 10) in the playing picture 20 according to the subtitle display area 30 and the window size, and ensure that the subtitle display area 30 is included in the picture display area.
Optionally, when the preset rule is that at least one overlapped corner exists between the playing picture and the display window, referring to fig. 8, a preset corner (e.g., an upper left corner) is selected from the adjusted playing picture 20, and when the picture display area is determined according to the window size, the picture display area needs to include the preset corner, so that the corner of the display window corresponding to the preset corner can be overlapped with the preset corner (e.g., the upper left corner of the playing picture is overlapped with the upper left corner of the display window).
And after the picture display area is determined, correspondingly displaying a picture corresponding to the picture display area on the display window.
In one embodiment, the picture size of the playing picture of the video is adjusted to the target canvas size; determining a picture display area in the adjusted playing picture according to a preset rule and the window size; and displaying the picture display area on the display window. Therefore, the picture display area displayed in the display window in the playing picture is determined based on the preset rule, so that the display window can be fully paved without stretching and deforming the playing picture of the video, and the picture display area more suitable for the watching habit of the user can be ensured to be selected for the user to watch.
In a third embodiment, as shown in fig. 4, on the basis of the above embodiments of fig. 2 to fig. 3, after the step of playing the video in the display window according to the target canvas size, the method further includes:
and step S40, when receiving the control operation for controlling the scroll of the playing picture, acquiring the target direction and the picture scroll amplitude corresponding to the control operation.
Step S41, obtaining a first picture area from the picture hiding area of the playing picture according to the target direction and the picture scroll width, and obtaining a second picture area from the picture displaying area, wherein the picture hiding area is determined from the playing picture according to the picture displaying area.
And step S42, displaying the first picture area and hiding the second picture area.
In this embodiment, because the target canvas size is larger than the window size, when the video is played in the display window based on the target canvas size, the playing picture of the video includes a picture hiding area that is not displayed in the display window, in addition to the picture display area corresponding to the display window (the display picture size corresponding to the picture display area is equal to the window size). The picture hiding area can be determined from the playing picture according to the picture display area, and after the picture display area is determined from the adjusted playing picture, the area except the picture display area in the playing picture can be used as the picture hiding area.
Optionally, the user may send a control operation to control the scrolling of the playing screen by dragging the display area of the playing screen (dragging with a mouse, or dragging directly when the screen of the video playing device is a touch screen).
After receiving the control operation, the terminal acquires a target direction (dragging direction) and a picture rolling amplitude (dragging amplitude) corresponding to the control operation, acquires a first picture area from a picture hiding area of the playing picture according to the target direction and the picture rolling amplitude, and acquires a second picture area from a picture display area according to the target direction and the picture rolling amplitude (or directly acquires the second picture area from the picture display area according to the size and the position of the first picture area after acquiring the first picture area). The first picture area is removed from the picture hiding area, the first picture area is added into the picture displaying area, meanwhile, the second picture area is removed from the picture displaying area, and the second picture area is added into the picture hiding area, so that the display of the first picture area and the hiding of the second picture area are achieved.
It should be understood that, under the condition that the window size of the display window is not changed, while the original non-displayed picture area is displayed by scrolling the playing picture, a part of the originally displayed picture area is hidden, that is, the area size corresponding to the first picture area is equal to the area size corresponding to the second picture area.
Therefore, the picture display area displayed in the display window in the playing picture is determined based on the preset rule, so that the display window can be fully paved without stretching and deforming the playing picture of the video, and meanwhile, a user can select the picture area to be watched according to the preference of the user.
In a fourth embodiment, as shown in fig. 5, on the basis of the above embodiments of fig. 2 to 4, after the step of playing the video in the display window according to the target canvas size, the method further includes:
step S50, determining a screen hiding area from the playing screen according to the screen display area.
And step S51, generating and outputting the prompt information according to the hiding direction corresponding to the hidden area of the picture.
In this embodiment, because the target canvas size is larger than the window size, when the video is played in the display window based on the target canvas size, the playing picture of the video includes a picture hiding area that is not displayed in the display window, in addition to the picture display area corresponding to the display window (the display picture size corresponding to the picture display area is equal to the window size). The picture hiding area can be determined from the playing picture according to the picture display area, and after the picture display area is determined from the adjusted playing picture, the area except the picture display area in the playing picture can be used as the picture hiding area.
Optionally, the hiding direction corresponding to the frame hiding region may be determined according to a relative position between the frame hiding region and the frame display region, where the hiding direction includes at least one of an up direction, a down direction, a left direction, and a right direction (if the preset rule is that a center point of the playing frame coincides with a center point of the display window, two hiding directions, i.e., the left direction and the right direction, or the up direction and the down direction, i.e., there is a frame hiding region in both the two hiding directions).
Optionally, after the hiding direction of the screen hiding region relative to the screen display region is acquired, prompt information may be generated according to the hiding direction and output to prompt the user that there is a playing screen region not displayed in the display window in the direction pointed by the hiding direction. At this time, the user can scroll the play screen according to the hiding direction (even if the target direction of the control operation coincides with the hiding direction) as necessary to view the screen hidden in the screen hiding area.
Optionally, the prompt information is a floating icon, and may be displayed during initial playing of the video, hidden after a preset duration, and redisplayed when a mouse click or a screen click is detected. The preset time length can be selected from 10 seconds to 30 seconds.
In one embodiment, a picture hiding area is determined from the playing picture according to the picture display area; and generating and outputting prompt information according to the hiding direction corresponding to the picture hiding area. Therefore, the position of the hidden area of the picture is prompted to the user, and the user can conveniently select the picture to be watched.
In addition, the present invention further provides a video playing device, where the video playing device includes a memory, a processor, and a video playing program stored on the memory and capable of running on the processor, and the processor implements the steps of the video playing method according to the above embodiment when executing the video playing program.
Furthermore, the present invention also provides a computer-readable storage medium, which includes a video playing program, and when the video playing program is executed by a processor, the steps of the video playing method according to the above embodiment are implemented.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a television, a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (4)

1. A video playing method is characterized by comprising the following steps:
acquiring the canvas size of a video and the window size of a display window;
when a first aspect ratio corresponding to the canvas size is not equal to a second aspect ratio corresponding to the window size, determining a target canvas size according to the canvas size and the window size, wherein the determined target canvas size is larger than the window size, and a third aspect ratio corresponding to the target canvas size is equal to the first aspect ratio;
adjusting the picture size of the playing picture of the video to the target canvas size;
determining a picture display area in the adjusted playing picture according to a preset rule and the window size;
displaying the picture display area on the display window;
the preset rules include: the central point of the playing picture is superposed with the central point of the display window;
when the video has subtitles, determining that the obtained picture display area comprises a subtitle picture area corresponding to the subtitles in the adjusted playing picture;
at least one overlapped corner exists between the playing picture and the display window;
when receiving a control operation for controlling the scrolling of the playing picture, acquiring a target direction and a picture scrolling amplitude corresponding to the control operation;
acquiring a first picture area from a picture hiding area of the playing picture and a second picture area from a picture display area according to the target direction and the picture rolling amplitude, wherein the picture hiding area is determined from the playing picture according to the picture display area;
displaying the first picture area and hiding the second picture area;
and generating and outputting prompt information according to the hiding direction corresponding to the picture hiding area.
2. The method for playing video according to claim 1, wherein when the first aspect ratio corresponding to the canvas size is not equal to the second aspect ratio corresponding to the window size, the step of determining the target canvas size according to the canvas size and the window size comprises:
when a first aspect ratio corresponding to the canvas size is larger than a second aspect ratio corresponding to the window size, taking the height in the window size as the height in the target canvas size, and determining the width in the target canvas size according to the ratio of the height in the window size to the height in the canvas size and the width in the canvas size;
and when the first aspect ratio corresponding to the canvas size is smaller than the second aspect ratio corresponding to the window size, taking the width in the window size as the width in the target canvas size, and determining the height in the target canvas size according to the ratio of the width in the window size to the width in the canvas size and the height in the canvas size.
3. A video playback device, characterized in that the video playback device comprises a memory, a processor, and a playback program of a video stored on the memory and executable on the processor, the playback program of the video implementing the steps of the playback method of a video according to any one of claims 1 to 2 when executed by the processor.
4. A computer-readable storage medium, characterized in that a playing program of a video is stored on the computer-readable storage medium, and when executed by a processor, the steps of the playing method of a video according to any one of claims 1 to 2 are implemented.
CN201910704913.4A 2019-07-29 2019-07-29 Video playing method, video playing device and storage medium Active CN110446110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910704913.4A CN110446110B (en) 2019-07-29 2019-07-29 Video playing method, video playing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910704913.4A CN110446110B (en) 2019-07-29 2019-07-29 Video playing method, video playing device and storage medium

Publications (2)

Publication Number Publication Date
CN110446110A CN110446110A (en) 2019-11-12
CN110446110B true CN110446110B (en) 2022-04-22

Family

ID=68432792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910704913.4A Active CN110446110B (en) 2019-07-29 2019-07-29 Video playing method, video playing device and storage medium

Country Status (1)

Country Link
CN (1) CN110446110B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014960B (en) * 2019-12-19 2023-04-11 腾讯科技(深圳)有限公司 Method, device and storage medium for online video production
CN113012028B (en) * 2019-12-19 2023-03-24 浙江宇视科技有限公司 Image processing method, device, equipment and storage medium
CN111935544B (en) 2020-07-31 2022-03-08 北京字节跳动网络技术有限公司 Interaction method and device and electronic equipment
CN112770183B (en) * 2020-11-10 2023-03-24 北京达佳互联信息技术有限公司 Video playing control method and device, electronic equipment and storage medium
CN113115098A (en) * 2021-03-31 2021-07-13 北京达佳互联信息技术有限公司 Video display method and device
CN113438533B (en) * 2021-05-31 2022-11-22 北京达佳互联信息技术有限公司 Video display method and device, electronic equipment and storage medium
CN114760503B (en) * 2022-04-15 2023-12-05 北京爱奇艺科技有限公司 Video playing method, device, system, electronic equipment and storage medium
CN117156205A (en) * 2022-05-24 2023-12-01 北京字节跳动网络技术有限公司 Image display method and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4849343B2 (en) * 2005-08-25 2012-01-11 ソニー株式会社 Data generation method, recording apparatus and method, and program
CN103546715A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Method and device for adjusting proportion of picture of smart television
CN105898615A (en) * 2015-12-25 2016-08-24 乐视网信息技术(北京)股份有限公司 Video display window switching method and device

Also Published As

Publication number Publication date
CN110446110A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110446110B (en) Video playing method, video playing device and storage medium
US8255825B2 (en) Content aware adaptive display
CN107820132B (en) Live broadcast interaction method, device and system
US11282165B2 (en) Dynamically cropping digital content for display in any aspect ratio
US8918737B2 (en) Zoom display navigation
US20100275143A1 (en) On-screen display system and method
US8878997B2 (en) Electronic displays having paired canvases
US20160269777A1 (en) Method and device for adjusting video playback interface
US9756282B2 (en) Method and apparatus for processing a video signal for display
EP1819154A2 (en) Display signal control apparatus, and display signal control method
CN113051432B (en) Display device and media asset playing method
CN107786905B (en) Video sharing method and device
US20120301030A1 (en) Image processing apparatus, image processing method and recording medium
CN111654727A (en) Screen projection interactive operation method for large-screen terminal
US20090140977A1 (en) Common User Interface Structure
CN113342248A (en) Live broadcast display method and device, storage medium and electronic equipment
CN111782165A (en) Image processing method, image processing apparatus, server, and storage medium
WO2019119643A1 (en) Interaction terminal and method for mobile live broadcast, and computer-readable storage medium
US9875521B2 (en) Image output apparatus, image output method, and program
JP5032350B2 (en) Image processing device
CN106792084B (en) Television signal display parameter adjusting method and device and television signal display method
CN112616078A (en) Screen projection processing method and device, electronic equipment and storage medium
CN111835972A (en) Shooting method and device and electronic equipment
CN106873963B (en) Method and device for forming background of computer video desktop
US20160118086A1 (en) Non-linear video review buffer navigation

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
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 518000 R & D building 1601, block a, building 7, Vanke Cloud City Phase I, Xingke 1st Street, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province (16 / F, block a, building 1, international innovation Valley)

Patentee after: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: Room 401, Block D, Huahan Innovation Park, 16 Longshan Road, North District, Xili Street, Nanshan District, Shenzhen City, Guangdong Province, 518000

Patentee before: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.