WO2020248527A1 - 视频文件播放方法、装置、存储介质及终端 - Google Patents

视频文件播放方法、装置、存储介质及终端 Download PDF

Info

Publication number
WO2020248527A1
WO2020248527A1 PCT/CN2019/120848 CN2019120848W WO2020248527A1 WO 2020248527 A1 WO2020248527 A1 WO 2020248527A1 CN 2019120848 W CN2019120848 W CN 2019120848W WO 2020248527 A1 WO2020248527 A1 WO 2020248527A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
touch
playback
video file
target
Prior art date
Application number
PCT/CN2019/120848
Other languages
English (en)
French (fr)
Inventor
何研
Original Assignee
惠州Tcl移动通信有限公司
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 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Publication of WO2020248527A1 publication Critical patent/WO2020248527A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Definitions

  • This application relates to the field of video playback, and in particular to a video file playback method, device, storage medium and terminal.
  • the embodiments of the present application provide a video file playback method, device, storage medium, and terminal, which can effectively improve the efficiency of video file browsing.
  • an embodiment of the present application also provides a method for playing a video file, including:
  • an embodiment of the present application also provides a video file playback device, including:
  • the receiving unit is used to receive video playback instructions
  • a playing unit configured to play the first video file according to the video playing instruction
  • the acquiring unit is configured to acquire the operation information and the touch position of the touch operation when a user's touch operation on the video playback interface is detected;
  • the judging unit is used to judge whether the touch position is located in the target operation area
  • the operation unit is configured to perform a corresponding video playback operation according to the target operation area and the operation information.
  • an embodiment of the present application also provides a terminal, including a processor and a memory, the memory stores a plurality of instructions, and the processor loads the instructions to execute the video file playback method described above. step.
  • the solution of the application extracts the operation information and the touch position of the user's touch operation on the playback interface, determines whether the touch operation is located in the target operation area according to the touch position, and executes the corresponding video playback operation based on the target operation area and the operation information to avoid The wrong touch operation triggers the function instructions of the current video playback interface, which effectively improves the efficiency of video file playback.
  • FIG. 1 is a schematic flowchart of a method for playing a video file provided by an embodiment of the application.
  • FIG. 2 is a schematic flowchart of another video file playback method provided by an embodiment of the application.
  • FIG. 3 is an operation interface diagram of a method for playing a video file provided by an embodiment of the application
  • FIG. 4 is a structural block diagram of a video file playback device provided by an embodiment of the application.
  • FIG. 5 is a structural block diagram of another video file playback device provided by an embodiment of this application.
  • FIG. 6 is a schematic structural diagram of a terminal provided by an embodiment of the application.
  • embodiments of the present application provide a video file playback method, device, storage medium, and terminal, which can improve video file browsing efficiency. Detailed descriptions are given below. It should be noted that the order of the following embodiments is not meant to limit the preferred order of the embodiments.
  • FIG. 1 is a schematic flowchart of a video file playback method provided by an embodiment of the application.
  • the video file playback method can be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palmtop computers, portable media players (Portable Media Player, PMP), and stationary terminals such as desktop computers.
  • the specific process of the video file playback method can be as follows:
  • multiple methods can be used to trigger the terminal to receive the video play instruction.
  • the user can trigger a video playback instruction by opening a video file and selecting a video player. Or by opening the video player and importing the video file to trigger the video playback instruction.
  • the first video file is stored in the video library.
  • the video files in the video library can belong to local video files, and the video files can be obtained in various ways. For example, a video file downloaded through the network, a video file obtained by sharing between terminal devices, or a video file obtained by using a terminal for video shooting.
  • the video file browsing method may further include the following process:
  • the playback modes include horizontal screen playback mode and vertical screen playback mode;
  • the video can be played in a landscape mode or a portrait mode.
  • the current playing mode is switched.
  • the current play mode is the landscape play mode, after receiving the switching instruction, it will switch to the portrait play mode.
  • the current play mode is portrait mode, and after receiving the switching instruction, it will switch to landscape mode.
  • the play mode switching instruction is realized by the mobile phone gyroscope.
  • a gyroscope is also called an angular velocity sensor, which is different from an accelerometer (G-sensor).
  • the switching instruction can be executed by rotating the screen of the mobile phone.
  • the target operation area can be divided into two operation areas A and B, and the target operation area is divided according to a preset area division ratio.
  • the target operation area can be divided up and down, then A represents the upper operation area, and B represents the lower operation area; the area division ratio can be set to 1/2, 2/3, 1/3, or 1/4.
  • the target operation area is adjusted based on the current video playback screen. For example, in portrait mode, area A is above the video playback screen. After switching to landscape mode, area A is still on top of the playback screen, but the position of area A has changed relative to the terminal screen.
  • the touch operation can be a series of actions generated by contact of a finger with the terminal screen.
  • the user applies a certain amount of pressure to the video playback interface with one finger, or the user touches the terminal screen with two fingers and moves a certain distance on the video operation interface.
  • the corresponding touch operation will include some operation information.
  • the operation information may include: touch intensity, touch movement direction, or touch movement distance.
  • the touch force can be 1 Newton or 2 Newtons, etc.; the touch movement direction can be up, down, or right, etc.; the touch movement distance can be a distance within the length of the terminal screen such as 1 cm or 1 decimeter.
  • the touch position may be the coordinates of a certain point on the video playback interface.
  • the bottom line of the video playback interface is defined as the horizontal coordinate X axis
  • the left line of the video playback interface is defined as the vertical coordinate Y axis.
  • step 104 Determine whether the touch position is located within the target operation area; if yes, perform step 105; otherwise, perform step 106.
  • step 105 it is determined whether the touch position is located within the target operation area. If yes, skip to step 105, and perform a corresponding video playback operation according to the operation information. If not, skip to step 106 to end the operation.
  • the operation information includes: the first movement direction and the touch movement distance; the step of "performing a corresponding video playback operation according to the operation information" may include the following process:
  • the acquired operation information is the first movement direction and the touch movement distance.
  • the first movement direction and the touch movement distance are used to execute the video file playback switching instruction.
  • the first moving direction corresponds to the sequence of the video files in the preset video library, and the first sorting result is obtained.
  • the first moving direction may be left, and at this time, the video files in the corresponding video library are sorted in reverse order, that is, the video files in the video library are sorted from bottom to top.
  • the first moving direction may be right. At this time, the video files in the corresponding video library are sorted in a positive order, that is, the video files in the video library are sorted from top to bottom.
  • the touch movement distance corresponds to the first quantity information
  • the first quantity information represents the number of video files.
  • the corresponding first quantity information may be one, or two or other numbers.
  • the second video file to be switched is determined according to the first sorting result and the first quantity information. For example, when the first moving direction is left, the video files in the corresponding video library are sorted in reverse order, that is, the video files in the video library are sorted from bottom to top.
  • the first quantity information corresponding to the touch movement distance of 1 cm is one, and the second video file to be switched at this time is the previous video file arranged in the first video file in the video library. Then switch the first video file currently playing to the second video file.
  • the step of "sorting the video files in the preset video library based on the first moving direction” may include the following process:
  • the preset video types may be movies, TV dramas, variety shows, etc.
  • the first movement direction can be divided into a first movement positive direction and a first movement reverse direction.
  • the selectable direction is up, down, left, or right.
  • the similarity of the video content may be determined based on the characters appearing on the video screen to determine the similarity before several video files. Sort the similar video files in the video library according to the similarity of the video content, which is convenient for users to switch to similar video files for playback operations.
  • the operation information includes: a first touch force and a touch operation area, and the touch operation area includes a first operation subarea and a second operation subarea; then the step "perform the corresponding video playback operation according to the operation information", you can Including the following processes:
  • the touch operation area includes a first operation sub-area and a second operation sub-area.
  • the touch operation subregion where the touch position is located is determined from the first operation subregion and the second operation subregion.
  • the video files are sorted based on the touch operation sub-region to obtain the second sorting result.
  • the touch operation sub-area is located in the first operation sub-area, and the video files in the preset video library can be sorted in positive order, that is, the video file list in the video library is sorted from top to bottom. At this time, the positive sorting is the first 2. Sort results. Acquire the second quantity information corresponding to the first touch intensity.
  • the first touch force may be 1 Newton
  • the corresponding second quantity information is 1.
  • the third video file to be switched is determined according to the second sorting result and the second quantity information. For example, according to the above second sorting result being a positive order and the second quantity information being 1, it can be determined that the third video file to be switched is the next video file arranged in the first video file in the video library, and then the currently playing The first video file is switched to the third video file.
  • the operation information includes: a second movement direction, a second touch force, and a touch duration; the step of "performing a corresponding video playback operation according to the operation information" may include the following process:
  • the video playback timing is determined based on the second moving direction, where the timing may be clockwise or reverse time.
  • clockwise can indicate the forward operation of video progress adjustment
  • reverse time can indicate the backward operation of video progress adjustment.
  • the video playback speed is determined based on the second touch intensity.
  • the second touch force is 1 Newton
  • the corresponding video playback speed is 1 frame/sec.
  • the touch duration may be 1 second
  • the target playback progress of the first video file is determined according to the video playback timing, video playback speed, and touch duration.
  • the video playback speed is 1 frame/sec
  • the touch duration is 1 second
  • the video file playback method provided in this embodiment performs a playback operation on the first video file through the received video playback instruction, and collects the touch position and touch information of the user's touch operation when it is detected that the user performs a touch operation on the video playback interface If the touch position is located in the target operation area, the video file switching operation or the video file playback progress adjustment operation is performed according to the function of the target operation area and the user touch information, which can help the user to quickly switch the current video file to the video file they want to watch , Improve browsing efficiency.
  • FIG. 2 is a schematic flowchart of another video file playback method provided by an embodiment of the application.
  • a mobile phone is used as an example for description.
  • the specific scenario application of the video file playback method can be as follows:
  • the mobile phone receives a video playback instruction triggered by a user.
  • the user turns on the phone, enters the local video library of the phone, selects any video file, and triggers the playback instruction through the video player that comes with the phone.
  • the user turns on the phone, enters the video player that comes with the phone, and triggers the playback instruction by importing a local video file.
  • the mobile phone plays the video file through the player according to the video play instruction.
  • the video player is the player that comes with the mobile phone system
  • the video file is the local video in the mobile video folder, the video file that the user has downloaded or Video files taken by mobile phones.
  • the user performs a touch operation on the video playback interface.
  • the screen interface of the mobile phone is in the operation interface diagram shown in Figure 3.
  • the screen shown on the left side of Figure 3 indicates that the current video playback mode is portrait mode.
  • the screen shown on the right side of Figure 3 indicates that the current video playback mode is the landscape playback mode.
  • the user can operate the current video play interface by touching the screen with a finger to click, slide the interface and other touch operations.
  • the mobile phone determines whether the touch position is located in the target operation area according to the acquired touch position information.
  • the entire playback interface is divided into two areas, A and B.
  • the upper 3/4 area of the video playback interface is the video file playback switching operation area A, and the lower 1/ Area 4 is area B for adjusting the playback progress of video files.
  • the mobile phone performs a corresponding video playback operation according to the user's operation information.
  • the touch position S is located in the video file playback switching operation area A.
  • the user can switch the currently playing video to the previous n video files in the video library by sliding the finger to the left at the current touch position S. Swipe to the right to convert the currently playing video to the next n video files in the video library, where the sliding distance corresponds to the number of video files switched.
  • the sliding distance is 1 cm, the number of video files corresponding to the switch n is 1. Users can switch to the video file they want to watch according to the touch sliding direction and touch sliding distance.
  • the video file playback switching operation area can be divided into two areas, and the video file playback switching operation area A is equally divided into two left and right areas according to the vertical division.
  • the currently playing video can be switched to the upper n video files in the video library.
  • the currently playing video can be switched to the next n video files in the video library.
  • the user can determine the number of switched video files according to the touch intensity. When the touch intensity is 1 Newton, the corresponding number of switched video files n is 1. The user can switch to the video file he wants to watch by touching the operation area of the position S and the touch intensity.
  • the touch position S is located in the video file playback progress adjustment operation area B.
  • the user slides his finger to the left at the current touch position S, and can perform a backward operation on the progress of the currently played video file. Swipe to the right to advance the progress of the currently playing video file.
  • the user controls the speed of the video progress adjustment by touch intensity, and determines the time for the video progress adjustment by the touch duration.
  • the touch duration is 1 second
  • the corresponding video progress adjustment time is 1 second.
  • the touch force is 1 Newton
  • the corresponding video progress adjustment speed is 1 frame per second.
  • the user can determine the target playback progress of the currently playing video file through the video playback timing, video playback speed, and touch duration.
  • the touch position S where the user performs a touch operation on the mobile phone interface is outside the target operation area A or B. At this time, no instructions are executed according to the user's touch operation information, and no change occurs in the current video playback interface.
  • the video file playback method provided in this embodiment performs a playback operation on the first video file through the received video playback instruction, and collects the touch position and touch information of the user's touch operation when it is detected that the user performs a touch operation on the video playback interface If the touch position is located in the target operation area, the video file switching operation or the video file playback progress adjustment operation is performed according to the function of the target operation area and the user touch information, which can help the user to quickly switch the current video file to the video file they want to watch At the same time, quickly adjust the playback progress of the video file to improve browsing efficiency.
  • the embodiment of the present application also provides an apparatus based on the foregoing video file playback method.
  • the meanings of the nouns are the same as in the above-mentioned video file playback method, and the specific implementation details can refer to the description in the method embodiment.
  • FIG. 4 is a structural block diagram of a video file playback device provided by an embodiment of the application, including:
  • the receiving unit 401 is configured to receive a video playing instruction
  • the playing unit 402 is configured to play the first video file according to the video playing instruction
  • the acquiring unit 403 is configured to acquire the operation information and the touch position of the touch operation when a user's touch operation on the video playback interface is detected;
  • the determining unit 404 is configured to determine whether the touch position is located in the target operation area
  • the operation unit 405 is configured to perform a corresponding video playback operation according to the target operation area and the operation information.
  • the operating unit 405 includes a first sorting subunit 4051, a first obtaining subunit 4052, and an operating subunit 4053:
  • the first sorting subunit 4051 is configured to sort the video files in the preset video library based on the first moving direction to obtain a first sorting result
  • the first obtaining subunit 4052 is configured to obtain the first quantity information corresponding to the touch movement distance
  • the operation subunit 4053 is used to switch the currently played first video file to the second video file.
  • the operation subunit 4051 can be used to:
  • the operating unit 405 includes: a determining subunit, a second sorting subunit, a second acquiring subunit, a second determining subunit, and a switching subunit;
  • the determining subunit is configured to determine the touch operation subarea where the touch position is located from the first operation subarea and the second operation subarea;
  • the second sorting subunit is configured to sort the video files based on the touch operation sub-region to obtain a second sorting result
  • the second acquiring subunit is configured to acquire second quantity information corresponding to the first touch intensity
  • the second determining subunit is configured to determine the third video file to be switched according to the second sorting result and the second quantity information
  • the switching subunit is used to switch the currently playing first video file to the third video file.
  • the operation unit 405 includes: a third determination subunit, a fourth determination subunit, a fifth determination subunit, and an adjustment subunit;
  • the third determining subunit is configured to determine a video playback timing based on the second moving direction
  • the fourth determining subunit is configured to determine the video playback speed based on the second touch intensity
  • the fifth determining subunit is configured to determine the target playback progress of the first video file according to the video playback timing, video playback speed, and touch duration;
  • the adjustment subunit is used to adjust the first video file from the current playback progress to the target playback progress.
  • the video playback device further includes:
  • the detection unit is used to determine whether a switching instruction of the video playback mode is detected, and the playback mode includes a horizontal screen playback mode and a vertical screen playback mode;
  • a mode switching unit configured to switch the first video file from the current mode to the target playback mode according to the switching instruction
  • the adjustment unit is configured to adjust the position of the target operation area according to the target play mode.
  • the video file playback device extracts the operation information and the touch position of the user's touch operation on the playback interface, determines whether the touch operation is located in the target operation area according to the touch position, and executes it based on the target operation area and the operation information Corresponding video playback operations can prevent erroneous touch operations from triggering the functional instructions of the current video playback interface, and effectively improve the efficiency of video file playback.
  • the terminal may include a radio frequency (RF, Radio Frequency) circuit 601, a memory 602 including one or more computer-readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606,
  • RF radio frequency
  • a wireless fidelity (WiFi, Wireless Fidelity) module 607 includes a processor 608 with one or more processing cores, a power supply 609 and other components.
  • the RF circuit 601 can be used to receive and send signals in the process of sending and receiving information. In particular, after receiving the downlink information of the base station, it is processed by one or more processors 608; in addition, the uplink data is sent to the base station.
  • the RF circuit 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, Subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc.
  • SIM Subscriber identity module
  • LNA Low Noise Amplifier
  • duplexer etc.
  • the RF circuit 601 can also communicate with the network and other devices through wireless communication.
  • the memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by running the software programs and modules stored in the memory 602.
  • the memory 602 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the memory 602 may further include a memory controller to provide the processor 608 and the input unit 603 to access the memory 602.
  • the input unit 603 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the input unit 603 may include a touch-sensitive surface and other input devices.
  • a touch-sensitive surface also called a touch screen or a touchpad, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch-sensitive surface or on the touch-sensitive surface. Operation near the surface), and drive the corresponding connection device according to the preset program.
  • the input unit 603 may also include other input devices.
  • other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick.
  • the display unit 604 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the server. These graphical user interfaces may be composed of graphics, text, icons, videos, and any combination thereof.
  • the display unit 604 may include a display panel.
  • the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-Emitting Diode), etc.
  • the touch-sensitive surface can cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it is sent to the processor 608 to determine the type of the touch event, and then the processor 608 displays the display panel according to the type of the touch event.
  • Corresponding visual output is provided on the panel.
  • the touch-sensitive surface and the display panel are used as two independent components to realize the input and input functions, in some embodiments, the touch-sensitive surface and the display panel may be integrated to realize the input and output functions.
  • the terminal may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor can turn off the display panel and the backlight when the server moves to the ear.
  • the audio circuit 606, speakers, and microphones can provide an audio interface between the user and the server.
  • the audio circuit 606 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and then converted
  • the audio data is processed by the audio data output processor 608, and then sent to, for example, a terminal through the RF circuit 601, or the audio data is output to the memory 602 for further processing.
  • the audio circuit 606 may also include an earplug jack to provide communication between a peripheral headset and the server.
  • WiFi is a short-distance wireless transmission technology.
  • the terminal can help users send and receive emails, browse web pages, and access streaming media, etc. It provides users with wireless broadband Internet access.
  • FIG. 6 shows the WiFi module 607, it can be understood that it is not a necessary component of the terminal, and can be omitted as needed without changing the essence of the invention.
  • the processor 608 is the control center of the terminal. It uses various interfaces and lines to connect the various parts of the entire mobile phone, and executes the server's operations by running or executing software programs and modules stored in the memory 602, and calling data stored in the memory 602. Various functions and processing data to monitor the mobile phone as a whole.
  • the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. , The modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 608.
  • the terminal also includes a power source 609 (such as a battery) for supplying power to various components.
  • a power source 609 (such as a battery) for supplying power to various components.
  • the power source can be logically connected to the processor 608 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
  • the power supply 609 may also include any components such as one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, and a power status indicator.
  • the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs and stores the executable file in the memory.
  • the applications in 602 can realize various functions:
  • the touch operation includes a series of actions caused by a finger contact with a terminal screen
  • the solution of the application extracts the operation information and the touch position of the user's touch operation on the playback interface, determines whether the touch operation is located in the target operation area according to the touch position, and executes the corresponding video playback operation based on the target operation area and the operation information to avoid The wrong touch operation triggers the function instructions of the current video playback interface, which effectively improves the efficiency of video file playback.
  • an embodiment of the present application provides a storage medium in which multiple instructions are stored, and the instructions can be loaded by a processor to execute the steps in any video file playback method provided in the embodiments of the present application.
  • the instruction can perform the following steps:
  • Receive a video play instruction play the first video file according to the video play instruction; when a user's touch operation on the video play interface is detected, obtain the operation information and touch position of the touch operation; determine whether the touch position is located at the target In the operation area; if yes, perform a corresponding video playback operation according to the target operation area and the operation information.
  • the storage medium may include: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
  • the instructions stored in the storage medium can execute the steps in any video file playback method provided in the embodiments of this application, it can implement what is possible in any video file playback method provided in the embodiments of this application.
  • the beneficial effects achieved refer to the previous embodiments for details, which will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本申请实施例公开的视频文件播放方法,包括:接收视频播放指令;根据所述视频播放指令播放第一视频文件;当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置;判断所述触摸位置是否位于目标操作区域内;若是,则根据所述目标操作区域和所述操作信息执行相应的视频播放操作。

Description

视频文件播放方法、装置、存储介质及终端
本申请要求于2019年06月10日提交中国专利局、申请号为201910498625.8、发明名称为“一种视频文件播放方法、装置、存储介质及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及视频播放领域,具体涉及一种视频文件播放方法、装置、存储介质及终端。
背景技术
随着网络技术的发展,越来越多的用户选择手机,平板电脑等便携移动终端对视频进行观看。
在通过视频播放器观看视频时,可以对当前视频播放文件进行切换,具体可以通过单击终端视频播放界面调出播放器控件,通过操作播放器控件,切换视频文件进行浏览。
发明内容
本申请实施例提供一种视频文件播放方法、装置、存储介质及终端,可有效提高视频文件浏览效率。
第一方面,本申请实施例还提供一种视频文件播放方法,包括:
接收视频播放指令;
根据所述视频播放指令播放第一视频文件;
当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置;
判断所述触摸位置是否位于目标操作区域内;
若是,则根据所述操作信息执行相应的视频播放操作。
第二方面,本申请实施例还提供一种视频文件播放装置,包括:
接收单元,用于接收视频播放指令;
播放单元,用于根据所述视频播放指令播放第一视频文件;
获取单元,用于当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置;
判断单元,用于判断所述触摸位置是否位于目标操作区域内;
操作单元,用于根据所述目标操作区域和所述操作信息执行相应的视频播放操作。
第三方面,本申请实施例还提供了一种终端,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述指令以执行如上所述的视频文件播放方法中的步骤。
本申请方案通过提取用户针对播放界面进行触摸操作的操作信息以及触摸位置,根据触摸位置判定其触摸操作是否位于目标操作区域内,基于目标操作区域和所述操作信息执行相应的视频播放操作,避免失误的触摸操作触发当前视频播放界面的功能指令,有效提高视频文件播放的效率。
发明概述
技术问题
问题的解决方案
发明的有益效果
对附图的简要说明
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种视频文件播放方法的流程示意图。
图2为本申请实施例提供的又一种视频文件播放方法的流程示意图;
图3为本申请实施例提供的一种视频文件播放方法的操作界面图;
图4为本申请实施例提供的一种视频文件播放装置的结构框图;
图5为本申请实施例提供的又一种视频文件播放装置的结构框图;
图6为本申请实施例提供的终端的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
基于上述问题,本申请实施例提供一种视频文件播放方法、装置、存储介质及终端,可提高视频文件浏览效率。以下分别进行详细说明。需说明的是,以下实施例的顺序不作为对实施例优选顺序的限定。
请参阅图1,图1为本申请实施例提供的视频文件播放方法的一种流程示意图。该视频文件播放方法可以应用于诸如手机、平板电脑、笔记本电脑,掌上电脑、便携式媒体播放器(Portable Media Player,PMP)等移动终端,以及诸如台式计算机等固定终端。该视频文件播放方法的具体流程可以如下:
101、接收视频播放指令。
在本实施例中,可以采用多种方式来触发终端接收视频播放指令。例如,用户可以通过打开视频文件,选择视频播放器来触发视频播放指令。或者通过打开视频播放器,导入视频文件来触发视频播放指令。
102、根据视频播放指令播放第一视频文件。
其中,第一视频文件存储在视频库中。该视频库中的视频文件可以属于本地视频文件,视频文件可以通过多种方式获取。例如,通过网络下载的视频文件,终端设备之间分享得到的视频文件或者是利用终端进行视频拍摄得到的视频文件。
在一些实施例中,该视频文件浏览方法还可以包括以下流程:
(11)判断是否检测到视频播放模式的切换指令,播放模式包括横屏播放模式和竖屏播放模式;
(12)若是,则根据切换指令将第一视频文件从当前模式切换为目标播放模式;
(13)根据目标播放模式对目标操作区域的位置进行调整。具体的,在播放第 一视频文件时,可以通过横屏播放模式或者竖屏播放模式对该视频进行播放。在播放器播放该第一视频文件的过程中,若检测到视频播放模式的切换指令,则对当前播放模式进行切换。例如,当前播放模式为横屏播放模式,接收切换指令后,切换为竖屏播放模式。或者当前播放模式为竖屏播放模式,接收到切换指令后,切换为横屏播放模式。其中,播放模式切换指令通过手机陀螺仪实现。陀螺仪又叫角速度传感器,是不同于加速度计(G-sensor)的,他的测量物理量是偏转、倾斜时的转动角速度。在手机上,仅用加速度计没办法测量或重构出完整的3D动作,测不到转动的动作的,G-sensor只能检测轴向的线性动作。但陀螺仪则可以对转动、偏转的动作做很好的测量,这样就可以精确分析判断出使用者的实际动作。而后根据动作,可以对手机做相应的操作。具体的,该切换指令可以通过旋转手机屏幕来执行。
在本实施例中,在视频播放过程中,由于播放模式进行了切换,相应的,视频播放界面的目标操作区域的位置也会进行调整。在目标操作区域内执行相关操作可以切换视频播放文件或者调节视频播放进度。例如,目标操作区域可划分为A,B两个操作区域,按照预设的区域划分比例对目标操作区域进行划分。具体实施时,目标操作区域可按上下划分,则A表示上方操作区域,B表示下方操作区域;区域划分比例可以设置为1/2、2/3、1/3或1/4等。
当视频播放由竖屏播放模式切换为横屏播放模式时,以当前视频播放画面为基准来对目标操作区域进行调整。例如,在竖屏播放模式时,A区域处于视频播放画面的上方。当切换为横屏播放模式后,A区域仍处于播放画面的上方,但是相对于终端屏幕来说,A区域的位置发生了变化。
103、当检测到用户针对视频播放界面的触摸操作时,获取触摸操作的操作信息以及触摸位置。
其中,触摸操作可以是通过手指与终端屏幕接触产生一系列动作。例如,用户通过一根手指向视频播放界面施加一定力度的按压操作,或者用户通过两个手指与终端屏幕接触,并在视频操作界面移动一定距离。
具体的,当用户对视频播放界面进行触摸操作,相应的触摸操作会包括一些操作信息。例如,操作信息可以包括:触摸力度大小、触摸移动方向或触摸移动 距离等。触摸力度大小可以为1牛顿或2牛顿等;触摸移动方向,可以为上、下、或右等;触摸移动距离,可以为1厘米或1分米等终端屏幕长度范围内的距离。
触摸位置可以是视频播放界面的某一点的坐标。例如,将视频播放界面的下边线定义为水平坐标X轴,将视频播放界面的左边线定义为垂直坐标Y轴,通过获取该触摸位置在水平坐标X轴上的距离,在垂直坐标Y轴上的距离,用(X,Y)来确定触摸位置相对于视频播放界面的具***置点。
104、判断所述触摸位置是否位于目标操作区域内;若是,执行步骤105,否则执行步骤106。
具体的,根据目标操作区域与视频播放界面的联系,判断触摸位置是否位于目标操作区域内。若是,则跳转至步骤105,根据所述操作信息执行相应的视频播放操作。若否,则跳转至步骤106,结束操作。
105、根据所述操作信息执行相应的视频播放操作。
在一些实施例中,操作信息包括:第一移动方向和触摸移动距离;则步骤“根据操作信息执行相应的视频播放操作”,可以包括以下流程:
(21)基于第一移动方向对预设视频库中的视频文件进行排序,得到第一排序结果;
(22)获取所述触摸移动距离对应的第一数量信息;
(23)根据第一排序结果和所述第一数量信息确定待切换的第二视频文件;
(24)将当前播放的第一视频文件切换为所述第二视频文件。
具体的,当获取到的操作信息为第一移动方向和触摸移动距离。第一移动方向和触摸移动距离用来执行视频文件播放切换指令。其中,第一移动方向对应预设视频库中的视频文件排列顺序,得到第一排序结果。例如,第一移动方向可以为左,此时对应的视频库中的视频文件排序为逆序即按照视频库中视频列表从下往上进行排序。第一移动方向可以为右,此时对应的视频库中的视频文件排序为正序即按照视频库中视频列表从上往下进行排序。触摸移动距离对应第一数量信息,第一数量信息表示为视频文件的个数。例如,触摸移动距离为1厘米时,对应的第一数量信息可以为1个,也可以为2个或者其他个数。根据第一 排序结果和第一数量信息确定待切换的第二视频文件。例如,当第一移动方向为左,此时对应的视频库中的视频文件排序为逆序即按照视频库中视频列表从下往上进行排序。触摸移动距离为1厘米对应的第一数量信息为1个,此时的待切换的第二视频文件即为视频库中排列在第一视频文件的上一个视频文件。然后将当前播放的第一视频文件切换为第二视频文件。
在一些实施例中,步骤“基于第一移动方向对预设视频库中的视频文件进行排序”,可以包括以下流程:
(211)根据第一移动方向从多个预设视频类型中确定目标视频类型;
(212)从预设视频库中筛选出目标类型视频对应的候选视频文件;
(213)按照视频内容的相似度对预设视频库中的同类型视频文件进行排序。
其中,预设视频类型可以为电影类、电视剧类、综艺类等。第一移动方向可分为第一移动正方向和第一移动反方向。例如,可选择方向为上、下、左或右等。根据第一移动方向选择进行播放的视频类型。例如,按照第一移动正方向进行操作,可切换到不同类型的视频。按照第一移动反方向进行操作,可以切换到相同类型视频的不同视频文件。
其中,视频内容相似度可以是根据视频画面出现的人物来确定几个视频文件之前的相似度。根据视频内容的相似度对视频库里的同类视频文件排序,方便用户切换到相似视频文件进行播放操作。
在一些实施例中,操作信息包括:第一触摸力度和触摸操作区域,触摸操作区域包括第一操作子区域和第二操作子区域;则步骤“根据操作信息执行相应的视频播放操作”,可以包括以下流程:
(31)从第一操作子区域和第二操作子区域中确定触摸位置所在的触摸操作子区域;
(32)基于触摸操作子区域对视频文件进行排序,得到第二排序结果;
(33)获取第一触摸力度对应的第二数量信息;
(34)根据第二排序结果和第二数量信息确定待切换的第三视频文件;
(35)将当前播放的第一视频文件切换为第三视频文件。
具体的,当获取到的操作信息为第一触摸力度和触摸操作区域。其中,触摸操 作区域包括第一操作子区域和第二操作子区域。从第一操作子区域和第二操作子区域中确定所述触摸位置所在的触摸操作子区域。其中,基于触摸操作子区域对视频文件进行排序,得到第二排序结果。例如,触摸操作子区域位于第一操作子区域,可以将预设视频库中的视频文件按照正序排序即按照视频库中视频文件列表从上往下进行排序,此时的正序排序为第二排序结果。获取第一触摸力度对应的第二数量信息。例如,第一触摸力度可以为1牛顿,相应的第二数量信息为1个。根据第二排序结果和第二数量信息确定待切换的第三视频文件。例如,根据上述第二排序结果为正序,第二数量信息为1个,可以确定待切换的第三视频文件为视频库中排列在第一视频文件的下一个视频文件,然后将当前播放的第一视频文件切换为第三视频文件。
在一些实施例中,操作信息包括:第二移动方向、第二触摸力度和触摸时长;则步骤“根据操作信息执行相应的视频播放操作”,可以包括以下流程:
(41)基于第二移动方向确定视频播放时序;
(42)基于第二触摸力度确定视频播放速度;
(43)按照视频播放时序、视频播放速度和触摸时长确定第一视频文件的目标播放进度;
(44)将第一视频文件从当前播放进度调节至目标播放进度。
具体的,当获取到的操作信息为第二移动方向和第二触摸力度。其中,基于第二移动方向确定视频播放时序,其中,时序可以为顺时或者逆时。例如,顺时可以表示视频进度调节的前进操作,逆时可以表示视频进度调节的后退操作。基于所述第二触摸力度确定视频播放速度。例如,第二触摸力度为1牛顿,对应的视频播放速度为1帧/秒。触摸时长可以为1秒,按照视频播放时序、视频播放速度和触摸时长确定所述第一视频文件的目标播放进度。例如,根据上述视频播放时序为正序,视频播放速度为1帧/秒,触摸时长为1秒确定第一视频文件的目标播放进度为当前播放进度的下1帧,然后将第一视频文件从当前播放进度调节至下一帧画面。
106、结束操作。
具体的,当触摸位置位于目标操作区域外,则不对当前视频播放执行任何操作 。
本实施例提供的视频文件播放方法,通过接收到的视频播放指令,对第一视频文件进行播放操作,当检测到用户对视频播放界面进行触摸操作时,收集用户触摸操作的触摸位置和触摸信息,若触摸位置是位于目标操作区域,根据目标操作区域的功能和用户触摸信息执行视频文件切换操作或者视频文件播放进度调节操作,可以帮助用户将当前视频播放文件快速切换到想要观看的视频文件,提高浏览效率。
请参考图2,图2为本申请实施例提供的又一种视频文件播放方法的流程示意图。在本实施例中,以手机作为终端为例来进行描述。该视频文件播放方法的具体场景应用可以如下:
201、手机接收到用户触发的视频播放指令。
用户开启手机,进入手机本地视频库,选择任一视频文件,通过手机自带的视频播放器来触发播放指令。或者用户开启手机,进入手机自带的视频播放器,通过导入本地视频文件来触发播放指令。
202、手机根据视频播放指令通过播放器播放视频文件。
按照上一步骤中的任一种方式来对视频文件进行播放,其中视频播放器为手机***自带的播放器,视频文件为手机视频文件夹中的本地视频,为用户已经下载的视频文件或者通过手机拍摄的视频文件。
203、用户在视频播放界面进行触摸操作。
参考图3,当选择视频文件进行播放时,手机屏幕界面处于如图3所示的操作界面图。图3左边所示的画面表示当前视频播放模式为竖屏播放模式。图3右边所示的画面表示当前视频播放模式为横屏播放模式。此时,手机屏幕界面处于任一播放模式时,用户即可对当前视频播放界面进行操作,通过手指与屏幕接触,进行点击,滑动界面等触摸操作。
204、手机根据获取到的触摸位置信息,判断触摸位置是否位于目标操作区域内。
参考图3,如图3左边的视频播放界面所示,整个播放界面划分为A,B两个区域,视频播放界面上方3/4区域为视频文件播放切换操作区域A,视频播放界面下 方1/4区域为视频文件播放进度调节区域B。当用户对视频播放界面进行触摸操作时,检测当前的触摸位置S,若用户进行触摸操作时的触摸位置S位于目标操作区域内,则执行步骤205;若用户进行触摸操作时的触摸位置S位于目标操作区域外,则执行步骤206。
205、手机根据用户的操作信息执行相应的视频播放操作。
当触摸位置S位于视频文件播放切换操作区域A时。一种情况:用户通过手指在当前触摸位置S向左滑动,可以将当前播放视频切换为视频库中的上n个视频文件。向右滑动,可以将当前播放视频为视频库中的下n个视频文件,其中滑动距离对应切换的视频文件数量。当滑动距离为1厘米时,对应切换的视频文件数量n为1。用户可以根据触摸滑动方向和触摸滑动距离切换到想要观看的视频文件。
当触摸位置位于视频文件播放切换操作区域A时。另一种情况:视频文件播放切换操作区域可分为两个区域,按照竖直划分将视频文件播放切换操作区域A平均划分左右两个区域。当用户触摸位置S在左边区域时,可以将当前播放视频切换为视频库中的上n个视频文件。当用户触摸位置在右边区域时,可以将当前播放视频切换为视频库中的下n个视频文件。用户可以根据触摸力度确定切换的视频文件的数量,当触摸力度为1牛顿时,对应切换的视频文件数量n为1。用户可通过触摸位置S的操作区域以及触摸力度切换到想要观看的视频文件。
当触摸位置S位于视频文件播放进度调节操作区域B时。用户通过手指在当前触摸位置S向左滑动,可以对当前播放的视频文件的进度进行后退操作。向右滑动,可以对当前播放的视频文件的进度进行前进操作。用户通过触摸力度来控制视频进度调节的速度,通过触摸时长确定视频进度调节的时间。当触摸时长为1秒时,对应的视频进度调节的时间为1秒。当触摸力度为1牛顿时,对应的视频进度调节的速度为1帧每秒。用户可以通过视频播放时序、视频播放速度和触摸时长来确定当前播放的视频文件的目标播放进度。
206、结束操作。
用户在手机界面进行触摸操作的触摸位置S在目标操作区域A或者B以外,此时,不用根据用户触摸操作信息去执行任何指令,则当前视频播放界面不发生任 何改变。
本实施例提供的视频文件播放方法,通过接收到的视频播放指令,对第一视频文件进行播放操作,当检测到用户对视频播放界面进行触摸操作时,收集用户触摸操作的触摸位置和触摸信息,若触摸位置是位于目标操作区域,根据目标操作区域的功能和用户触摸信息执行视频文件切换操作或者视频文件播放进度调节操作,可以帮助用户将当前视频播放文件快速切换到想要观看的视频文件,同时,对视频文件播放进度进行快速调节,提高浏览效率。
为便于更好的实施本申请实施例提供的视频文件播放方法,本申请实施例还提供一种基于上述视频文件播放方法的装置。其中名词的含义与上述视频文件播放方法中相同,具体实现细节可以参考方法实施例中的说明。
请参阅图4,图4为本申请实施例提供的一种视频文件播放装置的结构框图,包括:
接收单元401,用于接收视频播放指令;
播放单元402,用于根据所述视频播放指令播放第一视频文件;
获取单元403,用于当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置;
判断单元404,用于判断所述触摸位置是否位于目标操作区域内;
操作单元405,用于根据所述目标操作区域和所述操作信息执行相应的视频播放操作。
参考图5,其中,操作单元405包括第一排序子单元4051、第一获取子单元4052和操作子单元4053:
第一排序子单元4051,用于基于所述第一移动方向对预设视频库中的视频文件进行排序,得到第一排序结果;
第一获取子单元4052,用于获取所述触摸移动距离对应的第一数量信息;
操作子单元4053,用于将当前播放的第一视频文件切换为所述第二视频文件。
在一些实施例中,操作子单元4051可以用于:
根据所述第一移动方向从多个预设视频类型中确定目标视频类型;从所述预设视频库中筛选出所述目标类型视频对应的候选视频文件;按照视频内容的相似 度对预设视频库中的同类型视频文件进行排序。
在一些实施例中,操作单元405包括:确定子单元、第二排序子单元、第二获取子单元、第二确定子单元和切换子单元;
所述确定子单元,用于从所述第一操作子区域和第二操作子区域中确定所述触摸位置所在的触摸操作子区域;
所述第二排序子单元,用于基于所述触摸操作子区域对视频文件进行排序,得到第二排序结果;
所述第二获取子单元,用于获取所述第一触摸力度对应的第二数量信息;
所述第二确定子单元,用于根据所述第二排序结果和所述第二数量信息确定待切换的第三视频文件;
切换子单元,用于将当前播放的第一视频文件切换为所述第三视频文件。
在一些实施例中,操作单元405包括:第三确定子单元、第四确定子单元、第五确定子单元和调节子单元;
所述第三确定子单元,用于基于所述第二移动方向确定视频播放时序;
所述第四确定子单元,用于基于所述第二触摸力度确定视频播放速度;
所述第五确定子单元,用于按照所述视频播放时序、视频播放速度和触摸时长确定所述第一视频文件的目标播放进度;
所述调节子单元,用于将所述第一视频文件从当前播放进度调节至所述目标播放进度。
在一些实施例中,视频播放装置还包括:
检测单元单元,用于判断是否检测到视频播放模式的切换指令,所述播放模式包括横屏播放模式和竖屏播放模式;
模式切换单元,用于根据所述切换指令将第一视频文件从当前模式切换为目标播放模式;
调整单元,用于根据所述目标播放模式对所述目标操作区域的位置进行调整。
本实施例提供的视频文件播放装置,通过提取用户针对播放界面进行触摸操作的操作信息以及触摸位置,根据触摸位置判定其触摸操作是否位于目标操作区域内,基于目标操作区域和所述操作信息执行相应的视频播放操作,避免失误 的触摸操作触发当前视频播放界面的功能指令,有效提高视频文件播放的效率。
本申请实施例还提供一种终端。如图6所示,该终端可以包括射频(RF,Radio Frequency)电路601、包括有一个或一个以上计算机可读存储介质的存储器602、输入单元603、显示单元604、传感器605、音频电路606、无线保真(WiFi,Wireless Fidelity)模块607、包括有一个或者一个以上处理核心的处理器608、以及电源609等部件。本领域技术人员可以理解,图6中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
RF电路601可用于收发信息过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器608处理;另外,将涉及上行的数据发送给基站。通常,RF电路601包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,RF电路601还可以通过无线通信与网络和其他设备通信。
存储器602可用于存储软件程序以及模块,处理器608通过运行存储在存储器602的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器602还可以包括存储器控制器,以提供处理器608和输入单元603对存储器602的访问。
输入单元603可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元603可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近 的操作),并根据预先设定的程式驱动相应的连接装置。除了触敏表面,输入单元603还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元604可用于显示由用户输入的信息或提供给用户的信息以及服务器的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元604可包括显示面板,可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器608以确定触摸事件的类型,随后处理器608根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图6中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。
终端还可包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在服务器移动到耳边时,关闭显示面板和背光。
音频电路606、扬声器,传声器可提供用户与服务器之间的音频接口。音频电路606可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路606接收后转换为音频数据,再将音频数据输出处理器608处理后,经RF电路601以发送给比如终端,或者将音频数据输出至存储器602以便进一步处理。音频电路606还可能包括耳塞插孔,以提供外设耳机与服务器的通信。
WiFi属于短距离无线传输技术,终端通过WiFi模块607可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块607,但是可以理解的是,其并不属于终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器608是终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器602内的软件程序和模块,以及调用存储在存储器602内的数据,执行服务器的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器608可包括一个或多个处理核心;优选的,处理器608可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器608中。
终端还包括给各个部件供电的电源609(比如电池),优选的,电源可以通过电源管理***与处理器608逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。电源609还可以包括一个或一个以上的直流或交流电源、再充电***、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
具体在本实施例中,终端中的处理器608会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器602中,并由处理器608来运行存储在存储器602中的应用程序,从而实现各种功能:
接收视频播放指令;
获取所述第一视频文件,根据所述视频播放指令播放第一视频文件;
当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置,所述触摸操作包括手指与终端屏幕接触产生一系列动作;
判断所述触摸位置是否位于目标操作区域内;
若是,则根据所述操作信息执行相应的视频播放操作。
本申请方案通过提取用户针对播放界面进行触摸操作的操作信息以及触摸位置,根据触摸位置判定其触摸操作是否位于目标操作区域内,基于目标操作区域和所述操作信息执行相应的视频播放操作,避免失误的触摸操作触发当前视频播放界面的功能指令,有效提高视频文件播放的效率。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于计算机可读存储介质中,并由处理器进行加载和执行。
为此,本申请实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种视频文件播放方法中的步骤。例如,该指令可以执行如下步骤:
接收视频播放指令;根据所述视频播放指令播放第一视频文件;当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置;判断所述触摸位置是否位于目标操作区域内;若是,则根据所述目标操作区域和所述操作信息执行相应的视频播放操作。
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
由于该存储介质中所存储的指令,可以执行本申请实施例所提供的任一种视频文件播放方法中的步骤,因此,可以实现本申请实施例所提供的任一种视频文件播放方法所能实现的有益效果,详见前面的实施例,在此不再赘述。
以上对本申请实施例所提供的视频文件播放方法、装置、存储介质及终端进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种视频文件播放方法,其包括:
    接收视频播放指令;
    根据所述视频播放指令播放第一视频文件;
    当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置;
    判断所述触摸位置是否位于目标操作区域内;
    若是,则根据所述操作信息执行相应的视频播放操作。
  2. 根据权利要求1所述的方法,其中,所述操作信息包括:第一移动方向和触摸移动距离;
    所述根据所述操作信息执行相应的视频播放操作,包括:
    基于所述第一移动方向对预设视频库中的视频文件进行排序,得到第一排序结果;
    获取所述触摸移动距离对应的第一数量信息;
    根据所述第一排序结果和所述第一数量信息确定待切换的第二视频文件;
    将当前播放的第一视频文件切换为所述第二视频文件。
  3. 根据权利要求2所述的方法,其中,所述基于所述第一移动方向对视频文件进行排序,包括:
    根据所述第一移动方向从多个预设视频类型中确定目标视频类型;
    从所述预设视频库中筛选出所述目标类型视频对应的候选视频文件;
    按照视频内容的相似度对预设视频库中的同类型视频文件进行排序。
  4. 根据权利要求1所述的方法,其中,所述操作信息包括:第一触摸力度和触摸操作区域,所述触摸操作区域包括第一操作子区域和第二操作子区域;
    所述根据所述操作信息执行相应的视频播放操作,包括:
    从所述第一操作子区域和第二操作子区域中确定所述触摸位置所在的触摸操作子区域;
    基于所述触摸操作子区域对视频文件进行排序,得到第二排序结果;
    获取所述第一触摸力度对应的第二数量信息;
    根据所述第二排序结果和所述第二数量信息确定待切换的第三视频文件;
    将当前播放的第一视频文件切换为所述第三视频文件。
  5. 根据权利要求1所述的方法,其中,所述操作信息,包括:第二移动方向、第二触摸力度和触摸时长;
    所述根据所述操作信息执行相应的视频播放操作,包括:
    基于所述第二移动方向确定视频播放时序;
    基于所述第二触摸力度确定视频播放速度;
    按照所述视频播放时序、视频播放速度和触摸时长确定所述第一视频文件的目标播放进度;
    将所述第一视频文件从当前播放进度调节至所述目标播放进度。
  6. 根据权利要求1所述的方法,其中,还包括:
    判断是否检测到视频播放模式的切换指令,所述播放模式包括横屏播放模式和竖屏播放模式;
    若是,则根据所述切换指令将第一视频文件从当前模式切换为目标播放模式;
    根据所述目标播放模式对所述目标操作区域的位置进行调整。
  7. 根据权利要求1所述的方法,其中,在所述根据所述视频播放指令播放第一视频文件之前,还包括:
    获取所述第一视频文件。
  8. 一种存储介质,其中,所述存储介质存储有多条指令,所述指令适于处理器进行加载,以执行以下步骤:
    接收视频播放指令;
    根据所述视频播放指令播放第一视频文件;
    当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置;
    判断所述触摸位置是否位于目标操作区域内;
    若是,则根据所述操作信息执行相应的视频播放操作。
  9. 根据权利要求8所述的存储介质,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:
    基于所述第一移动方向对预设视频库中的视频文件进行排序,得到第一排序结果;
    获取所述触摸移动距离对应的第一数量信息;
    根据所述第一排序结果和所述第一数量信息确定待切换的第二视频文件;
    将当前播放的第一视频文件切换为所述第二视频文件。
  10. 根据权利要求8所述的存储介质,其中,所述基于所述第一移动方向对视频文件进行排序的步骤,包括:
    根据所述第一移动方向从多个预设视频类型中确定目标视频类型;
    从所述预设视频库中筛选出所述目标类型视频对应的候选视频文件;
    按照视频内容的相似度对预设视频库中的同类型视频文件进行排序。
  11. 根据权利要求8所述的存储介质,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:
    从所述第一操作子区域和第二操作子区域中确定所述触摸位置所在的触摸操作子区域;
    基于所述触摸操作子区域对视频文件进行排序,得到第二排序结果;
    获取所述第一触摸力度对应的第二数量信息;
    根据所述第二排序结果和所述第二数量信息确定待切换的第三视频文件;
    将当前播放的第一视频文件切换为所述第三视频文件。
  12. 根据权利要求8所述的存储介质,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:
    基于所述第二移动方向确定视频播放时序;
    基于所述第二触摸力度确定视频播放速度;
    按照所述视频播放时序、视频播放速度和触摸时长确定所述第一视频文件的目标播放进度;
    将所述第一视频文件从当前播放进度调节至所述目标播放进度。
  13. 根据权力要求8所述的存储介质,其中,还包括以下步骤:
    判断是否检测到视频播放模式的切换指令,所述播放模式包括横屏播放模式和竖屏播放模式;
    若是,则根据所述切换指令将第一视频文件从当前模式切换为目标播放模式;
    根据所述目标播放模式对所述目标操作区域的位置进行调整。
  14. 根据权力要求8所述的存储介质,其中,在所述根据所述视频播放指令播放第一视频文件的步骤之前,还包括以下步骤:
    获取所述第一视频文件。
  15. 一种终端,其中,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述指令以执行以下步骤:
    接收视频播放指令;
    获取所述第一视频文件,根据所述视频播放指令播放第一视频文件;
    当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置,所述触摸操作包括手指与终端屏幕接触产生一系列动作;
    判断所述触摸位置是否位于目标操作区域内;
    若是,则根据所述操作信息执行相应的视频播放操作。
  16. 根据权利要求15所述的终端,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:
    基于所述第一移动方向对预设视频库中的视频文件进行排序,得到第一排序结果;
    获取所述触摸移动距离对应的第一数量信息;
    根据所述第一排序结果和所述第一数量信息确定待切换的第二视频文件;
    将当前播放的第一视频文件切换为所述第二视频文件。
  17. 根据权利要求15所述的终端,其中,所述基于所述第一移动方向对视频文件进行排序的步骤,包括:
    根据所述第一移动方向从多个预设视频类型中确定目标视频类型;
    从所述预设视频库中筛选出所述目标类型视频对应的候选视频文件;
    按照视频内容的相似度对预设视频库中的同类型视频文件进行排序。
  18. 根据权利要求15所述的终端,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:
    从所述第一操作子区域和第二操作子区域中确定所述触摸位置所在的触摸操作子区域;
    基于所述触摸操作子区域对视频文件进行排序,得到第二排序结果;
    获取所述第一触摸力度对应的第二数量信息;
    根据所述第二排序结果和所述第二数量信息确定待切换的第三视频文件;
    将当前播放的第一视频文件切换为所述第三视频文件。
  19. 根据权利要求15所述的终端,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:
    基于所述第二移动方向确定视频播放时序;
    基于所述第二触摸力度确定视频播放速度;
    按照所述视频播放时序、视频播放速度和触摸时长确定所述第一视频文件的目标播放进度;
    将所述第一视频文件从当前播放进度调节至所述目标播放进度。
  20. 根据权力要求15所述的终端,其中,还包括以下步骤:
    判断是否检测到视频播放模式的切换指令,所述播放模式包括横屏播放模式和竖屏播放模式;
    若是,则根据所述切换指令将第一视频文件从当前模式切换为目标播放模式;
    根据所述目标播放模式对所述目标操作区域的位置进行调整。
PCT/CN2019/120848 2019-06-10 2019-11-26 视频文件播放方法、装置、存储介质及终端 WO2020248527A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910498625.8A CN110221765B (zh) 2019-06-10 2019-06-10 一种视频文件播放方法、装置、存储介质及终端
CN201910498625.8 2019-06-10

Publications (1)

Publication Number Publication Date
WO2020248527A1 true WO2020248527A1 (zh) 2020-12-17

Family

ID=67816175

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120848 WO2020248527A1 (zh) 2019-06-10 2019-11-26 视频文件播放方法、装置、存储介质及终端

Country Status (2)

Country Link
CN (1) CN110221765B (zh)
WO (1) WO2020248527A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221765B (zh) * 2019-06-10 2021-07-06 惠州Tcl移动通信有限公司 一种视频文件播放方法、装置、存储介质及终端
CN110519621B (zh) * 2019-09-20 2022-06-10 北京字节跳动网络技术有限公司 视频推荐方法、装置、电子设备及计算机可读介质
CN113132808B (zh) * 2019-12-30 2022-07-29 腾讯科技(深圳)有限公司 视频生成方法、装置及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100017825A1 (en) * 2008-07-21 2010-01-21 Samsung Electronics Co., Ltd. Broadcast receiving apparatus and method for providing widget service thereof
CN108616771A (zh) * 2018-04-25 2018-10-02 维沃移动通信有限公司 视频播放方法及移动终端
CN108737897A (zh) * 2018-05-22 2018-11-02 腾讯科技(深圳)有限公司 视频播放方法、装置、设备及存储介质
CN110221765A (zh) * 2019-06-10 2019-09-10 惠州Tcl移动通信有限公司 一种视频文件播放方法、装置、存储介质及终端

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8564543B2 (en) * 2006-09-11 2013-10-22 Apple Inc. Media player with imaged based browsing
US9262002B2 (en) * 2010-11-03 2016-02-16 Qualcomm Incorporated Force sensing touch screen
CN105426080B (zh) * 2015-11-26 2019-05-14 深圳市金立通信设备有限公司 一种图片切换方法及终端
CN105528173A (zh) * 2015-12-08 2016-04-27 深圳市金立通信设备有限公司 一种多媒体操作方法及终端
CN105516783A (zh) * 2015-12-10 2016-04-20 广东欧珀移动通信有限公司 一种多媒体内容播放进度控制方法及用户终端
CN106940614A (zh) * 2017-02-15 2017-07-11 珠海市魅族科技有限公司 一种交互方法及装置
CN107562349B (zh) * 2017-09-11 2020-06-30 广州酷狗计算机科技有限公司 一种执行处理的方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100017825A1 (en) * 2008-07-21 2010-01-21 Samsung Electronics Co., Ltd. Broadcast receiving apparatus and method for providing widget service thereof
CN108616771A (zh) * 2018-04-25 2018-10-02 维沃移动通信有限公司 视频播放方法及移动终端
CN108737897A (zh) * 2018-05-22 2018-11-02 腾讯科技(深圳)有限公司 视频播放方法、装置、设备及存储介质
CN110221765A (zh) * 2019-06-10 2019-09-10 惠州Tcl移动通信有限公司 一种视频文件播放方法、装置、存储介质及终端

Also Published As

Publication number Publication date
CN110221765A (zh) 2019-09-10
CN110221765B (zh) 2021-07-06

Similar Documents

Publication Publication Date Title
US11054988B2 (en) Graphical user interface display method and electronic device
US10419823B2 (en) Method for controlling multimedia playing, apparatus thereof and storage medium
US10397649B2 (en) Method of zooming video images and mobile display terminal
US10838619B2 (en) Display device, display controlling method, and computer program
WO2017202348A1 (zh) 一种视频播放方法、装置及计算机存储介质
US10725646B2 (en) Method and apparatus for switching screen interface and terminal
CN109062467B (zh) 分屏应用切换方法、装置、存储介质和电子设备
US9377868B2 (en) Sliding control method and terminal device thereof
WO2017125027A1 (zh) 一种进行信息展示的方法和装置、计算机存储介质
US10133480B2 (en) Method for adjusting input-method keyboard and mobile terminal thereof
CN109710139B (zh) 一种页面处理方法、装置、终端以及存储介质
WO2018157812A1 (zh) 一种实现视频分支选择播放的方法及装置
WO2020248527A1 (zh) 视频文件播放方法、装置、存储介质及终端
CN111897480B (zh) 播放进度调节方法、装置及电子设备
WO2020007114A1 (zh) 分屏应用切换方法、装置、存储介质和电子设备
CN109062464B (zh) 触控操作方法、装置、存储介质和电子设备
TWI559759B (zh) 進度指示列的顯示方法和相關裝置
WO2020007116A1 (zh) 分屏窗口调节方法、装置、存储介质和电子设备
WO2020007144A1 (zh) 分屏应用切换方法、装置、存储介质及电子设备
CN108446156B (zh) 一种应用程序控制方法及终端
CN111966254B (zh) 一种图像拍摄方法、装置、存储介质及终端
WO2021037074A1 (zh) 音频输出方法及电子设备
CN106791916B (zh) 一种推荐音频数据的方法、装置和***
CN108052258B (zh) 一种终端任务的处理方法、任务处理装置及移动终端
CN110688051B (zh) 一种录屏操作方法、装置、计算机可读存储介质及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19932897

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19932897

Country of ref document: EP

Kind code of ref document: A1