







技术领域technical field
本发明涉及终端技术领域,特别涉及一种截屏方法及终端。The present invention relates to the technical field of terminals, and in particular, to a screen capture method and a terminal.
背景技术Background technique
在用户观看视频时,若用户需要对视频画面进行截屏,主要实现方式为:暂停播放的视频,进行截屏操作,然后再继续进行视频的播放。When a user is watching a video, if the user needs to take a screenshot of the video screen, the main implementation method is as follows: pause the playing video, perform a screenshot operation, and then continue to play the video.
但是,由于视频是动态播放的,有可能当前暂停的视频画面并不是用户想要截取的那一帧画面,可能需要用户进行回退再去截屏,若回放的帧数较多,则需要用户花很长时间去回退视频,或者反复调整暂停与播放按钮,以定位到目标帧,此种方式给用户操作带来了很大的不便,极大的降低了用户体验。However, since the video is played dynamically, it is possible that the currently paused video picture is not the frame that the user wants to capture, and the user may need to roll back and then take a screenshot. It takes a long time to rewind the video, or repeatedly adjust the pause and play buttons to locate the target frame, which brings great inconvenience to the user's operation and greatly reduces the user experience.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种截屏方法及终端,以解决现有的视频截屏方式,定位准确度较低,会造成用户操作繁琐的问题。Embodiments of the present invention provide a screen capture method and a terminal, so as to solve the problem that the existing video screen capture method has low positioning accuracy and causes complicated user operations.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:
第一方面,本发明实施例提供一种截屏方法,应用于具有双面屏的终端,包括:In a first aspect, an embodiment of the present invention provides a screen capture method, which is applied to a terminal with a double-sided screen, including:
在第一屏幕和第二屏幕进行同一多媒体文件播放的情况下,接收用户在多媒体文件的播放画面上的第一截屏操作;Under the situation that the same multimedia file is played on the first screen and the second screen, receiving the user's first screenshot operation on the playback screen of the multimedia file;
响应于所述第一截屏操作,在终端的第一屏幕上显示截取的多媒体文件的至少一张第一截屏图像,在终端的第二屏幕上显示所述多媒体文件的播放画面;In response to the first screenshot operation, displaying at least one first screenshot image of the intercepted multimedia file on the first screen of the terminal, and displaying a playback picture of the multimedia file on the second screen of the terminal;
若检测到用户在所述至少一张第一截屏图像中选择目标图像的操作,则进行所述目标图像的保存;If it is detected that the user selects a target image in the at least one first screenshot image, saving the target image;
其中,所述至少一张第一截屏图像至少包括:所述第一截屏操作所在的时刻对应的多媒体文件的播放时刻之前的一张截屏图像。Wherein, the at least one first screenshot image includes at least: a screenshot image before the playback time of the multimedia file corresponding to the moment at which the first screenshot operation is performed.
第二方面,本发明实施例还提供一种终端,所述终端具有双面屏,包括:In a second aspect, an embodiment of the present invention further provides a terminal, where the terminal has a double-sided screen, including:
接收模块,用于在第一屏幕和第二屏幕进行同一多媒体文件播放的情况下,接收用户在多媒体文件的播放画面上的第一截屏操作;a receiving module, configured to receive the user's first screenshot operation on the playback screen of the multimedia file when the first screen and the second screen play the same multimedia file;
第一显示模块,用于响应于所述第一截屏操作,在终端的第一屏幕上显示截取的多媒体文件的至少一张第一截屏图像,在终端的第二屏幕上显示所述多媒体文件的播放画面;The first display module is configured to, in response to the first screenshot operation, display at least one first screenshot image of the captured multimedia file on the first screen of the terminal, and display an image of the multimedia file on the second screen of the terminal. play screen;
保存模块,用于若检测到用户在所述至少一张第一截屏图像中选择目标图像的操作,则进行所述目标图像的保存;a saving module, configured to save the target image if an operation of selecting a target image in the at least one first screenshot image by the user is detected;
其中,所述至少一张第一截屏图像至少包括:所述第一截屏操作所在的时刻对应的多媒体文件的播放时刻之前的一张截屏图像。Wherein, the at least one first screenshot image includes at least: a screenshot image before the playback time of the multimedia file corresponding to the moment at which the first screenshot operation is performed.
第三方面,本发明实施例还提供一种终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述的截屏方法的步骤。In a third aspect, an embodiment of the present invention further provides a terminal, including: a memory, a processor, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor to implement the above-mentioned Screenshot method steps.
第四方面,本发明实施例还提供一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述的截屏方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein 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 above-mentioned screenshot method are implemented.
在本发明实施例中,通过在用户使用双屏观看视频时,进行截屏操作,不影响用户对视频的观看,同时也减少了用户截屏的操作步骤,方便了用户操作,提升了用户的使用体验效果。In the embodiment of the present invention, by performing a screen capture operation when the user uses dual screens to watch a video, the user's viewing of the video is not affected, and the operation steps for the user to capture the screen are also reduced, which facilitates the user's operation and improves the user's use experience. Effect.
附图说明Description of drawings
图1表示本发明实施例的截屏方法的流程示意图;1 shows a schematic flowchart of a screenshot method according to an embodiment of the present invention;
图2表示终端屏幕显示示意图;Fig. 2 shows the schematic diagram of terminal screen display;
图3表示本发明实施例的终端的模块示意图之一;FIG. 3 shows one of the schematic diagrams of modules of a terminal according to an embodiment of the present invention;
图4表示本发明实施例的终端的模块示意图之二;FIG. 4 shows the second schematic diagram of a module of a terminal according to an embodiment of the present invention;
图5表示本发明实施例的终端的模块示意图之三;FIG. 5 shows the third schematic diagram of a module of a terminal according to an embodiment of the present invention;
图6表示本发明实施例的终端的模块示意图之四;FIG. 6 shows a fourth schematic diagram of a module of a terminal according to an embodiment of the present invention;
图7表示本发明实施例的终端的模块示意图之五;FIG. 7 shows a fifth schematic diagram of a module of a terminal according to an embodiment of the present invention;
图8表示本发明实施例的终端的硬件结构示意图。FIG. 8 shows a schematic diagram of a hardware structure of a terminal 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.
如图1所示,本发明实施例提供一种截屏方法,应用于具有双面屏的终端,包括:As shown in FIG. 1 , an embodiment of the present invention provides a screen capture method, which is applied to a terminal with a double-sided screen, including:
步骤101,在第一屏幕和第二屏幕进行同一多媒体文件播放的情况下,接收用户在多媒体文件的播放画面上的第一截屏操作;
需要说明的是,第一屏幕和第二屏幕进行同一多媒体文件播放的情况指的是:第一屏幕和第二屏幕共同显示同一多媒体文件的播放画面;此种截屏方式是针对在两个屏幕上播放的多媒体文件的画面进行截屏,例如,对在两个屏幕上播放的视频画面进行截屏操作。It should be noted that the situation in which the first screen and the second screen play the same multimedia file refers to the fact that the first screen and the second screen jointly display the playback screen of the same multimedia file; Screen capture of the screen of the multimedia file being played, for example, screen capture of the video screen played on the two screens.
步骤102,响应于所述第一截屏操作,在终端的第一屏幕上显示截取的多媒体文件的至少一张第一截屏图像,在终端的第二屏幕上显示所述多媒体文件的播放画面;
在接收到用户的截屏操作时,需要进行多媒体文件播放画面的截屏,同时,将截屏得到的图像在屏幕上显示,具体地,在进行显示时,先将多媒体播放画面分屏到一个屏幕上显示,将截屏得到的图像在另一个屏幕上显示,上述所提到的第一屏幕便是未进行多媒体文件播放的屏幕。When receiving the user's screenshot operation, it is necessary to take a screenshot of the multimedia file playback screen, and at the same time, the image obtained by the screenshot is displayed on the screen. , the image obtained by the screenshot is displayed on another screen, and the first screen mentioned above is the screen in which the multimedia file is not played.
还需要说明的是,所述至少一张第一截屏图像至少包括:所述第一截屏操作所在的时刻对应的多媒体文件的播放时刻之前的一张截屏图像。It should also be noted that the at least one first screenshot image includes at least one screenshot image before the playback time of the multimedia file corresponding to the moment at which the first screenshot operation is performed.
步骤103,若检测到用户在所述至少一张第一截屏图像中选择目标图像的操作,则进行所述目标图像的保存;
需要说明的是,在终端的第一屏幕上显示截取的多媒体文件的至少一张第一截屏图像后,终端判断是否检测到用户在所述至少一张第一截屏图像中选择目标图像的操作,当采集到用户在截屏图像中选择需要保存的图像时,进行所述图像的保存,以获取实际想要的截屏图像。It should be noted that, after displaying at least one first screenshot image of the multimedia file captured on the first screen of the terminal, the terminal determines whether an operation of selecting a target image in the at least one first screenshot image by the user is detected, When it is collected that the user selects the image to be saved in the screenshot image, the image is saved to obtain the actually desired screenshot image.
还需要说明的是,该第一截屏操作可以为截取当前时刻的多媒体播放画面以及已经播放帧的多媒体画面的操作或者只截取已经播放帧的多媒体画面的操作。It should also be noted that the first screen capture operation may be an operation of capturing the multimedia playback image of the current moment and the multimedia image of the already played frame, or an operation of only capturing the multimedia image of the played frame.
下面在第一截屏操作为截取已经播放帧的多媒体画面的操作的情况下,对步骤102的实现方式进行具体说明如下。Below, in the case where the first screenshot operation is an operation of capturing a multimedia picture of a frame that has been played, the implementation of
具体地,当第一截屏操作为只截取已经播放帧的多媒体画面的操作时,可以定义截取已经播放帧的多媒体画面的操作的用户手势(即第一操作,也可以称为往后截屏的手势),例如,该用户手势为在多媒体播放画面上向左斜上方滑动屏幕,需要说明的是,该用户手势需要与当前时刻的多媒体播放画面以及已经播放帧的多媒体画面的操作的用户手势进行区分,例如,截取当前时刻的多媒体播放画面以及已经播放帧的多媒体画面的操作的用户手势为双击多媒体播放画面。Specifically, when the first screen capture operation is an operation of only capturing the multimedia screen of the frame that has been played, a user gesture for capturing the multimedia screen of the frame that has been played can be defined (ie, the first operation, which can also be referred to as the gesture of taking screen shots back). ), for example, this user gesture is to slide the screen to the upper left on the multimedia playback screen, it should be noted that this user gesture needs to be differentiated from the user gesture of the operation of the multimedia playback screen of the current moment and the multimedia screen of the already played frame For example, the user gesture for the operation of capturing the multimedia playback picture at the current moment and the multimedia picture of the already played frame is to double-click the multimedia playback picture.
进一步地,在确定用户需要截取已经播放帧的多媒体画面的操作之后,所述步骤102的具体实现方式为:Further, after it is determined that the user needs to intercept the operation of the multimedia picture of the played frame, the specific implementation of the
步骤1021,获取位于第一时刻之前的多媒体文件的第一预设数量的第一画面帧;Step 1021, obtaining the first picture frame of the first preset number of the multimedia file before the first moment;
需要说明的是,所述第一时刻为所述第一截屏操作所在的时刻对应的多媒体文件的播放时刻;该第一预设数量大于或等于一。It should be noted that the first moment is the playback moment of the multimedia file corresponding to the moment at which the first screenshot operation is performed; the first preset number is greater than or equal to one.
还需要说明的是,该第一画面帧为有效画面帧,即在获取画面帧时,自动将因为模糊或者空白的画面帧设置为无效画面帧,并自动将该无效画面帧过滤掉。具体地,第一预设数量为预先设置好的第一画面帧的数量,该数量可以由用户根据自己的需求,灵活设置。It should also be noted that the first picture frame is a valid picture frame, that is, when a picture frame is acquired, the blurred or blank picture frame is automatically set as an invalid picture frame, and the invalid picture frame is automatically filtered out. Specifically, the first preset number is a preset number of first picture frames, and the number can be flexibly set by the user according to their own needs.
还需要说明的是,在获取画面帧时,可能会获取到很多相似的画面帧,如果将所有的画面帧都生成对应的截屏图像势必会占用较多的缓存空间,因此,针对此种情况,步骤1021的具体实现方式为:若存在相似度达到预设值的至少两帧图像,则选取所述至少两帧图像中的一帧作为第一画面帧。例如,当两帧图像的相似度达到预设值(例如,百分之九十)时,可以认为两帧图像为相同的图像,此时,只要选取其中的一副作为第一画面帧即可。It should also be noted that when acquiring picture frames, many similar picture frames may be obtained. If all the picture frames are generated corresponding screenshot images, it will inevitably occupy more cache space. Therefore, for this situation, The specific implementation manner of step 1021 is as follows: if there are at least two frames of images whose similarity reaches a preset value, selecting one frame of the at least two frames of images as the first picture frame. For example, when the similarity of the two frames of images reaches a preset value (for example, 90%), it can be considered that the two frames of images are the same image, and at this time, only one of them can be selected as the first frame. .
步骤1022,根据所述第一预设数量的第一画面帧,生成第一预设数量的第一截屏图像;Step 1022, generating a first preset number of first screenshot images according to the first preset number of first picture frames;
需要说明的是,每个第一画面帧对应一个第一截屏图像。It should be noted that each first picture frame corresponds to a first screenshot image.
步骤1023,在所述终端的第一屏幕上显示所述第一预设数量的第一截屏图像;Step 1023, displaying the first preset number of first screenshot images on the first screen of the terminal;
具体地,该步骤1023的实现方式为:根据所述第一截屏图像在多媒体文件中的播放时间,将所述第一预设数量的第一截屏图像在所述第一屏幕上显示。Specifically, this step 1023 is implemented by: displaying the first preset number of first screenshot images on the first screen according to the playing time of the first screenshot images in the multimedia file.
需要说明的是,此种方式是按照时间顺序实现对第一截屏图像的显示,更进一步地,按照所述第一截屏图像在多媒体文件中的播放时间降序的顺序,将所述第一预设数量的第一截屏图像在所述第一屏幕上从前往后依次显示。It should be noted that this method realizes the display of the first screenshot image in chronological order, and further, according to the descending order of the playback time of the first screenshot image in the multimedia file, the first preset The number of first screenshot images are displayed sequentially on the first screen from front to back.
进一步需要说明的是,当用户从第一截屏图像中选择了需要保存的图像时,进行用户选择的图像的保存,图像保存的过程中可以对图片进行编辑,或者将图像拼接成小视屏等;同时,为了不占用过多的存储空间,终端会删除所述至少一张第一截屏图像中除所述目标图像之外的第一截屏图像,即将用户不需要保存的截屏图像从缓存中删除。It should be further noted that when the user selects the image to be saved from the first screenshot image, the image selected by the user is saved, and the image can be edited during the image saving process, or the image can be stitched into a small video screen, etc.; At the same time, in order not to occupy too much storage space, the terminal will delete the first screenshot images other than the target image in the at least one first screenshot image, that is, delete screenshot images that the user does not need to save from the cache.
例如,在用户使用双屏模式观看视频时,当用户执行截屏操作时,视频播放画面缩小到在一个屏幕上播放,如图2所示,第二屏幕22上继续播放视频画面,第一屏幕21上显示第一截屏图像,通常情况下,因第一截屏图像的数量会较多,因此,第一屏幕21上通常显示的是第一截屏图像的缩略图;这些缩略图按照在视频中的播放时间从后往前排,即时间越晚的排在最前面,时间越早的排在最后面。例如,图2中以九宫格的方式显示了9张截屏图像,用户可以通过上下滑动查看其它截屏图像,也可以单击截屏图像进入图像的预览界面,为了不占用存储空间,截取的所有画面帧只是暂时保存在终端的缓存中,当确定用户需要保存的截屏图像,终端将该截屏图像保存至存储空间中,将用户不需要保存的截屏图像直接从缓存中释放,再退出截屏图像显示模式之后恢复到截屏前的状态,即利用两个屏幕同时进行视频的播放。For example, when the user uses the dual-screen mode to watch a video, when the user performs a screen capture operation, the video playback screen is reduced to play on one screen, as shown in FIG. 2 , the video screen continues to be played on the
可选地,若未检测到用户在所述至少一张第一截屏图像中选择目标图像的操作时,所述截屏方法,还包括:Optionally, if the user's operation of selecting a target image in the at least one first screenshot image is not detected, the screenshot method further includes:
确定所述第一预设数量的第一截屏图像中的第一图像;determining a first image in the first preset number of first screenshot images;
此处说明的是,用户选中第一截屏图像中的某个图像。It is explained here that the user selects an image in the first screenshot image.
在所述第一图像的预览模式下,检测用户的第二截屏操作;In the preview mode of the first image, detecting a second screenshot operation of the user;
在检测到所述第二截屏操作时,在终端的第一屏幕上显示第二预设数量的第二截屏图像;When the second screenshot operation is detected, displaying a second preset number of second screenshot images on the first screen of the terminal;
需要说明的是,所述第二截屏图像对应的播放时间早于所述第一图像对应的播放时间。It should be noted that the playback time corresponding to the second screenshot image is earlier than the playback time corresponding to the first image.
此种情况指的是,当首次获取的截屏图像没有用户想要的图像时,继续进行截屏,且后续在得到的截屏图像对应在多媒体文件中的播放时间早于用户选中的第一图像对应在多媒体文件中的播放时间;还需要说明的是,为了降低缓存的占用,在终端的第一屏幕上显示第二预设数量的第二截屏图像之前,终端还需要在缓存中删除所述第一预设数量的第一截屏图像。This situation means that when the screenshot image obtained for the first time does not have the image the user wants, the screenshot is continued, and the playback time corresponding to the screenshot image obtained later in the multimedia file is earlier than that of the first image selected by the user. The playback time in the multimedia file; it should also be noted that, in order to reduce the occupation of the cache, before displaying the second preset number of second screenshot images on the first screen of the terminal, the terminal also needs to delete the first screenshot in the cache. A preset number of first screenshots.
例如,若至少一张第一截屏图像中都没有目标画面,则选择时间最早的画面帧(该画面记为PT)进入图像预览模式,并在预览界面重新启动往后截屏的手势,则终端自动以当前图像对应的画面帧为起始点,继续往后截取视频中的有效画面帧,同时画面PT和时间点在画面PT以后的其他画面帧释放占用的缓存,新截取的画面帧的显示方式与第一截屏图像的显示方式相同;重复此步骤,一直截取到用户的目标画面。For example, if there is no target picture in at least one of the first screenshot images, select the picture frame with the earliest time (the picture is marked as PT) to enter the image preview mode, and restart the gesture of taking screenshots in the preview interface, then the terminal automatically Taking the picture frame corresponding to the current image as the starting point, continue to capture valid picture frames in the video, while the picture PT and other picture frames after the picture PT release the occupied cache, and the display mode of the newly intercepted picture frame is the same as that of the picture frame. The first screenshot image is displayed in the same manner; this step is repeated until the user's target image is captured.
还需要说明的是,当第一截屏操作可以为截取当前时刻的多媒体播放画面以及已经播放帧的多媒体画面的操作时,第一截屏图像中需要包括:所述第一截屏操作所在的时刻对应的多媒体文件的播放时刻的截屏图像和所述第一截屏操作所在的时刻对应的多媒体文件的播放时刻之前的至少一张截屏图像;具体地,所述第一截屏操作所在的时刻对应的多媒体文件的播放时刻之前的至少一张截屏图像的获取方式与第一截屏操作为只截取已经播放帧的多媒体画面的操作时的截屏图像的获取方式类似,在此不再赘述。It should also be noted that, when the first screenshot operation can be an operation of capturing the multimedia playback picture at the current moment and the multimedia picture of the already played frame, the first screenshot image needs to include: The screenshot image at the playback moment of the multimedia file and at least one screenshot image before the playback moment of the multimedia file corresponding to the moment of the first screenshot operation; The acquisition method of the at least one screenshot image before the playback time is similar to the acquisition method of the screenshot image when the first screenshot operation is to only capture the multimedia picture of the played frame, and will not be repeated here.
需要说明的是,本发明实施例中,通过在用户使用双屏观看视频时,进行截屏操作,不影响用户对视频的观看,同时也减少了用户截屏的操作步骤,方便了用户操作,提升了用户的使用体验效果。It should be noted that, in this embodiment of the present invention, by performing a screen capture operation when the user uses dual screens to watch a video, the user's viewing of the video is not affected, and the operation steps for the user to capture the screen are also reduced, which facilitates the user's operation and improves the performance. User experience effect.
如图3至图7所示,本发明实施例还提供一种终端,所述终端具有双面屏,包括:As shown in FIG. 3 to FIG. 7 , an embodiment of the present invention further provides a terminal, where the terminal has a double-sided screen, including:
接收模块301,用于在第一屏幕和第二屏幕进行同一多媒体文件播放的情况下,接收用户在多媒体文件的播放画面上的第一截屏操作;The receiving
第一显示模块302,用于响应于所述第一截屏操作,在终端的第一屏幕上显示截取的多媒体文件的至少一张第一截屏图像,在终端的第二屏幕上显示所述多媒体文件的播放画面;The
保存模块303,用于若检测到用户在所述至少一张第一截屏图像中选择目标图像的操作,则进行所述目标图像的保存;a saving
其中,所述至少一张第一截屏图像至少包括:所述第一截屏操作所在的时刻对应的多媒体文件的播放时刻之前的一张截屏图像。Wherein, the at least one first screenshot image includes at least: a screenshot image before the playback time of the multimedia file corresponding to the moment at which the first screenshot operation is performed.
进一步地,当所述第一截屏操作为第一操作时,所述第一显示模块302,包括:Further, when the first screenshot operation is the first operation, the
获取单元3021,用于获取位于第一时刻之前的多媒体文件的第一预设数量的第一画面帧,所述第一时刻为所述第一截屏操作所在的时刻对应的多媒体文件的播放时刻;The obtaining
生成单元3022,用于根据所述第一预设数量的第一画面帧,生成第一预设数量的第一截屏图像;A
显示单元3023,用于在所述终端的第一屏幕上显示所述第一预设数量的第一截屏图像;a
其中,所述第一预设数量大于或等于一,且每个第一画面帧对应一个第一截屏图像。Wherein, the first preset number is greater than or equal to one, and each first picture frame corresponds to a first screenshot image.
具体地,所述获取单元3021,用于:Specifically, the obtaining
若存在相似度达到预设值的至少两帧图像,则选取所述至少两帧图像中的一帧作为第一画面帧。If there are at least two frames of images whose similarity reaches a preset value, one frame of the at least two frames of images is selected as the first picture frame.
进一步地,所述显示单元3023,包括:Further, the
显示子单元,用于根据所述第一截屏图像在多媒体文件中的播放时间,将所述第一预设数量的第一截屏图像在所述第一屏幕上显示。The display subunit is configured to display the first preset number of first screenshot images on the first screen according to the playing time of the first screenshot images in the multimedia file.
进一步地,所述显示子单元,用于:Further, the display subunit is used for:
按照所述第一截屏图像在多媒体文件中的播放时间降序的顺序,将所述第一预设数量的第一截屏图像在所述第一屏幕上从前往后依次显示。According to the descending order of the playing time of the first screenshot images in the multimedia file, the first preset number of the first screenshot images are displayed on the first screen in order from front to back.
可选地,在所述显示单元3023在所述终端的第一屏幕上显示所述第一预设数量的第一截屏图像之后,还包括:Optionally, after the
确定模块304,用于若未检测到用户在所述至少一张第一截屏图像中选择目标图像的操作,确定所述第一预设数量的第一截屏图像中的第一图像;A
检测模块305,用于在所述第一图像的预览模式下,检测用户的第二截屏操作;a
第二显示模块306,用于在检测到所述第二截屏操作时,在终端的第一屏幕上显示第二预设数量的第二截屏图像;The
其中,所述第二截屏图像对应的播放时间早于所述第一图像对应的播放时间。Wherein, the playing time corresponding to the second screenshot image is earlier than the playing time corresponding to the first image.
可选地,在所述第二显示模块306在检测到所述第二截屏操作时,在终端的第一屏幕上显示第二预设数量的第二截屏图像之前,还包括:Optionally, when the
第一删除模块307,用于在缓存中删除所述第一预设数量的第一截屏图像。The
可选地,在所述保存模块303进行所述目标图像的保存之后,还包括:Optionally, after the saving
第二删除模块308,用于删除所述至少一张第一截屏图像中除所述目标图像之外的第一截屏图像。The
本发明实施例提供的移动终端能够实现图1的方法实施例中终端实现的各个过程,为避免重复,这里不再赘述。本发明实施例的终端通过在用户使用双屏观看视频时,进行截屏操作,不影响用户对视频的观看,同时也减少了用户截屏的操作步骤,方便了用户操作,提升了用户的使用体验效果。The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the terminal in the method embodiment of FIG. 1 , and to avoid repetition, details are not described here. The terminal of the embodiment of the present invention performs a screen capture operation when the user uses dual screens to watch a video, which does not affect the user's viewing of the video, and also reduces the operation steps for the user to capture the screen, which facilitates the user's operation and improves the user's use experience effect. .
图8为实现本发明实施例的一种终端的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of a terminal implementing an embodiment of the present invention.
该终端80包括但不限于:射频单元810、网络模块820、音频输出单元830、输入单元840、传感器850、显示单元860、用户输入单元870、接口单元880、存储器890、处理器811、以及电源812等部件。本领域技术人员可以理解,图8中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The terminal 80 includes but is not limited to: a
其中,处理器811用于在第一屏幕和第二屏幕进行同一多媒体文件播放的情况下,接收用户在多媒体文件的播放画面上的第一截屏操作;Wherein, the
响应于所述第一截屏操作,在终端的第一屏幕上显示截取的多媒体文件的至少一张第一截屏图像,在终端的第二屏幕上显示所述多媒体文件的播放画面;In response to the first screenshot operation, displaying at least one first screenshot image of the intercepted multimedia file on the first screen of the terminal, and displaying a playback picture of the multimedia file on the second screen of the terminal;
若检测到用户在所述至少一张第一截屏图像中选择目标图像的操作,则进行所述目标图像的保存;If it is detected that the user selects a target image in the at least one first screenshot image, saving the target image;
其中,所述至少一张第一截屏图像至少包括:所述第一截屏操作所在的时刻对应的多媒体文件的播放时刻之前的一张截屏图像。Wherein, the at least one first screenshot image includes at least: a screenshot image before the playback time of the multimedia file corresponding to the moment at which the first screenshot operation is performed.
本发明实施例的终端通过在用户使用双屏观看视频时,进行截屏操作,不影响用户对视频的观看,同时也减少了用户截屏的操作步骤,方便了用户操作,提升了用户的使用体验效果。The terminal of the embodiment of the present invention performs a screen capture operation when the user uses dual screens to watch a video, which does not affect the user's viewing of the video, and also reduces the operation steps for the user to capture the screen, which facilitates the user's operation and improves the user's use experience effect. .
应理解的是,本发明实施例中,射频单元810可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自网络设备的下行数据接收后,给处理器811处理;另外,将上行的数据发送给网络设备。通常,射频单元810包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元810还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
终端通过网络模块820为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal provides the user with wireless broadband Internet access through the
音频输出单元830可以将射频单元810或网络模块820接收的或者在存储器890中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元830还可以提供与终端80执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元830包括扬声器、蜂鸣器以及受话器等。The
输入单元840用于接收音频或视频信号。输入单元840可以包括图形处理器(Graphics Processing Unit,GPU)841和麦克风842,图形处理器841对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元860上。经图形处理器841处理后的图像帧可以存储在存储器890(或其它存储介质)中或者经由射频单元810或网络模块820进行发送。麦克风842可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元810发送到移动通信网络设备的格式输出。The
终端80还包括至少一种传感器850,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板861的亮度,接近传感器可在终端80移动到耳边时,关闭显示面板861和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器850还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal 80 also includes at least one
显示单元860用于显示由用户输入的信息或提供给用户的信息。显示单元860可包括显示面板861,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板861。The
用户输入单元870可用于接收输入的数字或字符信息,以及产生与终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元870包括触控面板871以及其他输入设备872。触控面板871,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板871上或在触控面板871附近的操作)。触控面板871可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器811,接收处理器811发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板871。除了触控面板871,用户输入单元870还可以包括其他输入设备872。具体地,其他输入设备872可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板871可覆盖在显示面板861上,当触控面板871检测到在其上或附近的触摸操作后,传送给处理器811以确定触摸事件的类型,随后处理器811根据触摸事件的类型在显示面板861上提供相应的视觉输出。虽然在图8中,触控面板871与显示面板861是作为两个独立的部件来实现终端的输入和输出功能,但是在某些实施例中,可以将触控面板871与显示面板861集成而实现终端的输入和输出功能,具体此处不做限定。Further, the
接口单元880为外部装置与终端80连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元880可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端80内的一个或多个元件或者可以用于在终端80和外部装置之间传输数据。The
存储器890可用于存储软件程序以及各种数据。存储器890可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器890可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器811是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器890内的软件程序和/或模块,以及调用存储在存储器890内的数据,执行终端的各种功能和处理数据,从而对终端进行整体监控。处理器811可包括一个或多个处理单元;优选的,处理器811可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器811中。The
终端80还可以包括给各个部件供电的电源812(比如电池),优选的,电源812可以通过电源管理系统与处理器811逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal 80 may also include a power supply 812 (such as a battery) for supplying power to various components. Preferably, the
另外,终端80包括一些未示出的功能模块,在此不再赘述。In addition, the terminal 80 includes some unshown functional modules, which will not be repeated here.
优选的,本发明实施例还提供一种终端,包括处理器811,存储器890,存储在存储器890上并可在所述处理器811上运行的计算机程序,该计算机程序被处理器811执行时实现应用于终端侧的截屏方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention also provides a terminal, including a
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现应用于终端侧的截屏方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the embodiment of the screen capture method applied to the terminal side is implemented, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。The above are the preferred embodiments of the present invention, and it should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also included in the present invention. within the scope of protection of the invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811519795.1ACN109597556B (en) | 2018-12-12 | 2018-12-12 | Screen capture method and terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811519795.1ACN109597556B (en) | 2018-12-12 | 2018-12-12 | Screen capture method and terminal |
| Publication Number | Publication Date |
|---|---|
| CN109597556A CN109597556A (en) | 2019-04-09 |
| CN109597556Btrue CN109597556B (en) | 2020-07-31 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811519795.1AActiveCN109597556B (en) | 2018-12-12 | 2018-12-12 | Screen capture method and terminal |
| Country | Link |
|---|---|
| CN (1) | CN109597556B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110096203B (en)* | 2019-04-29 | 2021-06-25 | 维沃移动通信有限公司 | A screenshot method and mobile terminal |
| CN110062273B (en)* | 2019-05-14 | 2021-08-10 | 维沃移动通信有限公司 | Screenshot method and mobile terminal |
| CN110300261B (en)* | 2019-06-27 | 2021-11-12 | 努比亚技术有限公司 | Video preview method, wearable device and computer-readable storage medium |
| CN110308860B (en)* | 2019-07-11 | 2022-01-25 | Oppo广东移动通信有限公司 | Screen capturing method and related device |
| CN110443330B (en)* | 2019-07-31 | 2023-09-22 | 维沃移动通信有限公司 | Code scanning method and device, mobile terminal and storage medium |
| CN110727489B (en)* | 2019-09-16 | 2023-07-14 | 咪咕文化科技有限公司 | Screen capture image generation method, electronic device, and computer-readable storage medium |
| CN112784107A (en)* | 2019-11-11 | 2021-05-11 | 北京小米移动软件有限公司 | Method, device and storage medium for extracting picture from video |
| CN111010610B (en)* | 2019-12-18 | 2022-01-28 | 维沃移动通信有限公司 | Video screenshot method and electronic equipment |
| CN113448658A (en)* | 2020-03-24 | 2021-09-28 | 华为技术有限公司 | Screen capture processing method, graphical user interface and terminal |
| CN111580767A (en)* | 2020-05-06 | 2020-08-25 | Oppo广东移动通信有限公司 | Video playback method, device, terminal and storage medium |
| CN113641286B (en)* | 2021-07-30 | 2025-01-24 | 联想(北京)有限公司 | Screen capture method, electronic device, and computer storage medium |
| CN115877911A (en)* | 2022-12-01 | 2023-03-31 | 珠海格力电器股份有限公司 | Display knob and screen picture control method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103176689A (en)* | 2011-12-26 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Interface switching method and interface switching system |
| CN108063949A (en)* | 2017-12-11 | 2018-05-22 | 威创集团股份有限公司 | Image screenshotss method, apparatus and screenshotss server |
| CN108920239A (en)* | 2018-06-29 | 2018-11-30 | 维沃移动通信有限公司 | A kind of long screenshotss method and mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6455158B2 (en)* | 2015-01-09 | 2019-01-23 | ブラザー工業株式会社 | Information processing program and information processing apparatus |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103176689A (en)* | 2011-12-26 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Interface switching method and interface switching system |
| CN108063949A (en)* | 2017-12-11 | 2018-05-22 | 威创集团股份有限公司 | Image screenshotss method, apparatus and screenshotss server |
| CN108920239A (en)* | 2018-06-29 | 2018-11-30 | 维沃移动通信有限公司 | A kind of long screenshotss method and mobile terminal |
| Publication number | Publication date |
|---|---|
| CN109597556A (en) | 2019-04-09 |
| Publication | Publication Date | Title |
|---|---|---|
| CN109597556B (en) | Screen capture method and terminal | |
| CN108668083B (en) | Photographing method and terminal | |
| CN108762954B (en) | Object sharing method and mobile terminal | |
| CN110557566B (en) | Video shooting method and electronic equipment | |
| WO2019137429A1 (en) | Picture processing method and mobile terminal | |
| WO2019196929A1 (en) | Video data processing method and mobile terminal | |
| CN110933302B (en) | A shooting method and electronic device | |
| CN107728923B (en) | An operation processing method and mobile terminal | |
| CN109739429B (en) | Screen switching processing method and mobile terminal equipment | |
| CN109889757B (en) | A video call method and terminal device | |
| CN111666009A (en) | Interface display method and electronic equipment | |
| CN110062273B (en) | Screenshot method and mobile terminal | |
| CN110865745A (en) | Screen capturing method and terminal equipment | |
| CN109144393B (en) | Image display method and mobile terminal | |
| CN110213440A (en) | A kind of images share method and terminal | |
| CN108881617A (en) | A display switching method and mobile terminal | |
| CN108132749B (en) | Image editing method and mobile terminal | |
| CN111124207B (en) | Multimedia file playing method and electronic equipment | |
| CN107608606A (en) | A kind of image display method, mobile terminal and computer-readable recording medium | |
| CN110321449B (en) | A picture display method and terminal | |
| CN109976629A (en) | Image display method, terminal and mobile terminal | |
| CN108804628B (en) | A picture display method and terminal | |
| CN110719409B (en) | Continuous shooting method and electronic equipment | |
| CN108833796A (en) | An image capturing method and terminal | |
| CN108170360B (en) | Control method of gesture function and mobile terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |