WO2020248527A1 - Video file playing method and apparatus, and storage medium and terminal - Google Patents

Video file playing method and apparatus, and storage medium and terminal 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
French (fr)
Chinese (zh)
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/en

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

Disclosed is a video file playing method, comprising: receiving a video playing instruction; playing a first video file according to the video playing instruction; when a touch operation of a user for a video playing interface is detected, acquiring operation information of the touch operation and the touch position thereof; determining whether the touch position is located in a target operation region; and if so, executing a corresponding video playing operation according to the target operation region and the operation information.

Description

视频文件播放方法、装置、存储介质及终端Video file playback method, device, storage medium and terminal
本申请要求于2019年06月10日提交中国专利局、申请号为201910498625.8、发明名称为“一种视频文件播放方法、装置、存储介质及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 10, 2019, the application number is 201910498625.8, and the invention title is "a method, device, storage medium, and terminal for playing video files". The reference is incorporated in this application.
技术领域Technical field
本申请涉及视频播放领域,具体涉及一种视频文件播放方法、装置、存储介质及终端。This application relates to the field of video playback, and in particular to a video file playback method, device, storage medium and terminal.
背景技术Background technique
随着网络技术的发展,越来越多的用户选择手机,平板电脑等便携移动终端对视频进行观看。With the development of network technology, more and more users choose mobile phones, tablet computers and other portable mobile terminals to watch videos.
在通过视频播放器观看视频时,可以对当前视频播放文件进行切换,具体可以通过单击终端视频播放界面调出播放器控件,通过操作播放器控件,切换视频文件进行浏览。When watching a video through a video player, you can switch the current video playback file. Specifically, you can click the terminal video playback interface to call up the player controls, and operate the player controls to switch the video files for browsing.
发明内容Summary of the invention
本申请实施例提供一种视频文件播放方法、装置、存储介质及终端,可有效提高视频文件浏览效率。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.
第一方面,本申请实施例还提供一种视频文件播放方法,包括:In the first aspect, an embodiment of the present application also provides a method for playing a video file, including:
接收视频播放指令;Receive video playback instructions;
根据所述视频播放指令播放第一视频文件;Playing the first video file according to the video playing instruction;
当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置;When a user's touch operation on the video playback interface is detected, acquiring the operation information and touch position of the touch operation;
判断所述触摸位置是否位于目标操作区域内;Judging whether the touch position is located in the target operation area;
若是,则根据所述操作信息执行相应的视频播放操作。If so, perform a corresponding video playback operation according to the operation information.
第二方面,本申请实施例还提供一种视频文件播放装置,包括:In the second aspect, 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.
第三方面,本申请实施例还提供了一种终端,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述指令以执行如上所述的视频文件播放方法中的步骤。In a third aspect, 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.
发明概述Summary of the invention
技术问题technical problem
问题的解决方案The solution to the problem
发明的有益效果The beneficial effects of the invention
对附图的简要说明Brief description of the drawings
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1为本申请实施例提供的一种视频文件播放方法的流程示意图。FIG. 1 is a schematic flowchart of a method for playing a video file provided by an embodiment of the application.
图2为本申请实施例提供的又一种视频文件播放方法的流程示意图;2 is a schematic flowchart of another video file playback method provided by an embodiment of the application;
图3为本申请实施例提供的一种视频文件播放方法的操作界面图;FIG. 3 is an operation interface diagram of a method for playing a video file provided by an embodiment of the application;
图4为本申请实施例提供的一种视频文件播放装置的结构框图;4 is a structural block diagram of a video file playback device provided by an embodiment of the application;
图5为本申请实施例提供的又一种视频文件播放装置的结构框图;FIG. 5 is a structural block diagram of another video file playback device provided by an embodiment of this application;
图6为本申请实施例提供的终端的结构示意图。FIG. 6 is a schematic structural diagram of a terminal provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work are within the protection scope of this application.
基于上述问题,本申请实施例提供一种视频文件播放方法、装置、存储介质及终端,可提高视频文件浏览效率。以下分别进行详细说明。需说明的是,以下实施例的顺序不作为对实施例优选顺序的限定。Based on the foregoing problems, 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.
请参阅图1,图1为本申请实施例提供的视频文件播放方法的一种流程示意图。该视频文件播放方法可以应用于诸如手机、平板电脑、笔记本电脑,掌上电脑、便携式媒体播放器(Portable Media Player,PMP)等移动终端,以及诸如台式计算机等固定终端。该视频文件播放方法的具体流程可以如下:Please refer to FIG. 1. 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:
101、接收视频播放指令。101. Receive a video playback instruction.
在本实施例中,可以采用多种方式来触发终端接收视频播放指令。例如,用户可以通过打开视频文件,选择视频播放器来触发视频播放指令。或者通过打开视频播放器,导入视频文件来触发视频播放指令。In this embodiment, multiple methods can be used to trigger the terminal to receive the video play instruction. For example, 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.
102、根据视频播放指令播放第一视频文件。102. Play the first video file according to the video play instruction.
其中,第一视频文件存储在视频库中。该视频库中的视频文件可以属于本地视频文件,视频文件可以通过多种方式获取。例如,通过网络下载的视频文件,终端设备之间分享得到的视频文件或者是利用终端进行视频拍摄得到的视频文件。Among them, 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.
在一些实施例中,该视频文件浏览方法还可以包括以下流程:In some embodiments, the video file browsing method may further include the following process:
(11)判断是否检测到视频播放模式的切换指令,播放模式包括横屏播放模式和竖屏播放模式;(11) Determine whether a switching instruction of the video playback mode is detected. The playback modes include horizontal screen playback mode and vertical screen playback mode;
(12)若是,则根据切换指令将第一视频文件从当前模式切换为目标播放模式;(12) If yes, switch the first video file from the current mode to the target playback mode according to the switching instruction;
(13)根据目标播放模式对目标操作区域的位置进行调整。具体的,在播放第 一视频文件时,可以通过横屏播放模式或者竖屏播放模式对该视频进行播放。在播放器播放该第一视频文件的过程中,若检测到视频播放模式的切换指令,则对当前播放模式进行切换。例如,当前播放模式为横屏播放模式,接收切换指令后,切换为竖屏播放模式。或者当前播放模式为竖屏播放模式,接收到切换指令后,切换为横屏播放模式。其中,播放模式切换指令通过手机陀螺仪实现。陀螺仪又叫角速度传感器,是不同于加速度计(G-sensor)的,他的测量物理量是偏转、倾斜时的转动角速度。在手机上,仅用加速度计没办法测量或重构出完整的3D动作,测不到转动的动作的,G-sensor只能检测轴向的线性动作。但陀螺仪则可以对转动、偏转的动作做很好的测量,这样就可以精确分析判断出使用者的实际动作。而后根据动作,可以对手机做相应的操作。具体的,该切换指令可以通过旋转手机屏幕来执行。(13) Adjust the position of the target operation area according to the target playback mode. Specifically, when the first video file is played, the video can be played in a landscape mode or a portrait mode. In the process of playing the first video file by the player, if a switching instruction of the video playing mode is detected, the current playing mode is switched. For example, the current play mode is the landscape play mode, after receiving the switching instruction, it will switch to the portrait play mode. Or the current play mode is portrait mode, and after receiving the switching instruction, it will switch to landscape mode. Among them, 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). Its physical quantity is the angular velocity of rotation during deflection and tilt. On the mobile phone, only the accelerometer cannot measure or reconstruct the complete 3D motion. If the rotating motion cannot be detected, the G-sensor can only detect the axial linear motion. But the gyroscope can make a good measurement of the rotation and deflection movement, so that it can accurately analyze and judge the actual movement of the user. Then according to the action, you can do the corresponding operation on the mobile phone. Specifically, the switching instruction can be executed by rotating the screen of the mobile phone.
在本实施例中,在视频播放过程中,由于播放模式进行了切换,相应的,视频播放界面的目标操作区域的位置也会进行调整。在目标操作区域内执行相关操作可以切换视频播放文件或者调节视频播放进度。例如,目标操作区域可划分为A,B两个操作区域,按照预设的区域划分比例对目标操作区域进行划分。具体实施时,目标操作区域可按上下划分,则A表示上方操作区域,B表示下方操作区域;区域划分比例可以设置为1/2、2/3、1/3或1/4等。In this embodiment, during the video playback process, since the playback mode is switched, the position of the target operation area of the video playback interface will also be adjusted accordingly. Perform related operations in the target operation area to switch video playback files or adjust video playback progress. For example, 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. In specific implementation, 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.
当视频播放由竖屏播放模式切换为横屏播放模式时,以当前视频播放画面为基准来对目标操作区域进行调整。例如,在竖屏播放模式时,A区域处于视频播放画面的上方。当切换为横屏播放模式后,A区域仍处于播放画面的上方,但是相对于终端屏幕来说,A区域的位置发生了变化。When video playback is switched from portrait mode to landscape mode, 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.
103、当检测到用户针对视频播放界面的触摸操作时,获取触摸操作的操作信息以及触摸位置。103. When a user's touch operation on the video playback interface is detected, obtain operation information of the touch operation and a touch position.
其中,触摸操作可以是通过手指与终端屏幕接触产生一系列动作。例如,用户通过一根手指向视频播放界面施加一定力度的按压操作,或者用户通过两个手指与终端屏幕接触,并在视频操作界面移动一定距离。Among them, the touch operation can be a series of actions generated by contact of a finger with the terminal screen. For example, 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.
具体的,当用户对视频播放界面进行触摸操作,相应的触摸操作会包括一些操作信息。例如,操作信息可以包括:触摸力度大小、触摸移动方向或触摸移动 距离等。触摸力度大小可以为1牛顿或2牛顿等;触摸移动方向,可以为上、下、或右等;触摸移动距离,可以为1厘米或1分米等终端屏幕长度范围内的距离。Specifically, when the user performs a touch operation on the video playback interface, the corresponding touch operation will include some operation information. For example, 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.
触摸位置可以是视频播放界面的某一点的坐标。例如,将视频播放界面的下边线定义为水平坐标X轴,将视频播放界面的左边线定义为垂直坐标Y轴,通过获取该触摸位置在水平坐标X轴上的距离,在垂直坐标Y轴上的距离,用(X,Y)来确定触摸位置相对于视频播放界面的具体位置点。The touch position may be the coordinates of a certain point on the video playback interface. For example, the bottom line of the video playback interface is defined as the horizontal coordinate X axis, and the left line of the video playback interface is defined as the vertical coordinate Y axis. By obtaining the distance of the touch position on the horizontal coordinate X axis, it is on the vertical coordinate Y axis Use (X, Y) to determine the specific position of the touch position relative to the video playback interface.
104、判断所述触摸位置是否位于目标操作区域内;若是,执行步骤105,否则执行步骤106。104. Determine whether the touch position is located within the target operation area; if yes, perform step 105; otherwise, perform step 106.
具体的,根据目标操作区域与视频播放界面的联系,判断触摸位置是否位于目标操作区域内。若是,则跳转至步骤105,根据所述操作信息执行相应的视频播放操作。若否,则跳转至步骤106,结束操作。Specifically, according to the connection between the target operation area and the video playback interface, 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.
105、根据所述操作信息执行相应的视频播放操作。105. Perform a corresponding video playback operation according to the operation information.
在一些实施例中,操作信息包括:第一移动方向和触摸移动距离;则步骤“根据操作信息执行相应的视频播放操作”,可以包括以下流程:In some embodiments, 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:
(21)基于第一移动方向对预设视频库中的视频文件进行排序,得到第一排序结果;(21) Sorting the video files in the preset video library based on the first moving direction to obtain the first sorting result;
(22)获取所述触摸移动距离对应的第一数量信息;(22) Acquire the first quantity information corresponding to the touch movement distance;
(23)根据第一排序结果和所述第一数量信息确定待切换的第二视频文件;(23) Determine the second video file to be switched according to the first sorting result and the first quantity information;
(24)将当前播放的第一视频文件切换为所述第二视频文件。(24) Switch the currently playing first video file to the second video file.
具体的,当获取到的操作信息为第一移动方向和触摸移动距离。第一移动方向和触摸移动距离用来执行视频文件播放切换指令。其中,第一移动方向对应预设视频库中的视频文件排列顺序,得到第一排序结果。例如,第一移动方向可以为左,此时对应的视频库中的视频文件排序为逆序即按照视频库中视频列表从下往上进行排序。第一移动方向可以为右,此时对应的视频库中的视频文件排序为正序即按照视频库中视频列表从上往下进行排序。触摸移动距离对应第一数量信息,第一数量信息表示为视频文件的个数。例如,触摸移动距离为1厘米时,对应的第一数量信息可以为1个,也可以为2个或者其他个数。根据第一 排序结果和第一数量信息确定待切换的第二视频文件。例如,当第一移动方向为左,此时对应的视频库中的视频文件排序为逆序即按照视频库中视频列表从下往上进行排序。触摸移动距离为1厘米对应的第一数量信息为1个,此时的待切换的第二视频文件即为视频库中排列在第一视频文件的上一个视频文件。然后将当前播放的第一视频文件切换为第二视频文件。Specifically, when 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. Wherein, the first moving direction corresponds to the sequence of the video files in the preset video library, and the first sorting result is obtained. For example, 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, and the first quantity information represents the number of video files. For example, when the touch movement distance is 1 cm, 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.
在一些实施例中,步骤“基于第一移动方向对预设视频库中的视频文件进行排序”,可以包括以下流程:In some embodiments, the step of "sorting the video files in the preset video library based on the first moving direction" may include the following process:
(211)根据第一移动方向从多个预设视频类型中确定目标视频类型;(211) Determine the target video type from multiple preset video types according to the first moving direction;
(212)从预设视频库中筛选出目标类型视频对应的候选视频文件;(212) Filter out candidate video files corresponding to the target type video from the preset video library;
(213)按照视频内容的相似度对预设视频库中的同类型视频文件进行排序。(213) Sort the video files of the same type in the preset video library according to the similarity of the video content.
其中,预设视频类型可以为电影类、电视剧类、综艺类等。第一移动方向可分为第一移动正方向和第一移动反方向。例如,可选择方向为上、下、左或右等。根据第一移动方向选择进行播放的视频类型。例如,按照第一移动正方向进行操作,可切换到不同类型的视频。按照第一移动反方向进行操作,可以切换到相同类型视频的不同视频文件。Among them, 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. For example, the selectable direction is up, down, left, or right. Select the type of video to be played according to the first moving direction. For example, by operating in the positive direction of the first movement, you can switch to different types of videos. Operate in the opposite direction of the first movement to switch to different video files of the same type of video.
其中,视频内容相似度可以是根据视频画面出现的人物来确定几个视频文件之前的相似度。根据视频内容的相似度对视频库里的同类视频文件排序,方便用户切换到相似视频文件进行播放操作。Wherein, 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.
在一些实施例中,操作信息包括:第一触摸力度和触摸操作区域,触摸操作区域包括第一操作子区域和第二操作子区域;则步骤“根据操作信息执行相应的视频播放操作”,可以包括以下流程:In some embodiments, 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:
(31)从第一操作子区域和第二操作子区域中确定触摸位置所在的触摸操作子区域;(31) Determine the touch operation subarea where the touch position is located from the first operation subarea and the second operation subarea;
(32)基于触摸操作子区域对视频文件进行排序,得到第二排序结果;(32) Sort the video files based on the touch operation sub-region to obtain a second sort result;
(33)获取第一触摸力度对应的第二数量信息;(33) Obtain the second quantity information corresponding to the first touch intensity;
(34)根据第二排序结果和第二数量信息确定待切换的第三视频文件;(34) Determine the third video file to be switched according to the second sorting result and the second quantity information;
(35)将当前播放的第一视频文件切换为第三视频文件。(35) Switch the currently playing first video file to the third video file.
具体的,当获取到的操作信息为第一触摸力度和触摸操作区域。其中,触摸操 作区域包括第一操作子区域和第二操作子区域。从第一操作子区域和第二操作子区域中确定所述触摸位置所在的触摸操作子区域。其中,基于触摸操作子区域对视频文件进行排序,得到第二排序结果。例如,触摸操作子区域位于第一操作子区域,可以将预设视频库中的视频文件按照正序排序即按照视频库中视频文件列表从上往下进行排序,此时的正序排序为第二排序结果。获取第一触摸力度对应的第二数量信息。例如,第一触摸力度可以为1牛顿,相应的第二数量信息为1个。根据第二排序结果和第二数量信息确定待切换的第三视频文件。例如,根据上述第二排序结果为正序,第二数量信息为1个,可以确定待切换的第三视频文件为视频库中排列在第一视频文件的下一个视频文件,然后将当前播放的第一视频文件切换为第三视频文件。Specifically, when the acquired operation information is the first touch force and the touch operation area. Wherein, 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. Wherein, the video files are sorted based on the touch operation sub-region to obtain the second sorting result. For example, 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. For example, the first touch force may be 1 Newton, and 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.
在一些实施例中,操作信息包括:第二移动方向、第二触摸力度和触摸时长;则步骤“根据操作信息执行相应的视频播放操作”,可以包括以下流程:In some embodiments, 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:
(41)基于第二移动方向确定视频播放时序;(41) Determine the video playback timing based on the second moving direction;
(42)基于第二触摸力度确定视频播放速度;(42) Determine the video playback speed based on the second touch intensity;
(43)按照视频播放时序、视频播放速度和触摸时长确定第一视频文件的目标播放进度;(43) Determine the target playback progress of the first video file according to the video playback timing, video playback speed, and touch duration;
(44)将第一视频文件从当前播放进度调节至目标播放进度。(44) Adjust the first video file from the current playback progress to the target playback progress.
具体的,当获取到的操作信息为第二移动方向和第二触摸力度。其中,基于第二移动方向确定视频播放时序,其中,时序可以为顺时或者逆时。例如,顺时可以表示视频进度调节的前进操作,逆时可以表示视频进度调节的后退操作。基于所述第二触摸力度确定视频播放速度。例如,第二触摸力度为1牛顿,对应的视频播放速度为1帧/秒。触摸时长可以为1秒,按照视频播放时序、视频播放速度和触摸时长确定所述第一视频文件的目标播放进度。例如,根据上述视频播放时序为正序,视频播放速度为1帧/秒,触摸时长为1秒确定第一视频文件的目标播放进度为当前播放进度的下1帧,然后将第一视频文件从当前播放进度调节至下一帧画面。Specifically, when the acquired operation information is the second movement direction and the second touch force. Wherein, the video playback timing is determined based on the second moving direction, where the timing may be clockwise or reverse time. For example, clockwise can indicate the forward operation of video progress adjustment, and reverse time can indicate the backward operation of video progress adjustment. The video playback speed is determined based on the second touch intensity. For example, the second touch force is 1 Newton, and the corresponding video playback speed is 1 frame/sec. The touch duration may be 1 second, and the target playback progress of the first video file is determined according to the video playback timing, video playback speed, and touch duration. For example, according to the above video playback sequence as positive sequence, the video playback speed is 1 frame/sec, and the touch duration is 1 second, it is determined that the target playback progress of the first video file is the next frame of the current playback progress, and then the first video file is removed from The current playback progress is adjusted to the next frame.
106、结束操作。106. End the operation.
具体的,当触摸位置位于目标操作区域外,则不对当前视频播放执行任何操作 。Specifically, when the touch position is outside the target operation area, no operation is performed on the current video playback.
本实施例提供的视频文件播放方法,通过接收到的视频播放指令,对第一视频文件进行播放操作,当检测到用户对视频播放界面进行触摸操作时,收集用户触摸操作的触摸位置和触摸信息,若触摸位置是位于目标操作区域,根据目标操作区域的功能和用户触摸信息执行视频文件切换操作或者视频文件播放进度调节操作,可以帮助用户将当前视频播放文件快速切换到想要观看的视频文件,提高浏览效率。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.
请参考图2,图2为本申请实施例提供的又一种视频文件播放方法的流程示意图。在本实施例中,以手机作为终端为例来进行描述。该视频文件播放方法的具体场景应用可以如下:Please refer to FIG. 2, which is a schematic flowchart of another video file playback method provided by an embodiment of the application. In this embodiment, a mobile phone is used as an example for description. The specific scenario application of the video file playback method can be as follows:
201、手机接收到用户触发的视频播放指令。201. 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. Or 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.
202、手机根据视频播放指令通过播放器播放视频文件。202. The mobile phone plays the video file through the player according to the video play instruction.
按照上一步骤中的任一种方式来对视频文件进行播放,其中视频播放器为手机系统自带的播放器,视频文件为手机视频文件夹中的本地视频,为用户已经下载的视频文件或者通过手机拍摄的视频文件。Follow any of the methods in the previous step to play the video file, where 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.
203、用户在视频播放界面进行触摸操作。203. The user performs a touch operation on the video playback interface.
参考图3,当选择视频文件进行播放时,手机屏幕界面处于如图3所示的操作界面图。图3左边所示的画面表示当前视频播放模式为竖屏播放模式。图3右边所示的画面表示当前视频播放模式为横屏播放模式。此时,手机屏幕界面处于任一播放模式时,用户即可对当前视频播放界面进行操作,通过手指与屏幕接触,进行点击,滑动界面等触摸操作。Referring to Figure 3, when a video file is selected for playback, 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. At this point, when the screen interface of the mobile phone is in any play 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.
204、手机根据获取到的触摸位置信息,判断触摸位置是否位于目标操作区域内。204. The mobile phone determines whether the touch position is located in the target operation area according to the acquired touch position information.
参考图3,如图3左边的视频播放界面所示,整个播放界面划分为A,B两个区域,视频播放界面上方3/4区域为视频文件播放切换操作区域A,视频播放界面下 方1/4区域为视频文件播放进度调节区域B。当用户对视频播放界面进行触摸操作时,检测当前的触摸位置S,若用户进行触摸操作时的触摸位置S位于目标操作区域内,则执行步骤205;若用户进行触摸操作时的触摸位置S位于目标操作区域外,则执行步骤206。Refer to Figure 3, as shown in the video playback interface on the left of Figure 3, 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. When the user performs a touch operation on the video playback interface, the current touch position S is detected. If the touch position S when the user performs the touch operation is within the target operation area, step 205 is executed; if the touch position S when the user performs the touch operation is located Outside the target operating area, step 206 is executed.
205、手机根据用户的操作信息执行相应的视频播放操作。205. The mobile phone performs a corresponding video playback operation according to the user's operation information.
当触摸位置S位于视频文件播放切换操作区域A时。一种情况:用户通过手指在当前触摸位置S向左滑动,可以将当前播放视频切换为视频库中的上n个视频文件。向右滑动,可以将当前播放视频为视频库中的下n个视频文件,其中滑动距离对应切换的视频文件数量。当滑动距离为1厘米时,对应切换的视频文件数量n为1。用户可以根据触摸滑动方向和触摸滑动距离切换到想要观看的视频文件。When the touch position S is located in the video file playback switching operation area A. One situation: 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. When 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.
当触摸位置位于视频文件播放切换操作区域A时。另一种情况:视频文件播放切换操作区域可分为两个区域,按照竖直划分将视频文件播放切换操作区域A平均划分左右两个区域。当用户触摸位置S在左边区域时,可以将当前播放视频切换为视频库中的上n个视频文件。当用户触摸位置在右边区域时,可以将当前播放视频切换为视频库中的下n个视频文件。用户可以根据触摸力度确定切换的视频文件的数量,当触摸力度为1牛顿时,对应切换的视频文件数量n为1。用户可通过触摸位置S的操作区域以及触摸力度切换到想要观看的视频文件。When the touch position is in the video file playback switching operation area A. Another case: 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. When the user touches the position S in the left area, the currently playing video can be switched to the upper n video files in the video library. When the user's touch position is in the right area, 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.
当触摸位置S位于视频文件播放进度调节操作区域B时。用户通过手指在当前触摸位置S向左滑动,可以对当前播放的视频文件的进度进行后退操作。向右滑动,可以对当前播放的视频文件的进度进行前进操作。用户通过触摸力度来控制视频进度调节的速度,通过触摸时长确定视频进度调节的时间。当触摸时长为1秒时,对应的视频进度调节的时间为1秒。当触摸力度为1牛顿时,对应的视频进度调节的速度为1帧每秒。用户可以通过视频播放时序、视频播放速度和触摸时长来确定当前播放的视频文件的目标播放进度。When 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. When the touch duration is 1 second, the corresponding video progress adjustment time is 1 second. When 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.
206、结束操作。206. End the operation.
用户在手机界面进行触摸操作的触摸位置S在目标操作区域A或者B以外,此时,不用根据用户触摸操作信息去执行任何指令,则当前视频播放界面不发生任 何改变。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.
为便于更好的实施本申请实施例提供的视频文件播放方法,本申请实施例还提供一种基于上述视频文件播放方法的装置。其中名词的含义与上述视频文件播放方法中相同,具体实现细节可以参考方法实施例中的说明。To facilitate better implementation of the video file playback method provided in the embodiment of the present application, 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.
请参阅图4,图4为本申请实施例提供的一种视频文件播放装置的结构框图,包括:Please refer to FIG. 4, which is a structural block diagram of a video file playback device provided by an embodiment of the application, including:
接收单元401,用于接收视频播放指令;The receiving unit 401 is configured to receive a video playing instruction;
播放单元402,用于根据所述视频播放指令播放第一视频文件;The playing unit 402 is configured to play the first video file according to the video playing instruction;
获取单元403,用于当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置;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;
判断单元404,用于判断所述触摸位置是否位于目标操作区域内;The determining unit 404 is configured to determine whether the touch position is located in the target operation area;
操作单元405,用于根据所述目标操作区域和所述操作信息执行相应的视频播放操作。The operation unit 405 is configured to perform a corresponding video playback operation according to the target operation area and the operation information.
参考图5,其中,操作单元405包括第一排序子单元4051、第一获取子单元4052和操作子单元4053:Referring to FIG. 5, the operating unit 405 includes a first sorting subunit 4051, a first obtaining subunit 4052, and an operating subunit 4053:
第一排序子单元4051,用于基于所述第一移动方向对预设视频库中的视频文件进行排序,得到第一排序结果;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;
第一获取子单元4052,用于获取所述触摸移动距离对应的第一数量信息;The first obtaining subunit 4052 is configured to obtain the first quantity information corresponding to the touch movement distance;
操作子单元4053,用于将当前播放的第一视频文件切换为所述第二视频文件。The operation subunit 4053 is used to switch the currently played first video file to the second video file.
在一些实施例中,操作子单元4051可以用于:In some embodiments, the operation subunit 4051 can be used to:
根据所述第一移动方向从多个预设视频类型中确定目标视频类型;从所述预设视频库中筛选出所述目标类型视频对应的候选视频文件;按照视频内容的相似 度对预设视频库中的同类型视频文件进行排序。Determine the target video type from a plurality of preset video types according to the first movement direction; filter out candidate video files corresponding to the target type video from the preset video library; preset according to the similarity of the video content Sort video files of the same type in the video library.
在一些实施例中,操作单元405包括:确定子单元、第二排序子单元、第二获取子单元、第二确定子单元和切换子单元;In some embodiments, 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.
在一些实施例中,操作单元405包括:第三确定子单元、第四确定子单元、第五确定子单元和调节子单元;In some embodiments, 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.
在一些实施例中,视频播放装置还包括:In some embodiments, 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 provided in this embodiment 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.
本申请实施例还提供一种终端。如图6所示,该终端可以包括射频(RF,Radio Frequency)电路601、包括有一个或一个以上计算机可读存储介质的存储器602、输入单元603、显示单元604、传感器605、音频电路606、无线保真(WiFi,Wireless Fidelity)模块607、包括有一个或者一个以上处理核心的处理器608、以及电源609等部件。本领域技术人员可以理解,图6中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The embodiment of the present application also provides a terminal. As shown in FIG. 6, 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, 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. Those skilled in the art can understand that the terminal structure shown in FIG. 6 does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine some components, or arrange different components. among them:
RF电路601可用于收发信息过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器608处理;另外,将涉及上行的数据发送给基站。通常,RF电路601包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,RF电路601还可以通过无线通信与网络和其他设备通信。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. Generally, 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. In addition, the RF circuit 601 can also communicate with the network and other devices through wireless communication.
存储器602可用于存储软件程序以及模块,处理器608通过运行存储在存储器602的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器602还可以包括存储器控制器,以提供处理器608和输入单元603对存储器602的访问。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. In addition, 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. Correspondingly, the memory 602 may further include a memory controller to provide the processor 608 and the input unit 603 to access the memory 602.
输入单元603可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元603可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近 的操作),并根据预先设定的程式驱动相应的连接装置。除了触敏表面,输入单元603还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。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. Specifically, in a specific embodiment, 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. In addition to the touch-sensitive surface, the input unit 603 may also include other input devices. Specifically, 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.
显示单元604可用于显示由用户输入的信息或提供给用户的信息以及服务器的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元604可包括显示面板,可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器608以确定触摸事件的类型,随后处理器608根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图6中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。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. Optionally, 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. Further, 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. Although in FIG. 6, 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.
终端还可包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在服务器移动到耳边时,关闭显示面板和背光。The terminal may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, 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.
音频电路606、扬声器,传声器可提供用户与服务器之间的音频接口。音频电路606可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路606接收后转换为音频数据,再将音频数据输出处理器608处理后,经RF电路601以发送给比如终端,或者将音频数据输出至存储器602以便进一步处理。音频电路606还可能包括耳塞插孔,以提供外设耳机与服务器的通信。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属于短距离无线传输技术,终端通过WiFi模块607可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块607,但是可以理解的是,其并不属于终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. Through the WiFi module 607, 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. Although 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.
处理器608是终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器602内的软件程序和模块,以及调用存储在存储器602内的数据,执行服务器的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器608可包括一个或多个处理核心;优选的,处理器608可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器608中。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. Optionally, 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.
终端还包括给各个部件供电的电源609(比如电池),优选的,电源可以通过电源管理系统与处理器608逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源609还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal also includes a power source 609 (such as a battery) for supplying power to various components. Preferably, 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.
具体在本实施例中,终端中的处理器608会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器602中,并由处理器608来运行存储在存储器602中的应用程序,从而实现各种功能:Specifically, in this embodiment, 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:
接收视频播放指令;Receive video playback instructions;
获取所述第一视频文件,根据所述视频播放指令播放第一视频文件;Acquiring the first video file, and playing the first video file according to the video play instruction;
当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置,所述触摸操作包括手指与终端屏幕接触产生一系列动作;When a user's touch operation on the video playback interface is detected, obtaining operation information and a touch position of the touch operation, the touch operation includes a series of actions caused by a finger contact with a terminal screen;
判断所述触摸位置是否位于目标操作区域内;Judging whether the touch position is located in the target operation area;
若是,则根据所述操作信息执行相应的视频播放操作。If so, perform a corresponding video playback operation according to the operation information.
本申请方案通过提取用户针对播放界面进行触摸操作的操作信息以及触摸位置,根据触摸位置判定其触摸操作是否位于目标操作区域内,基于目标操作区域和所述操作信息执行相应的视频播放操作,避免失误的触摸操作触发当前视频播放界面的功能指令,有效提高视频文件播放的效率。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.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the foregoing embodiments can be completed by instructions, or by instructions to control related hardware, and the instructions can be stored in a computer-readable storage medium, and Loaded and executed by the processor.
为此,本申请实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种视频文件播放方法中的步骤。例如,该指令可以执行如下步骤:To this end, 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. For example, 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.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, please refer to the previous embodiments, which will not be repeated here.
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, 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.
由于该存储介质中所存储的指令,可以执行本申请实施例所提供的任一种视频文件播放方法中的步骤,因此,可以实现本申请实施例所提供的任一种视频文件播放方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Since 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. For the beneficial effects achieved, refer to the previous embodiments for details, which will not be repeated here.
以上对本申请实施例所提供的视频文件播放方法、装置、存储介质及终端进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The video file playback method, device, storage medium, and terminal provided by the embodiments of the application are described in detail above. Specific examples are used in this article to explain the principles and implementation of the application. The description of the above embodiments is only for To help understand the methods and core ideas of this application; at the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation and scope of application. In summary, the content of this specification does not It should be understood as a limitation of this application.

Claims (20)

  1. 一种视频文件播放方法,其包括:A video file playback method, which includes:
    接收视频播放指令;Receive video playback instructions;
    根据所述视频播放指令播放第一视频文件;Playing the first video file according to the video playing instruction;
    当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置;When a user's touch operation on the video playback interface is detected, acquiring the operation information and touch position of the touch operation;
    判断所述触摸位置是否位于目标操作区域内;Judging whether the touch position is located in the target operation area;
    若是,则根据所述操作信息执行相应的视频播放操作。If so, perform a corresponding video playback operation according to the operation information.
  2. 根据权利要求1所述的方法,其中,所述操作信息包括:第一移动方向和触摸移动距离;The method according to claim 1, wherein the operation information includes: a first movement direction and a touch movement distance;
    所述根据所述操作信息执行相应的视频播放操作,包括:The performing the corresponding video playback operation according to the operation information includes:
    基于所述第一移动方向对预设视频库中的视频文件进行排序,得到第一排序结果;Sorting the video files in the preset video library based on the first moving direction to obtain a first sorting result;
    获取所述触摸移动距离对应的第一数量信息;Acquiring the first quantity information corresponding to the touch movement distance;
    根据所述第一排序结果和所述第一数量信息确定待切换的第二视频文件;Determine the second video file to be switched according to the first sorting result and the first quantity information;
    将当前播放的第一视频文件切换为所述第二视频文件。Switch the currently playing first video file to the second video file.
  3. 根据权利要求2所述的方法,其中,所述基于所述第一移动方向对视频文件进行排序,包括:The method according to claim 2, wherein the sorting video files based on the first movement direction comprises:
    根据所述第一移动方向从多个预设视频类型中确定目标视频类型;Determining a target video type from a plurality of preset video types according to the first moving direction;
    从所述预设视频库中筛选出所述目标类型视频对应的候选视频文件;Filter out candidate video files corresponding to the target type video from the preset video library;
    按照视频内容的相似度对预设视频库中的同类型视频文件进行排序。Sort the video files of the same type in the preset video library according to the similarity of the video content.
  4. 根据权利要求1所述的方法,其中,所述操作信息包括:第一触摸力度和触摸操作区域,所述触摸操作区域包括第一操作子区域和第二操作子区域;The method according to claim 1, wherein the operation information includes: a first touch force and a touch operation area, and the touch operation area includes a first operation sub-area and a second operation sub-area;
    所述根据所述操作信息执行相应的视频播放操作,包括:The performing the corresponding video playback operation according to the operation information includes:
    从所述第一操作子区域和第二操作子区域中确定所述触摸位置所在的触摸操作子区域;Determining the touch operation subregion where the touch position is located from the first operation subregion and the second operation subregion;
    基于所述触摸操作子区域对视频文件进行排序,得到第二排序结果;Sorting the video files based on the touch operation sub-region to obtain a second sorting result;
    获取所述第一触摸力度对应的第二数量信息;Acquiring second quantity information corresponding to the first touch intensity;
    根据所述第二排序结果和所述第二数量信息确定待切换的第三视频文件;Determine the third video file to be switched according to the second sorting result and the second quantity information;
    将当前播放的第一视频文件切换为所述第三视频文件。Switch the currently playing first video file to the third video file.
  5. 根据权利要求1所述的方法,其中,所述操作信息,包括:第二移动方向、第二触摸力度和触摸时长;The method according to claim 1, wherein the operation information includes: a second movement direction, a second touch strength, and a touch duration;
    所述根据所述操作信息执行相应的视频播放操作,包括:The performing the corresponding video playback operation according to the operation information includes:
    基于所述第二移动方向确定视频播放时序;Determining a video playback timing based on the second moving direction;
    基于所述第二触摸力度确定视频播放速度;Determining a video playback speed based on the second touch intensity;
    按照所述视频播放时序、视频播放速度和触摸时长确定所述第一视频文件的目标播放进度;Determining the target playback progress of the first video file according to the video playback timing, video playback speed, and touch duration;
    将所述第一视频文件从当前播放进度调节至所述目标播放进度。Adjusting the first video file from the current playback progress to the target playback progress.
  6. 根据权利要求1所述的方法,其中,还包括:The method according to claim 1, further comprising:
    判断是否检测到视频播放模式的切换指令,所述播放模式包括横屏播放模式和竖屏播放模式;Judging whether a switching instruction of a video play mode is detected, the play mode includes a landscape play mode and a portrait play mode;
    若是,则根据所述切换指令将第一视频文件从当前模式切换为目标播放模式;If yes, switch the first video file from the current mode to the target play mode according to the switching instruction;
    根据所述目标播放模式对所述目标操作区域的位置进行调整。The position of the target operation area is adjusted according to the target play mode.
  7. 根据权利要求1所述的方法,其中,在所述根据所述视频播放指令播放第一视频文件之前,还包括:The method according to claim 1, wherein before the playing the first video file according to the video play instruction, the method further comprises:
    获取所述第一视频文件。Obtain the first video file.
  8. 一种存储介质,其中,所述存储介质存储有多条指令,所述指令适于处理器进行加载,以执行以下步骤:A storage medium, wherein the storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to perform the following steps:
    接收视频播放指令;Receive video playback instructions;
    根据所述视频播放指令播放第一视频文件;Playing the first video file according to the video playing instruction;
    当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置;When a user's touch operation on the video playback interface is detected, acquiring the operation information and touch position of the touch operation;
    判断所述触摸位置是否位于目标操作区域内;Judging whether the touch position is located in the target operation area;
    若是,则根据所述操作信息执行相应的视频播放操作。If so, perform a corresponding video playback operation according to the operation information.
  9. 根据权利要求8所述的存储介质,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:8. The storage medium according to claim 8, wherein the step of performing a corresponding video playback operation according to the operation information comprises:
    基于所述第一移动方向对预设视频库中的视频文件进行排序,得到第一排序结果;Sorting the video files in the preset video library based on the first moving direction to obtain a first sorting result;
    获取所述触摸移动距离对应的第一数量信息;Acquiring the first quantity information corresponding to the touch movement distance;
    根据所述第一排序结果和所述第一数量信息确定待切换的第二视频文件;Determine the second video file to be switched according to the first sorting result and the first quantity information;
    将当前播放的第一视频文件切换为所述第二视频文件。Switch the currently playing first video file to the second video file.
  10. 根据权利要求8所述的存储介质,其中,所述基于所述第一移动方向对视频文件进行排序的步骤,包括:8. The storage medium according to claim 8, wherein the step of sorting video files based on the first moving direction comprises:
    根据所述第一移动方向从多个预设视频类型中确定目标视频类型;Determining a target video type from a plurality of preset video types according to the first moving direction;
    从所述预设视频库中筛选出所述目标类型视频对应的候选视频文件;Filter out candidate video files corresponding to the target type video from the preset video library;
    按照视频内容的相似度对预设视频库中的同类型视频文件进行排序。Sort the video files of the same type in the preset video library according to the similarity of the video content.
  11. 根据权利要求8所述的存储介质,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:8. The storage medium according to claim 8, wherein the step of performing a corresponding video playback operation according to the operation information comprises:
    从所述第一操作子区域和第二操作子区域中确定所述触摸位置所在的触摸操作子区域;Determining the touch operation subregion where the touch position is located from the first operation subregion and the second operation subregion;
    基于所述触摸操作子区域对视频文件进行排序,得到第二排序结果;Sorting the video files based on the touch operation sub-region to obtain a second sorting result;
    获取所述第一触摸力度对应的第二数量信息;Acquiring second quantity information corresponding to the first touch intensity;
    根据所述第二排序结果和所述第二数量信息确定待切换的第三视频文件;Determine the third video file to be switched according to the second sorting result and the second quantity information;
    将当前播放的第一视频文件切换为所述第三视频文件。Switch the currently playing first video file to the third video file.
  12. 根据权利要求8所述的存储介质,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:8. The storage medium according to claim 8, wherein the step of performing a corresponding video playback operation according to the operation information comprises:
    基于所述第二移动方向确定视频播放时序;Determining a video playback timing based on the second moving direction;
    基于所述第二触摸力度确定视频播放速度;Determining a video playback speed based on the second touch intensity;
    按照所述视频播放时序、视频播放速度和触摸时长确定所述第一视频文件的目标播放进度;Determining the target playback progress of the first video file according to the video playback timing, video playback speed, and touch duration;
    将所述第一视频文件从当前播放进度调节至所述目标播放进度。Adjusting the first video file from the current playback progress to the target playback progress.
  13. 根据权力要求8所述的存储介质,其中,还包括以下步骤:The storage medium according to claim 8, which further comprises the following steps:
    判断是否检测到视频播放模式的切换指令,所述播放模式包括横屏播放模式和竖屏播放模式;Judging whether a switching instruction of a video play mode is detected, the play mode includes a landscape play mode and a portrait play mode;
    若是,则根据所述切换指令将第一视频文件从当前模式切换为目标播放模式;If yes, switch the first video file from the current mode to the target play mode according to the switching instruction;
    根据所述目标播放模式对所述目标操作区域的位置进行调整。The position of the target operation area is adjusted according to the target play mode.
  14. 根据权力要求8所述的存储介质,其中,在所述根据所述视频播放指令播放第一视频文件的步骤之前,还包括以下步骤:The storage medium according to claim 8, wherein before the step of playing the first video file according to the video play instruction, the method further comprises the following steps:
    获取所述第一视频文件。Obtain the first video file.
  15. 一种终端,其中,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述指令以执行以下步骤:A terminal, which includes a processor and a memory, the memory stores a plurality of instructions, and the processor loads the instructions to perform the following steps:
    接收视频播放指令;Receive video playback instructions;
    获取所述第一视频文件,根据所述视频播放指令播放第一视频文件;Acquiring the first video file, and playing the first video file according to the video play instruction;
    当检测到用户针对视频播放界面的触摸操作时,获取所述触摸操作的操作信息以及触摸位置,所述触摸操作包括手指与终端屏幕接触产生一系列动作;When a user's touch operation on the video playback interface is detected, obtaining operation information and a touch position of the touch operation, the touch operation includes a series of actions caused by a finger contact with a terminal screen;
    判断所述触摸位置是否位于目标操作区域内;Judging whether the touch position is located in the target operation area;
    若是,则根据所述操作信息执行相应的视频播放操作。If so, perform a corresponding video playback operation according to the operation information.
  16. 根据权利要求15所述的终端,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:The terminal according to claim 15, wherein the step of performing a corresponding video playback operation according to the operation information comprises:
    基于所述第一移动方向对预设视频库中的视频文件进行排序,得到第一排序结果;Sorting the video files in the preset video library based on the first moving direction to obtain a first sorting result;
    获取所述触摸移动距离对应的第一数量信息;Acquiring the first quantity information corresponding to the touch movement distance;
    根据所述第一排序结果和所述第一数量信息确定待切换的第二视频文件;Determine the second video file to be switched according to the first sorting result and the first quantity information;
    将当前播放的第一视频文件切换为所述第二视频文件。Switch the currently playing first video file to the second video file.
  17. 根据权利要求15所述的终端,其中,所述基于所述第一移动方向对视频文件进行排序的步骤,包括:The terminal according to claim 15, wherein the step of sorting video files based on the first moving direction comprises:
    根据所述第一移动方向从多个预设视频类型中确定目标视频类型;Determining a target video type from a plurality of preset video types according to the first moving direction;
    从所述预设视频库中筛选出所述目标类型视频对应的候选视频文件;Filter out candidate video files corresponding to the target type video from the preset video library;
    按照视频内容的相似度对预设视频库中的同类型视频文件进行排序。Sort the video files of the same type in the preset video library according to the similarity of the video content.
  18. 根据权利要求15所述的终端,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:The terminal according to claim 15, wherein the step of performing a corresponding video playback operation according to the operation information comprises:
    从所述第一操作子区域和第二操作子区域中确定所述触摸位置所在的触摸操作子区域;Determining the touch operation subregion where the touch position is located from the first operation subregion and the second operation subregion;
    基于所述触摸操作子区域对视频文件进行排序,得到第二排序结果;Sorting the video files based on the touch operation sub-region to obtain a second sorting result;
    获取所述第一触摸力度对应的第二数量信息;Acquiring second quantity information corresponding to the first touch intensity;
    根据所述第二排序结果和所述第二数量信息确定待切换的第三视频文件;Determine the third video file to be switched according to the second sorting result and the second quantity information;
    将当前播放的第一视频文件切换为所述第三视频文件。Switch the currently playing first video file to the third video file.
  19. 根据权利要求15所述的终端,其中,所述根据所述操作信息执行相应的视频播放操作的步骤,包括:The terminal according to claim 15, wherein the step of performing a corresponding video playback operation according to the operation information comprises:
    基于所述第二移动方向确定视频播放时序;Determining a video playback timing based on the second moving direction;
    基于所述第二触摸力度确定视频播放速度;Determining a video playback speed based on the second touch intensity;
    按照所述视频播放时序、视频播放速度和触摸时长确定所述第一视频文件的目标播放进度;Determining the target playback progress of the first video file according to the video playback timing, video playback speed, and touch duration;
    将所述第一视频文件从当前播放进度调节至所述目标播放进度。Adjusting the first video file from the current playback progress to the target playback progress.
  20. 根据权力要求15所述的终端,其中,还包括以下步骤:The terminal according to claim 15, which further comprises the following steps:
    判断是否检测到视频播放模式的切换指令,所述播放模式包括横屏播放模式和竖屏播放模式;Judging whether a switching instruction of the video play mode is detected, the play mode includes a landscape play mode and a portrait play mode;
    若是,则根据所述切换指令将第一视频文件从当前模式切换为目标播放模式;If yes, switch the first video file from the current mode to the target play mode according to the switching instruction;
    根据所述目标播放模式对所述目标操作区域的位置进行调整。The position of the target operation area is adjusted according to the target play mode.
PCT/CN2019/120848 2019-06-10 2019-11-26 Video file playing method and apparatus, and storage medium and terminal WO2020248527A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910498625.8A CN110221765B (en) 2019-06-10 2019-06-10 Video file playing method and device, storage medium and terminal
CN201910498625.8 2019-06-10

Publications (1)

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

Family

ID=67816175

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120848 WO2020248527A1 (en) 2019-06-10 2019-11-26 Video file playing method and apparatus, and storage medium and terminal

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221765B (en) * 2019-06-10 2021-07-06 惠州Tcl移动通信有限公司 Video file playing method and device, storage medium and terminal
CN110519621B (en) * 2019-09-20 2022-06-10 北京字节跳动网络技术有限公司 Video recommendation method and device, electronic equipment and computer readable medium
CN113132808B (en) * 2019-12-30 2022-07-29 腾讯科技(深圳)有限公司 Video generation method and device and computer readable storage medium

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 (en) * 2018-04-25 2018-10-02 维沃移动通信有限公司 Video broadcasting method and mobile terminal
CN108737897A (en) * 2018-05-22 2018-11-02 腾讯科技(深圳)有限公司 Video broadcasting method, device, equipment and storage medium
CN110221765A (en) * 2019-06-10 2019-09-10 惠州Tcl移动通信有限公司 A kind of video file broadcasting method, device, storage medium and terminal

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 (en) * 2015-11-26 2019-05-14 深圳市金立通信设备有限公司 A kind of picture switching method and terminal
CN105528173A (en) * 2015-12-08 2016-04-27 深圳市金立通信设备有限公司 Multimedia operation method and terminal
CN105516783A (en) * 2015-12-10 2016-04-20 广东欧珀移动通信有限公司 Multimedia content playing course control method and user terminal
CN106940614A (en) * 2017-02-15 2017-07-11 珠海市魅族科技有限公司 A kind of exchange method and device
CN107562349B (en) * 2017-09-11 2020-06-30 广州酷狗计算机科技有限公司 Method and device for executing processing

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 (en) * 2018-04-25 2018-10-02 维沃移动通信有限公司 Video broadcasting method and mobile terminal
CN108737897A (en) * 2018-05-22 2018-11-02 腾讯科技(深圳)有限公司 Video broadcasting method, device, equipment and storage medium
CN110221765A (en) * 2019-06-10 2019-09-10 惠州Tcl移动通信有限公司 A kind of video file broadcasting method, device, storage medium and terminal

Also Published As

Publication number Publication date
CN110221765A (en) 2019-09-10
CN110221765B (en) 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
CN109062467B (en) Split screen application switching method and device, storage medium and electronic equipment
WO2017202348A1 (en) Video playing method and device, and computer storage medium
US10725646B2 (en) Method and apparatus for switching screen interface and terminal
US9377868B2 (en) Sliding control method and terminal device thereof
CN109710139B (en) Page processing method, device, terminal and storage medium
US10133480B2 (en) Method for adjusting input-method keyboard and mobile terminal thereof
WO2017125027A1 (en) Method and device for displaying information, and computer storage medium
CN106227350B (en) The method and smart machine of operation control are carried out based on gesture
CN104142779B (en) user interface control method, device and terminal
WO2018157812A1 (en) Method and apparatus for implementing video branch selection and playback
CN109062464B (en) Touch operation method and device, storage medium and electronic equipment
WO2020007114A1 (en) Method and apparatus for switching split-screen application, storage medium, and electronic device
WO2020248527A1 (en) Video file playing method and apparatus, and storage medium and terminal
CN111897480B (en) Playing progress adjusting method and device and electronic equipment
TWI559759B (en) Apparatus and method of showing progress bar
WO2020007116A1 (en) Split-screen window adjustment method and apparatus, storage medium and electronic device
WO2020007144A1 (en) Switching method and device for split screen application, storage medium and electronic device
CN111966254B (en) Image shooting method and device, storage medium and terminal
CN106371749A (en) Method and device for terminal control
WO2021104193A1 (en) Interface display method and electronic device
CN106791916B (en) Method, device and system for recommending audio data
CN108052258B (en) Terminal task processing method, task processing device and mobile terminal
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal

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