CN112188274B - Method and device for adjusting video playing progress and electronic equipment - Google Patents

Method and device for adjusting video playing progress and electronic equipment Download PDF

Info

Publication number
CN112188274B
CN112188274B CN202011069068.7A CN202011069068A CN112188274B CN 112188274 B CN112188274 B CN 112188274B CN 202011069068 A CN202011069068 A CN 202011069068A CN 112188274 B CN112188274 B CN 112188274B
Authority
CN
China
Prior art keywords
video
progress
target
adjusting
time length
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
CN202011069068.7A
Other languages
Chinese (zh)
Other versions
CN112188274A (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202011069068.7A priority Critical patent/CN112188274B/en
Publication of CN112188274A publication Critical patent/CN112188274A/en
Application granted granted Critical
Publication of CN112188274B publication Critical patent/CN112188274B/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a method and a device for adjusting video playing progress and electronic equipment. One embodiment of the method comprises: in response to detecting a predefined first adjusting operation, determining a target operation distance of the first adjusting operation, wherein the implementation position of the first adjusting operation is in a video playing area and is used for adjusting the progress of video playing; determining a target adjusting time length corresponding to the target operation distance based on the target video time length of the played target video; and adjusting the playing progress of the target video according to the target adjustment duration. Therefore, the adjusting efficiency of the video progress can be improved.

Description

Method and device for adjusting video playing progress and electronic equipment
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method and an apparatus for adjusting a video playing progress, and an electronic device.
Background
With the development of the internet, users increasingly use terminal devices to browse various information. For example, a user may view a video through a terminal device. When watching the video, the user can adjust the playing progress through gestures. Generally, a certain distance of the gesture operation corresponds to a fixed progress adjustment range, and a user needs to perform multiple operations to adjust to a desired playing progress.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, an embodiment of the present disclosure provides a method for adjusting a video playing progress, which is applied to a terminal device, and the method includes: in response to detecting a predefined first adjusting operation, determining a target operation distance of the first adjusting operation, wherein the implementation position of the first adjusting operation is in a video playing area and is used for adjusting the progress of video playing; determining a target adjusting time length corresponding to the target operation distance based on the target video time length of the played target video; and adjusting the playing progress of the target video according to the target adjustment duration.
In a second aspect, an embodiment of the present disclosure provides a display method, where the method includes: in response to the detection of the progress adjusting operation, determining a time interval for extracting the video frames according to the target video time length, wherein the progress adjusting operation is used for adjusting the progress of video playing, and the time interval is positively correlated with the target video time length; extracting video frames from the target video according to the time interval; and displaying the thumbnail of the video frame extracted from the target video. In a third aspect, an embodiment of the present disclosure provides an apparatus for adjusting a video playing progress, including: a first determination unit, configured to determine a target operation distance of a predefined first adjustment operation in response to detection of the first adjustment operation, wherein an implementation position of the first adjustment operation is in a video playing area, and is used to adjust a progress of video playing; the second determining unit is used for determining a target adjusting time length corresponding to the target operating distance based on the target video time length of the played target video; and the adjusting unit is used for adjusting the playing progress of the target video according to the target adjusting time length.
In a fourth aspect, an embodiment of the present disclosure provides a display method, applied to a terminal device, where the method includes: the determining module is used for responding to the detection of progress adjusting operation and determining a time interval for extracting the video frames according to the target video time length, wherein the progress adjusting operation is used for adjusting the progress of video playing, and the time interval is positively correlated with the target video time length; the extraction module is used for extracting video frames from the target video according to the time interval; and the display module is used for displaying the thumbnail of the video frame extracted from the target video.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method for adjusting video playback progress as described in the first aspect.
In a sixth aspect, the disclosed embodiments provide a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method for adjusting video playing progress according to the first aspect.
In a seventh aspect, an embodiment of the present disclosure provides a display method, where the method includes: and closing the function of switching the video picture direction in response to the detection of the progress adjusting operation, wherein the progress adjusting operation is used for adjusting the progress of video playing.
In an eighth aspect, an embodiment of the present disclosure provides a display device, where the device includes: and the closing module is used for responding to the detected progress adjusting operation and closing the function of switching the video picture direction, wherein the progress adjusting operation is used for adjusting the progress of video playing.
In response to detecting a first adjustment operation implemented in a video playing area, determining a target adjustment duration corresponding to a target operation distance based on a target video duration of a target video; and finally, adjusting the playing progress of the target video based on the target adjustment duration. Therefore, a new adjusting mode of the playing progress can be provided, and by the new adjusting mode, when the time length of the target video is adjusted by a user, the situation that the user excessively adjusts the target video and then adjusts the target video again can be avoided as far as possible, the situation that the user can adjust the target video to the desired progress through multiple adjustments can also be avoided as far as possible, namely, the operation times of the user are reduced as far as possible, and the operation efficiency is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a flow diagram of one embodiment of a method for adjusting video playback progress according to the present disclosure;
FIG. 2 is a schematic diagram of one application scenario of a method for adjusting video playback progress according to the present disclosure;
FIG. 3 is a schematic diagram of one implementation of a method for adjusting video playback progress in accordance with the present disclosure;
FIG. 4A is a schematic diagram of another application scenario of a method for adjusting video playback progress according to the present disclosure;
FIG. 4B is a schematic diagram of yet another application scenario of the method for adjusting video playback progress of the present disclosure;
FIG. 5 is a flow chart diagram illustrating one embodiment of a method in accordance with the present disclosure;
FIG. 6 is a schematic block diagram illustrating an embodiment of an apparatus for adjusting video playback progress according to the present disclosure;
FIG. 7 is an exemplary system architecture to which some embodiments of the disclosed methods for adjusting video playback progress, or some embodiments of presentation methods, may be applied;
fig. 8 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, a flow diagram of one embodiment of a method for adjusting video playback progress according to the present disclosure is shown. The method for adjusting the video playing progress is applied to the terminal equipment. The method for adjusting the video playing progress as shown in fig. 1 comprises the following steps:
in response to detecting a predefined first adjustment operation, a target operation distance of the first adjustment operation is determined, step 101.
In this embodiment, an executing subject (e.g., a terminal device) of the method for adjusting a video playback progress may determine a target operation distance of a first adjustment operation in response to detection of the predefined first adjustment operation.
In this embodiment, the implementation position of the first adjustment operation may be in the video playing area, and is used to adjust the progress of video playing.
In this embodiment, the video playing area may be an area where a video picture is located.
Referring to fig. 2, an exemplary operation trajectory 201 of a first adjustment operation is shown. The length of the trajectory may be used as the target operating distance. It can be understood that the kitten image in fig. 2 is a picture in the video, and details are not described herein.
Here, as the first adjustment operation is performed, the playing progress of the video may be changed.
And 102, determining a target adjusting time length corresponding to the target operation distance based on the target video time length of the played target video.
In this embodiment, the executing body may determine a target adjustment duration corresponding to the target operating distance based on the target video duration of the played target video.
Here, the target video duration may be a total duration of the target video.
In this embodiment, the target adjustment duration may be used to indicate the play progress adjustment amount of the target video.
As an example, the target adjustment duration corresponding to the target operation distance may be determined in various ways based on the target video duration, which is not limited herein. In other words, the target adjustment duration and the target video duration have a correlation, but the specific content of the correlation may be set according to an actual application scenario, and is not limited herein.
As an example, the unit operation distance may correspond to a candidate unit adjustment duration. Then, the target video duration may be mapped to different weights, and the product of the candidate unit adjustment duration and the weight may be used as the unit adjustment duration corresponding to the target video.
And 103, adjusting the playing progress of the target video according to the target adjustment time length.
In this embodiment, the execution main body may adjust the playing progress of the target video according to the target adjustment duration.
As an example, if the current playing progress of the target video is in the third minute, the target adjustment duration may indicate that the adjustment is performed for two minutes; then the playing progress of the target video may be adjusted to 5 th minute.
It should be noted that, in the method for adjusting the playing progress provided by this embodiment, in response to detecting that the first adjustment operation implemented in the video playing area is performed, the target adjustment time length corresponding to the target operation distance may be determined based on the target video time length of the target video; and finally, adjusting the playing progress of the target video based on the target adjusting time length. Therefore, a new adjusting mode of the playing progress can be provided, and through the new adjusting mode, the operation times of a user can be reduced as far as possible when the user adjusts the time length of the target video, and the operation efficiency is improved.
In contrast, in some scenes, for different videos, progress adjustment operation in a video playing area is implemented, and adjustment durations corresponding to unit operation distances are the same; in other words, the progress of the video adjusted by performing the progress adjustment operation for the same distance is the same regardless of the video time length. In this case, the number of user operations may be increased, and the operation efficiency may be reduced. Specifically, for a video with a short total duration, because the ratio of the duration adjusted by the unit operation distance to the total duration is high, a user may easily perform excessive adjustment once and need to perform adjustment in the opposite direction; for a video with a longer total duration, since the ratio of the duration adjusted per unit operation distance to the total duration is low, multiple operations may be required by the user to achieve the progress that the user desires to adjust.
Therefore, by adopting the method for adjusting the playing progress provided by the embodiment, the situation that the user adjusts the progress excessively and then returns to the adjustment can be avoided as much as possible, and the situation that the user can adjust the progress to the desired progress after adjusting for many times can also be avoided as much as possible. Therefore, the adjusting efficiency of adjusting the video playing progress can be improved.
In some embodiments, please refer to fig. 3, which illustrates an alternative implementation of step 102. Step 102 may include step 1021 and step 1022.
And step 1021, determining the unit time length adjustment amplitude corresponding to the unit operation distance according to the target time length.
Here, the unit time length adjustment amplitude is positively correlated with the target time length.
In other words, in the case where the current size of the target video is constant, the unit video adjustment amplitude increases as the target duration increases. As an example, the target video is in a full-screen playing state, the unit duration adjustment amplitude corresponding to the video duration of 10 minutes is greater than the unit duration adjustment amplitude corresponding to the video duration of 5 minutes. Here, the specific manner of determining the adjustment amplitude of the unit time length according to the target time length may be set according to an actual application scenario, and is not limited herein.
And 1022, determining the target adjusting time length according to the unit time length adjusting amplitude and the target operating distance.
Here, the target adjustment time period may be determined by multiplying the unit time period adjustment magnitude by the target operation specification.
It should be noted that, according to the video duration, the unit duration adjustment range suitable for the video duration may be determined for videos with different video durations. Thereby, the speed of operation can be increased. As an example, the longer the target video time length is, the greater the target operation distance is operated, and thus, for a longer video, the adjustment to the time length desired by the user is quickly realized, and the situation that the time length of a single adjustment is too small and multiple operations are required is avoided; for a short video, the situation that the user needs to adjust in the opposite direction again due to the fact that the time length of single adjustment is too long is avoided. Thus, the number of operations can be reduced, and the operation efficiency can be improved.
In some embodiments, the determining, according to the target duration, a duration adjustment amplitude corresponding to the unit operating distance includes: determining a first video duration interval to which the target video duration belongs according to a mapping relation between the video duration and a preset first video duration interval; and determining the unit time length adjusting amplitude corresponding to the unit operating distance according to the first corresponding relation associated with the first video time length interval to which the target video time length belongs.
Here, the first video duration interval is associated with a first correspondence relationship indicating a correspondence relationship between a unit operation distance and a unit duration adjustment magnitude.
Here, the dividing manner of the first video duration interval may be set according to an actual application scenario, and is not limited herein.
As an example, it may be determined that the duration is greater than the duration threshold c as the first video duration interval a, and that the duration is not greater than the duration threshold c as the first video duration interval b. The first video duration interval a may be associated with a first correspondence a. The first video duration interval b may be associated with a first correspondence b.
As an example, in a time interval in which the target time length is taken as a horizontal axis, the unit time length adjustment amplitude is taken as a vertical axis, and the time length is greater than the time length threshold c, the slope of a line formed by the unit time length adjustment amplitude may be d; in the duration interval not greater than the duration threshold c, the slope of the line formed by the adjustment amplitude per unit duration may be e. Wherein d is greater than e. In other words, for longer duration video, the unit duration adjustment amplitude increases faster with duration; for shorter duration videos, the unit duration adjustment magnitude grows slower with duration.
It should be noted that at least two first video time length intervals are set, the same corresponding relationship is adopted in the first video time length intervals, and different corresponding relationships are adopted among the first video time length intervals. Therefore, the corresponding relation matched with the video attribute can be determined according to the video attribute (long video, short video and the like), the video belonging to the first video time interval can be adjusted by adopting the first corresponding relation corresponding to the video time interval of the video, the setting granularity of the corresponding relation is improved, the matching between the corresponding relation and the time interval is improved, the adjustment accuracy is further improved, and the operation frequency is reduced.
In some embodiments, the target adjustment duration is inversely related to a current size of the target video.
In some application scenarios, the target adjustment duration is inversely related to the current size of the target video under the condition that the target video duration and the target operation distance are constant. As an example, for a target video with a video duration of t, the target operating distance is y centimeters. Since t is a definite value, the target operating distance y centimeters is also a definite value. Then, the current size of the full-screen playing state of the horizontal version video is larger than that of the half-screen playing state of the horizontal version video; then, the target adjustment duration in the full-screen playing state of the horizontal version video may be shorter than the target adjustment duration in the half-screen playing state of the horizontal version video.
As an example, for a target video with a video duration of t, the target operating distance is y centimeters. Since t is a definite value, the target operating distance y cm is also a definite value. Then, the current size of the horizontal version video full-screen playing state is larger than that of the vertical version video full-screen playing state; then, the target adjustment duration in the full-screen playing state of the horizontal version video may be shorter than the target adjustment duration in the full-screen playing state of the vertical version video.
It should be noted that, by aiming at different sizes of videos, different target adjustment time lengths are adopted. The target adjusting time length can be made to be adaptive to the changed progress and the video size, the accuracy of the determined target adjusting time length is improved, and the operation efficiency of a user is improved. As an example, in the case where the operable distance corresponding to the overall progress of the target video is larger (i.e., the current size of the target video is larger), the target adjustment time period is smaller by sliding the same distance.
In some embodiments, the method further comprises: and displaying the thumbnail of the video frame extracted from the target video based on the progress adjustment operation.
Here, the progress adjustment operation includes at least one of: a first adjustment operation and a second adjustment operation.
Here, the implementation position of the second adjustment operation is a play progress adjustment control area, and is used for adjusting the video play progress.
It can be understood that the first adjustment operation and the second adjustment operation are implemented at different positions and have the same function (both are used for adjusting the playing progress of the target video).
In some application scenarios, video frames may be extracted from a range of video frames based on the current progress (which changes as the progress adjustment operation progresses) as the progress adjustment operation progresses. A thumbnail of the video frame is then presented.
It should be noted that the thumbnail can prompt the user about the video content, so that the user can timely know the current progress and adjust the playing progress of the target video to the position when performing the progress adjustment operation. Therefore, the progress of the progress adjustment operation can be conveniently controlled by the user, and the operation efficiency of the user is improved.
In some embodiments, the display position of the thumbnail is changed following the progress of the progress adjustment operation, wherein the moving distance of the thumbnail is smaller than the operation distance of the progress adjustment operation.
It should be noted that, as the progress adjustment operation is performed, the display position of the thumbnail may be changed; and the moving amplitude of the thumbnail display position is smaller than the operation moving amplitude of the progress adjustment operation. Therefore, the information acquisition efficiency of the user can be improved. Specifically, the content of the thumbnail changes along with the progress of the progress adjustment operation, and the degree of change of the thumbnail (including the degree of change of the content and the degree of movement of the display position) of the user is small when the user obtains the prompt of the current progress through the thumbnail and the change of the display position of the thumbnail is small, so that the information obtaining efficiency of obtaining the content change information, namely the information obtaining efficiency of the user, can be improved. In other words, if the display position of the thumbnail itself also greatly changes, the user may need to pay attention to track the display position of the thumbnail, which may reduce the information acquisition efficiency of the user.
In some embodiments, for an operation distance sub-range smaller than a distance threshold in the progress adjustment operation, the moving direction of the display position of the thumbnail is consistent with the moving direction of the progress adjustment operation; and aiming at the operation distance sub-range which is not smaller than the distance threshold in the progress adjustment operation, keeping the display position of the thumbnail at the display position corresponding to the distance threshold.
As an example, if the distance threshold is L cm, in the case where the operation distance of the progress adjustment operation is less than L cm, the moving direction of the display position of the thumbnail may coincide with the moving direction of the progress adjustment operation. In the case where the operation distance of the progress adjustment operation is not less than L cm, the thumbnail may be maintained at a position corresponding to L cm. Here, the location corresponding to L cm may be a predefined location. In other words, a movable range of the thumbnail may be preset, and an end point of the movable range may be a presentation position corresponding to the distance threshold.
Optionally, the operation distance may adopt a size unit, a number of pixels, or an operation progress identifier, which is not limited herein.
In some application scenarios, the operating distance of the first adjustment operation may be characterized in terms of size. The calculation of the operation distance may be based on the calculation of the start position of the first adjustment operation.
In some application scenarios, the operation distance of the second adjustment operation may be characterized by a progress adjustment amount. As an example, if the progress adjustment amount of the second adjustment operation is less than thirty percent of the total amount of the progress bar, the display position of the thumbnail may be changed as the progress adjustment operation is performed; if the progress adjustment amount of the second adjustment operation is not less than thirty percent of the total amount of the progress bar, the display position of the thumbnail may be kept unchanged. The progress adjustment amount may be based on the calculation of the start position of the second adjustment operation.
It should be noted that the display position of the thumbnail may be changed with the progress adjustment operation, and the display position of the thumbnail may be kept unchanged when the operation distance of the progress adjustment operation is not less than the distance threshold. Therefore, the thumbnail can not be moved when being moved to a certain position of the screen, the display position of the thumbnail is prevented from being moved out of the position which is convenient to watch in the screen as far as possible, the watching difficulty of a user is reduced, and the efficiency of the user for obtaining information is improved.
In some embodiments, the method further comprises: determining the time interval for extracting the video frames according to the target video duration; and extracting video frames from the target video according to the time interval.
Here, the extracted video frame is used to generate the thumbnail image.
In some application scenarios, the time interval may be positively correlated with the target video duration.
As an example, for a longer target video duration, video frames may be extracted from the set of video frames corresponding to every a seconds. For shorter target video durations, video frames may be extracted from the set of video frames corresponding to every b seconds. Wherein a is greater than b.
It should be noted that, according to the target video duration, the time interval for extracting the video frames is determined. Under the condition that the adjusting time lengths corresponding to the unit operating distance of the user are different, the extraction display efficiency and the user information acquisition efficiency can be improved. Specifically, for a target video with a long time, the progress of the adjustment of the unit operation distance of the user is large, and if the extraction is performed at a short time interval, the amount of information of the thumbnail may be larger than the amount of information that the user can clearly see and accept, thereby causing unnecessary calculation amount to be consumed in extracting and displaying the thumbnail. For a target video with short duration, the adjustment progress of the unit operation distance of the user is small, and if the extraction is performed at a long time interval, the information of the extracted and displayed thumbnail may be inconsistent, so that the user information acquisition efficiency is reduced.
In some embodiments, the determining the time interval for extracting the video frame according to the target video duration includes: determining a second video time interval to which the target video time belongs according to a mapping relation between the video time and a preset second video time interval; and determining the time interval of the extracted video frame corresponding to the target video duration according to the second corresponding relation associated with the second video duration interval to which the target video duration belongs.
Here, the second video duration interval is associated with a second correspondence relationship indicating a correspondence relationship between a time interval of extracting the video frame and the video duration.
Here, the dividing manner of the duration interval of the second video may be set according to an actual application scenario, and is not limited herein.
Optionally, the dividing manner of the second video duration interval may be consistent with or inconsistent with the dividing manner of the first video duration interval.
As an example, the first video duration interval may be divided into two by the duration threshold c, and the second video duration interval may also be divided into two by the duration threshold c. In this case, the dividing manner of the duration interval of the second video may be the same as the dividing manner of the duration interval of the first video.
As an example, the first video duration interval may be divided into two by the duration threshold f, and the second video duration interval may be divided into two by the duration threshold f. In this case, the dividing manner of the second video duration interval may be different from the dividing manner of the first video duration interval.
As an example, it may be determined that the video duration interval is greater than the duration threshold f, and it may be determined that the video duration interval is not greater than the duration threshold f. The second video duration interval c may be associated with a second correspondence relationship c. The second video duration t may be associated with a second correspondence t.
As an example, for longer duration videos, the duration interval of the frame decimation may grow faster with duration; for shorter duration videos, the duration interval of the frame decimation may grow slower with duration.
It should be noted that at least two second video time length intervals are set, the same corresponding relationship is adopted in the second video time length intervals, and different corresponding relationships are adopted among the second video time length intervals. Therefore, the corresponding relation matched with the video attribute can be determined according to the video attribute (long video, short video and the like), the video belonging to the second video time interval can be subjected to frame extraction by adopting the second corresponding relation corresponding to the video time interval of the video, the setting granularity of the corresponding relation is improved, the matching performance of the corresponding relation and the time interval is improved, and the continuity of the thumbnail video generated by the extracted video frame is further improved.
In some embodiments, the first duration interval is divided in a manner consistent with that of the second duration interval. In other words, the first time length intervals and the second time length intervals respectively coincide.
It should be noted that, under the condition that the first duration interval and the second duration interval are consistent or at least partially correspondingly overlapped, for each duration interval, the first corresponding relationship and the second corresponding relationship are adopted, so that the method can achieve the purposes of reducing the operation times, finely seeing the progress adjustment result and facilitating the user to accurately adjust the progress.
In some embodiments, the method further comprises: and displaying first progress indication information in response to detecting progress adjustment operation in a full-screen playing state.
In some application scenarios, the first progress indication information may include at least one of, but is not limited to: and playing the progress adjusting control, the current progress value and the progress adjusting direction information.
Here, the play progress adjustment control may respond to the second adjustment operation, and may also display the current progress value.
Here, the current progress value may be characterized by a time point of the video.
Here, the progress adjustment direction information may be used to indicate a direction of progress adjustment, such as fast-forwarding or rewinding of the video.
In some application scenarios, the parameter value in the first progress-indicating information may change as the progress adjustment operation proceeds.
Referring to fig. 4A, it shows that in a full-screen play state, a thumbnail 401, a play progress adjustment control 402, a current progress value 403, and progress adjustment direction information 404 are presented. As an example, "00: 25/05: 25 "indicates that the total duration of the video is 5 minutes and 25 seconds, and the current progress value is 25 seconds.
It should be noted that, through the first progress indicating information, the user can intuitively and accurately acquire the adjusted current progress value. The second progress indication information can comprise a play progress adjusting control, so that the control set by the target video can be used as information for prompting the play progress, and the workload of additionally setting a new progress prompting bar is reduced.
In some embodiments, the method further comprises: and in response to detecting the progress adjusting operation in the non-full screen state, displaying second progress indication information.
In some application scenarios, the second progress indication information may be used to indicate a video playing progress. The second progress indication information may include at least one of, but is not limited to: a progress indication graph, a current progress value, and progress adjustment direction information.
Here, the progress indication graphic may indicate a current progress value.
Here, the current progress value may be characterized by a time point of the video.
Here, the progress adjustment direction information may be used to indicate a direction of progress adjustment, such as fast-forwarding or rewinding the video.
In some application scenarios, the parameter value in the first progress indication information may change as the progress adjustment operation proceeds.
Referring to fig. 4B, it shows that in a full screen playing state, a progress indication graph 405, a current progress value 406 and progress adjustment direction information 407 are shown. As an example, "00: 25/05: 25 "indicates that the total duration of the video is 5 minutes and 25 seconds, and the current progress value is 25 seconds.
It should be noted that, through the second progress indicating information, the user can intuitively and accurately acquire the adjusted current progress value. The second progress indication information can comprise a progress indication graph, the display area of the progress indication graph is smaller than that of an existing playing progress adjusting control, graphical progress prompt is carried out in the form of the progress indication graph under the non-full-screen state, the progress prompt can be carried out on the video picture played in the mode of the progress prompt information, the messy degree of information in the screen is reduced, and the information acquisition efficiency of a user is improved.
In some embodiments, the method further comprises: and closing the function of switching the video picture direction in response to the detection of the progress adjustment operation.
Here, the progress adjustment operation may include a first adjustment operation and a second adjustment operation. The implementation position of the first adjustment operation may be a video playing area, and the implementation position of the second adjustment operation may be a playing progress adjustment control area.
Here, the function of switching the video screen direction may be used to switch the video screen direction. The function of switching the video image direction may be implemented by various ways of switching the video image direction, which is not limited herein.
In some application scenes, the video picture direction can be switched through a switching control for switching the video picture direction; for example, a horizontal full-screen mode control may be set, the horizontal full-screen mode control is triggered, and the video frame may be switched to the horizontal full-screen mode for playing from any direction or size of the video frame.
In some application scenes, the direction of a video picture is switched, and the switching can be realized by detecting the direction of a terminal; for example, when it is detected that the direction of the user terminal is changed from landscape to portrait, and the user terminal is played in full screen in landscape, the video playing mode may be exited from landscape full screen mode, and the video playing mode may be played in portrait mode.
It should be noted that, by closing the video picture size adjustment function when performing the progress adjustment operation, interruption of the user's progress adjustment operation due to switching of the video picture direction can be avoided, thereby reducing the operational trouble of the user and improving the operational efficiency of the user.
In some embodiments, the video playback area includes an operation masking area, wherein the operation masking area masks the first adjustment operation.
In some embodiments, in response to detecting the progress adjustment operation, turning off the function of switching the video screen direction includes: and closing the function of switching the video picture direction based on gravity in response to the detection of the progress adjustment operation.
Here, switching the video screen direction based on gravity may include: and monitoring the gravity acceleration of the terminal, responding to the gravity acceleration to indicate the direction change of the terminal, and switching the direction of the video picture.
Here, in response to detection of the progress adjustment operation, the function of switching the video screen direction by gravity may be turned off. In other words, when the user performs the progress adjustment operation, the direction of the terminal does not cause the switching of the video screen direction even if it is changed.
It should be noted that, by disabling the gravity rotation of the device (i.e., switching the video picture direction based on gravity), the operation interruption by the gravity rotation is avoided, and the user operation experience is improved.
In some embodiments, the position of the operation shielding region may be located at an edge position of the video playing region. Generally, the side-by-side position of the video playing area may possibly set a function commonly used by the user, for example, an upper edge area of the video playing area in a full-screen state, a notification bar may be displayed in response to a pull-down operation of the user, and the like.
It should be noted that, by setting the operation masking region, the conflict between the first adjustment operation and other operations can be resolved, thereby avoiding the misoperation of the user and reducing the calculation resources and display resources consumed by the misoperation.
Referring to fig. 5, a flow of one embodiment of a presentation method according to the present disclosure is shown. The display method is applied to the terminal equipment. The demonstration method as shown in fig. 5 comprises the following steps:
step 501, in response to the detection of the progress adjustment operation, determining a time interval for extracting the video frames according to the target video duration.
Here, the schedule adjustment operation includes at least one of: a first adjustment operation and a second adjustment operation.
Here, the implementation position of the second adjustment operation is a play progress adjustment control area, and is used for adjusting the video play progress.
It can be understood that the first adjustment operation and the second adjustment operation are implemented at different positions and have the same function (both are used for adjusting the playing progress of the target video).
In some application scenarios, video frames may be extracted from a range of video frames based on the current progress (which changes as the progress adjustment operation progresses) as the progress adjustment operation progresses. A thumbnail of the video frame is then presented.
Step 502, extracting video frames from the target video according to the time interval.
Here, the extracted video frames are used to generate thumbnails.
In some application scenarios, the time interval may be positively correlated with the target video duration.
As an example, for a longer target video duration, video frames may be extracted from the set of video frames corresponding to every a seconds. For shorter target video durations, video frames may be extracted from the set of video frames corresponding to every b seconds. Wherein a is greater than b.
It should be noted that, according to the target video duration, the time interval for extracting the video frames is determined. Under the condition that the adjusting time lengths corresponding to the unit operating distance of the user are different, the extraction display efficiency and the user information acquisition efficiency can be improved. Specifically, for a target video with a long time, the progress of the adjustment of the unit operation distance of the user is large, and if the extraction is performed at a short time interval, the amount of information of the thumbnail may be larger than the amount of information that the user can clearly see and accept, thereby causing unnecessary calculation amount to be consumed in extracting and displaying the thumbnail. For a target video with short duration, the adjustment progress of the unit operation distance of the user is small, and if the extraction is performed at a long time interval, the information of the extracted and displayed thumbnail may be inconsistent, so that the user information acquisition efficiency is reduced.
Step 503, showing the thumbnail of the video frame extracted from the target video.
It should be noted that the thumbnail can prompt the user about the video content, so that the user can timely know the current progress and adjust the playing progress of the target video to the position when performing the progress adjustment operation. Therefore, the progress of the progress adjustment operation can be conveniently controlled by the user, and the operation efficiency of the user is improved.
In some application scenarios, video frames may be extracted from a range of video frames based on the current progress (which changes as the progress adjustment operation progresses) as the progress adjustment operation progresses. A thumbnail of the video frame is then presented.
It should be noted that the thumbnail can prompt the user about the video content, so that the user can timely know the current progress and adjust the playing progress of the target video to the position when performing the progress adjustment operation. Therefore, the progress of the progress adjustment operation can be conveniently controlled by the user, and the operation efficiency of the user is improved.
In some embodiments, the display position of the thumbnail is changed following the progress of the progress adjustment operation, wherein the moving distance of the thumbnail is smaller than the operation distance of the progress adjustment operation.
It should be noted that, as the progress adjustment operation is performed, the display position of the thumbnail may be changed; and the moving amplitude of the thumbnail display position is smaller than the operation moving amplitude of the progress adjustment operation. Therefore, the information acquisition efficiency of the user can be improved. Specifically, the content of the thumbnail changes along with the progress of the progress adjustment operation, and the degree of change of the thumbnail (including the degree of change of the content and the degree of movement of the display position) of the user is small when the user obtains the prompt of the current progress through the thumbnail and the change of the display position of the thumbnail is small, so that the information obtaining efficiency of obtaining the content change information, namely the information obtaining efficiency of the user, can be improved. In other words, if the display position of the thumbnail itself also greatly changes, the user may need to pay attention to track the display position of the thumbnail, which may reduce the information acquisition efficiency of the user.
In some embodiments, for an operation distance sub-range smaller than a distance threshold in the progress adjustment operation, a moving direction of the display position of the thumbnail coincides with a moving direction of the progress adjustment operation; and aiming at the operation distance sub-range which is not smaller than the distance threshold in the progress adjustment operation, keeping the display position of the thumbnail at the display position corresponding to the distance threshold.
As an example, if the distance threshold is L cm, in the case where the operation distance of the progress adjustment operation is less than L cm, the moving direction of the display position of the thumbnail may coincide with the moving direction of the progress adjustment operation. In the case where the operation distance of the progress adjustment operation is not less than L cm, the thumbnail may be maintained at a position corresponding to L cm. Here, the location corresponding to L cm may be a predefined location. In other words, a movable range of the thumbnail may be preset, and an end point of the movable range may be a presentation position corresponding to the distance threshold.
Optionally, the operation distance may adopt a size unit, a number of pixels, or an operation progress identifier, which is not limited herein.
In some application scenarios, the operating distance of the first adjustment operation may be characterized by a size. The calculation of the operation distance may be based on the calculation of the start position of the first adjustment operation.
In some application scenarios, the operation distance of the second adjustment operation may be characterized by a progress adjustment amount. As an example, if the progress adjustment amount of the second adjustment operation is less than thirty percent of the total amount of the progress bar, the display position of the thumbnail may be changed as the progress adjustment operation proceeds; if the progress adjustment amount of the second adjustment operation is not less than thirty percent of the total amount of the progress bar, the display position of the thumbnail may be kept unchanged. The amount of progress adjustment may be based on the calculation of the start position of the second adjustment operation.
It should be noted that the display position of the thumbnail may be changed with the progress adjustment operation, and the display position of the thumbnail may be kept unchanged when the operation distance of the progress adjustment operation is not less than the distance threshold. Therefore, when the thumbnail is moved to a certain position of the screen position, the thumbnail is not moved any more, the display position of the thumbnail is prevented from moving out of the position convenient to watch in the screen as far as possible, the watching difficulty of a user is reduced, and the efficiency of the user for obtaining information is improved.
The present disclosure also provides a flow (not shown in the figures) illustrating an embodiment of a method. The presentation method can be applied to the terminal device or an application program running on the terminal device. The process comprises the following steps: and closing the function of switching the video picture direction in response to the detection of the progress adjusting operation, wherein the progress adjusting operation is used for adjusting the progress of video playing.
With further reference to fig. 6, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides an embodiment of an apparatus for adjusting a video playing progress, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 1, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 6, the apparatus for adjusting the video playing progress of the present embodiment includes: a first determining unit 601, a second determining unit 602 and an adjusting unit 603. The first determining unit is used for determining a target operation distance of a first adjusting operation in response to the detection of the predefined first adjusting operation, wherein the implementation position of the first adjusting operation is in a video playing area, and the first determining unit is used for adjusting the progress of video playing; the second determining unit is used for determining a target adjusting time length corresponding to the target operating distance based on the target video time length of the played target video; and the adjusting unit is used for adjusting the playing progress of the target video according to the target adjusting time length.
In this embodiment, for specific processing of the first determining unit 601, the second determining unit 602, and the adjusting unit 603 of the apparatus for adjusting the video playing progress and technical effects brought by the processing, reference may be made to relevant descriptions of step 101, step 102, and step 103 in the corresponding embodiment of fig. 1, which are not repeated herein.
In some embodiments, the determining a target adjustment duration corresponding to the target operating distance based on the target video duration of the played target video includes: determining a target function relation corresponding to the target video time length according to the corresponding relation between the video time length and the function relation, wherein the function relation is used for representing the corresponding relation between the video time length, the operating distance and the adjusting time length; and determining target adjustment time length corresponding to the target video time length and the target operation distance according to the target function relation.
In some embodiments, the objective function comprises an objective coefficient; and determining a target function relation corresponding to the target video time length according to the corresponding relation between the video time length and the function relation, wherein the step of determining the target function relation corresponding to the target video time length comprises the following steps: and determining the value of the target coefficient according to the time length of the target video and/or the current size of the target video.
In some embodiments, the apparatus is further configured to: displaying a thumbnail of a video frame extracted from a target video based on a progress adjustment operation, wherein the progress adjustment operation includes at least one of: a first adjustment operation and a second adjustment operation; and the implementation position of the second adjusting operation is a playing progress adjusting control area and is used for adjusting the video playing progress.
In some embodiments, the display position of the thumbnail is changed following the progress of the progress adjustment operation, wherein the moving distance of the thumbnail is smaller than the operation distance of the progress adjustment operation.
In some embodiments, for an operation distance sub-range smaller than a distance threshold in the progress adjustment operation, the moving direction of the display position of the thumbnail is consistent with the moving direction of the progress adjustment operation; and aiming at the operation distance sub-range which is not smaller than the distance threshold in the progress adjustment operation, keeping the display position of the thumbnail at the display position corresponding to the first distance threshold.
In some embodiments, the apparatus is further configured to: determining a time interval for extracting the video frames according to the target video time length, wherein the time interval is positively correlated with the target video time length; and extracting video frames from the target video according to the time interval.
In some embodiments, the displaying a thumbnail of a video frame extracted from a target video based on the progress adjustment operation includes: in response to detecting a progress adjustment operation in a full-screen playing state, displaying first progress indication information, wherein the first progress indication information comprises at least one of the following: and playing the progress adjusting control, the current progress value and the progress adjusting direction information.
In some embodiments, the apparatus is further configured to: in response to detecting a progress adjustment operation in a half-screen state, displaying second progress indication information, wherein the second progress indication information comprises at least one of: a progress indication graph, a current progress value and progress adjustment direction information.
In some embodiments, the apparatus is further configured to: in response to detecting the progress adjustment operation, the video picture size adjustment function is turned off.
In some embodiments, the video playback area includes an operation masking area, wherein the operation masking area masks the first adjustment operation.
As an implementation of the method shown in fig. 5, the present disclosure provides an embodiment of a display apparatus (not shown in the drawings), which corresponds to the method embodiment shown in fig. 5, and which can be applied to various electronic devices.
The device for adjusting the video playing progress of the embodiment comprises: the device comprises a determining module, an extracting module and a displaying module. The determining unit is used for responding to the detection of a progress adjusting operation, determining a time interval for extracting the video frames according to the target video time length, wherein the progress adjusting operation is used for adjusting the progress of video playing, and the time interval is positively correlated with the target video time length; the extracting unit is used for extracting video frames from the target video according to the time interval; and the display unit is used for displaying the thumbnail of the video frame extracted from the target video. .
In this embodiment, the specific processing of the determining module, the extracting module and the displaying module of the displaying apparatus and the technical effects thereof can refer to the related descriptions of step 501, step 502 and step 503 in the corresponding embodiment of fig. 5, which are not described herein again.
In some embodiments, the display position of the thumbnail is changed following the progress of the progress adjustment operation, wherein the moving distance of the thumbnail is smaller than the operation distance of the progress adjustment operation.
In some embodiments, for an operation distance sub-range smaller than a distance threshold in the progress adjustment operation, a moving direction of the display position of the thumbnail coincides with a moving direction of the progress adjustment operation; and aiming at the operation distance sub-range which is not smaller than the distance threshold value in the progress adjusting operation, keeping the display position of the thumbnail at the display position corresponding to the first distance threshold value.
In some embodiments, the apparatus is further configured to: and closing the function of switching the video picture direction in response to the detection of the progress adjustment operation.
The present disclosure also provides an embodiment of another display device. The device comprises: and a closing module (not shown in the figure) for closing the function of switching the video picture direction in response to the detection of the progress adjustment operation, wherein the progress adjustment operation is used for adjusting the progress of the video playing.
Referring to fig. 7, fig. 7 illustrates an exemplary system architecture to which a method for adjusting video playback progress of an embodiment of the present disclosure may be applied.
As shown in fig. 7, the system architecture may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 serves to provide a medium for communication links between the terminal devices 701, 702, 703 and the server 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 701, 702, 703 may interact with a server 705 over a network 704 to receive or send messages or the like. The terminal devices 701, 702, 703 may have various client applications installed thereon, such as a web browser application, a search-type application, and a news-information-type application. The client applications in the terminal devices 701, 702, and 703 may receive the instruction of the user, and complete corresponding functions according to the instruction of the user, for example, add corresponding information to the information according to the instruction of the user.
The terminal devices 701, 702, and 703 may be hardware or software. When the terminal devices 701, 702, and 703 are hardware, they may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like. When the terminal devices 701, 702, and 703 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 705 may be a server that provides various services, for example, receives information acquisition requests sent by the terminal devices 701, 702, and 703, and acquires display information corresponding to the information acquisition requests in various ways according to the information acquisition requests. And the relevant data of the presentation information is sent to the terminal devices 701, 702, 703.
It should be noted that the method for adjusting the video playing progress provided by the embodiment of the present disclosure may be executed by a terminal device, and accordingly, a device for adjusting the video playing progress may be disposed in the terminal device 701, 702, and 703. In addition, the method for adjusting the video playing progress provided by the embodiment of the present disclosure may also be performed by the server 705, and accordingly, a device for adjusting the video playing progress may be disposed in the server 705.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 8, shown is a schematic diagram of an electronic device (e.g., a terminal device or a server of fig. 7) suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 8 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (hypertext transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to detecting a predefined first adjusting operation, determining a target operation distance of the first adjusting operation, wherein the implementation position of the first adjusting operation is in a video playing area and is used for adjusting the progress of video playing; determining a target adjusting time length corresponding to the target operation distance based on the target video time length of the played target video; and adjusting the playing progress of the target video according to the target adjustment duration.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to the detection of the progress adjusting operation, determining a time interval for extracting the video frames according to the target video time length, wherein the progress adjusting operation is used for adjusting the progress of video playing, and the time interval is positively correlated with the target video time length; extracting video frames from the target video according to the time interval; and displaying the thumbnail of the video frame extracted from the target video. Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, including conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Here, the name of a unit does not constitute a limitation to the unit itself in some cases, and for example, the adjustment unit may also be described as a "unit that adjusts the play progress of the target video".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (20)

1. A method for adjusting playback progress, comprising:
in response to detecting a predefined first adjusting operation, determining a target operation distance of the first adjusting operation, wherein the implementation position of the first adjusting operation is in a video playing area and is used for adjusting the progress of video playing;
determining a target adjusting time length corresponding to the target operation distance based on the target video time length of the played target video;
adjusting the playing progress of the target video according to the target adjustment duration;
the method further comprises the following steps: and closing the function of switching the video picture direction in response to the detection of the progress adjustment operation.
2. The method according to claim 1, wherein the determining a target adjustment duration corresponding to the target operating distance based on the target video duration of the played target video comprises:
determining a unit time length adjusting amplitude corresponding to the unit operation distance according to the target time length, wherein the unit time length adjusting amplitude is positively correlated with the target time length;
and determining the target adjusting time length according to the unit time length adjusting amplitude and the target operating distance.
3. The method of claim 2, wherein determining the unit duration adjustment magnitude corresponding to the unit operation distance according to the target duration comprises:
determining a first video time interval to which the target video time belongs according to a mapping relation between the video time and a preset first video time interval, wherein the first video time interval is associated with a first corresponding relation, and the first corresponding relation is used for indicating a corresponding relation between a unit operating distance and a unit time length adjusting amplitude;
and determining the unit time length adjusting amplitude corresponding to the unit operating distance according to the first corresponding relation associated with the first video time length interval to which the target video time length belongs.
4. The method of claim 1,
and under the condition that the target video time length and the target operation distance are fixed, the target adjustment time length is inversely related to the current size of the target video.
5. The method of claim 1, further comprising:
displaying a thumbnail of a video frame extracted from a target video based on a progress adjustment operation, wherein the progress adjustment operation includes at least one of: a first adjustment operation and a second adjustment operation; and the implementation position of the second adjusting operation is a playing progress adjusting control area and is used for adjusting the video playing progress.
6. The method according to claim 5, wherein a display position of the thumbnail is changed following the progress of the progress adjustment operation, wherein a moving distance of the thumbnail is smaller than an operation distance of the progress adjustment operation.
7. The method of claim 6,
aiming at an operation distance sub-range smaller than a distance threshold in the progress adjustment operation, the moving direction of the display position of the thumbnail is consistent with the moving direction of the progress adjustment operation;
and aiming at the operation distance sub-range which is not smaller than the distance threshold in the progress adjustment operation, keeping the display position of the thumbnail at the display position corresponding to the first distance threshold.
8. The method of claim 5, further comprising:
determining a time interval for extracting the video frames according to the target video time length, wherein the time interval is positively correlated with the target video time length;
and extracting video frames from the target video according to the time interval.
9. The method of claim 8, wherein determining the time interval for extracting the video frames according to the target video duration comprises:
determining a second video duration interval to which the target video duration belongs according to a mapping relation between the video duration and a preset second video duration interval, wherein the second video duration interval is associated with a second corresponding relation, and the second corresponding relation is used for indicating a corresponding relation between a time interval for extracting video frames and the video duration;
and determining the time interval of the extracted video frame corresponding to the target video duration according to the second corresponding relation associated with the second video duration interval to which the target video duration belongs.
10. The method of claim 9, wherein the first video duration interval is divided in a manner consistent with or partially overlapping the second video duration interval, wherein the first video duration interval is associated with a first correspondence indicating a correspondence between a unit operating distance and a unit duration adjustment magnitude.
11. The method of claim 1, wherein turning off the function of switching video picture orientation in response to detecting the progress adjustment operation comprises:
and closing the function of switching the video picture direction based on gravity in response to the detection of the progress adjustment operation.
12. The method of claim 1, wherein the video playback zone comprises an operation masking zone, wherein the operation masking zone masks the first adjustment operation.
13. A method of displaying, comprising:
in response to the detection of a progress adjusting operation, determining a time interval for extracting video frames according to the target video time length, wherein the progress adjusting operation is used for adjusting the progress of video playing, and the time interval is positively correlated with the target video time length;
extracting video frames from the target video according to the time interval;
displaying a thumbnail of a video frame extracted from the target video;
the method further comprises the following steps: and closing the function of switching the video picture direction in response to the detection of the progress adjustment operation.
14. A method of displaying, the method comprising:
and closing the function of switching the video picture direction in response to the detection of the progress adjusting operation, wherein the progress adjusting operation is used for adjusting the progress of video playing.
15. A method for adjusting playback progress, comprising:
in response to detecting a predefined first adjusting operation, determining a target operation distance of the first adjusting operation, wherein the implementation position of the first adjusting operation is in a video playing area and is used for adjusting the progress of video playing;
determining a first video time interval to which the target video time length of the played target video belongs according to the mapping relation between the video time length and a preset first video time interval, wherein the first video time interval is associated with a first corresponding relation, and the first corresponding relation is used for indicating the corresponding relation between the unit operating distance and the unit time length adjusting amplitude; wherein the unit time length adjustment amplitude is positively correlated with the target time length;
determining the unit time length adjusting amplitude corresponding to the unit operating distance according to a first corresponding relation associated with a first video time length interval to which the target video time length belongs;
determining target adjusting time length according to the unit time length adjusting amplitude and the target operating distance;
and adjusting the playing progress of the target video according to the target adjustment duration.
16. An apparatus for adjusting a playing progress, comprising:
a first determination unit, configured to determine a target operation distance of a predefined first adjustment operation in response to detection of the first adjustment operation, wherein an implementation position of the first adjustment operation is in a video playing area, and is used to adjust a progress of video playing;
the second determining unit is used for determining a target adjusting time length corresponding to the target operating distance based on the target video time length of the played target video;
the adjusting unit is used for adjusting the playing progress of the target video according to the target adjusting time length;
the apparatus is further configured to: in response to detecting the progress adjustment operation, the video picture size adjustment function is turned off.
17. A display device, comprising:
the determining module is used for responding to the detection of progress adjusting operation and determining a time interval for extracting the video frames according to the target video time length, wherein the progress adjusting operation is used for adjusting the progress of video playing, and the time interval is positively correlated with the target video time length;
the extraction module is used for extracting video frames from the target video according to the time interval;
the display module is used for displaying the thumbnail of the video frame extracted from the target video;
the apparatus is further configured to: and closing the function of switching the video picture direction in response to the detection of the progress adjustment operation.
18. A display device, the device comprising:
and the closing module is used for responding to the detected progress adjusting operation and closing the function of switching the video picture direction, wherein the progress adjusting operation is used for adjusting the progress of video playing.
19. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-12 or the method of claim 13 or the method of claim 14 or the method of claim 15.
20. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method of any one of claims 1 to 12 or the method of claim 13 or the method of claim 14 or the method of claim 15.
CN202011069068.7A 2020-09-30 2020-09-30 Method and device for adjusting video playing progress and electronic equipment Active CN112188274B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011069068.7A CN112188274B (en) 2020-09-30 2020-09-30 Method and device for adjusting video playing progress and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011069068.7A CN112188274B (en) 2020-09-30 2020-09-30 Method and device for adjusting video playing progress and electronic equipment

Publications (2)

Publication Number Publication Date
CN112188274A CN112188274A (en) 2021-01-05
CN112188274B true CN112188274B (en) 2022-07-12

Family

ID=73948491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011069068.7A Active CN112188274B (en) 2020-09-30 2020-09-30 Method and device for adjusting video playing progress and electronic equipment

Country Status (1)

Country Link
CN (1) CN112188274B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179465A (en) * 2013-03-22 2013-06-26 广东欧珀移动通信有限公司 Method for controlling video playing progress and mobile terminal
CN104156162A (en) * 2013-05-14 2014-11-19 腾讯科技(深圳)有限公司 Broadcast progress adjusting method, device and terminal
CN104156165A (en) * 2014-06-16 2014-11-19 乐视致新电子科技(天津)有限公司 Method and device for adjusting playing pace of video
CN104378686A (en) * 2014-11-18 2015-02-25 广东欧珀移动通信有限公司 Audio and video playing progress control method and device
CN104469511A (en) * 2013-09-17 2015-03-25 联想(北京)有限公司 Information processing method and electronic device
CN105898593A (en) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 Playing progress adjusting method and device
CN109618234A (en) * 2018-12-19 2019-04-12 惠州Tcl移动通信有限公司 Video playing control method, device, mobile terminal and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024456B (en) * 2011-09-27 2016-02-24 腾讯科技(深圳)有限公司 A kind of Online Video player method and video playback server
US20130246948A1 (en) * 2012-03-16 2013-09-19 Lenovo (Beijing) Co., Ltd. Control method and control device
CN108108100B (en) * 2013-10-28 2021-06-22 华为技术有限公司 Method and device for adjusting playing
CN104735544A (en) * 2015-03-31 2015-06-24 上海摩软通讯技术有限公司 Video guidance method for mobile terminal
CN106547340B (en) * 2015-09-23 2019-11-15 广州市动景计算机科技有限公司 The method, apparatus and intelligent terminal of web page element are quickly hidden based on gravity sensing
CN106250022B (en) * 2016-07-29 2019-07-09 努比亚技术有限公司 Content selection method of adjustment, device and terminal
CN108234763B (en) * 2017-12-29 2021-02-26 阿里巴巴(中国)有限公司 Horizontal and vertical screen switching method and device and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179465A (en) * 2013-03-22 2013-06-26 广东欧珀移动通信有限公司 Method for controlling video playing progress and mobile terminal
CN104156162A (en) * 2013-05-14 2014-11-19 腾讯科技(深圳)有限公司 Broadcast progress adjusting method, device and terminal
CN104469511A (en) * 2013-09-17 2015-03-25 联想(北京)有限公司 Information processing method and electronic device
CN104156165A (en) * 2014-06-16 2014-11-19 乐视致新电子科技(天津)有限公司 Method and device for adjusting playing pace of video
CN104378686A (en) * 2014-11-18 2015-02-25 广东欧珀移动通信有限公司 Audio and video playing progress control method and device
CN105898593A (en) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 Playing progress adjusting method and device
CN109618234A (en) * 2018-12-19 2019-04-12 惠州Tcl移动通信有限公司 Video playing control method, device, mobile terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"视频监控技术在智能家居中的应用";陆怿;《科学技术创新》;20200725;全文 *

Also Published As

Publication number Publication date
CN112188274A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
US20220413661A1 (en) List flow implementation method, electronic device, and storage medium
CN111510760B (en) Video information display method and device, storage medium and electronic equipment
CN112261459B (en) Video processing method and device, electronic equipment and storage medium
CN112261226B (en) Horizontal screen interaction method and device, electronic equipment and storage medium
EP4325872A1 (en) Information display method and apparatus, electronic device, and storage medium
JP2024514660A (en) Control display methods, devices, electronic devices and storage media
CN112423084B (en) Display method and device of hotspot list, electronic equipment and storage medium
EP4161082A1 (en) Video playback control method and apparatus, electronic device, and storage medium
EP4333440A1 (en) Video interaction method and apparatus, electronic device, and storage medium
CN111562895A (en) Multimedia information display method and device and electronic equipment
CN114154012A (en) Video recommendation method and device, electronic equipment and storage medium
CN109462779B (en) Video preview information playing control method, application client and electronic equipment
WO2023185647A1 (en) Media content display method and apparatus, and device, storage medium and program product
CN113727170A (en) Video interaction method, device, equipment and medium
CN115474085B (en) Media content playing method, device, equipment and storage medium
US20240121349A1 (en) Video shooting method and apparatus, electronic device and storage medium
CN114168018A (en) Data interaction method, data interaction device, electronic equipment, storage medium and program product
CN114168250A (en) Page display method and device, electronic equipment and storage medium
CN111290819A (en) Method and device for displaying operation prompt and electronic equipment
CN114296611A (en) Live broadcast room control method, device, electronic equipment, medium and program product
CN114860139A (en) Video playing method, video playing device, electronic equipment, storage medium and program product
CN110519645B (en) Video content playing method and device, electronic equipment and computer readable medium
EP4369188A1 (en) Progress adjustment method and apparatus, electronic device and storage medium
CN112188274B (en) Method and device for adjusting video playing progress and electronic equipment
CN115550723A (en) Multimedia information display method and device and electronic equipment

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