CN111526426A - Video playing method, terminal equipment and storage medium - Google Patents
Video playing method, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN111526426A CN111526426A CN202010332198.9A CN202010332198A CN111526426A CN 111526426 A CN111526426 A CN 111526426A CN 202010332198 A CN202010332198 A CN 202010332198A CN 111526426 A CN111526426 A CN 111526426A
- Authority
- CN
- China
- Prior art keywords
- video
- input
- interface
- video clip
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
- H04N21/4825—End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47205—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47217—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及终端技术领域,尤其涉及一种视频播放方法、终端设备及存储介质。Embodiments of the present invention relate to the technical field of terminals, and in particular, to a video playback method, a terminal device, and a storage medium.
背景技术Background technique
随着终端技术的普及,终端设备的应用越来越广泛。With the popularization of terminal technology, the application of terminal equipment is becoming more and more extensive.
进入设置页面需要进行多次点击,效率不高。目前终端设备可以通过一些视频剪辑的第三方应用程序对拍摄好的视频进行处理,在处理视频的过程中,如果想要改变视频原有的播放顺序,让视频倒序播放,需要用户在视频剪辑界面中点击控件以进入设置选项界面,并在设置选项界面中的选项中,或者,子选项中(即某个选项下的子选项)点击选择倒放的设置选项,以实现倒序播放视频,这一实现过程中需要用户在终端设备上进行多次点击操作,并且需要在多种设置选项中查找倒放的设置选项,因此,在实现视频的顺序播放与倒序播放的切换时效率较低,终端设备的人机交互性能较差。Entering the settings page requires multiple clicks, which is inefficient. At present, the terminal device can process the captured video through some third-party applications for video editing. During the process of video processing, if you want to change the original playback order of the video and make the video play in reverse order, the user needs to edit the video in the video editing interface. Click the control to enter the setting options interface, and in the options in the setting options interface, or, in the sub-options (that is, the sub-options under a certain option), click to select the reverse setting option to play the video in reverse order. During the implementation process, the user needs to perform multiple click operations on the terminal device, and it is necessary to search for the setting option of reverse playback among various setting options. Therefore, the efficiency of switching between the sequential playback and reverse playback of the video is low, and the terminal equipment The human-computer interaction performance is poor.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种视频播放方法、终端设备及存储介质,用以解决现有技术中存在的在实现视频的顺序播放与倒序播放的切换时效率较低,终端设备的人机交互性能较差的问题。Embodiments of the present invention provide a video playback method, a terminal device, and a storage medium, which are used to solve the problems in the prior art that when switching between sequential playback and reverse playback of videos is implemented, the efficiency is low, and the human-computer interaction performance of the terminal device is relatively low. Bad question.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
第一方面,提供一种视频拍摄方法,应用于终端设备,该方法包括:接收用户针对第一界面中的视频片段选择控件的第一输入,第一界面为第一视频的显示界面;A first aspect provides a video shooting method, which is applied to a terminal device, the method comprising: receiving a first input from a user for selecting a control for a video clip in a first interface, where the first interface is a display interface of the first video;
响应于第一输入,若第一输入满足预设输入条件,则以目标播放顺序播放第一视频片段,目标播放顺序为与第一视频片段当前的默认播放顺序相反的播放顺序,第一视频片段为视频片段选择控件从第一视频中选中的视频片段。In response to the first input, if the first input satisfies the preset input condition, the first video clip is played in the target playback order, and the target playback order is the playback order opposite to the current default playback order of the first video clip. The video clip selected by the control for the video clip is selected from the first video.
可选的,第一输入为以下输入中的至少一种:Optionally, the first input is at least one of the following inputs:
触控输入、语音输入、手势输入和晃动终端设备的输入。Touch input, voice input, gesture input, and input by shaking the terminal device.
可选的,第一输入为双指触控输入;Optionally, the first input is a two-finger touch input;
预设输入条件为双指触控输入对应的旋转角度大于或等于预设角度;The preset input condition is that the rotation angle corresponding to the two-finger touch input is greater than or equal to the preset angle;
其中,旋转角度为第一连线与第二连线所形成的夹角,第一连线为双指触控输入的两个起始触控点的连线,第二连线为双指触控输入的两个终止触控点的连线。The rotation angle is the angle formed by the first connection line and the second connection line, the first connection line is the connection line between the two initial touch points of the two-finger touch input, and the second connection line is the two-finger touch The connection between the two terminating touch points of the control input.
可选的,第一输入为单指滑动输入;Optionally, the first input is a single-finger sliding input;
预设输入条件为单指滑动输入的滑动轨迹与预设滑动轨迹匹配。The preset input condition is that the sliding track inputted by one-finger sliding matches the preset sliding track.
可选的,接收用户针对目标界面中的视频片段选择控件的第一输入之前,方法还包括:Optionally, before receiving the first input from the user for selecting the control for the video clip in the target interface, the method further includes:
在拍摄视频过程中,接收用户的第二输入;In the process of shooting the video, receiving the second input of the user;
响应于第二输入,暂停拍摄视频,得到第二视频,并显示第二界面,以及从第二视频中获取第二视频片段,第二视频为在拍摄视频过程中,接收到第二输入之前拍摄得到的视频,第二界面为接收到第二输入时的暂停拍摄界面。In response to the second input, the video capture is paused, the second video is obtained, the second interface is displayed, and the second video clip is obtained from the second video, the second video is captured during the video capture process and before the second input is received For the obtained video, the second interface is a pause shooting interface when the second input is received.
将第二视频片段与第三视频,合成第一视频。Combine the second video clip with the third video to synthesize the first video.
可选的,将第二视频片段与第三视频,合成第一视频之前,方法还包括:Optionally, before synthesizing the second video clip and the third video into the first video, the method further includes:
接收用户在第二界面的第三输入;receiving a third input from the user on the second interface;
响应于第三输入,继续拍摄视频,以得到第三视频。In response to the third input, video capture continues to obtain a third video.
可选的,将第二视频片段与第三视频,合成第一视频之后,接收用户针对目标界面中的视频片段选择控件的第一输入之前,方法还包括:Optionally, after synthesizing the second video clip and the third video into the first video, and before receiving the first input from the user for the video clip selection control in the target interface, the method further includes:
显示第一界面;Display the first interface;
在第一界面中调整视频片段选择控件,以使得视频片段选择控件选中第一视频片段。The video clip selection control is adjusted in the first interface, so that the video clip selection control selects the first video clip.
第二方面,提供一种终端设备,该终端设备包括:接收模块,用于接收用户针对第一界面中的视频片段选择控件的第一输入,所述第一界面为第一视频的显示界面;In a second aspect, a terminal device is provided, the terminal device comprising: a receiving module configured to receive a first input from a user for selecting a control for a video clip in a first interface, where the first interface is a display interface of the first video;
处理模块,用于响应于所述第一输入,若所述第一输入满足预设输入条件,则以目标播放顺序播放第一视频片段,所述目标播放顺序为与第一视频片段当前的默认播放顺序相反的播放顺序,所述第一视频片段为所述视频片段选择控件从所述第一视频中选中的视频片段。A processing module, configured to, in response to the first input, if the first input satisfies a preset input condition, play the first video clip in a target playback order, where the target playback order is the same as the current default of the first video clip The playback order is reversed, and the first video clip is a video clip selected from the first video by the video clip selection control.
第三方面,提供一种终端设备,该终端设备包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的视频拍摄方法的步骤。In a third aspect, a terminal device is provided, the terminal device includes a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to implement the first aspect The steps of the video shooting method.
第四方面,提供一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的视频拍摄方法的步骤。In a fourth aspect, a computer-readable storage medium is provided, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the video shooting method according to the first aspect are implemented.
在本发明实施例中,用户可以通过在第一视频的显示界面(即第一界面)中针对视频片段选择控件的第一输入,触发终端设备判断第一输入是否满足预设输入条件,并在满足的情况下,以与第一视频片段当前的默认播放顺序相反的播放顺序播放由视频片段选择控件所选中的视频片段(例如,第一视频片段当前默认播放顺序为顺序播放,则在确定第一输入满足预设输入条件的情况下,以倒序播放第一视频片段)。这样可以通过满足预设输入条件的一次输入就可以实现视频顺序播放与倒序播放的切换,从而提高视频顺序播放与倒序播放的切换效率,提高终端设备的人机交互性能。In this embodiment of the present invention, the user can trigger the terminal device to determine whether the first input satisfies the preset input conditions by selecting the first input of the control for the video clip in the display interface (ie, the first interface) of the first video, and then If satisfied, the video clips selected by the video clip selection control are played in a playback order opposite to the current default playback order of the first video clip (for example, if the current default playback order of the first video clip is sequential playback, after determining the first video clip If the input satisfies the preset input condition, the first video clip is played in reverse order). In this way, the switching between video sequential playback and reverse order playback can be realized by one input that meets the preset input conditions, thereby improving the switching efficiency of video sequential playback and reverse order playback, and improving the human-computer interaction performance of the terminal device.
附图说明Description of drawings
图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;1 is a schematic diagram of the architecture of a possible Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种视频播放方法示意图一;2 is a schematic diagram 1 of a video playback method provided by an embodiment of the present invention;
图3为本发明实施例提供的一种终端设备显示的界面的示意图一;3 is a schematic diagram 1 of an interface displayed by a terminal device according to an embodiment of the present invention;
图4为本发明实施例提供的一种终端设备显示的界面的示意图二;4 is a second schematic diagram of an interface displayed by a terminal device according to an embodiment of the present invention;
图5为本发明实施例提供的一种终端设备显示的界面的示意图三;FIG. 5 is a schematic diagram 3 of an interface displayed by a terminal device according to an embodiment of the present invention;
图6为本发明实施例提供的一种终端设备显示的界面的示意图四;6 is a fourth schematic diagram of an interface displayed by a terminal device according to an embodiment of the present invention;
图7为本发明实施例提供的一种视频播放方法示意图二;7 is a second schematic diagram of a video playback method provided by an embodiment of the present invention;
图8为本发明实施例提供的一种终端设备显示的界面的示意图五;FIG. 8 is a schematic diagram 5 of an interface displayed by a terminal device according to an embodiment of the present invention;
图9为本发明实施例提供的一种终端设备显示的界面的示意图六;9 is a sixth schematic diagram of an interface displayed by a terminal device according to an embodiment of the present invention;
图10为本发明实施例提供的一种终端设备的结构示意图。FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
图11为本发明实施例提供的一种终端设备的硬件示意图。FIG. 11 is a schematic hardware diagram of a terminal device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入等是用于区别不同的输入,而不是用于描述输入的特定顺序。The terms "first" and "second" and the like in the description and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of the objects. For example, the first input and the second input, etc. are used to distinguish different inputs, not to describe a specific order of the inputs.
需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or descriptions. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
本发明实施例中的终端设备可以为具有操作系统的终端设备。该操作系统可以为安卓(Android)操作系统、ios操作系统或者鸿蒙操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or a Hongmeng operating system, and may also be other possible operating systems, which are not specifically limited in the embodiment of the present invention.
下面以安卓操作系统为例,介绍一下本发明实施例提供的视频播放方法所应用的软件环境。The following takes the Android operating system as an example to introduce a software environment to which the video playback method provided by the embodiment of the present invention is applied.
如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1 , it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In FIG. 1, the architecture of the Android operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。The application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application, and developers can develop some applications based on the application framework layer under the condition of complying with the development principles of the framework of the application.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的视频播放方法的软件程序,从而使得该视频播放方法可以基于如图1所示的安卓操作系统运行。即处理器或者终端设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的视频拍摄方法。Taking the Android operating system as an example, in this embodiment of the present invention, a developer can develop a software program for implementing the video playback method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. The playback method can be run based on the Android operating system as shown in FIG. 1 . That is, the processor or the terminal device can implement the video shooting method provided by the embodiment of the present invention by running the software program in the Android operating system.
为了解决在实现视频的顺序播放与倒序播放的切换时效率较低,终端设备的人机交互性能较差的问题,本发明实施例提供一种视频播放方法、终端设备及存储介质,通过该方案,用户可以通过在第一视频的显示界面(即第一界面)中针对视频片段选择控件的第一输入,触发终端设备判断第一输入是否满足预设输入条件,并在满足的情况下,以与第一视频片段当前的默认播放顺序相反的播放顺序播放由视频片段选择控件所选中的视频片段(例如,第一视频片段当前默认播放顺序为顺序播放,则在确定第一输入满足预设输入条件的情况下,以倒序播放第一视频片段)。这样可以通过满足预设输入条件的一次输入就可以实现视频顺序播放与倒序播放的切换,从而提高视频顺序播放与倒序播放的切换效率,提高终端设备的人机交互性能。In order to solve the problems of low efficiency and poor human-computer interaction performance of terminal equipment when switching between sequential playback and reverse order playback of videos, embodiments of the present invention provide a video playback method, terminal equipment, and storage medium. , the user can trigger the terminal device to determine whether the first input satisfies the preset input conditions by selecting the first input of the control for the video clip in the display interface (ie, the first interface) of the first video, and if so, use the Play the video clips selected by the video clip selection control in a playback order opposite to the current default playback order of the first video clip (for example, if the current default playback order of the first video clip is sequential playback, then after determining that the first input satisfies the preset input condition, play the first video clip in reverse order). In this way, the switching between video sequential playback and reverse order playback can be realized by one input that meets the preset input conditions, thereby improving the switching efficiency of video sequential playback and reverse order playback, and improving the human-computer interaction performance of the terminal device.
本发明实施例中的终端设备可以为移动终端设备,也可以为非移动终端设备。移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动终端设备可以为个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。The terminal device in this embodiment of the present invention may be a mobile terminal device or a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA) etc.; the non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiment of the present invention does not make any specific limitation.
本发明实施例提供的视频播放方法的执行主体可以为上述的终端设备(包括移动终端设备和非移动终端设备),也可以为该终端设备中能够实现该视频播放方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。The executive body of the video playback method provided by the embodiment of the present invention may be the above-mentioned terminal equipment (including mobile terminal equipment and non-mobile terminal equipment), or may be functional modules and/or functions in the terminal equipment capable of implementing the video playback method The entity can be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present invention.
如图2所示,本发明实施例提供一种视频播放方法,该方法包括:As shown in FIG. 2, an embodiment of the present invention provides a video playback method, and the method includes:
101、接收用户针对第一界面中的视频片段选择控件的第一输入。101. Receive a first input from a user for selecting a control for a video clip in a first interface.
其中,上述第一界面为第一视频的显示界面。Wherein, the above-mentioned first interface is a display interface of the first video.
可选的,上述第一输入可以为触控输入(在终端设备的显示屏上的触控输入,即接触终端设备的显示屏)、语音输入、手势输入(可以不接触终端设备的显示屏)和晃动终端设备的输入中的至少一种。Optionally, the above-mentioned first input may be touch input (touch input on the display screen of the terminal device, that is, touching the display screen of the terminal device), voice input, gesture input (it may not touch the display screen of the terminal device) and at least one of shaking the input of the terminal device.
示例性的,如图3所示为第一界面的示意图,其中,第一界面01中包括有时间控件011以及视频片段选择控件012,其中,时间选择控件表示第一视频的时间轴,012可以在011上滑动,以框选第一视频的时间轴中某一时段之内的视频片段,以从第一视频中选择该视频片段(可以为下述第一视频片段)。Exemplarily, as shown in FIG. 3 is a schematic diagram of the first interface, wherein the
102、响应于第一输入,判断第一输入是否满足预设输入条件。102. In response to the first input, determine whether the first input satisfies a preset input condition.
可选的,针对第一输入的不同,可以相应设置不同的预设输入条件,以下针对不同的第一输入,以及不同第一输入所对应的预设输入条件进行示例性的说明。Optionally, different preset input conditions may be correspondingly set for different first inputs, and the following exemplary descriptions are given for different first inputs and preset input conditions corresponding to different first inputs.
1、触控输入1. Touch input
可选的,本发明实施例中,第一输入可以通过不同类型的触控输入实现。例如,第一输入可以为单指滑动输入、双指触控输入、长按输入(即、按压时长大于预设时长)或者重按输入(即,按压的压力值大于预设压力值)等。下面以示例的方式对单指滑动输入和双指触控输入进行说明。Optionally, in this embodiment of the present invention, the first input may be implemented through different types of touch input. For example, the first input may be a single-finger sliding input, a two-finger touch input, a long-press input (ie, the pressing duration is longer than a preset duration) or a re-pressing input (ie, the pressing pressure value is greater than the preset pressure value), and the like. The single-finger sliding input and the two-finger touch input are described below by way of example.
1.1、第一输入为单指滑动输入。1.1. The first input is a single-finger sliding input.
其中,预设输入条件为单指滑动输入的滑动轨迹与预设滑动轨迹匹配。The preset input condition is that the sliding track input by the single-finger sliding matches the preset sliding track.
例如,可以预设在视频片段选择控件上的顺时针滑动轨迹,或者逆时针滑动轨迹作为预设滑动轨迹,在第一输入为单指滑动输入时,可以检测第一输入是否为在视频片段选择控件上的顺时针滑动轨迹或者逆时针滑动轨迹,若是,则说明第一输入的滑动轨迹与预设滑动轨迹匹配。For example, a clockwise sliding track on the video clip selection control can be preset, or a counterclockwise sliding track can be used as a preset sliding track. When the first input is a single-finger sliding input, it can be detected whether the first input is a video clip selection. Clockwise sliding track or counterclockwise sliding track on the control, if yes, it means that the first input sliding track matches the preset sliding track.
示例性的,假设预设滑动轨迹为在视频片段选择控件上的顺时针滑动轨迹,如图4所示,用户单指在视频片段选择控件012上按照虚线箭头所示轨迹滑动,其滑动轨迹为顺时针滑动轨迹,可以认为用户的单指滑动输入的轨迹与预设滑动轨迹匹配。Exemplarily, it is assumed that the preset sliding track is a clockwise sliding track on the video clip selection control. As shown in FIG. 4 , the user slides a single finger on the video
1.2、第一输入为双指触控输入。1.2. The first input is a two-finger touch input.
相应的,预设输入条件为双指触控输入对应的旋转角度大于或等于预设角度。Correspondingly, the preset input condition is that the rotation angle corresponding to the two-finger touch input is greater than or equal to the preset angle.
示例性的,上述预设角度可以为45度或者90度等,本发明实施例不作具体限定。Exemplarily, the above-mentioned preset angle may be 45 degrees or 90 degrees, etc., which is not specifically limited in the embodiment of the present invention.
其中,旋转角度为第一连线与第二连线所形成的夹角,第一连线为双指触控输入的两个起始触控点的连线,第二连线为双指触控输入的两个终止触控点的连线。The rotation angle is the angle formed by the first connection line and the second connection line, the first connection line is the connection line between the two initial touch points of the two-finger touch input, and the second connection line is the two-finger touch The connection between the two terminating touch points of the control input.
可选的,上述双指触控输入可以为双指滑动的输入,也可以为双指点击的输入(可以为连续的多次点击),还可以为先采用双指长按,然后再采用双指滑动输入或者双指点击输入。Optionally, the above-mentioned two-finger touch input may be a two-finger sliding input, or a two-finger tap input (which may be continuous multiple clicks), or a two-finger long press first, and then a two-finger tap. Swipe to enter or two-finger tap to enter.
示例性的,如图5所示,用户双指在视频片段选择控件012上进行触控,其中,两根手指如图虚线箭头所示在视频片段选择控件012上滑动,然后可以确认用户双指触控的两个起始触控点,并确定两个起始触控点的连线,以及确定双指触控的两个终止触控端,并确定两个终止触控点的连线,最后确定两个起始触控点的连线与两个终止触控点之间的夹角,也即确定两个终止触控点的连线相对于两个起始触控点的连线的旋转角度。在该旋转角度大于预设角度的情况下,可以认为该双指触控输入满足预设输入条件。Exemplarily, as shown in FIG. 5 , the user touches the video
本发明实施例中,采用双指触控输入的方式,通过在视频片段选择控件上双指滑动进行旋转的方式,可以形象化的体现播放顺序的改变,更加符合用户操作习罐,更加人性化。In the embodiment of the present invention, the method of two-finger touch input is adopted, and the method of two-finger sliding on the video clip selection control to rotate, can visualize the change of the playback order, which is more in line with the user's operating habits, and is more user-friendly. .
2、语音输入2. Voice input
相应的,在第一输入为语音输入的情况下,预设输入条件可以为语音输入是否与预设语音匹配。Correspondingly, when the first input is a voice input, the preset input condition may be whether the voice input matches the preset voice.
示例性的,可以预设“倒序播放”为预设语音,在接收到用户的语音输入的情况下,可以识别语音输入的内容,确定其是否包括倒序播放或与倒序播放相同意思的内容,如果存在这样的内容,则可以确定语音输入与预设语音匹配,反之,则不匹配。Exemplarily, "play in reverse order" can be preset as a preset voice, and when the user's voice input is received, the content of the voice input can be identified to determine whether it includes playback in reverse order or content with the same meaning as playback in reverse order, if If such content exists, it can be determined that the voice input matches the preset voice, otherwise, it does not match.
3、手势输入3. Gesture input
相应的,在第一输入为手势输入的情况下,预设输入条件可以为手势输入是否与预设手势匹配。Correspondingly, when the first input is a gesture input, the preset input condition may be whether the gesture input matches the preset gesture.
示例性的,可以预设用户在空中用中指画圈的手势为预设手势,则可以通过摄像头采集用户的手势输入,然后判断其是否为中指画圈的手势,若是,则认为手势输入与预设手势匹配,若否,则不匹配。Exemplarily, the gesture of the user drawing a circle with the middle finger in the air can be preset as the preset gesture, then the user's gesture input can be collected by the camera, and then it is judged whether it is the gesture of drawing a circle with the middle finger, and if so, it is considered that the gesture input is the same as the preset gesture. Set the gesture to match, if not, it does not match.
4、晃动终端设备的输入4. Shake the input of the terminal device
相应的,在第一输入为晃动终端设备的输入的情况下,预设输入条件可以为预设的终端设备位姿参数。Correspondingly, in the case where the first input is an input of shaking the terminal device, the preset input condition may be a preset pose parameter of the terminal device.
示例性的,假设第一输入为晃动终端设备的输入,那么可以通过终端设备中的传感器(例如,重力传感器、陀螺仪传感器)检测终端设备的位姿变化,并检测该第一输入前后终端设备的俯仰角的变化量,并与预设的俯仰角变化量进行比较,在检测到的终端设备的俯仰角的变化量大于或等于预设的俯仰角变化量的情况下,则认为第一输入满足预设输入条件,反之,则不满足。Exemplarily, assuming that the first input is the input of shaking the terminal device, then the sensor in the terminal device (for example, a gravity sensor, a gyroscope sensor) can detect the change of the pose of the terminal device, and detect the terminal device before and after the first input. The change amount of the pitch angle is compared with the preset pitch angle change amount. When the detected pitch angle change amount of the terminal device is greater than or equal to the preset pitch angle change amount, it is considered that the first input The preset input conditions are met, otherwise, they are not met.
其中,终端设备的俯仰角为终端设备的后壳所在平面与水平面所成的夹角。The pitch angle of the terminal device is the angle formed by the plane where the back shell of the terminal device is located and the horizontal plane.
可选的,上述预设的俯仰角的变化量可以设置为30度,45度或90度等,本发明实施例不作具体限定。Optionally, the preset change amount of the pitch angle may be set to 30 degrees, 45 degrees, or 90 degrees, etc., which is not specifically limited in this embodiment of the present invention.
本发明实施例中,若第一输入满足预设输入条件,则执行下述103;若第一输入不满足预设输入条件,则返回执行上述101。In the embodiment of the present invention, if the first input satisfies the preset input condition, execute the following 103; if the first input does not meet the preset input condition, return to execute the foregoing 101.
103、以目标播放顺序播放第一视频片段。103. Play the first video segment in the target playback sequence.
其中,目标播放顺序为与第一视频片段当前的默认播放顺序相反的播放顺序,第一视频片段为视频片段选择控件从第一视频中选中的视频片段。The target playback order is a playback order opposite to the current default playback order of the first video clip, and the first video clip is a video clip selected from the first video by the video clip selection control.
本发明实施例中,上述默认播放顺序可以为顺序播放,目标播放顺序可以为倒序播放;或者默认播放顺序可以为倒序播放,目标播放顺序可以为顺序播放,也就是说,本发明实施例中提供的视频播放方法可以用于从顺序播放切换为倒序播放,也可以用于从倒序播放切换至顺序播放。In this embodiment of the present invention, the above-mentioned default playback order may be sequential playback, and the target playback order may be reversed playback; or the default playback order may be reversed playback, and the target playback order may be sequential playback. That is, the embodiments of the present invention provide The video playback method can be used to switch from sequential playback to reverse order playback, and can also be used to switch from reverse order playback to sequential playback.
示例性的,假设,视频片段选择控件从第一视频中选中的视频片段(即第一视频片段)当前的默认为顺序播放,则针对在图4或图5所示的输入满足预设输入条件的情况下,可以显示如图6所示的界面,并在界面中显示提示信息013(“设置成功,视频将倒序播放”),然后以倒序播放第一视频片段。Exemplarily, assuming that the video clip selected by the video clip selection control from the first video (ie, the first video clip) is currently played sequentially by default, then the preset input conditions are satisfied for the input shown in FIG. 4 or FIG. 5 . In the case of , the interface as shown in FIG. 6 can be displayed, and the prompt information 013 (“The setting is successful, the video will be played in reverse order”) is displayed in the interface, and then the first video clip is played in reverse order.
本发明实施例提供的视频播放方法、用户可以通过在第一视频的显示界面(即第一界面)中针对视频片段选择控件的第一输入,触发终端设备判断第一输入是否满足预设输入条件,并在满足的情况下,以与第一视频片段当前的默认播放顺序相反的播放顺序播放由视频片段选择控件所选中的视频片段(例如,第一视频片段当前默认播放顺序为顺序播放,则在确定第一输入满足预设输入条件的情况下,以倒序播放第一视频片段)。这样可以通过满足预设输入条件的一次输入就可以实现视频顺序播放与倒序播放的切换,从而提高视频顺序播放与倒序播放的切换效率,提高终端设备的人机交互性能。In the video playback method provided by the embodiment of the present invention, the user can trigger the terminal device to determine whether the first input satisfies the preset input conditions by selecting the first input of the control for the video clip in the display interface (ie, the first interface) of the first video. , and if satisfied, play the video clips selected by the video clip selection control in the opposite playback order to the current default playback order of the first video clip (for example, if the current default playback order of the first video clip is sequential playback, then If it is determined that the first input satisfies the preset input condition, the first video clip is played in reverse order). In this way, the switching between video sequential playback and reverse order playback can be realized by one input that meets the preset input conditions, thereby improving the switching efficiency of video sequential playback and reverse order playback, and improving the human-computer interaction performance of the terminal device.
如图7所示,本发明实施例还提供一种视频播放方法,该方法包括:As shown in FIG. 7 , an embodiment of the present invention further provides a video playback method, which includes:
201、在拍摄视频过程中,接收用户的第二输入。201. During the video shooting process, receive a second input from a user.
可选的,上述第二输入可以为在终端设备的显示屏上的点击输入,也可以为在终端设备的显示屏上的预设手势的输入。具体的可以根据实际使用需求确定,本发明实施例不作限定。Optionally, the above-mentioned second input may be a click input on the display screen of the terminal device, or may be an input of a preset gesture on the display screen of the terminal device. The specifics can be determined according to actual usage requirements, which are not limited in the embodiments of the present invention.
可选的,上述第二输入可以为在拍摄视频的过程中,在拍摄视频的页面中的对暂停拍摄按钮的点击输入。Optionally, the above-mentioned second input may be a click input on the pause shooting button on the page for shooting the video during the process of shooting the video.
示例性的,上述点击输入可以为单击、双击或者连续点击预设次数的输入。Exemplarily, the above-mentioned click input may be a single click, a double click, or an input of a preset number of consecutive clicks.
202、响应于第二输入,暂停拍摄视频,拍摄得到第二视频,并显示第二界面。202. In response to the second input, suspend video recording, capture a second video to obtain a second video, and display a second interface.
其中,第二视频为在拍摄视频过程中,接收到第二输入之前拍摄得到的视频,第二界面为接收到第二输入时的暂停拍摄界面。Wherein, the second video is a video obtained before receiving the second input during the video shooting process, and the second interface is a pause shooting interface when the second input is received.
可选的,上述第二界面包括目标图像,该目标图像为接收到第二输入时终端设备显示的图像,第二视频为在拍摄视频过程中,接收到第二输入之前拍摄得到的视频。Optionally, the above-mentioned second interface includes a target image, where the target image is an image displayed by the terminal device when the second input is received, and the second video is a video obtained before receiving the second input during the video shooting process.
可选的,上述第二界面可以为拍摄视频时的暂停拍摄后显示的暂停拍摄界面,通常在暂停拍摄界面可以显示暂停前拍摄的最后一帧图像。Optionally, the above-mentioned second interface may be a shooting pause interface displayed after the shooting is paused when shooting a video. Generally, the shooting pause interface may display the last frame of images shot before the pause.
示例性的,如8所示为拍摄视频的第三界面02,其中,该第三界面02中包括控件021和控件022,该控件021用于触发终端设备开始拍摄视频/暂停拍摄视频,该控件022用于触发终端设备暂停拍摄视频/继续拍摄视频。Exemplarily, as shown in 8 is the
进一步的,在正在拍摄视频的过程中,点击图8所示的第三界面02中的控件022可以暂停拍摄视频,并将第三界面02更新为如图9所示的第二界面03,其中,如图8中控件022处于正在拍摄的状态,此时该控件022用于触发终端设备暂停拍摄视频,图9中控件022处于暂停状态,此时该控件022用于触发终端设备继续拍摄视频。Further, in the process of shooting a video, click the
203、从第二视频中获取第二视频片段。203. Acquire a second video segment from the second video.
可选的,在从第二视频中获取第二视频片段之后,本发明实施例中,终端设备还可以删除上述第二视频。Optionally, after acquiring the second video segment from the second video, in this embodiment of the present invention, the terminal device may further delete the above-mentioned second video.
本发明实施例中,在获取第二视频片段之后,删除第二视频,可以节省终端设备的存储空间。In this embodiment of the present invention, after acquiring the second video segment, deleting the second video can save storage space of the terminal device.
204、接收用户在第二界面的第三输入。204. Receive a third input from the user on the second interface.
可选的,该第三输入可以为在暂停拍摄视频之后,在第二界面中触发继续拍摄视频的输入。Optionally, the third input may be an input for triggering the continuation of video shooting in the second interface after the video shooting is paused.
示例性的,该第三输入可以为在上述图9所示的第二界面02中点击控件012的输入。Exemplarily, the third input may be the input of clicking the
205、响应于第三输入,继续拍摄视频,以得到第三视频。205. In response to the third input, continue to shoot video to obtain a third video.
206、将第二视频片段与第三视频,合成第一视频。206. Synthesize the second video segment and the third video into the first video.
本发明实施例中,在终端设备接收到第三输入之后,还可以接收用于触发终端设备结束拍摄第三视频的输入。也就是说,本发明实施例中,可以在用户接收到第三输入之后,得到第三视频。In this embodiment of the present invention, after the terminal device receives the third input, it may also receive an input for triggering the terminal device to end shooting the third video. That is, in this embodiment of the present invention, after the user receives the third input, the third video may be obtained.
进一步的,可以响应于该结束拍摄第三视频的输入,得到第三视频,并将将第二视频片段与第三视频,合成第一视频。Further, in response to the input of ending shooting of the third video, the third video can be obtained, and the second video segment and the third video can be synthesized into the first video.
目前终端设备可以通过在拍摄页面中的输入,触发终端设备开始拍摄/暂停拍摄一段视频,或者触发终端设备暂停拍摄/继续拍摄一段视频。当拍摄的视频中间有部分内容用户不满意时,用户需要重新拍摄整段视频,使得拍摄视频的效率较低。Currently, the terminal device can trigger the terminal device to start shooting/pause the shooting of a video, or trigger the terminal device to pause/continue shooting a video through input in the shooting page. When there is some content in the middle of the shot video that the user is not satisfied with, the user needs to re-shoot the entire video, which makes the video shooting inefficient.
为解决上述问题,本发明实施例中,用户可以在拍摄视频的过程中,暂停拍摄视频,并获取拍摄得到的视频中的视频片段(即第二视频片段),并且继续拍摄视频,将继续拍摄得到的视频(即第三视频)和获取的第二视频片段合成为第第一视频。这样在拍摄的视频中有部分内容用户不满意时,用户可以获取拍摄得到的视频中除该部分内容以外的视频片段,并且重新拍摄一段新的视频,以及将重新拍摄的视频和获取的视频片段合成为一段新的视频,这样用户无需重新拍摄整段视频,从而这样的视频拍摄方法可以提高拍摄视频的效率。In order to solve the above problem, in this embodiment of the present invention, the user can pause the video shooting during the process of shooting the video, obtain the video clip (ie the second video clip) in the video obtained by shooting, and continue to shoot the video, and the shooting will continue. The obtained video (ie, the third video) and the obtained second video segment are synthesized into the first video. In this way, when the user is dissatisfied with some content in the captured video, the user can obtain the video clip other than the part of the content in the captured video, and re-shoot a new video, as well as the re-shot video and the obtained video clip. It is synthesized into a new video, so that the user does not need to re-shoot the entire video, so that such a video shooting method can improve the efficiency of video shooting.
207、显示第一界面。207. Display the first interface.
可选的,在合成第一视频之后,用户可以触发终端设备的视频剪辑功能,以使得终端设备显示第一视频的显示界面,并在此界面中对第一视频进行剪辑。Optionally, after synthesizing the first video, the user can trigger the video editing function of the terminal device, so that the terminal device displays a display interface of the first video, and edits the first video in this interface.
208、响应于用户在第一界面中调整视频片段选择控件的输入,使视频片段选择控件选中第一视频片段。208. In response to the user's input of adjusting the video segment selection control in the first interface, enable the video segment selection control to select the first video segment.
可选的,可以调整视频片段选择控件的大小,以选中不同长度的视频片段,或者通过调整视频片段选择控件的位置,以选中不同时段的视频片段。Optionally, the size of the video clip selection control can be adjusted to select video clips of different lengths, or the position of the video clip selection control can be adjusted to select video clips of different time periods.
本发明实施例中,可以通过调整视频片段选择控件,确定选中的视频片段在第一视频中所处的时间段,这样可以通过用户的输入,灵活的选择视频中的某一段,更加的灵活和人性化。In this embodiment of the present invention, the time period of the selected video segment in the first video can be determined by adjusting the video segment selection control, so that a certain segment in the video can be flexibly selected through the user's input, which is more flexible and efficient. Humanize.
209、接收用户针对第一界面中的视频片段选择控件的第一输入。209. Receive a first input from the user for selecting a control for a video clip in the first interface.
210、响应于第一输入,判断第一输入是否满足预设输入条件。210. In response to the first input, determine whether the first input satisfies a preset input condition.
本发明实施例中,若第一输入满足预设输入条件,则执行下述211;若第一输入不满足预设输入条件,则返回执行上述209。In this embodiment of the present invention, if the first input satisfies the preset input condition, execute the following 211; if the first input does not meet the preset input condition, return to execute the foregoing 209.
211、以目标播放顺序播放第一视频片段。211. Play the first video segment in the target playback order.
针对上述209、210和211的描述,可以参照上述对101、102和103的相关描述,此处不再赘述。For the descriptions of the above 209, 210 and 211, reference may be made to the above related descriptions of 101, 102 and 103, which will not be repeated here.
其中,上述目标播放顺序为与第一视频片段当前的默认播放顺序相反的播放顺序,第一视频片段为视频片段选择控件从第一视频中选中的视频片段。Wherein, the above-mentioned target playback order is a playback order opposite to the current default playback order of the first video clip, and the first video clip is a video clip selected from the first video by the video clip selection control.
本发明实施例提供的视频播放方法、用户可以通过在第一视频的显示界面(即第一界面)中针对视频片段选择控件的第一输入,触发终端设备判断第一输入是否满足预设输入条件,并在满足的情况下,以与第一视频片段当前的默认播放顺序相反的播放顺序播放由视频片段选择控件所选中的视频片段(例如,第一视频片段当前默认播放顺序为顺序播放,则在确定第一输入满足预设输入条件的情况下,以倒序播放第一视频片段)。这样可以通过满足预设输入条件的一次输入就可以实现视频顺序播放与倒序播放的切换,从而提高视频顺序播放与倒序播放的切换效率,提高终端设备的人机交互性能。In the video playback method provided by the embodiment of the present invention, the user can trigger the terminal device to determine whether the first input satisfies the preset input conditions by selecting the first input of the control for the video clip in the display interface (ie, the first interface) of the first video. , and if satisfied, play the video clips selected by the video clip selection control in the opposite playback order to the current default playback order of the first video clip (for example, if the current default playback order of the first video clip is sequential playback, then If it is determined that the first input satisfies the preset input condition, the first video clip is played in reverse order). In this way, the switching between video sequential playback and reverse order playback can be realized by one input that meets the preset input conditions, thereby improving the switching efficiency of video sequential playback and reverse order playback, and improving the human-computer interaction performance of the terminal device.
如图10所示,提供一种终端设备,该终端设备包括:As shown in FIG. 10, a terminal device is provided, and the terminal device includes:
接收模块301,用于接收用户针对第一界面中的视频片段选择控件的第一输入,第一界面为第一视频的显示界面;A receiving module 301, configured to receive a first input from a user for selecting a control for a video clip in a first interface, where the first interface is a display interface of the first video;
处理模块302,用于响应于第一输入,若第一输入满足预设输入条件,则以目标播放顺序播放第一视频片段,目标播放顺序为与第一视频片段当前的默认播放顺序相反的播放顺序,第一视频片段为视频片段选择控件从第一视频中选中的视频片段。The processing module 302 is configured to, in response to the first input, if the first input satisfies the preset input condition, play the first video clip in a target playback order, and the target playback order is the reverse of the current default playback order of the first video clip sequence, the first video clip is the video clip selected from the first video by the video clip selection control.
本发明实施例提供的终端设备,用户可以通过在第一视频的显示界面(即第一界面)中针对视频片段选择控件的第一输入,触发终端设备判断第一输入是否满足预设输入条件,并在满足的情况下,以与第一视频片段当前的默认播放顺序相反的播放顺序播放由视频片段选择控件所选中的视频片段(例如,第一视频片段当前默认播放顺序为顺序播放,则在确定第一输入满足预设输入条件的情况下,以倒序播放第一视频片段)。这样可以通过满足预设输入条件的一次输入就可以实现视频顺序播放与倒序播放的切换,从而提高视频顺序播放与倒序播放的切换效率,提高终端设备的人机交互性能。In the terminal device provided by the embodiment of the present invention, the user can trigger the terminal device to determine whether the first input satisfies the preset input condition by selecting the first input of the control for the video clip in the display interface (ie, the first interface) of the first video, And if satisfied, play the video clips selected by the video clip selection control in the opposite playback order to the current default playback order of the first video clip (for example, if the current default playback order of the first video clip is sequential playback, then If it is determined that the first input satisfies the preset input condition, the first video clip is played in reverse order). In this way, the switching between video sequential playback and reverse order playback can be realized by one input that meets the preset input conditions, thereby improving the switching efficiency of video sequential playback and reverse order playback, and improving the human-computer interaction performance of the terminal device.
可选的,第一输入为以下输入中的至少一种:Optionally, the first input is at least one of the following inputs:
触控输入、语音输入、手势输入和晃动终端设备的输入。Touch input, voice input, gesture input, and input by shaking the terminal device.
可选的,第一输入为双指触控输入;Optionally, the first input is a two-finger touch input;
预设输入条件为双指触控输入对应的旋转角度大于或等于预设角度;The preset input condition is that the rotation angle corresponding to the two-finger touch input is greater than or equal to the preset angle;
其中,旋转角度为第一连线与第二连线所形成的夹角,第一连线为双指触控输入的两个起始触控点的连线,第二连线为双指触控输入的两个终止触控点的连线。The rotation angle is the angle formed by the first connection line and the second connection line, the first connection line is the connection line between the two initial touch points of the two-finger touch input, and the second connection line is the two-finger touch The connection between the two terminating touch points of the control input.
可选的,第一输入为单指滑动输入;Optionally, the first input is a single-finger sliding input;
预设输入条件为单指滑动输入的滑动轨迹与预设滑动轨迹匹配。The preset input condition is that the sliding track inputted by one-finger sliding matches the preset sliding track.
可选的,接收模块301,还用于在接收用户针对目标界面中的视频片段选择控件的第一输入之前,在拍摄视频过程中,接收用户的第二输入;Optionally, the receiving module 301 is further configured to receive the second input from the user during the video shooting process before receiving the first input from the user for selecting the control for the video clip in the target interface;
处理模块302,还用于响应于第二输入,暂停拍摄视频,得到第二视频,并显示第二界面,以及从第二视频中获取第二视频片段,第二视频为在拍摄视频过程中,接收到第二输入之前拍摄得到的视频,第二界面为接收到第二输入时的暂停拍摄界面;将第二视频片段与第三视频,合成第一视频。The processing module 302 is further configured to, in response to the second input, suspend the shooting of the video, obtain the second video, display the second interface, and obtain a second video clip from the second video, the second video is in the process of shooting the video, For the video shot before the second input is received, the second interface is a paused shooting interface when the second input is received; the second video segment and the third video are combined into the first video.
可选的,接收模块,还用于将第二视频片段与第三视频,合成第一视频之前,接收用户在第二界面的第三输入;Optionally, the receiving module is further configured to receive the third input from the user on the second interface before synthesizing the second video segment and the third video into the first video;
处理模块,还用于响应于第三输入,继续拍摄视频,以得到第三视频。The processing module is further configured to continue to shoot video in response to the third input to obtain a third video.
可选的,终端设备还包括:显示模块303,用于处理模块302将第二视频片段与第三视频,合成第一视频之后,接收模块301接收用户针对目标界面中的视频片段选择控件的第一输入之前,显示第一界面;Optionally, the terminal device further includes: a display module 303, which is used for the processing module 302 to synthesize the second video clip and the third video into the first video, and then the receiving module 301 receives the user's first video clip selection control in the target interface. Before inputting, display the first interface;
处理模块,用于响应于用户在第一界面中调整视频片段选择控件的输入,视频片段选择控件选中第一视频片段。The processing module is configured to select the first video segment by the video segment selection control in response to the user's input of adjusting the video segment selection control in the first interface.
本发明实施例中,用户可以在拍摄视频的过程中,暂停拍摄视频,并获取拍摄得到的视频中的视频片段(即第二视频片段),并且继续拍摄视频,将继续拍摄得到的视频(即第三视频)和获取的第二视频片段合成为第第一视频。这样在拍摄的视频中有部分内容用户不满意时,用户可以获取拍摄得到的视频中除该部分内容以外的视频片段,并且重新拍摄一段新的视频,以及将重新拍摄的视频和获取的视频片段合成为一段新的视频,这样用户无需重新拍摄整段视频,从而这样的视频拍摄方法可以提高拍摄视频的效率。In the embodiment of the present invention, the user may pause the video shooting during the process of shooting the video, obtain the video clip (ie the second video clip) in the captured video, and continue to shoot the video, and continue to shoot the obtained video (ie, the second video clip). The third video) and the acquired second video segment are synthesized into the first video. In this way, when the user is dissatisfied with some content in the captured video, the user can obtain the video clip other than the part of the content in the captured video, and re-shoot a new video, as well as the re-shot video and the obtained video clip. It is synthesized into a new video, so that the user does not need to re-shoot the entire video, so that such a video shooting method can improve the efficiency of video shooting.
如图11所示,手机可以包括:射频(radio frequency,RF)电路1110、存储器1120、输入单元1130、显示单元1140、传感器1150、音频电路1160、无线保真(wireless fidelity,WiFi)模块1170、处理器1180、以及电源1190等部件。其中,射频电路1110包括接收器1111和发送器1112。本领域技术人员可以理解,图11中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。As shown in FIG. 11 , the mobile phone may include: a radio frequency (RF)
RF电路1110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1180处理;另外,将设计上行的数据发送给基站。通常,RF电路1110包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noiseamplifier,LNA)、双工器等。此外,RF电路1110还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(globalsystem of mobile communication,GSM)、通用分组无线服务(general packet radioservice,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。The
存储器1120可用于存储软件程序以及模块,处理器1180通过运行存储在存储器1120的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
输入单元1130可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元1130可包括触控面板1131以及其他输入设备1132。触控面板1131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1131上或在触控面板1131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1180,并能接收处理器1180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1131。除了触控面板1131,输入单元1130还可以包括其他输入设备1132。具体地,其他输入设备1132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
显示单元1140可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1140可包括显示面板1141,可选的,可以采用液晶显示器(liquidcrystal display,LCD)、有机发光二极管(organic light-Emitting diode,OLED)等形式来配置显示面板1141。进一步的,触控面板1131可覆盖显示面板1141,当触控面板1131检测到在其上或附近的触摸操作后,传送给处理器1180以确定触摸事件的类型,随后处理器1180根据触摸事件的类型在显示面板1141上提供相应的视觉输出。虽然在图11中,触控面板1131与显示面板1141是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1131与显示面板1141集成而实现手机的输入和输出功能。The
手机还可包括至少一种传感器1150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1141的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one
音频电路1160、扬声器1161,传声器1162可提供用户与手机之间的音频接口。音频电路1160可将接收到的音频数据转换后的电信号,传输到扬声器1161,由扬声器1161转换为声音信号输出;另一方面,传声器1162将收集的声音信号转换为电信号,由音频电路1160接收后转换为音频数据,再将音频数据输出处理器1180处理后,经RF电路1110以发送给比如另一手机,或者将音频数据输出至存储器1120以便进一步处理。The
WiFi属于短距离无线传输技术,手机通过WiFi模块1170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图11示出了WiFi模块1170,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the
处理器1180是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1120内的软件程序和/或模块,以及调用存储在存储器1120内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1180可包括一个或多个处理单元;优选的,处理器1180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1180中。The
手机还包括给各个部件供电的电源1190(比如电池),优选的,电源可以通过电源管理系统与处理器1180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。The mobile phone also includes a power supply 1190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the
本发明实施例中,输入单元1130,用于接收用户针对第一界面中的视频片段选择控件的第一输入,第一界面为第一视频的显示界面;In this embodiment of the present invention, the
处理器1180,用于响应于第一输入,若第一输入满足预设输入条件,则以目标播放顺序播放第一视频片段,目标播放顺序为与第一视频片段当前的默认播放顺序相反的播放顺序,第一视频片段为视频片段选择控件从第一视频中选中的视频片段。The
可选的,第一输入为以下输入中的至少一种:Optionally, the first input is at least one of the following inputs:
触控输入、语音输入、手势输入和晃动终端设备的输入。Touch input, voice input, gesture input, and input by shaking the terminal device.
可选的,第一输入为双指触控输入;Optionally, the first input is a two-finger touch input;
预设输入条件为双指触控输入对应的旋转角度大于或等于预设角度;The preset input condition is that the rotation angle corresponding to the two-finger touch input is greater than or equal to the preset angle;
其中,旋转角度为第一连线与第二连线所形成的夹角,第一连线为双指触控输入的两个起始触控点的连线,第二连线为双指触控输入的两个终止触控点的连线。The rotation angle is the angle formed by the first connection line and the second connection line, the first connection line is the connection line between the two initial touch points of the two-finger touch input, and the second connection line is the two-finger touch The connection between the two terminating touch points of the control input.
可选的,第一输入为单指滑动输入;Optionally, the first input is a single-finger sliding input;
预设输入条件为单指滑动输入的滑动轨迹与预设滑动轨迹匹配。The preset input condition is that the sliding track inputted by one-finger sliding matches the preset sliding track.
可选的,接收器,还用于在接收用户针对目标界面中的视频片段选择控件的第一输入之前,在拍摄视频过程中,接收用户的第二输入;Optionally, the receiver is further configured to receive the second input from the user during the video shooting process before receiving the first input from the user for selecting the control for the video clip in the target interface;
处理器1180,还用于响应于第二输入,暂停拍摄视频,得到第二视频,并显示第二界面,以及从第二视频中获取第二视频片段,第二视频为在拍摄视频过程中,接收到第二输入之前拍摄得到的视频,第二界面为接收到第二输入时的暂停拍摄界面;将第二视频片段与第三视频,合成第一视频。The
可选的,输入单元1130,还用于将第二视频片段与第三视频,合成第一视频之前,接收用户在第二界面的第三输入;Optionally, the
处理模块,还用于响应于第三输入,继续拍摄视频,以得到第三视频。The processing module is further configured to continue to shoot video in response to the third input to obtain a third video.
可选的,显示单元1140,用于处理模块302将第二视频片段与第三视频,合成第一视频之后,输入单元1130,接收用户针对目标界面中的视频片段选择控件的第一输入之前,显示第一界面;Optionally, the
处理器1180,用于响应于用户在第一界面中调整视频片段选择控件的输入,视频片段选择控件选中第一视频片段。The
本发明实施例还提供一种终端设备,该终端设备可以包括处理器,存储器以及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时可以实现上述方法实施例中终端设备执行的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention further provides a terminal device, the terminal device may include a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor may implement the above method embodiments Each process performed by the terminal device can achieve the same technical effect. In order to avoid repetition, details are not repeated here.
本发明实施例提供一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述方法实施例中终端设备执行的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention provides a computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process performed by the terminal device in the foregoing method embodiment is implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
其中,该计算机可读存储介质可以为只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010332198.9A CN111526426A (en) | 2020-04-24 | 2020-04-24 | Video playing method, terminal equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010332198.9A CN111526426A (en) | 2020-04-24 | 2020-04-24 | Video playing method, terminal equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111526426A true CN111526426A (en) | 2020-08-11 |
Family
ID=71910583
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010332198.9A Pending CN111526426A (en) | 2020-04-24 | 2020-04-24 | Video playing method, terminal equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111526426A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112738635A (en) * | 2020-12-28 | 2021-04-30 | 上海掌门科技有限公司 | A method and device for playing video information |
| CN113596555A (en) * | 2021-06-21 | 2021-11-02 | 维沃移动通信(杭州)有限公司 | Video playing method and device and electronic equipment |
| CN113766321A (en) * | 2020-09-29 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | A video playback method, device, device and storage medium |
| CN115037872A (en) * | 2021-11-30 | 2022-09-09 | 荣耀终端有限公司 | Video processing method and related device |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103389863A (en) * | 2013-07-29 | 2013-11-13 | 北京小米科技有限责任公司 | Display control method and device |
| CN106803856A (en) * | 2016-12-09 | 2017-06-06 | 重庆零度智控智能科技有限公司 | video playing control method and device |
| US20180192146A1 (en) * | 2015-08-29 | 2018-07-05 | Huawei Technologies Co., Ltd. | Method and Apparatus for Playing Video Content From Any Location and Any Time |
| US20190004605A1 (en) * | 2015-03-08 | 2019-01-03 | Apple Inc. | Devices and Methods for Controlling Media Presentation |
| CN109922265A (en) * | 2019-03-28 | 2019-06-21 | 维沃移动通信有限公司 | Video capture method and terminal device |
| CN110351553A (en) * | 2018-04-08 | 2019-10-18 | 腾讯科技(深圳)有限公司 | Video broadcasts, the video processing method of falling multicast data, device and computer equipment |
-
2020
- 2020-04-24 CN CN202010332198.9A patent/CN111526426A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103389863A (en) * | 2013-07-29 | 2013-11-13 | 北京小米科技有限责任公司 | Display control method and device |
| US20190004605A1 (en) * | 2015-03-08 | 2019-01-03 | Apple Inc. | Devices and Methods for Controlling Media Presentation |
| US20180192146A1 (en) * | 2015-08-29 | 2018-07-05 | Huawei Technologies Co., Ltd. | Method and Apparatus for Playing Video Content From Any Location and Any Time |
| CN106803856A (en) * | 2016-12-09 | 2017-06-06 | 重庆零度智控智能科技有限公司 | video playing control method and device |
| CN110351553A (en) * | 2018-04-08 | 2019-10-18 | 腾讯科技(深圳)有限公司 | Video broadcasts, the video processing method of falling multicast data, device and computer equipment |
| CN109922265A (en) * | 2019-03-28 | 2019-06-21 | 维沃移动通信有限公司 | Video capture method and terminal device |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113766321A (en) * | 2020-09-29 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | A video playback method, device, device and storage medium |
| CN113766321B (en) * | 2020-09-29 | 2025-02-21 | 北京沃东天骏信息技术有限公司 | Video playback method, device, equipment and storage medium |
| CN112738635A (en) * | 2020-12-28 | 2021-04-30 | 上海掌门科技有限公司 | A method and device for playing video information |
| CN113596555A (en) * | 2021-06-21 | 2021-11-02 | 维沃移动通信(杭州)有限公司 | Video playing method and device and electronic equipment |
| CN113596555B (en) * | 2021-06-21 | 2024-01-19 | 维沃移动通信(杭州)有限公司 | Video playing method and device and electronic equipment |
| CN115037872A (en) * | 2021-11-30 | 2022-09-09 | 荣耀终端有限公司 | Video processing method and related device |
| CN115037872B (en) * | 2021-11-30 | 2024-03-19 | 荣耀终端有限公司 | Video processing method and related device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108762954B (en) | Object sharing method and mobile terminal | |
| CN110557566B (en) | Video shooting method and electronic equipment | |
| CN108737904B (en) | A kind of video data processing method and mobile terminal | |
| CN105700804B (en) | Method for responding to operation trajectory and operation trajectory response device | |
| EP3309670B1 (en) | Method for responding to operation track and operation track response apparatus | |
| CN106803993B (en) | Method and device for realizing video branch selection playing | |
| CN106406892A (en) | A shortcut function display method and device for applications and a terminal apparatus | |
| CN111526426A (en) | Video playing method, terminal equipment and storage medium | |
| CN106231433B (en) | A kind of methods, devices and systems playing network video | |
| CN110413364A (en) | A kind of information processing method and terminal | |
| CN110248251A (en) | A kind of multi-medium play method and terminal device | |
| CN110868633A (en) | A video processing method and electronic device | |
| CN108132749B (en) | Image editing method and mobile terminal | |
| CN110879680B (en) | Icon management method and electronic device | |
| CN110865745A (en) | Screen capturing method and terminal equipment | |
| CN109922265B (en) | Video shooting method and terminal device | |
| CN110442297A (en) | Split screen display method, split screen display device and terminal equipment | |
| CN111124223A (en) | Application interface switching method and electronic device | |
| CN108616771A (en) | Video broadcasting method and mobile terminal | |
| CN108334265A (en) | A kind of document handling method and mobile terminal | |
| CN108073405B (en) | Application program unloading method and mobile terminal | |
| CN110196668A (en) | Information processing method and terminal device | |
| CN109445589B (en) | A kind of multimedia file playback control method and terminal device | |
| CN108347642A (en) | A kind of video broadcasting method and mobile terminal | |
| WO2021104268A1 (en) | Content sharing method, and electronic apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200811 |
|
| RJ01 | Rejection of invention patent application after publication |