CN105159582B - A kind of video area method of adjustment and terminal - Google Patents

A kind of video area method of adjustment and terminal Download PDF

Info

Publication number
CN105159582B
CN105159582B CN201510536515.8A CN201510536515A CN105159582B CN 105159582 B CN105159582 B CN 105159582B CN 201510536515 A CN201510536515 A CN 201510536515A CN 105159582 B CN105159582 B CN 105159582B
Authority
CN
China
Prior art keywords
video playing
playing area
adjusting
touch
target
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.)
Expired - Fee Related
Application number
CN201510536515.8A
Other languages
Chinese (zh)
Other versions
CN105159582A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510536515.8A priority Critical patent/CN105159582B/en
Publication of CN105159582A publication Critical patent/CN105159582A/en
Application granted granted Critical
Publication of CN105159582B publication Critical patent/CN105159582B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a kind of video area method of adjustment and terminal, wherein method includes:Receive the adjusting touch command inputted for video playback area in current display interface;Obtain the target touch-control pressure value suffered by the position of touch corresponding to the adjusting touch command;According to default adjustment parameter and the mapping relations of touch-control pressure value, obtain and the target adjustment parameter corresponding to the target touch-control pressure value;According to the target adjustment parameter, the video playback area is adjusted.Using the embodiment of the present invention, the size of video playback area can be easily adjusted when watching video, improves user experience.

Description

Video area adjusting method and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a terminal for adjusting a video area.
Background
With the continuous development of communication technology, people can make calls and send short messages through mobile terminals, which greatly facilitates work, study and entertainment of people and makes the mobile terminals become an indispensable part of daily life of people. Due to the consideration of portability and holding feeling of the mobile terminal, the display screen of the mobile terminal is not too large, so that when a user uses the mobile terminal to watch videos, the user can be provided with a full-screen watching mode or a fixed-size video display window watching mode.
Disclosure of Invention
The embodiment of the invention provides a video area adjusting method and a terminal, which can conveniently adjust the size of a video area when a video is watched, and improve user experience.
The embodiment of the invention provides a video area adjusting method, which comprises the following steps:
receiving an adjusting touch instruction input aiming at a video playing area in a current display interface;
acquiring a target touch pressure value applied to a touch position corresponding to the adjusting touch instruction;
acquiring a target adjusting parameter corresponding to the target touch pressure value according to a mapping relation between a preset adjusting parameter and the touch pressure value;
and adjusting the video playing area according to the target adjusting parameter.
Correspondingly, an embodiment of the present invention provides a terminal, where the terminal includes:
the instruction receiving unit is used for receiving an adjusting touch instruction input aiming at a video playing area in the current display interface;
the pressure value acquisition unit is used for acquiring a target touch pressure value applied to a touch position corresponding to the adjustment touch instruction;
the parameter obtaining unit is used for obtaining a target adjusting parameter corresponding to the target touch pressure value according to a mapping relation between a preset adjusting parameter and the touch pressure value;
and the video adjusting unit is used for adjusting the video playing area according to the target adjusting parameter.
According to the embodiment of the invention, when an adjusting touch instruction input aiming at a video playing area in a current display interface is received, a target touch pressure value applied to a touch position corresponding to the adjusting touch instruction can be obtained; the target adjusting parameter corresponding to the target touch pressure value can be obtained according to the mapping relation between the preset adjusting parameter and the touch pressure value; and adjusting the video playing area according to the target adjusting parameter. The size of the video area can be conveniently adjusted when the video is watched, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a video area adjustment method according to an embodiment of the present invention;
fig. 2 is a flow chart of another video area adjustment method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an instruction receiving unit according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In specific implementation, the terminal mentioned in the embodiment of the present invention includes but is not limited to: smart phones (e.g., Android phones and IOS phones), tablet computers, notebook computers, palm computers, Mobile Internet Devices (MID), wearable smart devices, and other electronic devices. It should be noted that the method described in the present invention is performed by a set of codes stored in a memory, which are executed in a computer system based on the von neumann architecture.
In this embodiment, especially for a terminal with a touch display screen, when a user touches a video playing area in a display interface in a specific manner (for example, long press, double click or click operation), a target touch pressure value at a user touch point may be correspondingly obtained, and then a target adjustment parameter corresponding to the target touch pressure value is obtained according to a mapping relationship between a preset touch pressure value in the terminal and a preset adjustment parameter, and then the video playing area is adjusted according to the target adjustment parameter. Compared with the prior art, in a mobile terminal such as an intelligent mobile phone, the video playing can be watched only through a fixed-size video playing area provided by the terminal or in a full-screen watching mode, the size of the video playing area can be flexibly and conveniently adjusted according to the user's will, and the user experience can be improved.
A video area adjustment method and a terminal according to an embodiment of the present invention will be described in detail with reference to fig. 1 to 4.
Referring to fig. 1, which is a flowchart illustrating a video area adjustment method according to an embodiment of the present invention, the video area adjustment method shown in the figure may include the following steps:
s101, receiving an adjusting touch instruction input aiming at a video playing area in a current display interface.
In a specific implementation, a user clicks, double clicks or presses a video playing area in a terminal display interface for a long time, and then the user can input an adjusting touch instruction to the video playing area, and when the terminal receives the instruction, the steps S102 to S104 are executed to achieve the purpose of adjusting the size and shape of the video playing area. It should be noted that the adjustment touch command is usually input by the user through an input device (physical keyboard or touch screen) of the terminal. In consideration of terminal visibility and portability, nowadays mobile terminals having a touch screen and a few physical keys are more popular with users, and thus a menu display touch instruction is mainly input through the touch screen of the mobile terminal.
And S102, acquiring a target touch pressure value applied to a touch position corresponding to the adjusting touch instruction.
In specific implementation, in a terminal with a touch screen function, the structure of the touch screen comprises at least three layers: the touch screen comprises a screen glass layer, a touch panel layer and a display panel layer. The screen glass layer is a protective layer, the touch panel layer is used for sensing touch operation of a user, and the display panel layer is used for displaying images. In order to make the body of a terminal, especially a mobile terminal, thinner and more beautiful, the prior art merges a touch panel layer and a display panel layer. In order to obtain the touch pressure value applied to the touch position, a pressure sensor layer can be added in the screen structure of the terminal in advance, so that the terminal can sense the force of a user touching the display screen through the pressure sensor layer when the user touches the display screen. Therefore, when a user inputs an adjusting touch instruction for the video playing area through the touch screen, a target touch pressure value applied to a touch position corresponding to the adjusting touch instruction can be obtained at the same time.
S103, acquiring a target adjusting parameter corresponding to the target touch pressure value according to a mapping relation between a preset adjusting parameter and the touch pressure value.
In a specific implementation, the adjustment parameters of the video playing area include, but are not limited to: the length parameter, the width parameter, the length zoom factor, the width zoom factor, the screen occupation ratio parameter and other parameters of the video playing area can be adjusted. The preset mapping relation table of the adjusting parameters and the touch pressure values can be stored in the terminal in advance, so that the terminal can conveniently and quickly find the target adjusting parameters corresponding to the target touch pressure values according to the mapping relation table.
In the mapping relationship table of the adjustment parameters and the touch pressure values, each specific adjustment parameter may specifically correspond to a specific touch pressure value, so as to form a one-to-one correspondence relationship between the adjustment parameters and the touch pressure values. When the method is adopted, the user needs to accurately grasp the touch force to adjust the video playing area to the satisfactory size and shape as soon as possible.
Alternatively, each specific adjustment parameter may correspond to a range of touch pressure values, where there is no intersection between the ranges of touch pressure values. For example, when the tuning parameters include a length parameter and a width parameter (the tuning parameters may be represented in the form of (X, Y), where X is the length parameter and Y is the width parameter); two touch pressure value ranges [5N,7N ] and [9N,11N ] can be preset to correspond to (3cm,2cm) and (4cm,3cm), respectively, and represent that when the touch pressure value is located in [5N,7N ], the length of a corresponding video playing area is 3cm, and the width is 2 cm. When the method is adopted, the user can adjust the video playing area to the proper size and shape only by roughly mastering and controlling the size of the touch force, and the method is more humanized.
And S104, adjusting the video playing area according to the target adjusting parameter.
In a specific implementation, after the target adjustment parameter of the video playing area is obtained, the size and the shape of the video playing area can be adjusted according to the target adjustment parameter, so that the adjustment range of the size of the video playing area or the final size and the final shape of the video playing area are matched with the target adjustment parameter.
Optionally, the target adjustment parameter includes a screen occupation ratio parameter, and step S104 may specifically include: and adjusting the length and the width of the video playing area to enable the length proportion value and the width proportion value between the video playing area and the current display screen to be matched with the screen occupation proportion parameter.
In a specific implementation, the screen occupation ratio parameter may specifically refer to a ratio of a length of the video playing area to a length of the display screen, and a ratio of a width of the video playing area to a width of the display screen. But may also specifically refer to the ratio between the length and the width of the video playback area itself. Generally, in order to avoid distortion of video image frames played in the video playing area and to enable a user to have a better visual experience when watching video, the screen-occupying ratio parameter may be set to a value with certain aesthetic sense, for example, when the length-width ratio of the display screen is 16:9, the screen-occupying ratio parameter (specifically, the ratio between the length and the width of the video playing area itself) may also be set to 16:9 or 4: 3.
Optionally, before executing step S103, the method further includes: and determining that the target touch pressure value is greater than or equal to a second threshold value.
In a specific implementation, in order to prevent a user from performing a misoperation, for example, a finger inadvertently touches a video playing area during a video watching process, a second threshold may be set, and when the terminal obtains that a target touch pressure value received by a touch position corresponding to the adjustment touch instruction is greater than or equal to the second threshold, the step S103 is executed; otherwise, the terminal considers the misoperation, and cannot continuously execute the process in the scheme, so that the power resource can be saved.
According to the embodiment of the invention, when an adjusting touch instruction input aiming at a video playing area in a current display interface is received, a target touch pressure value applied to a touch position corresponding to the adjusting touch instruction can be obtained; the target adjusting parameter corresponding to the target touch pressure value can be obtained according to the mapping relation between the preset adjusting parameter and the touch pressure value; and adjusting the video playing area according to the target adjusting parameter. The size of a video playing area can be conveniently adjusted when a video is watched, and user experience is improved.
Referring to fig. 2, which is a flow chart of another video area adjustment method according to an embodiment of the present invention, the video area adjustment method shown in the figure may include the following steps:
s201, when detecting a long-press touch operation aiming at a video playing area in a current display interface, judging whether the duration time of the long-press touch operation reaches a first threshold value.
And S202, if yes, generating an adjusting touch instruction of the video playing area according to the long-press touch operation.
In the specific implementation, when the video is not played in a full screen mode, two common operations of pausing and playing are performed on a video playing area, and if the video is watched by a mobile terminal using a touch screen, the two operations are realized by lightly clicking the video playing area; when the video is played in a full screen mode, and the video is required to be operated, the video playing area is clicked to pop up the function menu, and then the function option in the function menu is selected to operate. Therefore, in this embodiment, the long press touch operation input by the user to the video playing area may be regarded as the user input adjustment touch instruction, and in order to prevent the user from performing an incorrect operation, a first threshold may be set, and the operation is only activated when the duration of the long press touch operation exceeds the first threshold, so as to generate the adjustment touch instruction of the video playing area.
S203, acquiring a target touch pressure value applied to the touch position corresponding to the adjusting touch instruction.
In specific implementation, in a terminal with a touch screen function, the structure of the touch screen comprises at least three layers: the touch screen comprises a screen glass layer, a touch panel layer and a display panel layer. The screen glass layer is a protective layer, the touch panel layer is used for sensing touch operation of a user, and the display panel layer is used for displaying images. In order to make the body of a terminal, especially a mobile terminal, thinner and more beautiful, the prior art merges a touch panel layer and a display panel layer. In order to obtain the touch pressure value applied to the touch position, a pressure sensor layer can be added in the screen structure of the terminal in advance, so that the terminal can sense the force of a user touching the display screen through the pressure sensor layer when the user touches the display screen. Therefore, when the user inputs the adjusting touch instruction to the video playing area through touch, the terminal simultaneously obtains the target touch pressure value applied to the touch position corresponding to the adjusting touch instruction.
And S204, acquiring a target adjusting parameter corresponding to the target touch pressure value according to a mapping relation between a preset adjusting parameter and the touch pressure value, wherein the target adjusting parameter comprises a long zooming multiple and/or a wide zooming multiple.
In specific implementation, a preset mapping relation table of the adjustment parameter and the touch pressure value may be stored in the terminal in advance, so that the terminal can quickly find the target adjustment parameter corresponding to the target touch pressure value according to the mapping relation table.
In this embodiment, in the mapping relationship table between the adjustment parameters and the touch pressure values, each specific adjustment parameter may specifically correspond to a specific touch pressure value, so as to form a one-to-one correspondence relationship between the adjustment parameters and the touch pressure values. When the method is adopted, the user needs to accurately grasp the touch force to adjust the video playing area to the satisfactory size and shape as soon as possible.
Alternatively, each specific adjustment parameter may correspond to a range of touch pressure values, where there is no intersection between the ranges of touch pressure values. For example, when the adjustment parameter includes a long scaling factor and a wide scaling factor (the adjustment parameter may be expressed in the form of (X, Y), where X is the long scaling factor and Y is the wide scaling factor); two touch pressure value intervals [5N,7N ] and [9N,11N ] can be preset to correspond to (0.8 ) and (1.1 ), respectively, and represent that when the touch pressure values are located in [5N,7N ], the length zoom multiple of the corresponding video playing area is 0.8 times, and the width zoom multiple is also 0.8 times, and when the zoom multiple is smaller than 1, the video playing area is actually reduced compared with the current video. When the method is adopted, the user can adjust the video playing area to the proper size and shape only by roughly mastering and controlling the size of the touch force, and the method is more humanized.
S205, zooming the length of the video playing area by the long zooming times in the target adjusting parameters; and/or scaling the width of the video playing area by the wide scaling multiple in the target adjusting parameter.
Optionally, after step S205 is executed, the method further includes: if the length of the video playing area is larger than the length of the current display screen or the width of the video playing area is larger than the width of the current display screen after adjustment, the length and the width of the video playing area are respectively adjusted to be the same as the length and the width of the display screen, so that the video frames played in the video playing area are completely displayed in the display screen.
In a specific implementation, during the zooming process of the video playing area, the size of the video playing area may be adjusted to be larger than that of the display screen, and when a user watches the video playing, the user usually needs to watch the whole video frame. Therefore, when it is detected that the length or width of the zoomed video area is larger than the length or width of the display screen, the length and width of the video playing area can be automatically adjusted to be the same as the length and width of the display screen (i.e. full-screen playing mode), respectively.
According to the embodiment of the invention, a long-press touch operation can be performed on a video playing area, and when the time of the touch operation reaches a first threshold value, an adjusting touch instruction of the video playing area is generated, and a target touch pressure value applied to a position corresponding to the long-press touch operation is obtained; further acquiring corresponding target adjusting parameters according to the target touch pressure value, wherein the target adjusting parameters comprise a long zooming multiple and/or a wide zooming multiple; and finally, the video playing area is zoomed according to the long zoom factor and/or the wide zoom factor, so that the video playing area can be conveniently adjusted in the video playing process, and the user experience is improved. In addition, after zooming, if the length or the width of the video playing area is larger than that of the display screen, the length and the width of the video playing area are respectively adjusted to be the same as those of the display screen, so that video frames played in the video playing area can be completely displayed in the display screen, and the zooming of the video area can be limited to avoid misoperation of a user.
Referring to fig. 3, a schematic structural diagram of a terminal structure according to an embodiment of the present invention is shown, where the terminal at least includes: an instruction receiving unit 301, a pressure value acquiring unit 302, a parameter acquiring unit 303, and a video adjusting unit 304.
The instruction receiving unit 301 is configured to receive an adjustment touch instruction input for a video playing area in a current display interface.
In a specific implementation, when a user clicks, double clicks or presses a video playing area in a terminal display interface for a long time, the user can input an adjusting touch instruction to the video playing area, and when the instruction receiving unit 301 receives the instruction, the purpose of adjusting the size and the shape of the video playing area is achieved through the pressure value obtaining unit 302, the parameter obtaining unit 303 and the video adjusting unit 304. It should be noted that the adjustment touch command is usually input by the user through an input device (physical keyboard or touch screen) of the terminal. In consideration of terminal visibility and portability, nowadays mobile terminals having a touch screen and a few physical keys are more popular with users, and thus a menu display touch instruction is mainly input through the touch screen of the mobile terminal.
Further, referring to fig. 4, fig. 4 is a schematic structural diagram of an instruction receiving unit according to an embodiment of the present invention; the instruction receiving unit 301 as illustrated may include: an operation judgment subunit 3101 and an instruction generation subunit 3102.
An operation determination subunit 3101, configured to determine, when a long-press touch operation for a video playing area in a current display interface is detected, whether a duration of the long-press touch operation reaches a first threshold;
and an instruction generating subunit 3102, configured to generate an adjustment touch instruction of the video playing area according to the long press touch operation when the determination result of the operation determining subunit is yes.
In the specific implementation, when the video is not played in a full screen mode, two common operations of pausing and playing are performed on a video playing area, and if the video is watched by a mobile terminal using a touch screen, the two operations are realized by lightly clicking the video playing area; when the video is played in a full screen mode, and the video is required to be operated, the video playing area is clicked to pop up the function menu, and then the function option in the function menu is selected to operate. Therefore, in this embodiment, the long press touch operation input by the user to the video playing area may be regarded as the user input adjustment touch instruction, and in order to prevent the user from performing an incorrect operation, a first threshold may be set, and the operation is activated only when the operation determination subunit 3101 detects that the duration of the long press touch operation exceeds the first threshold, so as to instruct the generation subunit 3102 to generate the adjustment touch instruction of the video playing area.
A pressure value obtaining unit 302, configured to obtain a target touch pressure value applied to a touch position corresponding to the adjustment touch instruction.
In specific implementation, in a terminal with a touch screen function, the structure of the touch screen comprises at least three layers: the touch screen comprises a screen glass layer, a touch panel layer and a display panel layer. The screen glass layer is a protective layer, the touch panel layer is used for sensing touch operation of a user, and the display panel layer is used for displaying images. In order to make the body of a terminal, especially a mobile terminal, thinner and more beautiful, the prior art merges a touch panel layer and a display panel layer. In order to obtain the touch pressure value applied to the touch position, a pressure sensor layer can be added in the screen structure of the terminal in advance, so that the terminal can sense the force of a user touching the display screen through the pressure sensor layer when the user touches the display screen. Therefore, when the user inputs an adjustment touch instruction to the video playing area through touch, the pressure value obtaining unit 302 obtains a target touch pressure value applied to the touch position corresponding to the adjustment touch instruction at the same time.
The parameter obtaining unit 303 is configured to obtain a target adjustment parameter corresponding to the target touch pressure value according to a mapping relationship between a preset adjustment parameter and a touch pressure value.
In a specific implementation, the adjustment parameters of the video playing area include, but are not limited to: the length parameter, the width parameter, the length zoom factor, the width zoom factor, the screen occupation ratio parameter and other parameters of the video playing area can be adjusted. A preset mapping relation table between the adjustment parameter and the touch pressure value may be stored in the terminal in advance, so that the parameter obtaining unit 303 may quickly find the target adjustment parameter corresponding to the target touch pressure value according to the mapping relation table.
In the mapping relationship table of the adjustment parameters and the touch pressure values, each specific adjustment parameter may specifically correspond to a specific touch pressure value, so as to form a one-to-one correspondence relationship between the adjustment parameters and the touch pressure values. When the method is adopted, the user needs to accurately grasp the touch force to adjust the video playing area to the satisfactory size and shape as soon as possible.
Alternatively, each specific adjustment parameter may correspond to a range of touch pressure values, where there is no intersection between the ranges of touch pressure values. For example, when the tuning parameters include a length parameter and a width parameter (the tuning parameters may be represented in the form of (X, Y), where X is the length parameter and Y is the width parameter); two touch pressure value ranges [5N,7N ] and [9N,11N ] can be preset to correspond to (3cm,2cm) and (4cm,3cm), respectively, and represent that when the touch pressure value is located in [5N,7N ], the length of a corresponding video playing area is 3cm, and the width is 2 cm. When the method is adopted, the user can adjust the video playing area to the proper size and shape only by roughly mastering and controlling the size of the touch force, and the method is more humanized.
A video adjusting unit 304, configured to adjust the video playing area according to the target adjusting parameter.
In a specific implementation, after obtaining the target adjustment parameter of the video playing area, the video adjusting unit 304 may adjust the size and the shape of the video playing area according to the target adjustment parameter, so that the adjustment range of the size of the video playing area or the final size and shape of the video playing area are matched with the target adjustment parameter.
Optionally, the target adjustment parameter includes a long scaling factor and/or a wide scaling factor, and the video adjusting unit 304 may be specifically configured to: zooming the length of the video playing area by the long zooming times in the target adjusting parameters; and/or scaling the width of the video playing area by the wide scaling multiple in the target adjusting parameter.
Optionally, if after the video adjusting unit 304 adjusts the video playing area, the length of the video playing area is greater than the length of the current display screen or the width of the video playing area is greater than the width of the current display screen, the video adjusting unit 304 is further configured to: and respectively adjusting the length and the width of the video playing area to be the same as those of the display screen, so that the video frames played in the video playing area are completely displayed in the display screen.
In a specific implementation, during the zooming process of the video playing area, the size of the video playing area may be adjusted to be larger than that of the display screen, and when a user watches the video playing, the user usually needs to watch the whole video frame. Therefore, when it is detected that the length or width of the zoomed video area is larger than the length or width of the display screen, the length and width of the video playing area can be automatically adjusted to be the same as the length and width of the display screen (i.e. full-screen playing mode), respectively.
Optionally, the target adjustment parameter includes a screen-occupied ratio parameter, and the video adjusting unit 304 may be specifically configured to: and adjusting the length and the width of the video playing area to enable the length proportion value and the width proportion value between the video playing area and the current display screen to be matched with the screen occupation proportion parameter.
In specific implementation, the screen occupation ratio parameter may specifically refer to a ratio of a length of the video playing area to a length of the display screen, a ratio of a width of the video playing area to a width of the display screen, and may also specifically refer to a ratio between the length and the width of the video playing area itself. Generally, in order to avoid distortion of video image frames played in the video playing area and to enable a user to have a better visual experience when watching video, the screen-occupying ratio parameter may be set to a value with certain aesthetic sense, for example, when the length-width ratio of the display screen is 16:9, the screen-occupying ratio parameter (specifically, the ratio between the length and the width of the video playing area itself) may also be set to 16:9 or 4: 3.
Optionally, the terminal further includes: a pressure value determining unit 305, configured to determine that the target touch pressure value is greater than or equal to a second threshold before the parameter obtaining unit obtains the target adjustment parameter.
In a specific implementation, in order to prevent a user from performing a misoperation, for example, a finger inadvertently touches a video playing area during a video watching process, a second threshold may be set, and when the pressure value determining unit 305 determines that a target touch pressure value applied to a touch position corresponding to the adjustment touch instruction is greater than or equal to the second threshold, the parameter obtaining unit 303 and the video adjusting unit 304 are continued to adjust the video playing area; otherwise, the terminal considers that the operation is misoperation, and power resources can be saved.
In the embodiment of the present invention, the instruction receiving unit 301 may receive an adjustment touch instruction input for a video playing area in a current display interface; a target touch pressure value applied to the touch position corresponding to the adjustment touch instruction can be further obtained through the pressure value obtaining unit 302; further, a parameter obtaining unit 303 obtains a target adjustment parameter corresponding to the target touch pressure value according to a mapping relationship between a preset adjustment parameter and a touch pressure value; finally, the video playing area is adjusted by the video adjusting unit 304 according to the target adjusting parameter. The size of the video area can be conveniently adjusted when the video is watched, and the user experience is improved.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and elements referred to are not necessarily required in this application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above detailed description is only for the preferred embodiments of the present invention, and certainly, the scope of the present invention is not limited thereto, and therefore, the equivalent changes made by the claims of the present invention still belong to the scope covered by the present invention.

Claims (7)

1. A method for adjusting a video area, comprising:
receiving an adjusting touch instruction input aiming at a video playing area in a current display interface;
acquiring a target touch pressure value applied to a touch position corresponding to the adjusting touch instruction;
determining that the target touch pressure value is greater than or equal to a second threshold value;
acquiring a target adjusting parameter corresponding to the target touch pressure value according to a mapping relation between a preset adjusting parameter and the touch pressure value;
adjusting the video playing area according to the target adjusting parameter;
wherein the target adjustment parameter includes a long zoom factor and/or a wide zoom factor, and the adjusting the video playing area according to the target adjustment parameter includes: zooming the length of the video playing area by the long zooming times in the target adjusting parameters; and/or, zooming the width of the video playing area by using the wide zooming multiple in the target adjusting parameter;
or,
the target adjusting parameter comprises a screen occupation ratio parameter, and the adjusting the video playing area according to the target adjusting parameter comprises: and adjusting the length and the width of the video playing area to enable the length proportion value and the width proportion value between the video playing area and the current display screen to be matched with the screen occupation proportion parameter.
2. The method of claim 1, wherein if the length of the video playing area after the adjustment is greater than the length of the current display screen or the width of the video playing area is greater than the width of the current display screen, the method further comprises:
and respectively adjusting the length and the width of the video playing area to be the same as those of the display screen, so that the video frames played in the video playing area are completely displayed in the display screen.
3. The method according to any one of claims 1-2, wherein the receiving an adjustment touch instruction input for a video playing area in a currently displayed interface comprises:
when long-press touch operation aiming at a video playing area in a current display interface is detected, judging whether the duration time of the long-press touch operation reaches a first threshold value;
and if so, generating an adjusting touch instruction of the video playing area according to the long-time press touch operation.
4. A terminal, characterized in that the terminal comprises:
the instruction receiving unit is used for receiving an adjusting touch instruction input aiming at a video playing area in the current display interface;
the pressure value acquisition unit is used for acquiring a target touch pressure value applied to a touch position corresponding to the adjustment touch instruction;
the parameter obtaining unit is used for obtaining a target adjusting parameter corresponding to the target touch pressure value according to a mapping relation between a preset adjusting parameter and the touch pressure value;
the video adjusting unit is used for adjusting the video playing area according to the target adjusting parameter;
the terminal further comprises: a pressure value determination unit, configured to determine that the target touch pressure value is greater than or equal to a second threshold before the parameter acquisition unit acquires the target adjustment parameter;
wherein the target adjustment parameter includes a long zoom factor and/or a wide zoom factor, and the video adjusting unit is specifically configured to: zooming the length of the video playing area by the long zooming times in the target adjusting parameters; and/or, zooming the width of the video playing area by using the wide zooming multiple in the target adjusting parameter;
or,
the target adjustment parameter includes a screen occupation ratio parameter, and the video adjustment unit is specifically configured to: and adjusting the length and the width of the video playing area to enable the length proportion value and the width proportion value between the video playing area and the current display screen to be matched with the screen occupation proportion parameter.
5. The terminal of claim 4, wherein the video adjustment unit is further configured to: after the video playing area is adjusted, if the length of the video playing area is greater than the length of the current display screen or the width of the video playing area is greater than the width of the current display screen, the length and the width of the video playing area are respectively adjusted to be the same as the length and the width of the display screen, so that the video frames played in the video playing area are completely displayed in the display screen.
6. The terminal according to any of claims 4-5, wherein the instruction receiving unit comprises:
the operation judging subunit is used for judging whether the duration time of the long-press touch operation reaches a first threshold value when the long-press touch operation aiming at the video playing area in the current display interface is detected;
and the instruction generating subunit is used for generating an adjusting touch instruction of the video playing area according to the long press touch operation when the judgment result of the operation judging subunit is yes.
7. A computer-readable storage medium storing a program for instructing associated hardware to perform the method of any one of claims 1 to 3.
CN201510536515.8A 2015-08-27 2015-08-27 A kind of video area method of adjustment and terminal Expired - Fee Related CN105159582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510536515.8A CN105159582B (en) 2015-08-27 2015-08-27 A kind of video area method of adjustment and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510536515.8A CN105159582B (en) 2015-08-27 2015-08-27 A kind of video area method of adjustment and terminal

Publications (2)

Publication Number Publication Date
CN105159582A CN105159582A (en) 2015-12-16
CN105159582B true CN105159582B (en) 2018-05-29

Family

ID=54800456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510536515.8A Expired - Fee Related CN105159582B (en) 2015-08-27 2015-08-27 A kind of video area method of adjustment and terminal

Country Status (1)

Country Link
CN (1) CN105159582B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760044A (en) * 2016-01-29 2016-07-13 深圳天珑无线科技有限公司 Method and system for rapidly adjusting size of video play frame through pressure touch technology
CN106201318A (en) * 2016-07-13 2016-12-07 乐视控股(北京)有限公司 Adjust the method for video playback window, device and display terminal
CN107623798A (en) * 2016-07-15 2018-01-23 中兴通讯股份有限公司 A kind of method and device of video local scale
CN106791894B (en) * 2016-11-26 2018-08-31 广州华多网络科技有限公司 A kind of method and apparatus playing live video
CN106843725A (en) * 2016-12-31 2017-06-13 广州视声智能科技有限公司 The control method and device of a kind of touch-screen
CN109213349A (en) * 2017-06-30 2019-01-15 北京小米移动软件有限公司 Exchange method and device, computer readable storage medium based on touch screen
CN108920089A (en) * 2018-07-19 2018-11-30 斑马音乐文化科技(深圳)有限公司 Requesting song plays display methods, device, program request equipment and storage medium
CN110083302A (en) * 2019-04-30 2019-08-02 维沃移动通信有限公司 A kind of method, apparatus and terminal executing predetermined registration operation
CN112243152A (en) * 2019-07-18 2021-01-19 深圳Tcl新技术有限公司 Method for adjusting picture size, intelligent terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464777A (en) * 2007-12-19 2009-06-24 索尼株式会社 Information processing apparatus, information processing method, and program
CN104375693A (en) * 2013-08-12 2015-02-25 Lg电子株式会社 Terminal and method for controlling the same
CN104714741A (en) * 2013-12-11 2015-06-17 北京三星通信技术研究有限公司 Method and device for touch operation
CN104793967A (en) * 2014-01-22 2015-07-22 鸿富锦精密工业(深圳)有限公司 Handheld device and screen starting system and method thereof
CN104866195A (en) * 2015-05-27 2015-08-26 努比亚技术有限公司 Intelligent browsing method and intelligent browsing terminal
CN105607793A (en) * 2014-11-25 2016-05-25 联想(北京)有限公司 Window adjusting method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101304321B1 (en) * 2010-01-22 2013-09-11 전자부품연구원 Method for providing UI according to single touch pressure and electronic device using the same

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464777A (en) * 2007-12-19 2009-06-24 索尼株式会社 Information processing apparatus, information processing method, and program
CN104375693A (en) * 2013-08-12 2015-02-25 Lg电子株式会社 Terminal and method for controlling the same
CN104714741A (en) * 2013-12-11 2015-06-17 北京三星通信技术研究有限公司 Method and device for touch operation
CN104793967A (en) * 2014-01-22 2015-07-22 鸿富锦精密工业(深圳)有限公司 Handheld device and screen starting system and method thereof
CN105607793A (en) * 2014-11-25 2016-05-25 联想(北京)有限公司 Window adjusting method and electronic equipment
CN104866195A (en) * 2015-05-27 2015-08-26 努比亚技术有限公司 Intelligent browsing method and intelligent browsing terminal

Also Published As

Publication number Publication date
CN105159582A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
CN105159582B (en) A kind of video area method of adjustment and terminal
US20200319760A1 (en) Terminal and method for setting menu environments in the terminal
KR102110193B1 (en) Apparatus and method for controlling screen in device
CN105260109B (en) A kind of playing speed adjusting method and terminal
EP2620844B1 (en) Apparatus and method for adjusting touch sensitivity in mobile terminal
US11507261B2 (en) Suspend button display method and terminal device
US20120242577A1 (en) Method for positioning a cursor on a screen
US9569099B2 (en) Method and apparatus for displaying keypad in terminal having touch screen
CN107613117A (en) A kind of interface display method and mobile terminal based on multitask
US20130339719A1 (en) Apparatus and method for controlling mode switch
CN106415471A (en) Processing method for user interface of terminal, user interface and terminal
CN104346060B (en) The method and electronic equipment of information processing
US20210278940A1 (en) Method for presentation by terminal device, and terminal device
CN106959864A (en) A kind of adjusting method and mobile terminal of interface display effect
CN106407027B (en) Information display method of mobile terminal and mobile terminal
US20150109210A1 (en) Control method, and input device of touch screen terminal
CN106161776B (en) Volume adjusting method and mobile terminal
CN104898880A (en) Control method and electronic equipment
CN112148167A (en) Control setting method and device and electronic equipment
CN106713742B (en) Shooting method and mobile terminal
CN106843638A (en) The control method of video playing terminal, device and video playing terminal
US20140215347A1 (en) Portable device and control method thereof
CN107728898B (en) Information processing method and mobile terminal
US20140002404A1 (en) Display control method and apparatus
US9928219B2 (en) Apparatus and method for case conversion

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180529

CF01 Termination of patent right due to non-payment of annual fee