[go: up one dir, main page]

CN109618234A - Video playing control method, device, mobile terminal and storage medium - Google Patents

Video playing control method, device, mobile terminal and storage medium Download PDF

Info

Publication number
CN109618234A
CN109618234A CN201811555571.6A CN201811555571A CN109618234A CN 109618234 A CN109618234 A CN 109618234A CN 201811555571 A CN201811555571 A CN 201811555571A CN 109618234 A CN109618234 A CN 109618234A
Authority
CN
China
Prior art keywords
progress
interval
adjusting
video playing
adjustment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811555571.6A
Other languages
Chinese (zh)
Inventor
俞斌
杨维琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201811555571.6A priority Critical patent/CN109618234A/en
Publication of CN109618234A publication Critical patent/CN109618234A/en
Pending legal-status Critical Current

Links

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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • 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/441Acquiring end-user identification, e.g. using personal code sent by the remote control or by inserting a card
    • H04N21/4415Acquiring end-user identification, e.g. using personal code sent by the remote control or by inserting a card using biometric characteristics of the user, e.g. by voice recognition or fingerprint scanning
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Biomedical Technology (AREA)
  • Theoretical Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The embodiment of the present application discloses a kind of video playing control method, device, mobile terminal and storage medium, and when receiving the regulating command of video playing progress, the first movement speed of the removable point on video playing control control is obtained according to regulating command;When first movement speed is located at First Speed section, first progress that generates adjusts section, and adjusts section according to First Speed section and the first progress and determine the first adjusting progress;It is adjusted accordingly according to progress of the first adjusting progress to video playing;When removable point movement speed from first movement speed-shifting be the second movement speed, and second movement speed be located at second speed section when, it generates the second progress and adjusts section, and section is adjusted according to second speed section and the second progress and determines the second adjusting progress;It is adjusted accordingly according to progress of the second adjusting progress to video playing.Intervals control playback progress is adjusted by different progresses, improves the accuracy to video playing control.

Description

Video playing control method and device, mobile terminal and storage medium
Technical Field
The application relates to the technical field of mobile terminals, in particular to a video playing control method and device, a mobile terminal and a storage medium.
Background
With the development of mobile terminal technology, the functions of the mobile terminal are more and more abundant, for example, the mobile terminal can be used to realize functions of making a call or sending a short message, and the like, and can also be used to play games, video playing and other entertainment.
At present, video playing applications and various online video playing websites are increasing in mobile terminals, and when a mobile terminal is used for playing videos, a user often needs to manually control the video playing, for example, to adjust the playing progress. The control of playing is only stopped at the playing point dragged to position the user needs, and for the video with longer playing time, the width of the screen of the mobile terminal is limited, so that more accurate playing control cannot be performed.
Disclosure of Invention
The embodiment of the application provides a video playing control method and device, a mobile terminal and a storage medium, which can improve the accuracy of the mobile terminal in controlling video playing.
In a first aspect, an embodiment of the present application provides a video playing control method, including:
when the mobile terminal receives an adjusting instruction of video playing progress, acquiring a first moving speed of a movable point on a video playing control according to the adjusting instruction;
when the first moving speed is in a first speed interval, generating a first progress adjusting interval, and determining a first adjusting progress according to the first speed interval and the first progress adjusting interval;
correspondingly adjusting the video playing progress according to the first adjusting progress;
when the moving speed of the movable point is changed from the first moving speed to a second moving speed and the second moving speed is in a second speed interval, generating a second progress adjusting interval and determining a second adjusting progress according to the second speed interval and the second progress adjusting interval;
and correspondingly adjusting the video playing progress according to the second adjusting progress.
In some embodiments, the obtaining a first moving speed of a movable point on a video playback control according to the adjustment instruction includes:
acquiring the initial position of the movable point on the video playing control according to the adjusting instruction, and acquiring the moving position of the movable point at intervals of preset time;
calculating the moving distance of the movable point according to the starting position and the moving position;
and calculating the moving speed of the movable point according to the moving distance and the preset time to obtain a first moving speed.
In some embodiments, before the mobile terminal receives an adjustment instruction of a video playing progress and acquires a first moving speed of a movable point on a video playing control according to the adjustment instruction, the method further includes:
when a sliding operation exists in a video playing interface of the mobile terminal, judging whether the sliding operation is positioned on the video playing control;
and if the triggering operation is positioned on the video playing control, generating an adjusting instruction of the video playing progress.
In some embodiments, the determining whether the sliding operation is located on the video playback control includes:
acquiring a coordinate interval of a display area of the video playing control;
acquiring coordinate information of a sliding point of the sliding operation;
judging whether the coordinate information is located in the coordinate interval or not;
and if the coordinate information is located in the coordinate interval, determining that the triggering operation is located on the video playing control.
In some embodiments, the adjusting the progress of the video playing according to the first adjustment progress comprises:
acquiring a face image in a preset range in front of the mobile terminal, and determining a user currently using the mobile terminal according to the face area;
correspondingly adjusting the video playing progress according to the first adjusting progress and the user currently using the mobile terminal; or,
correspondingly adjusting the video playing progress according to the second adjustment progress comprises the following steps:
acquiring a face image in a preset range in front of the mobile terminal, and determining a user currently using the mobile terminal according to the face area;
and correspondingly adjusting the video playing progress according to the second adjusting progress and the user currently using the mobile terminal.
In some embodiments, the generating a first progress adjustment interval and determining a first adjustment progress according to the first speed interval and the first progress adjustment interval includes:
acquiring the total length and the maximum play control value of a video play control, and acquiring the distance between the movable point and the starting point of the video play control;
generating a first progress adjusting interval according to the total length, the maximum playing control value and the distance;
and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the corresponding adjustment progress of the moving speed in the first speed interval in the first progress adjustment interval according to the corresponding relation to obtain a first adjustment progress.
In some embodiments, the generating a second progress adjustment interval and determining a second adjustment progress according to the second speed interval and the second progress adjustment interval includes:
acquiring the total length and the maximum playing control value of the video playing control;
reducing the maximum playing control value according to a preset proportion to obtain a target control value;
acquiring the distance between the movable point and the starting point of the video playing control;
generating a second progress adjusting interval according to the total length, the target control value and the distance;
and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the corresponding adjustment progress of the moving speed in the second speed interval in the second progress adjustment interval according to the corresponding relation to obtain a second adjustment progress.
In a second aspect, an embodiment of the present application further provides a video playback control apparatus, including:
the speed acquisition module is used for acquiring a first moving speed of a movable point on the video playing control according to an adjusting instruction when the mobile terminal receives the adjusting instruction of the video playing progress;
the first determining module is used for generating a first progress adjusting interval when the first moving speed is located in a first speed interval, and determining a first adjusting progress according to the first speed interval and the first progress adjusting interval;
the first adjusting module is used for correspondingly adjusting the video playing progress according to the first adjusting progress;
a second determining module, configured to generate a second progress adjustment interval when the moving speed of the movable point is changed from the first moving speed to a second moving speed and the second moving speed is in a second speed interval, and determine a second adjustment progress according to the second speed interval and the second progress adjustment interval;
and the second adjusting module is used for correspondingly adjusting the video playing progress according to the second adjusting progress.
In some embodiments, the speed acquisition module is specifically configured to:
acquiring the initial position of the movable point on the video playing control according to the adjusting instruction, and acquiring the moving position of the movable point at intervals of preset time;
calculating the moving distance of the movable point according to the starting position and the moving position;
and calculating the moving speed of the movable point according to the moving distance and the preset time to obtain a first moving speed.
In some embodiments, the video playback control apparatus further includes:
the judging module is used for judging whether the sliding operation is positioned on the video playing control piece or not when the sliding operation exists in a video playing interface of the mobile terminal;
and the generation module is used for generating an adjustment instruction of the video playing progress if the triggering operation is positioned on the video playing control.
In some embodiments, the determining module is configured to:
acquiring a coordinate interval of a display area of the video playing control;
acquiring coordinate information of a sliding point of the sliding operation;
judging whether the coordinate information is located in the coordinate interval or not;
and if the coordinate information is located in the coordinate interval, determining that the triggering operation is located on the video playing control.
In some embodiments, the first adjustment module is specifically configured to:
acquiring a face image in a preset range in front of the mobile terminal, and determining a user currently using the mobile terminal according to the face area;
correspondingly adjusting the video playing progress according to the first adjusting progress and the user currently using the mobile terminal;
the second adjusting module is specifically configured to:
acquiring a face image in a preset range in front of the mobile terminal, and determining a user currently using the mobile terminal according to the face area;
and correspondingly adjusting the video playing progress according to the second adjusting progress and the user currently using the mobile terminal.
In some embodiments, the first determining module is specifically configured to:
when the first moving speed is in a first speed interval, acquiring the total length and the maximum playing control value of a video playing control, and acquiring the distance between the movable point and the starting point of the video playing control;
generating a first progress adjusting interval according to the total length, the maximum playing control value and the distance;
and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the corresponding adjustment progress of the moving speed in the first speed interval in the first progress adjustment interval according to the corresponding relation to obtain a first adjustment progress.
In some embodiments, the second determining module is specifically configured to:
when the moving speed of the movable point is changed from the first moving speed to a second moving speed, and the second moving speed is located in a second speed interval, acquiring the total length and the maximum playing control value of the video playing control;
reducing the maximum playing control value according to a preset proportion to obtain a target control value;
acquiring the distance between the movable point and the starting point of the video playing control;
generating a second progress adjusting interval according to the total length, the target control value and the distance;
and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the corresponding adjustment progress of the moving speed in the second speed interval in the second progress adjustment interval according to the corresponding relation to obtain a second adjustment progress.
In a third aspect, an embodiment of the present application further provides a mobile terminal, including a memory and a processor, where the memory stores program codes, and the processor executes, when calling the program codes in the memory, any of the steps in the video playback control method provided in the embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform steps in any video playback control method provided in the embodiment of the present application.
According to the embodiment of the application, when the mobile terminal receives the adjustment instruction of the video playing progress, the first moving speed of the movable point on the video playing control can be obtained according to the adjustment instruction; when the first moving speed is located in the first speed interval, a first progress adjusting interval is generated, a first adjusting progress is determined according to the first speed interval and the first progress adjusting interval, and then the progress of video playing is correspondingly adjusted according to the first adjusting progress. When the moving speed of the movable point is changed from the first moving speed to the second moving speed and the second moving speed is in the second speed interval, a second progress adjusting interval is generated, a second adjusting progress is determined according to the second speed interval and the second progress adjusting interval, and at the moment, the progress of video playing can be correspondingly adjusted according to the second adjusting progress. According to the scheme, different progress adjusting intervals are generated through the change of the moving speed in the adjusting instruction of the video playing progress, the playing progress of the video is dynamically and accurately adjusted through the progress adjusting intervals, and the accuracy of the mobile terminal in controlling the video playing is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a video playing control method provided in an embodiment of the present application;
fig. 2 is another schematic flow chart of a video playing control method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of video playing control provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a video playback control apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a video playing control method according to an embodiment of the present application. The execution main body of the video playing control method can be the video playing control device provided by the embodiment of the application, or a mobile terminal integrated with the video playing control device, wherein the video playing control device can be realized in a hardware or software mode, and the mobile terminal can be a smart phone, a tablet computer, a palm computer, a notebook computer or the like. The video playing control method can comprise the following steps:
s101, when the mobile terminal receives an adjusting instruction of the video playing progress, acquiring a first moving speed of a movable point on a video playing control according to the adjusting instruction.
The mobile terminal can play the video through the video player, or play the video through an online video playing website, and the like, and can adjust the video playing progress in the process of playing the video, for example, the mobile terminal can adjust the video playing progress through the movement of a movable point on a video playing control preset in a video playing interface.
Specifically, the mobile terminal can receive an adjusting instruction of the video playing progress, and the adjusting instruction can be flexibly set according to actual needs, for example, the mobile terminal can detect whether a sliding operation exists in the video playing interface, judge whether the sliding operation is located on the video playing control when the sliding operation exists in the video playing interface, and generate the adjusting instruction of the video playing progress if the sliding operation is located on the video playing control. Or the mobile terminal can detect whether a pressing operation exists in the video playing interface, when the pressing operation exists in the video playing interface, whether the pressing operation is located on the video playing control, and if the pressing operation is located on the video playing control, an adjusting instruction of the video playing progress is generated. Or, the mobile terminal may detect whether a sliding operation exists in the video playing interface, and generate an instruction for adjusting the video playing progress according to the sliding operation when the sliding operation exists in the video playing interface.
When the mobile terminal receives an adjustment instruction of the video playing progress, the mobile terminal can acquire the moving speed of a movable point on the video playing control according to the adjustment instruction to obtain a first moving speed. For example, the mobile terminal may obtain the moving distance and the moving time of the movable point at preset time intervals, calculate the moving speed of the movable point according to the moving distance and the moving time, and obtain the first moving speed, that is, the moving distance is divided by the moving time to obtain the moving speed.
It should be noted that the video playing in the embodiment of the present application includes playing only audio, playing only video, or playing audio and video simultaneously (i.e., audio and video playing).
S102, when the first moving speed is located in the first speed interval, generating a first progress adjusting interval, and determining a first adjusting progress according to the first speed interval and the first progress adjusting interval.
Wherein, speed interval, progress regulation interval and regulation progress etc. can carry out nimble setting according to actual need. The mobile terminal may preset a corresponding relationship between the speed interval and the progress adjustment interval, for example, the greater the upper limit value of the speed interval, the greater the upper limit value of the progress adjustment interval; conversely, the smaller the upper limit value of the speed interval is, the smaller the upper limit value of the progress adjustment interval is.
After obtaining the first moving speed of the movable point, the mobile terminal may determine a speed interval in which the first moving speed is located, and when the first moving speed is located in the first speed interval, generate a first progress adjustment interval, where the first speed interval may be set to a speed interval in which the speed is greater than a first preset threshold, and the first preset threshold may be flexibly set according to actual needs.
For example, the mobile terminal may obtain a total length and a maximum play control value of the video play control, obtain a distance between the movable point and a starting point of the video play control, and generate a first progress adjustment interval according to the total length, the maximum play control value, and the distance.
At this time, the mobile terminal may determine the first adjustment progress according to the first speed interval and the first progress adjustment interval, for example, the mobile terminal may obtain a corresponding relationship between the speed interval and the progress adjustment, and determine, according to the corresponding relationship, an adjustment progress of the moving speed in the first speed interval corresponding to the first progress adjustment interval, to obtain the first adjustment progress.
S103, correspondingly adjusting the video playing progress according to the first adjusting progress.
After determining the first adjustment progress, the mobile terminal may adjust the progress of the video playing according to the first adjustment progress, for example, when the first adjustment progress is to adjust the progress of the video playing to be played for 11 minutes, the mobile terminal may adjust the progress of the video playing to be played for 11 minutes.
And S104, when the moving speed of the movable point is changed from the first moving speed to the second moving speed and the second moving speed is in a second speed interval, generating a second progress adjusting interval, and determining a second adjusting progress according to the second speed interval and the second progress adjusting interval.
In the process of moving the movable point, the mobile terminal may detect the moving speed of the movable point in real time or at preset intervals, and determine whether the moving speed changes, if the moving speed of the movable point changes from the first moving speed to the second moving speed, determine a speed interval in which the second moving speed is located, and when the second moving speed is located in the second speed interval, generate a second progress adjustment interval, wherein the second speed interval may be set to a speed interval in which the speed is less than a second preset threshold, and the second preset threshold may be flexibly set according to actual needs.
For example, the mobile terminal may obtain the total length of the video playing control and the maximum playing control value, and reduce the maximum playing control value according to a preset proportion to obtain a target control value; and then, acquiring the distance between the movable point and the starting point of the video playing control, and generating a second progress adjusting interval according to the total length, the target control value and the distance.
At this time, the mobile terminal may determine the second adjustment progress according to the second speed interval and the second progress adjustment interval, for example, the mobile terminal may obtain a corresponding relationship between the speed interval and the progress adjustment, and determine an adjustment progress, corresponding to the moving speed in the second speed interval in the second progress adjustment interval, according to the corresponding relationship, to obtain the second adjustment progress.
And S105, correspondingly adjusting the video playing progress according to the second adjusting progress.
After the second adjustment progress is determined, the mobile terminal can correspondingly adjust the progress of video playing according to the second adjustment progress. For example, when the second adjustment progress is fast-forwarding the playing progress of the video, the mobile terminal may fast-forward the progress of the video playing to a corresponding position; when the second adjustment progress is to retreat the playing progress of the video, the mobile terminal can retreat the progress of playing the video to a corresponding position. Like this, when the user uses mobile terminal to carry out video broadcast, the user can adjust the video broadcast progress through the video broadcast control controlling part, especially to the longer video of the whole time of broadcast, can solve because mobile terminal screen width is limited and can't carry out the problem of more accurate broadcast control, has improved the mobile terminal and has controlled the accurate nature of video broadcast to convenience of customers uses.
It should be noted that, when the first moving speed is greater than the second moving speed, the first speed interval is greater than the second speed interval, the first progress adjustment interval is greater than the second progress adjustment interval, and at this time, the moving speed of the movable point is reduced from the first moving speed to the second moving speed, then the control mode of the mobile terminal on the video playing is to control the entire video playing and to change to control the local video playing, that is, to change from coarse adjustment to fine adjustment of the video playing progress. For example, if the total duration of the video playing is 1 hour, the mobile terminal is started to adjust the 1 hour video playing progress based on the first moving speed of the movable point. When the video is played for 10 minutes, the moving speed of the movable point is reduced from the first moving speed to the second moving speed, and the mobile terminal may adjust the video playing progress within 10 minutes to 20 minutes based on the second moving speed of the movable point. When the first moving speed is lower than the second moving speed, the first speed interval is lower than the second speed interval, the first progress adjusting interval is lower than the second progress adjusting interval, at this time, the moving speed of the movable point is increased from the first moving speed to the second moving speed, and then the control mode of the mobile terminal on the video playing is that the local video playing is controlled, the whole video playing is controlled, namely, the fine adjustment on the video playing progress is changed into the coarse adjustment. For example, if the total duration of the video playing is 1 hour, the mobile terminal is started to adjust the video playing progress within 1 to 10 minutes based on the first moving speed of the movable point, and when the video is played for 5 minutes, the moving speed of the movable point is increased from the first moving speed to the second moving speed, and the mobile terminal may adjust the video playing progress for 1 hour based on the second moving speed of the movable point.
According to the embodiment of the application, when the mobile terminal receives the adjustment instruction of the video playing progress, the first moving speed of the movable point on the video playing control can be obtained according to the adjustment instruction; when the first moving speed is located in the first speed interval, a first progress adjusting interval is generated, a first adjusting progress is determined according to the first speed interval and the first progress adjusting interval, and then the progress of video playing is correspondingly adjusted according to the first adjusting progress. When the moving speed of the movable point is changed from the first moving speed to the second moving speed and the second moving speed is in the second speed interval, a second progress adjusting interval is generated, a second adjusting progress is determined according to the second speed interval and the second progress adjusting interval, and at the moment, the progress of video playing can be correspondingly adjusted according to the second adjusting progress. According to the scheme, different progress adjusting intervals are generated through the change of the moving speed in the adjusting instruction of the video playing progress, the playing progress of the video is dynamically and accurately adjusted through the progress adjusting intervals, and the accuracy of the mobile terminal in controlling the video playing is improved.
The video playback control method according to the above embodiments will be described in further detail below.
Referring to fig. 2, fig. 2 is another schematic flow chart of a video playing control method according to an embodiment of the present application. The video playing control method may be applied to a mobile terminal, as shown in fig. 2, the flow of the video playing control method may be as follows:
s201, receiving an adjusting instruction of video playing progress.
In some embodiments, the receiving the adjustment instruction of the video playing progress comprises: when the sliding operation exists in the video playing interface of the mobile terminal, judging whether the sliding operation is positioned on the video playing control; and if the sliding operation is positioned on the video playing control, generating an adjusting instruction of the video playing progress.
For example, the mobile terminal may detect, in real time or at preset time intervals, whether a sliding operation exists in the video playing interface, where the sliding operation may be a leftward sliding operation or a rightward sliding operation, and the like, for example, the leftward sliding operation may correspond to a playback progress of a rewind video, and the rightward sliding operation may correspond to a playback progress of a fast-forward video. When the sliding operation exists in the video playing interface, whether the sliding operation is located on the video playing control part or not can be further judged, and if the sliding operation is located on the video playing control part, an adjusting instruction of the video playing progress is generated. And if the sliding operation is not positioned on the video playing control, generating other instructions or not responding.
In some embodiments, determining whether the sliding operation is located on the video playback control may include: acquiring a coordinate interval of a display area of a video playing control; acquiring coordinate information of a sliding point of sliding operation; judging whether the coordinate information is located in a coordinate interval or not; and if the coordinate information is located in the coordinate interval, determining that the sliding operation is located on the video playing control.
For example, the mobile terminal may obtain a display area of the video playing control within the video playing interface, where the shape, color, size, position, and the like of the display area of the video playing control may be flexibly set according to time requirements, and obtain coordinate information of the display area to obtain a coordinate interval of the video playing control, for example, when the display area is a rectangular area, the rectangular area may be determined by a coordinate point (x1, y1) at an upper left corner and a coordinate point (x2, y2) at a lower right corner, and at this time, the coordinate interval of the video playing control may be x1 ≦ x2 and y1 ≦ y 2. Then, coordinate information of the sliding point of the sliding operation is obtained, whether the coordinate information is located in the coordinate interval is judged, for example, when the coordinate information (x, y) of the sliding point of the sliding operation satisfies x1 ≦ x2 and y1 ≦ y2, it can be determined that the sliding point of the sliding operation is located on the video playback control, that is, the coordinate information of the sliding point of the sliding operation is located in the coordinate interval of the video playback control. And if the coordinate information of the sliding point of the sliding operation is located in the coordinate interval of the video playing control, generating an adjusting instruction of the video playing progress.
S202, acquiring the moving initial position of the movable point on the video playing control according to the adjusting instruction.
For example, when a sliding operation is received, the mobile terminal may obtain a position where the movable point on the video playback control moves at this time, and obtain a starting position of the movable point.
And S203, acquiring the moving position of the movable point at preset time intervals.
The preset time can be flexibly set according to actual needs, for example, the preset time can be set to 1 second, that is, the mobile terminal can obtain the current position of the movable point without 1 second interval, so as to obtain the moving position. For example, the mobile terminal may first obtain a sliding speed of the sliding operation, then determine a moving speed of the movable point according to a corresponding relationship between the sliding speed and the moving speed of the movable point, and then move the movable point to a corresponding position according to the moving speed of the movable point.
And S204, calculating the moving distance of the movable point according to the starting position and the moving position.
For example, when the starting position of the movable point is (x1, y1) and the moving position of the movable point is (x3, y3), the mobile terminal may calculate the moving distance d of the movable point according to the starting position and the moving position as: d is x3-x 1.
S205, calculating the moving speed of the movable point according to the moving distance and the preset time to obtain a first moving speed.
For example, the moving speed is obtained by dividing the moving distance by the moving time, and the moving speed of the movable point is obtained, and the moving speed is the first moving speed.
And S206, when the first moving speed is greater than a first preset threshold value, generating a first progress adjusting interval.
After obtaining the first moving speed of the movable point, the mobile terminal may determine whether the first moving speed is greater than a first preset threshold, and if the first moving speed is greater than the first preset threshold, determine that the first moving speed is located in a first speed interval, and at this time, the mobile terminal may generate a first progress adjustment interval.
In some embodiments, generating the first progress-adjustment interval includes: acquiring the total length and the maximum play control value of the video play control, and acquiring the distance between the movable point and the starting point of the video play control; and generating a first progress adjusting interval according to the total length, the maximum playing control value and the distance.
For example, as shown in fig. 3, when the first moving speed of the movable point is greater than the first preset threshold, the mobile terminal may obtain the total length of the video playback control, and obtain the maximum playback control value KMAX, which may be the total duration of the video playback, and at this time, the mobile terminal may further need to obtain the distance between the movable point and the start point of the video playback control, for example, the mobile terminal obtains the current position of the movable point and the position of the start point of the video playback control, and calculates the distance between the movable point and the start point of the video playback control according to the current position of the movable point and the position of the start point of the video playback control.
Assuming that the starting point of the video playing control is (x1, y1), the ending point of the video playing control is (x2, y2), and the current position of the movable point is (x3, y3), then the mobile terminal may generate a first progress adjustment interval [ a, b ] according to the total length x2-x1 of the video playing control, the maximum playing control value KMAX, and the distance x3-x1 between the movable point and the starting point of the video playing control, for example, as shown in fig. 3, the first progress adjustment interval may be [00:00, 01:30], that is, the mobile terminal adjusts the progress of the overall video playing for 1 hour and 30 minutes.
And S207, determining a first adjustment progress according to the first speed interval and the first progress adjustment interval.
In some embodiments, determining the first adjustment schedule according to the first speed interval and the first schedule adjustment interval includes: and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the adjustment progress of the moving speed in the first speed interval in the first progress adjustment interval according to the corresponding relation to obtain the first adjustment progress.
For example, the mobile terminal may preset a corresponding relationship between the speed interval and the progress adjustment, and when the adjustment progress needs to be determined, the mobile terminal may obtain the corresponding relationship between the speed interval and the progress adjustment, and determine, according to the corresponding relationship between the speed interval and the progress adjustment, an adjustment progress, corresponding to the moving speed in the first speed interval in the first progress adjustment interval, to obtain the first adjustment progress. For example, assuming that the start point of the video playing control is (x1, y1), the end point of the video playing control is (x2, y2), and the current position of the movable point is (x3, y3), then the mobile terminal may, according to the total length x2-x1 of the video playing control, the maximum playing control value KMAX, and the distance x3-x1 between the movable point and the start point of the video playing control, the first adjustment progress K1 may be: k1 ═ KMAX (x3-x1)/(x2-x 1).
And S208, correspondingly adjusting the video playing progress according to the first adjusting progress.
In some embodiments, the corresponding adjustment of the progress of the video playing according to the first adjustment progress may include: acquiring a face image in a preset range in front of the mobile terminal, and determining a user using the mobile terminal currently according to a face area; and correspondingly adjusting the video playing progress according to the first adjusting progress and the user currently using the mobile terminal.
Since different users performing a sliding operation within the video playing interface can generate that the sliding speed may be different, for example, for children, because of their small strength or slow reflection, performing a sliding operation can generate that the sliding speed may be small, so that the moving speed of the movable point is small; for adults, performing a sliding operation can result in a possible large sliding speed, resulting in a large moving speed of the movable point, due to its large strength or fast response. Therefore, in order to accurately provide adjustment of video playing progress for different users according to individual differences, the mobile terminal may first identify the user currently using the mobile terminal, and perform corresponding adjustment on the video playing progress for the user currently using the mobile terminal.
For example, the mobile terminal may pre-store a corresponding relationship between a user face and a user identifier, and at this time, an image in a preset range in front of the mobile terminal (the preset range may be flexibly set according to actual needs) may be acquired by a front camera preset in the mobile terminal, and then whether a face image exists in the acquired image is identified. If the face image does not exist in the acquired image, the user currently using the mobile terminal cannot be determined through the image, and the user currently using the mobile terminal can be determined by adopting fingerprints or habit data of using the mobile terminal and the like; if the face exists in the acquired image, the face image can be extracted from the image, the face image is compared with the face of the user stored in advance one by one, the face of the user with the maximum similarity with the face image is screened out, the user identification corresponding to the face of the user with the maximum similarity is determined according to the mapping relation between the face of the user and the user identification, the user corresponding to the face of the user with the maximum similarity with the face area can be determined according to the user identification, and the user is the user using the mobile terminal at present.
For another example, the mobile terminal may collect fingerprint information input during a current use of the mobile terminal, and determine a user currently using the mobile terminal according to the fingerprint information. Specifically, the mobile terminal may pre-store a corresponding relationship between the fingerprint information and the user identifier, and the mobile terminal may collect the fingerprint information input by the user in the process of using the mobile terminal, for example, the fingerprint information input when the user unlocks the mobile terminal, or the fingerprint information pressed on the mobile terminal when the user holds the mobile terminal, or the fingerprint information input when the user pays, and the like, and then compare the collected fingerprint information with the pre-stored fingerprint information one by one, and select the fingerprint information with the maximum matching degree with the collected fingerprint information from the stored fingerprint information to obtain the target fingerprint information, and then determine the user identifier corresponding to the target fingerprint information according to the mapping relationship between the fingerprint information and the user identifier, and determine the user corresponding to the target fingerprint information according to the user identifier, the user is the user who is currently using the mobile terminal.
Finally, the mobile terminal can correspondingly adjust the video playing progress according to the first adjusting progress and the user currently using the mobile terminal. For example, the mobile terminal may increase or decrease the preset time period based on the first adjustment progress to obtain a time point at which the progress of the video playing is adjusted correspondingly. For example, when the first adjustment progress is to adjust the progress of video playing to be played for 11 minutes, the mobile terminal may increase the progress of video playing by 5 minutes on the basis of the first adjustment progress to obtain that the progress of video playing is played for 16 minutes, and at this time, the progress of video playing is adjusted to be played for 16 minutes.
And S209, when the moving speed of the movable point is reduced from the first moving speed to a second moving speed, and the second moving speed is smaller than a first preset threshold value, generating a second progress adjusting interval.
In the process of moving the movable point, the mobile terminal may detect the moving speed of the movable point in real time or at preset intervals, and determine whether the moving speed changes, if the moving speed of the movable point is reduced from the first moving speed to the second moving speed, determine whether the second moving speed is smaller than a first preset threshold, if the second moving speed is smaller than the first preset threshold, determine that the first moving speed is located in a second speed interval, at this time, the mobile terminal may generate a second progress adjustment interval.
In some embodiments, generating the second progress-adjustment interval includes: acquiring the total length and the maximum playing control value of the video playing control; reducing the maximum playing control value according to a preset proportion to obtain a target control value; acquiring the distance between the movable point and the starting point of the video playing control piece; and generating a second progress adjusting interval according to the total length, the target control value and the distance.
For example, as shown in fig. 3, when the second moving speed of the movable point is less than the second preset threshold, the mobile terminal may obtain the total length of the video playback control, and obtain the maximum playback control value KMAX, which may be the total playback duration of the video, and then decrease the maximum playback control value by a preset ratio to obtain the target control value KSTP, for example, KSTP is KMAX 10%. At this time, the mobile terminal further needs to obtain the distance between the movable point and the starting point of the video playing control, for example, the mobile terminal obtains the current position of the movable point and the position of the starting point of the video playing control, and calculates the distance between the movable point and the starting point of the video playing control according to the current position of the movable point and the position of the starting point of the video playing control.
Assuming that the starting point of the video playing control is (x1, y1), the end point of the video playing control is (x2, y2), and the current position of the movable point is (x3, y3), then the mobile terminal may generate a second progress adjustment interval [ c, d ] according to the total length x2-x1 of the video playing control, the target control value KSTP, and the distance x3-x1 between the movable point and the starting point of the video playing control, for example, as shown in fig. 3, the second progress adjustment interval may be [00:10, 00:20], that is, the mobile terminal adjusts the progress of the local video playing from the 10 th minute to the 20 th minute. Therefore, the user can accurately adjust the video playing progress through the video playing control, particularly, for videos with long playing overall time, the progress adjusting interval of the videos is narrowed to a certain range, the video playing progress in the range is adjusted based on the length of the video playing control, the problem that due to the fact that the width of a screen of the mobile terminal is limited, accurate playing control cannot be conducted can be solved, and the accuracy of the mobile terminal in controlling the video playing is improved.
And S210, determining a second adjustment progress according to the second speed interval and the second progress adjustment interval.
In some embodiments, determining the second adjustment progress based on the second speed interval and the second progress adjustment interval comprises: and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the adjustment progress of the moving speed in the second speed interval in the second progress adjustment interval according to the corresponding relation to obtain the second adjustment progress.
For example, the mobile terminal may preset a corresponding relationship between the speed interval and the progress adjustment, and when the adjustment progress needs to be determined, the mobile terminal may obtain the corresponding relationship between the speed interval and the progress adjustment, and determine, according to the corresponding relationship between the speed interval and the progress adjustment, an adjustment progress corresponding to the moving speed in the second speed interval in the second progress adjustment interval, so as to obtain the second adjustment progress. For example, assuming that the start point of the video playing control is (x1, y1), the end point of the video playing control is (x2, y2), and the current position of the movable point is (x3, y3), then the mobile terminal may adjust the progress K1 according to the total length x2-x1 of the video playing control, the maximum playing control value KMAX, and the distance x3-x1 between the movable point and the start point of the video playing control: k2 KSTP (x3-x1)/(x2-x 1).
S211, correspondingly adjusting the video playing progress according to the second adjusting progress.
In some embodiments, the corresponding adjustment of the progress of the video playing according to the second adjustment progress may include: acquiring a face image in a preset range in front of the mobile terminal, and determining a user using the mobile terminal currently according to a face area; and correspondingly adjusting the video playing progress according to the second adjusting progress and the user currently using the mobile terminal.
Since different users can generate different sliding speeds by executing sliding operations in the video playing interface, in order to accurately provide adjustment of video playing progress for different users according to individual differences, the mobile terminal can firstly identify the user currently using the mobile terminal and correspondingly adjust the video playing progress for the user currently using the mobile terminal.
The method for identifying the user currently using the mobile terminal by the mobile terminal is similar to that described above, for example, the mobile terminal may collect an image in a preset range in front of the mobile terminal through a front camera preset in the mobile terminal, and then identify whether a face image exists in the collected image. If the face image does not exist in the acquired image, the user currently using the mobile terminal cannot be determined through the image, and the user currently using the mobile terminal can be determined by adopting fingerprints or habit data of using the mobile terminal and the like; if the face exists in the acquired image, the face image can be extracted from the image, the face image is compared with the face of the user stored in advance one by one, the face of the user with the maximum similarity with the face image is screened out, the user identification corresponding to the face of the user with the maximum similarity is determined according to the mapping relation between the face of the user and the user identification, the user corresponding to the face of the user with the maximum similarity with the face area can be determined according to the user identification, and the user is the user using the mobile terminal at present.
Finally, the mobile terminal can correspondingly adjust the video playing progress according to the second adjusting progress and the user currently using the mobile terminal. For example, the mobile terminal may increase or decrease the preset time period based on the second adjustment progress to obtain a time point at which the progress of the video playing is adjusted correspondingly. For example, when the second adjustment progress is to adjust the progress of the video playing to the played time of 11 minutes, the mobile terminal may decrease the progress of the video playing by 5 minutes on the basis of the second adjustment progress to obtain that the progress of the video playing is 6 minutes, and at this time, the progress of the video playing is adjusted to the played time of 6 minutes.
It should be noted that, when the movable point moves once, if the movable point has a plurality of changes of the moving speed, the mobile terminal may correspondingly adjust the video playing progress according to the change conditions of different moving speeds in the above manner.
According to the embodiment of the application, when the mobile terminal receives the adjustment instruction of the video playing progress, the first moving speed of the movable point on the video playing control can be obtained according to the adjustment instruction; when the first moving speed is located in the first speed interval, a first progress adjusting interval is generated, a first adjusting progress is determined according to the first speed interval and the first progress adjusting interval, and then the progress of video playing is correspondingly adjusted according to the first adjusting progress. When the moving speed of the movable point is changed from the first moving speed to the second moving speed and the second moving speed is in the second speed interval, a second progress adjusting interval is generated, a second adjusting progress is determined according to the second speed interval and the second progress adjusting interval, and at the moment, the progress of video playing can be correspondingly adjusted according to the second adjusting progress. According to the scheme, different progress adjusting intervals are generated through the change of the moving speed in the adjusting instruction of the video playing progress, the playing progress of the video is dynamically and accurately adjusted through the progress adjusting intervals, and the accuracy of the mobile terminal in controlling the video playing is improved.
In order to better implement the video playing control method provided by the embodiment of the present application, an embodiment of the present application further provides a device based on the video playing control method. The meaning of the noun is the same as that in the video playing control method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a video playback control apparatus 300 according to an embodiment of the present disclosure, where the video playback control apparatus 300 may include a speed obtaining module 301, a first determining module 302, a first adjusting module 303, a second determining module 304, a second adjusting module 305, and the like.
The speed obtaining module 301 is configured to, when the mobile terminal receives an adjustment instruction of a video playing progress, obtain a first moving speed of a movable point on the video playing control according to the adjustment instruction.
The first determining module 302 is configured to generate a first progress adjustment interval when the first moving speed is in the first speed interval, and determine a first adjustment progress according to the first speed interval and the first progress adjustment interval.
The first adjusting module 303 is configured to correspondingly adjust the progress of video playing according to the first adjusting progress.
The second determining module 304 is configured to generate a second progress adjustment interval when the moving speed of the movable point is changed from the first moving speed to the second moving speed and the second moving speed is in the second speed interval, and determine a second adjustment progress according to the second speed interval and the second progress adjustment interval.
And a second adjusting module 305, configured to correspondingly adjust the progress of the video playing according to the second adjusting progress.
In some embodiments, the speed acquisition module 301 is specifically configured to: acquiring the initial position of the movable point on the video playing control according to the adjusting instruction, and acquiring the moving position of the movable point at intervals of preset time; calculating the moving distance of the movable point according to the initial position and the moving position; and calculating the moving speed of the movable point according to the moving distance and the preset time to obtain a first moving speed.
In some embodiments, the video playback control apparatus 300 further includes:
the judging module is used for judging whether the sliding operation is positioned on the video playing control piece or not when the sliding operation exists in the video playing interface of the mobile terminal;
and the generation module is used for generating an adjustment instruction of the video playing progress if the triggering operation is positioned on the video playing control.
In some embodiments, the determining module is configured to: acquiring a coordinate interval of a display area of a video playing control; acquiring coordinate information of a sliding point of sliding operation; judging whether the coordinate information is located in a coordinate interval or not; and if the coordinate information is located in the coordinate interval, determining that the triggering operation is located on the video playing control.
In some embodiments, the first adjusting module 303 is specifically configured to: acquiring a face image in a preset range in front of the mobile terminal, and determining a user using the mobile terminal currently according to a face area; and correspondingly adjusting the video playing progress according to the first adjusting progress and the user currently using the mobile terminal.
The second adjusting module 305 is specifically configured to: acquiring a face image in a preset range in front of the mobile terminal, and determining a user using the mobile terminal currently according to a face area; and correspondingly adjusting the video playing progress according to the second adjusting progress and the user currently using the mobile terminal.
In some embodiments, the first determining module 302 is specifically configured to: when the first moving speed is in a first speed interval, acquiring the total length and the maximum playing control value of the video playing control, and acquiring the distance between the movable point and the starting point of the video playing control; generating a first progress adjusting interval according to the total length, the maximum playing control value and the distance; and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the adjustment progress of the moving speed in the first speed interval in the first progress adjustment interval according to the corresponding relation to obtain the first adjustment progress.
In some embodiments, the second determining module 304 is specifically configured to: when the moving speed of the movable point is changed from a first moving speed to a second moving speed, and the second moving speed is in a second speed interval, acquiring the total length and the maximum playing control value of the video playing control; reducing the maximum playing control value according to a preset proportion to obtain a target control value; acquiring the distance between the movable point and the starting point of the video playing control piece; generating a second progress adjusting interval according to the total length, the target control value and the distance; and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the adjustment progress of the moving speed in the second speed interval in the second progress adjustment interval according to the corresponding relation to obtain the second adjustment progress.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In the embodiment of the application, when the mobile terminal receives an adjustment instruction of a video playing progress, the speed obtaining module 301 may obtain a first moving speed of a movable point on the video playing control according to the adjustment instruction; when the first moving speed is in the first speed interval, the first determining module 302 generates a first progress adjusting interval, determines a first adjusting progress according to the first speed interval and the first progress adjusting interval, and then the first adjusting module 303 correspondingly adjusts the progress of the video playing according to the first adjusting progress. When the moving speed of the movable point is changed from the first moving speed to the second moving speed, and the second moving speed is in the second speed interval, the second determining module 304 generates a second progress adjustment interval, and determines a second adjustment progress according to the second speed interval and the second progress adjustment interval, at this time, the second adjusting module 305 may correspondingly adjust the progress of the video playing according to the second adjustment progress. According to the scheme, different progress adjusting intervals are generated through the change of the moving speed in the adjusting instruction of the video playing progress, the playing progress of the video is dynamically and accurately adjusted through the progress adjusting intervals, and the accuracy of the mobile terminal in controlling the video playing is improved.
Fig. 5 is a block diagram illustrating a specific structure of a mobile terminal according to an embodiment of the present invention, where the mobile terminal may be used to implement the video playing control method provided in the foregoing embodiment. The mobile terminal 1200 may be a smart phone, a tablet computer, or the like.
As shown in fig. 5, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 5 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.1 n), Voice over Internet Protocol (VoIP), world wide Internet Protocol (Microwave Access for Wireless communications, Wi-Max), and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 120 may be used to store software programs and modules, such as program instructions/modules of the video playing control method in the above embodiments, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, so as to implement the function of video playing control. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory located remotely from processor 180, which may be connected to mobile terminal 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and optionally, the display panel 141 may be configured in the form of an LCD (Liquid crystal display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 5, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1200, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
The mobile terminal 1200, which may assist the user in e-mail, web browsing, and streaming media access through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 5 illustrates the transmission module 170, it is understood that it does not belong to the essential constitution of the mobile terminal 1200, and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) that powers the various components and, in some embodiments, may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
when the mobile terminal receives an adjusting instruction of video playing progress, acquiring a first moving speed of a movable point on a video playing control according to the adjusting instruction; when the first moving speed is in the first speed interval, generating a first progress adjusting interval, and determining a first adjusting progress according to the first speed interval and the first progress adjusting interval; correspondingly adjusting the video playing progress according to the first adjusting progress; when the moving speed of the movable point is changed from the first moving speed to the second moving speed and the second moving speed is in a second speed interval, generating a second progress adjusting interval, and determining a second adjusting progress according to the second speed interval and the second progress adjusting interval; and correspondingly adjusting the video playing progress according to the second adjusting progress. Different progress adjustment intervals are generated through the change of the moving speed in the adjustment instruction of the video playing progress, the playing progress of the video is dynamically and accurately adjusted through the progress adjustment intervals, and the accuracy of the mobile terminal in controlling the video playing is improved.
In some embodiments, when the first moving speed of the movable point on the video playback control is obtained according to the adjustment instruction, the processor 180 further performs: acquiring the initial position of the movable point on the video playing control according to the adjusting instruction, and acquiring the moving position of the movable point at intervals of preset time; calculating the moving distance of the movable point according to the initial position and the moving position; and calculating the moving speed of the movable point according to the moving distance and the preset time to obtain a first moving speed.
In some embodiments, when the mobile terminal receives an adjustment instruction of the video playing progress, before acquiring the first moving speed of the movable point on the video playing control according to the adjustment instruction, the processor 180 further performs: when the sliding operation exists in the video playing interface of the mobile terminal, judging whether the sliding operation is positioned on the video playing control; and if the triggering operation is positioned on the video playing control, generating an adjusting instruction of the video playing progress.
In some embodiments, in determining whether the sliding operation is located on the video playback control, the processor 180 further performs: acquiring a coordinate interval of a display area of a video playing control; acquiring coordinate information of a sliding point of sliding operation; judging whether the coordinate information is located in a coordinate interval or not; and if the coordinate information is located in the coordinate interval, determining that the triggering operation is located on the video playing control.
In some embodiments, when the progress of the video playing is adjusted according to the first adjustment progress, the processor 180 further performs: acquiring a face image in a preset range in front of the mobile terminal, and determining a user using the mobile terminal currently according to a face area; correspondingly adjusting the video playing progress according to the first adjusting progress and the user currently using the mobile terminal;
in some embodiments, when the progress of the video playing is adjusted according to the second adjustment progress, the processor 180 further performs: acquiring a face image in a preset range in front of the mobile terminal, and determining a user using the mobile terminal currently according to a face area; and correspondingly adjusting the video playing progress according to the second adjusting progress and the user currently using the mobile terminal.
In some embodiments, when generating the first progress adjustment section and determining the first adjustment progress according to the first speed section and the first progress adjustment section, the processor 180 further performs: acquiring the total length and the maximum play control value of the video play control, and acquiring the distance between the movable point and the starting point of the video play control; generating a first progress adjusting interval according to the total length, the maximum playing control value and the distance; and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the adjustment progress of the moving speed in the first speed interval in the first progress adjustment interval according to the corresponding relation to obtain the first adjustment progress.
In some embodiments, when generating the second progress adjustment section and determining the second adjustment progress according to the second speed section and the second progress adjustment section, the processor 180 further performs: acquiring the total length and the maximum playing control value of the video playing control; reducing the maximum playing control value according to a preset proportion to obtain a target control value; acquiring the distance between the movable point and the starting point of the video playing control piece; generating a second progress adjusting interval according to the total length, the target control value and the distance; and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the adjustment progress of the moving speed in the second speed interval in the second progress adjustment interval according to the corresponding relation to obtain the second adjustment progress.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the video playing control method, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the video playback control methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
when the mobile terminal receives an adjusting instruction of video playing progress, acquiring a first moving speed of a movable point on a video playing control according to the adjusting instruction; when the first moving speed is in the first speed interval, generating a first progress adjusting interval, and determining a first adjusting progress according to the first speed interval and the first progress adjusting interval; correspondingly adjusting the video playing progress according to the first adjusting progress; when the moving speed of the movable point is changed from the first moving speed to the second moving speed and the second moving speed is in a second speed interval, generating a second progress adjusting interval, and determining a second adjusting progress according to the second speed interval and the second progress adjusting interval; and correspondingly adjusting the video playing progress according to the second adjusting progress.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any video playing control method provided in the embodiments of the present application, beneficial effects that can be achieved by any video playing control method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The video playing control method, the video playing control device, the mobile terminal and the storage medium provided by the embodiments of the present application are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present application, and the description of the embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A video playback control method, comprising:
when the mobile terminal receives an adjusting instruction of video playing progress, acquiring a first moving speed of a movable point on a video playing control according to the adjusting instruction;
when the first moving speed is in a first speed interval, generating a first progress adjusting interval, and determining a first adjusting progress according to the first speed interval and the first progress adjusting interval;
correspondingly adjusting the video playing progress according to the first adjusting progress;
when the moving speed of the movable point is changed from the first moving speed to a second moving speed and the second moving speed is in a second speed interval, generating a second progress adjusting interval and determining a second adjusting progress according to the second speed interval and the second progress adjusting interval;
and correspondingly adjusting the video playing progress according to the second adjusting progress.
2. The method according to claim 1, wherein the obtaining a first moving speed of a movable point on a video playing control according to the adjustment instruction comprises:
acquiring the initial position of the movable point on the video playing control according to the adjusting instruction, and acquiring the moving position of the movable point at intervals of preset time;
calculating the moving distance of the movable point according to the starting position and the moving position;
and calculating the moving speed of the movable point according to the moving distance and the preset time to obtain a first moving speed.
3. The video playback control method according to claim 1, wherein before the mobile terminal receives an instruction to adjust the progress of video playback and obtains the first moving speed of the movable point on the video playback control according to the instruction, the method further comprises:
when a sliding operation exists in a video playing interface of the mobile terminal, judging whether the sliding operation is positioned on the video playing control;
and if the sliding operation is positioned on the video playing control, generating an adjusting instruction of the video playing progress.
4. The video playback control method according to claim 3, wherein the determining whether the sliding operation is located on the video playback control includes:
acquiring a coordinate interval of a display area of the video playing control;
acquiring coordinate information of a sliding point of the sliding operation;
judging whether the coordinate information is located in the coordinate interval or not;
and if the coordinate information is located in the coordinate interval, determining that the sliding operation is located on the video playing control.
5. The video playing control method according to claim 1, wherein said adjusting the progress of video playing according to the first adjustment progress comprises:
acquiring a face image in a preset range in front of the mobile terminal, and determining a user currently using the mobile terminal according to the face area;
correspondingly adjusting the video playing progress according to the first adjusting progress and the user currently using the mobile terminal; or,
correspondingly adjusting the video playing progress according to the second adjustment progress comprises the following steps:
acquiring a face image in a preset range in front of the mobile terminal, and determining a user currently using the mobile terminal according to the face area;
and correspondingly adjusting the video playing progress according to the second adjusting progress and the user currently using the mobile terminal.
6. The video playback control method according to any one of claims 1 to 5, wherein the generating a first progress adjustment interval, and determining a first adjustment progress based on the first speed interval and the first progress adjustment interval includes:
acquiring the total length and the maximum play control value of a video play control, and acquiring the distance between the movable point and the starting point of the video play control;
generating a first progress adjusting interval according to the total length, the maximum playing control value and the distance;
and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the corresponding adjustment progress of the moving speed in the first speed interval in the first progress adjustment interval according to the corresponding relation to obtain a first adjustment progress.
7. The video playback control method according to any one of claims 1 to 5, wherein the generating a second progress adjustment interval and determining a second adjustment progress according to the second speed interval and the second progress adjustment interval includes:
acquiring the total length and the maximum playing control value of the video playing control;
reducing the maximum playing control value according to a preset proportion to obtain a target control value;
acquiring the distance between the movable point and the starting point of the video playing control;
generating a second progress adjusting interval according to the total length, the target control value and the distance;
and acquiring a corresponding relation between the speed interval and the progress adjustment, and determining the corresponding adjustment progress of the moving speed in the second speed interval in the second progress adjustment interval according to the corresponding relation to obtain a second adjustment progress.
8. A video playback control apparatus, comprising:
the speed acquisition module is used for acquiring a first moving speed of a movable point on the video playing control according to an adjusting instruction when the mobile terminal receives the adjusting instruction of the video playing progress;
the first determining module is used for generating a first progress adjusting interval when the first moving speed is located in a first speed interval, and determining a first adjusting progress according to the first speed interval and the first progress adjusting interval;
the first adjusting module is used for correspondingly adjusting the video playing progress according to the first adjusting progress;
a second determining module, configured to generate a second progress adjustment interval when the moving speed of the movable point is changed from the first moving speed to a second moving speed and the second moving speed is in a second speed interval, and determine a second adjustment progress according to the second speed interval and the second progress adjustment interval;
and the second adjusting module is used for correspondingly adjusting the video playing progress according to the second adjusting progress.
9. A mobile terminal comprising a processor and a memory, wherein the memory stores program codes, and the processor executes the video playback control method according to any one of claims 1 to 7 when calling the program codes in the memory.
10. A storage medium storing instructions adapted to be loaded by a processor to perform the steps of the video playback control method according to any one of claims 1 to 7.
CN201811555571.6A 2018-12-19 2018-12-19 Video playing control method, device, mobile terminal and storage medium Pending CN109618234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811555571.6A CN109618234A (en) 2018-12-19 2018-12-19 Video playing control method, device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811555571.6A CN109618234A (en) 2018-12-19 2018-12-19 Video playing control method, device, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN109618234A true CN109618234A (en) 2019-04-12

Family

ID=66008909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811555571.6A Pending CN109618234A (en) 2018-12-19 2018-12-19 Video playing control method, device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109618234A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112188274A (en) * 2020-09-30 2021-01-05 北京字节跳动网络技术有限公司 Method and device for adjusting video playing progress and electronic equipment
CN113076495A (en) * 2021-03-31 2021-07-06 维沃移动通信有限公司 Content display method, content display device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130209061A1 (en) * 2012-02-14 2013-08-15 Sony Mobile Communications Ab Multimedia playing control method, playing control module and playing terminal
CN104090705A (en) * 2014-07-28 2014-10-08 联想(北京)有限公司 Progress adjusting method and electronic device
CN105916038A (en) * 2016-04-19 2016-08-31 乐视控股(北京)有限公司 Video adjustment method and terminal
CN105933751A (en) * 2016-04-28 2016-09-07 北京小米移动软件有限公司 Method and device for adjusting play progress of media file
CN105975178A (en) * 2016-04-27 2016-09-28 北京小米移动软件有限公司 Progress bar display method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130209061A1 (en) * 2012-02-14 2013-08-15 Sony Mobile Communications Ab Multimedia playing control method, playing control module and playing terminal
CN104090705A (en) * 2014-07-28 2014-10-08 联想(北京)有限公司 Progress adjusting method and electronic device
CN105916038A (en) * 2016-04-19 2016-08-31 乐视控股(北京)有限公司 Video adjustment method and terminal
CN105975178A (en) * 2016-04-27 2016-09-28 北京小米移动软件有限公司 Progress bar display method and apparatus
CN105933751A (en) * 2016-04-28 2016-09-07 北京小米移动软件有限公司 Method and device for adjusting play progress of media file

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112188274A (en) * 2020-09-30 2021-01-05 北京字节跳动网络技术有限公司 Method and device for adjusting video playing progress and electronic equipment
CN112188274B (en) * 2020-09-30 2022-07-12 北京字节跳动网络技术有限公司 Method and device for adjusting video playing progress and electronic equipment
CN113076495A (en) * 2021-03-31 2021-07-06 维沃移动通信有限公司 Content display method, content display device, electronic equipment and storage medium
CN113076495B (en) * 2021-03-31 2024-06-21 维沃移动通信有限公司 Content display method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106778585B (en) A kind of face key point-tracking method and device
CN107817939A (en) A kind of image processing method and mobile terminal
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
CN110531915B (en) Screen operation method and terminal device
CN108920069B (en) Touch operation method and device, mobile terminal and storage medium
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN110351424A (en) Gesture interaction method and terminal
CN109683768B (en) Application operation method and mobile terminal
CN109542321B (en) A method and device for controlling content displayed on a screen
CN108958593B (en) Method for determining communication object and mobile terminal
CN106959761A (en) A terminal photographing method, device and terminal
CN113050863B (en) Page switching method, device, storage medium and electronic device
CN108196753B (en) Interface switching method and mobile terminal
CN107741814B (en) Display control method and mobile terminal
CN108279842A (en) A kind of function controlling method, function controlling device and terminal device
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal
CN109618234A (en) Video playing control method, device, mobile terminal and storage medium
CN109947345B (en) A fingerprint identification method and terminal device
CN108696638B (en) Control method of mobile terminal and mobile terminal
CN108234745B (en) A signal receiving method, mobile terminal and computer-readable storage medium
CN108170362B (en) Application running state control method and mobile terminal
CN111342519A (en) Charging control method and device, storage medium and mobile terminal
CN110413385B (en) Task management method, terminal device and medium
CN111031249B (en) Method and electronic device for assisting focus
CN111263008A (en) Incoming call reminding method and device, storage medium and mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190412