






技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种信息分享方法及电子设备。Embodiments of the present invention relate to the field of communication technologies, and in particular, to an information sharing method and an electronic device.
背景技术Background technique
随着通信技术的发展,电子设备(例如,手机)为用户带来许多便利。由于用户可以通过电子设备分享文件、视频和歌曲等信息给好友,因此用户可以与好友共享很多信息。With the development of communication technology, electronic devices (eg, mobile phones) bring many conveniences to users. Since users can share information such as files, videos, and songs with friends through electronic devices, users can share a lot of information with friends.
目前,电子设备的文件通常可以通过第三方应用程序或蓝牙互传等方式分享给其他设备,但这种分享方式的共享效果较差。例如,用户A和用户B坐在一起玩手机,用户A正在看某个视频,若用户A想要和用户B共享这个视频,则用户A可以通过第三方应用程序将这个视频分享给用户B;在用户B接收到用户A分享的视频之后,如果这个视频容量较大,那么用户B无法尽快查看这个视频的精彩环节。即现有的分享方式体验较差。At present, files of electronic devices can usually be shared with other devices through third-party applications or Bluetooth mutual transfer, etc., but the sharing effect of this sharing method is poor. For example, user A and user B are sitting together and playing on their mobile phones. User A is watching a video. If user A wants to share the video with user B, user A can share the video with user B through a third-party application; After user B receives the video shared by user A, if the capacity of the video is large, user B cannot view the highlights of the video as soon as possible. That is, the existing sharing methods have poor experience.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种信息分享方法及电子设备,以解决现有的分享方式体验较差的问题。Embodiments of the present invention provide an information sharing method and electronic device, so as to solve the problem of poor experience in the existing sharing method.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
第一方面,本发明实施例提供了一种信息分享方法。该方法包括:在显示目标界面的情况下,接收用户的第一输入;响应于该第一输入,对该目标界面识别,获取目标信息,并将该目标信息分享至目标设备。其中,该目标信息用于指示与该目标界面对应的目标进程的进度和界面内容。In a first aspect, an embodiment of the present invention provides an information sharing method. The method includes: when a target interface is displayed, receiving a first input from a user; in response to the first input, identifying the target interface, acquiring target information, and sharing the target information to the target device. The target information is used to indicate the progress and interface content of the target process corresponding to the target interface.
第二方面,本发明实施例提供了一种电子设备。该电子设备包括接收模块、处理模块和显示模块。接收模块,在显示模块显示目标界面的情况下,接收用户的第一输入。处理模块,响应于接收模块接收的该第一输入,对该目标界面识别,获取目标信息,并将该目标信息分享至目标设备。其中,该目标信息用于指示与该目标界面对应的目标进程的进度和界面内容。In a second aspect, an embodiment of the present invention provides an electronic device. The electronic device includes a receiving module, a processing module and a display module. The receiving module receives the first input of the user when the display module displays the target interface. The processing module, in response to the first input received by the receiving module, identifies the target interface, acquires target information, and shares the target information to the target device. The target information is used to indicate the progress and interface content of the target process corresponding to the target interface.
第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现第一方面提供的信息分享方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including 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 The steps of the information sharing method provided by the aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现第一方面提供的信息分享方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements the steps of the information sharing method provided in the first aspect.
在本发明实施例中,可以在显示目标界面的情况下,接收用户的第一输入;并响应于该第一输入,对该目标界面识别,获取目标信息,并将该目标信息分享至目标设备。其中,该目标信息用于指示与该目标界面对应的目标进程的进度和界面内容。通过该方案,在电子设备显示目标界面的情况下,如果一个用户想要将该目标界面对应的精彩内容分享至目标设备,那么该用户可以通过一个输入触发电子设备识别该目标界面,并获取该目标界面对应的目标进程的进度和界面内容作为目标信息,从而电子设备可以将该目标信息分享给目标设备。如此,在目标设备接收该目标信息后,使用目标设备的其他用户可以触发目标设备显示目标界面对应的内容。因此与现有的分享方式相比,其他用户无需花费较长时间从头开始查看分享的内容。如此,本发明提供的分享方式的体验较好。In this embodiment of the present invention, the user's first input may be received when the target interface is displayed; and in response to the first input, the target interface may be identified, target information may be acquired, and the target information may be shared with the target device . The target information is used to indicate the progress and interface content of the target process corresponding to the target interface. With this solution, when the electronic device displays the target interface, if a user wants to share the wonderful content corresponding to the target interface to the target device, the user can trigger the electronic device to recognize the target interface through an input, and obtain the target interface. The progress of the target process and the interface content corresponding to the target interface are used as the target information, so that the electronic device can share the target information with the target device. In this way, after the target device receives the target information, other users using the target device can trigger the target device to display the content corresponding to the target interface. Therefore, other users do not need to spend a long time viewing the shared content from scratch compared to existing sharing methods. In this way, the sharing method provided by the present invention provides a better experience.
附图说明Description of drawings
图1为本发明实施例提供的一种安卓操作系统的架构示意图;1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种信息分享方法的示意图之一;2 is one of schematic diagrams of a method for sharing information provided by an embodiment of the present invention;
图3为本发明实施例提供的一种分享内容的界面示意图之一;3 is one of schematic diagrams of an interface for sharing content provided by an embodiment of the present invention;
图4为本发明实施例提供的一种分享内容的界面示意图之二;FIG. 4 is a second schematic diagram of an interface for sharing content provided by an embodiment of the present invention;
图5为本发明实施例提供的一种信息分享方法的示意图之二;5 is the second schematic diagram of an information sharing method provided by an embodiment of the present invention;
图6为本发明实施例提供的电子设备的结构示意图;6 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;
图7为本发明实施例提供的电子设备的硬件示意图。FIG. 7 is a schematic diagram of hardware of an electronic device provided by 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.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this paper is an association relationship that describes an associated object, indicating that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone these three situations. The symbol "/" in this document indicates the relationship in which the associated object is or, for example, A/B indicates A or B.
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入等是用于区别不同的输入,而不是用于描述输入的特定顺序。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.
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as an example, illustration or illustration. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as 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.
在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个元件是指两个或者两个以上的元件等。In the description of the embodiments of the present invention, unless otherwise stated, the meaning of "plurality" refers to two or more, for example, a plurality of elements refers to two or more elements and the like.
本发明实施例提供一种信息分享方法及电子设备,可以在显示目标界面的情况下,接收用户的第一输入;并响应于该第一输入,对该目标界面识别,获取目标信息,并将该目标信息分享至目标设备。其中,该目标信息用于指示与该目标界面对应的目标进程的进度和界面内容。通过该方案,在电子设备显示目标界面的情况下,如果一个用户想要将该目标界面对应的精彩内容分享至目标设备,那么该用户可以通过一个输入触发电子设备识别该目标界面,并获取该目标界面对应的目标进程的进度和界面内容作为目标信息,从而电子设备可以将该目标信息分享给目标设备。如此,在目标设备接收该目标信息后,使用目标设备的用户可以触发目标设备显示目标界面对应的内容。因此与现有的分享方式相比,用户无需花费较长时间从头开始查看分享的内容。如此,本发明提供的分享方式的体验较好。Embodiments of the present invention provide an information sharing method and an electronic device, which can receive a first input from a user when a target interface is displayed; and in response to the first input, identify the target interface, obtain target information, and store the target interface. The target information is shared with the target device. The target information is used to indicate the progress and interface content of the target process corresponding to the target interface. With this solution, when the electronic device displays the target interface, if a user wants to share the wonderful content corresponding to the target interface to the target device, the user can trigger the electronic device to recognize the target interface through an input, and obtain the target interface. The progress of the target process and the interface content corresponding to the target interface are used as the target information, so that the electronic device can share the target information with the target device. In this way, after the target device receives the target information, the user using the target device can trigger the target device to display the content corresponding to the target interface. Therefore, compared with existing sharing methods, users do not need to spend a long time viewing the shared content from scratch. In this way, the sharing method provided by the present invention provides a better experience.
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be an electronic device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or 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 the software environment to which the information sharing 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 an Android operating system according to 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 the embodiment of the present invention, a developer can develop a software program for implementing the information sharing method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. The sharing method may operate based on the Android operating system as shown in FIG. 1 . That is, the processor or the electronic device can implement the information sharing method provided by the embodiment of the present invention by running the software program in the Android operating system.
本发明实施例中的电子设备可以为终端设备。该终端设备可以为移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be a terminal device. The terminal device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc., the non-mobile electronic device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present invention.
本发明实施例提供的信息分享方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该信息分享方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以电子设备为例,对本发明实施例提供的信息分享方法进行示例性的说明。The execution subject of the information sharing method provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device capable of implementing the information sharing method, and the specific information may be determined according to actual use requirements, The embodiments of the present invention are not limited. The information sharing method provided by the embodiment of the present invention is exemplarily described below by taking an electronic device as an example.
通常,用户可以通过电子设备将视频、文件、歌曲、图片等信息分享给其他用户。一种方式为,用户A和用户B可以使用具备分享功能的第三方应用程序分享信息;另一种方式为,当用户A和用户B距离较近时,用户A和用户B可以使用蓝牙等互传方式分享信息。但是,这两种分享方式无法实现用户A和用户B同步查看信息,因此现有的分享方式体验较差。Usually, users can share information such as videos, files, songs, pictures, etc. with other users through electronic devices. One way is that user A and user B can use a third-party application with sharing function to share information; the other way is that when user A and user B are close to each other, user A and user B can use Bluetooth and other communication methods. Share information by way of transmission. However, these two sharing methods cannot realize the simultaneous viewing of information by user A and user B, so the existing sharing methods have poor experience.
故为了解决这个问题,本发明实施例提供了一种信息分享方法,用户可以通过一个输入触发电子设备识别该目标界面,并获取该目标界面对应的目标进程的进度信息和该目标进程的界面内容作为目标信息,从而电子设备可以将该目标信息分享给目标设备。如此,在目标设备接收该目标信息后,其他用户可以触发目标设备显示目标界面对应的内容。下面将针对不同的共享内容以下述的几种场景为例进行简单说明。Therefore, in order to solve this problem, an embodiment of the present invention provides an information sharing method, in which the user can trigger the electronic device to identify the target interface through an input, and obtain the progress information of the target process corresponding to the target interface and the interface content of the target process. As target information, the electronic device can share the target information to the target device. In this way, after the target device receives the target information, other users can trigger the target device to display the content corresponding to the target interface. The following will briefly describe different shared content by taking the following scenarios as examples.
一种可能的场景为,在用户触发电子设备播放目标多媒体的情况下,如果用户想要将该目标多媒体中的某个精彩片段分享至目标设备,那么用户可以通过输入触发电子设备对当前显示的目标界面进行识别,获取目标信息,例如该目标多媒体的播放进度、当前显示的目标界面的内容以及该目标多媒体所属的应用程序的信息等,并将该目标信息分享至目标设备。A possible scenario is that when the user triggers the electronic device to play the target multimedia, if the user wants to share a certain highlight in the target multimedia to the target device, the user can trigger the electronic device to display the currently displayed content by inputting. The target interface is identified, and target information is obtained, such as the playback progress of the target multimedia, the content of the target interface currently displayed, and the information of the application program to which the target multimedia belongs, and the target information is shared to the target device.
另一种可能的场景为,在用户触发电子设备显示浏览网页的历史记录界面的情况下,如果用户想要将历史记录界面中的某些历史网页分享至目标设备,那么用户可以通过输入触发电子设备识别这些历史网页,获取目标信息,例如这些历史网页的地址和这些历史网页的内容,并将该目标信息分享至目标设备。Another possible scenario is that when the user triggers the electronic device to display the history record interface for browsing web pages, if the user wants to share some historical web pages in the history record interface to the target device, the user can trigger the electronic device by inputting The device identifies these historical web pages, obtains target information, such as addresses of these historical web pages and content of these historical web pages, and shares the target information to the target device.
再一种可能的场景为,在用户触发电子设备显示某个电子文档的情况下,如果用户想要将某个电子文档的某页内容分享至使用目标设备的其他用户,那么用户可以通过输入触发电子设备对当前显示的目标界面进行识别,获取目标信息,例如该电子文档的阅读进度、当前显示的目标界面的内容以及该电子文档的文件类型等,并将这些信息分享至目标设备。Another possible scenario is that when the user triggers the electronic device to display an electronic document, if the user wants to share the content of a certain page of the electronic document to other users using the target device, the user can trigger the The electronic device identifies the currently displayed target interface, obtains target information, such as the reading progress of the electronic document, the content of the currently displayed target interface, and the file type of the electronic document, and shares the information to the target device.
如图2所示,本发明实施例提供一种信息分享方法。该方法可以应用于电子设备,该方法可以包括下述的S101和S102。As shown in FIG. 2 , an embodiment of the present invention provides an information sharing method. The method can be applied to an electronic device, and the method can include the following S101 and S102.
S101、在显示目标界面的情况下,电子设备接收用户的第一输入。S101. In the case of displaying the target interface, the electronic device receives a first input from the user.
可选的,上述目标界面可以为与电子设备运行的任意一个进程对应的界面。该目标界面可以为任意一项:与目标多媒体进程对应的界面、包括N个历史进程信息的界面、目标文件的界面、应用程序的界面等。Optionally, the above-mentioned target interface may be an interface corresponding to any process running on the electronic device. The target interface may be any item: an interface corresponding to the target multimedia process, an interface including N historical process information, an interface of a target file, an interface of an application program, and the like.
可选的,上述目标文件可以为保存在电子设备中的文件,或保存在电子设备中云盘客户端对应的服务器中的文件,或保存在网络地址中的文件。Optionally, the above target file may be a file stored in the electronic device, or a file stored in a server corresponding to the cloud disk client in the electronic device, or a file stored in a network address.
可选的,在S101之前,本发明实施例提供的分享还可以包括:接收用户的目标输入,并响应于该目标输入,显示目标界面。Optionally, before S101, the sharing provided in this embodiment of the present invention may further include: receiving a user's target input, and in response to the target input, displaying a target interface.
示例性的,以目标界面为与目标多媒体进程对应的界面为例进行示例性说明。若电子设备中的某个应用程序正在播放一段视频,则目标界面可以为当电子设备播放这段视频的某一画面时在屏幕中显示的界面;若电子设备中的某个应用程序正在播放一段音频,且在播放该音频过程中电子设备会显示与音频对应的界面,例如音乐短片(music video,MV),则目标界面可以为当电子设备播放这段音频的某一段旋律时显示的界面。Exemplarily, the target interface is an interface corresponding to the target multimedia process for illustrative description. If an application in the electronic device is playing a video, the target interface can be the interface displayed on the screen when the electronic device plays a certain picture of the video; if an application in the electronic device is playing a video audio, and the electronic device will display an interface corresponding to the audio during playback of the audio, such as a music video (MV), the target interface may be the interface displayed when the electronic device plays a certain melody of the audio.
示例性的,以目标界面为包括N个历史进程信息的界面为例进行示例性说明。例如,在用户浏览网页的过程中,电子设备可以将用户浏览的所有历史网页的信息保存在目标界面。用户可以通过输入触发电子设备将显示当前网页的界面切换为包括所有历史网页的信息的历史记录界面,即为目标界面。Exemplarily, the target interface is an interface that includes N pieces of historical process information as an example for illustrative description. For example, when the user browses a web page, the electronic device may save the information of all historical web pages browsed by the user in the target interface. The user can trigger the electronic device to switch the interface displaying the current web page to the history record interface including the information of all historical web pages through the input, that is, the target interface.
示例性的,以目标界面为目标文件的界面为例进行示例性说明。例如,电子设备中可以安装有某云盘客户端,该云盘客户端对应的服务器中存储有多个文件,该多个文件包括视频文件、音频文件和文档文件等。若用户触发电子设备显示一份word文档,则目标界面可以为电子设备预览这份word文档的某个章节内容时显示的界面。Exemplarily, the target interface is taken as an example of the interface of the target file for illustrative description. For example, a cloud disk client may be installed in the electronic device, and a server corresponding to the cloud disk client stores multiple files, and the multiple files include video files, audio files, and document files. If the user triggers the electronic device to display a word document, the target interface may be an interface displayed when the electronic device previews the content of a certain chapter of the word document.
示例性的,以目标界面为应用程序的界面为例进行示例性说明。例如,当用户需要计算一串数值的和时,用户可以通过对电子设备中计算机应用程序的图标的输入,触发电子设备启动计算器;之后,用户可以在计算器中输入一长串数值,此时包括该数值的计算器界面可以作为目标界面。Exemplarily, the target interface is an interface of an application program as an example for illustrative description. For example, when the user needs to calculate the sum of a series of numerical values, the user can trigger the electronic device to start the calculator by inputting the icon of the computer application program in the electronic device; after that, the user can input a long series of numerical values in the calculator, this The calculator interface that includes this value can be used as the target interface.
可选的,上述第一输入可以为用户在目标界面的触控输入,例如,该触控输入可以为用户在目标界面对多媒体播放进度条的点击输入。当然,第一输入还可以为用户的手势输入、语音输入、物理按键输入或其他任意可能的输入等,本发明实施例不作限定。Optionally, the above-mentioned first input may be the user's touch input on the target interface, for example, the touch input may be the user's click input on the multimedia playback progress bar on the target interface. Certainly, the first input may also be a user's gesture input, voice input, physical key input, or any other possible input, etc., which is not limited in the embodiment of the present invention.
S102、响应于该第一输入,电子设备对该目标界面识别,获取目标信息,并将该目标信息分享至目标设备。S102. In response to the first input, the electronic device identifies the target interface, acquires target information, and shares the target information to the target device.
其中,上述目标信息用于指示与目标界面对应的目标进程的进度和界面内容。The above target information is used to indicate the progress of the target process and the interface content corresponding to the target interface.
可选的,上述目标进程可以为以下任意一项:应用程序的运行进程、网页页面的浏览进程、云盘文件的使用进程等。Optionally, the above-mentioned target process may be any one of the following: a running process of an application, a browsing process of a web page, a using process of a cloud disk file, and the like.
需要说明的是,上述“与目标界面对应的目标进程的进度”可以用目标进程当前的进度信息表示。例如,当目标界面为视频播放界面的情况下,目标进程的进度为视频的播放进度,例如播放到第30分;当目标界面为游戏界面的情况下,目标进程的进度为指示游戏任务的完成进度,例如完成任务的40%;当目标界面为文档界面的情况下,目标进程的进度为指示文档的阅读进度,例如阅读到文档的第10页。It should be noted that the above "the progress of the target process corresponding to the target interface" may be represented by the current progress information of the target process. For example, when the target interface is a video playback interface, the progress of the target process is the playback progress of the video, for example, until the 30th minute; when the target interface is a game interface, the progress of the target process indicates the completion of the game task The progress, such as completing 40% of the task; when the target interface is the document interface, the progress of the target process is the reading progress of the indicated document, such as reading the tenth page of the document.
另外,上述“与目标界面对应的目标进程的界面内容”可以是目标进程当前在电子设备的屏幕中显示的内容。例如,在目标界面为视频界面的情况下,界面内容可以为视频播放至第00:30时在电子设备的显示界面显示的视频画面;在目标界面为文档界面的情况下,界面内容可以为文档阅读至第4页时在电子设备的显示界面显示的文档内容。In addition, the above-mentioned "interface content of the target process corresponding to the target interface" may be the content currently displayed by the target process on the screen of the electronic device. For example, when the target interface is a video interface, the content of the interface may be a video image displayed on the display interface of the electronic device when the video is played to 00:30; when the target interface is a document interface, the content of the interface may be a document The content of the document displayed on the display interface of the electronic device when reading to page 4.
可选的,上述界面内容可以通过以下两种方式中的任意一种方式得到:Optionally, the above interface content can be obtained in any one of the following two ways:
第一种方式:在电子设备显示目标界面的情况下,电子设备响应于用户的第一输入,自动截图得到界面内容。The first way: when the electronic device displays the target interface, the electronic device automatically takes a screenshot to obtain the interface content in response to the user's first input.
第二种方式:在电子设备显示目标界面的情况下,电子设备响应于用户的第一输入后,电子设备识别该目标界面后,根据一种预设算法将目标界面中的每一部分的子内容信息整合后得到界面内容。The second way: when the electronic device displays the target interface, after the electronic device responds to the user's first input, after the electronic device recognizes the target interface, the sub-content of each part of the target interface is updated according to a preset algorithm. After the information is integrated, the interface content is obtained.
可选的,上述目标信息还可以包括以下至少一项:目标界面属于的应用程序的信息、目标界面属于的文件的信息、目标界面对应的网页地址的信息。Optionally, the above-mentioned target information may further include at least one of the following: information of an application to which the target interface belongs, information of a file to which the target interface belongs, and information of a web page address corresponding to the target interface.
可选的,在目标信息包括目标界面属于的应用程序的信息的情况下,该目标信息具体可以包括以下至少一项:目标界面属于的应用程序的名称、目标界面属于的应用程序的安装包、目标界面属于的应用程序的缓存数据、目标界面属于的应用程序的下载路径等。Optionally, when the target information includes the information of the application to which the target interface belongs, the target information may specifically include at least one of the following: the name of the application to which the target interface belongs, the installation package of the application to which the target interface belongs, The cache data of the application to which the target interface belongs, the download path of the application to which the target interface belongs, and so on.
可选的,在目标信息包括目标界面属于的文件的信息的情况下,该目标信息具体可以包括以下至少一项:包含目标界面的文件的类型(即目标界面是文件中的一个界面)、包括目标界面的文件的下载路径、包含目标界面的文件中的所有界面内容等。Optionally, in the case where the target information includes the information of the file to which the target interface belongs, the target information may specifically include at least one of the following: the type of the file containing the target interface (that is, the target interface is an interface in the file), including: The download path of the file of the target interface, including all interface contents in the file of the target interface, etc.
例如,在目标信息包括目标界面属于的文件的信息的情况下,该目标信息具体可以包括目标界面的文件的类型,该文件类型可以为word、ppt、excel等。For example, in the case where the target information includes the information of the file to which the target interface belongs, the target information may specifically include the file type of the target interface, and the file type may be word, ppt, excel, or the like.
可选的,在目标信息包括目标界面对应的网页地址的信息的情况下,该目标信息具体可以包括以下至少一项:目标界面对应的网页地址的链接、目标界面对应的网页地址的存储路径、目标界面对应的网页地址的打开方式等。Optionally, in the case where the target information includes the information of the webpage address corresponding to the target interface, the target information may specifically include at least one of the following: a link to the webpage address corresponding to the target interface, a storage path of the webpage address corresponding to the target interface, The opening method of the web page address corresponding to the target interface, etc.
需要说明的是,本发明实施例中,不同类型的进程可以对应不同的目标信息,因此,在接收用户的第一输入之后,电子设备可以对目标界面识别,以确定与目标界面对应的目标进程的具体类型,进而确定与目标进程的具体类型对应的目标信息。It should be noted that, in this embodiment of the present invention, different types of processes may correspond to different target information. Therefore, after receiving the first input from the user, the electronic device may identify the target interface to determine the target process corresponding to the target interface. The specific type of the target process is determined, and then the target information corresponding to the specific type of the target process is determined.
可以理解的是,在电子设备接收第一输入之后,电子设备主动识别当前界面,并判断当前界面是否为视频界面、音频界面、文件界面、网页和游戏等,以及将目标进程的路径、目标进程内进行的任务、截取的目标进程的精彩片段,生成一个可解析的文件包,最后将该文件包发送给对应接收方。当接收方接收到该文件包之后,可以同步共享发送方的当前界面的内容。It can be understood that after the electronic device receives the first input, the electronic device actively identifies the current interface, and determines whether the current interface is a video interface, audio interface, file interface, web page, game, etc., and the path of the target process, the target process It generates a parseable file package, and finally sends the file package to the corresponding receiver. After the receiver receives the file package, the content of the current interface of the sender can be synchronized and shared.
例如,若目标进程为播放视频的进程,则与播放视频的进程对应的目标信息为播放视频的进度信息、播放视频的应用程序的名称、播放视频的应用程序的安装包、播放视频的当前界面内容。For example, if the target process is the process of playing the video, the target information corresponding to the process of playing the video is the progress information of the video playing, the name of the application playing the video, the installation package of the application playing the video, and the current interface of playing the video. content.
再例如,若目标进程为游戏进程,则与游戏进程对应的目标信息为游戏进程的缓存数据、游戏进程的账号、游戏进程属于的应用程序的安装包等。For another example, if the target process is a game process, the target information corresponding to the game process is the cache data of the game process, the account of the game process, the installation package of the application to which the game process belongs, and the like.
再例如,若目标进程为文件浏览进程,则与文件浏览进程对应的目标信息为文件浏览的进度信息、文件浏览的文件类型、文件浏览的文件内容等。For another example, if the target process is a file browsing process, the target information corresponding to the file browsing process is the progress information of the file browsing, the file type of the file browsing, the file content of the file browsing, and the like.
可选的,在电子设备对目标界面进行识别之后,可以获取该目标界面的多个信息。电子设备可以将该多个信息打包后得到的信息作为目标信息。例如,在目标界面为文档界面的情况下,电子设备对该文档界面进行识别之后,可以获取与该文档界面对应的文档的阅读进度、与该文档界面对应的文档的内容、该文档界面属于的文档的类型等信息;然后,电子设备可以将与该文档界面对应的文档的阅读进度、与该文档界面对应的文档的内容、该文档界面属于的文档的类型等信息进行打包,从而可以得到目标信息。Optionally, after the electronic device identifies the target interface, multiple pieces of information about the target interface can be acquired. The electronic device may use information obtained by packaging the multiple pieces of information as target information. For example, when the target interface is a document interface, after identifying the document interface, the electronic device can obtain the reading progress of the document corresponding to the document interface, the content of the document corresponding to the document interface, and the document interface to which the document interface belongs. Information such as the type of the document; then, the electronic device can package information such as the reading progress of the document corresponding to the document interface, the content of the document corresponding to the document interface, and the type of the document to which the document interface belongs, so as to obtain the target information.
可选的,上述目标设备的数量可以为一个或多个。Optionally, the number of the foregoing target devices may be one or more.
需要说明的是,上述目标设备可以包括移动电子设备和非移动电子设备中的至少一项。例如,移动电子设备可以为手机,非移动电子设备为家居设备。可以理解的是,不仅可以实现移动电子设备之间的信息共享,也可以实现移动电子设备和非移动电子设备之间的信息共享,即达到信息的无边界共享。It should be noted that the above target device may include at least one of a mobile electronic device and a non-mobile electronic device. For example, the mobile electronic device may be a cell phone, and the non-mobile electronic device may be a household device. It can be understood that not only information sharing between mobile electronic devices, but also information sharing between mobile electronic devices and non-mobile electronic devices can be realized, that is, borderless sharing of information can be achieved.
此外,发送目标信息的电子设备和目标设备可以为属于同一局域网内的设备。In addition, the electronic device that sends the target information and the target device may be devices that belong to the same local area network.
示例性的,以目标进程为应用程序的运行进程为例进行说明。假设电子设备正在运行的目标进程为某视频应用程序正在播放视频A,目标界面为该视频A在电子设备的屏幕上显示的某一画面。如果用户想用将这个画面分享给其他用户使用的目标设备,那么用户可以通过第一输入触发电子设备对该画面识别,获取视频A播放至该画面的进度信息以及该画面的画面内容;之后,电子设备可以将视频A播放至该画面的进度信息以及该画面的画面内容打包,得到目标信息,并将该目标信息分享至目标设备。在目标设备接收到该目标信息之后,使用目标设备的其他用户可以触发电子设备显示该画面,即该目标界面。Illustratively, the target process is the running process of the application as an example for description. Assume that the target process running on the electronic device is a video application program that is playing video A, and the target interface is a picture displayed by the video A on the screen of the electronic device. If the user wants to share this picture with the target device used by other users, then the user can trigger the electronic device to recognize the picture through the first input, and obtain the progress information of the video A playing to the picture and the picture content of the picture; then, The electronic device can package the progress information of video A to the screen and the screen content of the screen to obtain target information, and share the target information to the target device. After the target device receives the target information, other users using the target device can trigger the electronic device to display the screen, that is, the target interface.
示例性的,以目标进程为网页页面的浏览进程为例进行说明。假设电子设备正在运行的目标进程为正在浏览的某网页,目标界面为包括用户所有历史浏览网页的历史记录界面。如果用户想要将所有历史浏览网页中某些有趣的网页分享给其他用户使用的目标设备,那么用户可以通过第一输入触发电子设备对这些有趣的网页进行识别,获取这些有趣的网页的地址链接、这些有趣的网页的页面内容;之后,电子设备可以这些有趣的网页的地址链接、这些有趣的网页的页面内容打包,得到目标信息,并将该目标信息分享至目标设备。在目标设备接收到该目标信息之后,使用目标设备的其他用户可以触发电子设备显示这些有趣的网页。Exemplarily, the target process is a browsing process of a web page as an example for description. It is assumed that the target process running on the electronic device is a web page being browsed, and the target interface is a history record interface including all historically browsed web pages of the user. If the user wants to share some interesting webpages in all historical browsing webpages to the target device used by other users, then the user can trigger the electronic device to identify these interesting webpages through the first input, and obtain the address links of these interesting webpages , the page content of these interesting webpages; after that, the electronic device can package the address links of these interesting webpages and the page content of these interesting webpages to obtain target information, and share the target information to the target device. After the target device receives the target information, other users using the target device can trigger the electronic device to display these interesting web pages.
示例性的,以目标进程为云盘文件的使用进程为例进行说明。假设电子设备中正在运行的目标进程为正在查看的某电子文档,目标界面为该电子文档在电子设备的屏幕上显示的某一页面。如果用户想要将这该页面分享给其他用户使用的目标设备,那么用户可以通过第一输入对该页面进行识别,获取该电子文档浏览至该页面的进度信息以及该页面的页面内容;之后,电子设备可以将该电子文档浏览至该页面的进度信息以及该页面的页面内容打包,得到目标信息,并将该目标信息分享至目标设备。在目标设备接收到该目标信息之后,使用目标设备的其他用户可以触发电子设备显示该页面,即该目标界面。Exemplarily, the target process is a usage process of a cloud disk file as an example for description. It is assumed that the target process running in the electronic device is an electronic document being viewed, and the target interface is a page displayed by the electronic document on the screen of the electronic device. If the user wants to share the page to the target device used by other users, the user can identify the page through the first input, and obtain the progress information of the electronic document browsing to the page and the page content of the page; after that, The electronic device can package the progress information of browsing the electronic document to the page and the page content of the page to obtain target information, and share the target information to the target device. After the target device receives the target information, other users using the target device can trigger the electronic device to display the page, that is, the target interface.
可选的,在用户获知目标设备没有打开与目标界面对应的界面内容的应用的情况下,电子设备可以获取与该目标界面对应的目标进程属于的应用程序的安装包以及目标进程的进度信息和界面内容,作为目标信息,再发送至目标设备。可以理解的是,为更加快捷地传输目标信息至目标设备,电子设备可以获取与该目标界面对应的目标进程属于的应用程序的缩略版安装包。即只保留该应用程序的安装包中被分享的部分内容,将其他功能都屏蔽,从而可以缩减压缩包的大小。在目标设备接收到目标信息之后,也可以更快速地查看与发送方对应的显示内容。Optionally, when the user learns that the target device has not opened the application of the interface content corresponding to the target interface, the electronic device can obtain the installation package of the application to which the target process corresponding to the target interface belongs, and the progress information and the progress information of the target process. The interface content, as target information, is then sent to the target device. It can be understood that, in order to transmit the target information to the target device more quickly, the electronic device can obtain the abbreviated version installation package of the application to which the target process corresponding to the target interface belongs. That is, only part of the shared content in the installation package of the application is kept, and other functions are shielded, so that the size of the compressed package can be reduced. After the target device receives the target information, the display content corresponding to the sender can also be viewed more quickly.
可选的,在将目标信息分享至目标设备的过程中,为了保障目标信息不被泄露,传输信息的两个或多个设备之间可以利用局域网传输。然而,当传输目标信息时,目标设备安装目标信息中包括的安装包,该安装包可以默认携带解锁密码。如果当前局域网络中断后,用户触发目标设备再次启动安装包对应的应用程序,目标设备可以提醒用户需要重新下载该安装包或者输入该安装包的解锁密码。如果用户放弃输入解锁密码,目标设备默认删除该安装包对应的应用程序。如此,一方面,可以加强目标信息传输中安全性;另一方面,当目标设备在被用户使用时,可以使得不被非机主人员(目标设备的机主)窃取目标信息,例如账号、密码、身份证、银行卡号等。Optionally, in the process of sharing the target information to the target device, in order to ensure that the target information is not leaked, a local area network may be used for transmission between two or more devices that transmit information. However, when the target information is transmitted, the target device installs the installation package included in the target information, and the installation package may carry the unlock password by default. If the user triggers the target device to restart the application program corresponding to the installation package after the current local area network is interrupted, the target device can remind the user that the installation package needs to be downloaded again or the unlock password of the installation package is input. If the user abandons inputting the unlock password, the target device deletes the application corresponding to the installation package by default. In this way, on the one hand, the security of the target information transmission can be enhanced; on the other hand, when the target device is being used by the user, the target information, such as account number and password, can be prevented from being stolen by the non-owner (the owner of the target device) , ID card, bank card number, etc.
本发明实施例提供一种信息分享方法,在电子设备显示目标界面的情况下,如果一个用户想要将该目标界面对应的精彩内容分享至目标设备,那么该用户可以通过一个输入触发电子设备识别该目标界面,并获取该目标界面对应的目标进程的进度和界面内容作为目标信息,从而电子设备可以将该目标信息分享给目标设备。如此,在目标设备接收该目标信息后,使用目标设备的其他用户可以触发目标设备显示目标界面对应的内容。因此与现有的分享方式相比,其他用户无需花费较长时间从头开始查看分享的内容。如此,本发明提供的分享方式的体验较好。An embodiment of the present invention provides an information sharing method. When an electronic device displays a target interface, if a user wants to share the wonderful content corresponding to the target interface to the target device, the user can trigger the electronic device to identify through an input. The target interface, and the progress of the target process and the interface content corresponding to the target interface are acquired as target information, so that the electronic device can share the target information with the target device. In this way, after the target device receives the target information, other users using the target device can trigger the target device to display the content corresponding to the target interface. Therefore, other users do not need to spend a long time viewing the shared content from scratch compared to existing sharing methods. In this way, the sharing method provided by the present invention provides a better experience.
为了更好地说明本发明实施例提供的信息分享方法,具体通过下述实施例一、实施例二、实例三和实例四实现。In order to better illustrate the information sharing method provided by the embodiment of the present invention, the following embodiment 1,
实施例一Example 1
可选的,在用户想要分享多媒体内容的情况下,上述S102中“对目标界面识别,获取目标信息”,具体可以通过下述的A1至A3实现。Optionally, in the case where the user wants to share the multimedia content, "recognizing the target interface and acquiring the target information" in the above S102 may be specifically implemented through the following A1 to A3.
A1、电子设备对目标界面识别,确定目标进程为目标多媒体的进程,并从该目标多媒体中开始截取多媒体内容。A1. The electronic device recognizes the target interface, determines that the target process is the process of the target multimedia, and starts to intercept the multimedia content from the target multimedia.
可选的,上述目标多媒体可以为视频或音频等。Optionally, the above-mentioned target multimedia may be video or audio.
可选的,在目标多媒体的为视频的情况下,该视频可以为电子设备的应用程序中的至少一个视频资源,或为与云盘客户端对应的服务器中的至少一个视频资源,或为在线网页中的至少一个视频资源。Optionally, in the case where the target multimedia is a video, the video can be at least one video resource in an application program of the electronic device, or at least one video resource in a server corresponding to the cloud disk client, or an online video resource. At least one video resource in the web page.
可选的,在目标多媒体的为音频的情况下,该音频可以为电子设备的应用程序中的至少一个音频资源,或为与云盘客户端对应的服务器中的至少一个音频资源,或为在线网页中的至少一个音频资源。Optionally, in the case where the target multimedia is audio, the audio can be at least one audio resource in the application program of the electronic device, or at least one audio resource in the server corresponding to the cloud disk client, or online. At least one audio resource in the web page.
可选的,在目标多媒体的为视频的情况下,上述多媒体内容为视频内容,例如视频片段;在目标多媒体的为视频的情况下,上述多媒体内容为音频内容,例如音频片段。Optionally, if the target multimedia is video, the multimedia content is video content, such as video clips; if the target multimedia is video, the multimedia content is audio content, such as audio clips.
A2、电子设备接收用户的第二输入。A2. The electronic device receives the second input of the user.
可选的,上述第二输入可以为用户在目标界面的触控输入。例如,该触控输入可以为用户在目标界面对多媒体播放进度条的点击输入。当然,第二输入还可以为用户的手势输入、语音输入、物理按键输入或其他任意可能的输入等,本发明实施例不作限定。Optionally, the above-mentioned second input may be a user's touch input on the target interface. For example, the touch input may be the user's click input on the multimedia playback progress bar on the target interface. Of course, the second input may also be a user's gesture input, voice input, physical key input, or any other possible input, etc., which is not limited in this embodiment of the present invention.
A3、响应于该第二输入,电子设备从该目标多媒体中停止截取多媒体内容,并对截取的多媒体内容进行编辑操作,得到目标信息。A3. In response to the second input, the electronic device stops intercepting the multimedia content from the target multimedia, and performs an editing operation on the intercepted multimedia content to obtain target information.
可选的,电子设备截取的多媒体内容的数量可以为一个或多个。即电子设备可以按照上述A1至A3的方法描述多次进行截取多媒体内容操作,从而得到多个片段内容。Optionally, the number of multimedia contents intercepted by the electronic device may be one or more. That is, the electronic device can perform the operation of intercepting the multimedia content multiple times according to the methods described in the above A1 to A3, so as to obtain multiple pieces of content.
可选的,上述编辑操作可以包括:将多媒体内容打包为一个文件、在合并多媒体内容之后将合并的多媒体内容打包为一个文件。Optionally, the above-mentioned editing operation may include: packaging the multimedia content into a file, and packaging the combined multimedia content into a file after merging the multimedia content.
可选的,上述目标信息可以包括以下至少一项:用于播放多媒体内容的应用程序的名称、用于播放多媒体内容的应用程序的安装包、多媒体内容的播放进度信息、多媒体内容本身。Optionally, the above target information may include at least one of the following: the name of the application used for playing the multimedia content, the installation package of the application used for playing the multimedia content, the playback progress information of the multimedia content, and the multimedia content itself.
需要说明的是,在本发明实施例中,对于多媒体内容,开始截取输入和停止截取输入之间对应的多媒体内容可以播放或不播放。即一种情况为,用户先触发电子设备开始截取多媒体;之后,多媒体内容播放一段时间,用户再次触发电子设备停止截取多媒体。另一种情况为,用户在第一位置先触发电子设备开始截取多媒体,然后再在第二位置触发电子设备停止截取多媒体,第一位置和第二位置之前多媒体未播放。具体的根据实际情况确定,本发明实施例对此不作限定。It should be noted that, in this embodiment of the present invention, for multimedia content, the multimedia content corresponding to the start of the interception input and the stop of the interception input may be played or not played. That is, in one case, the user first triggers the electronic device to start intercepting multimedia; then, after the multimedia content is played for a period of time, the user triggers the electronic device again to stop intercepting the multimedia. In another case, the user first triggers the electronic device to start capturing multimedia at the first position, and then triggers the electronic device to stop capturing the multimedia at the second position, and the multimedia is not played before the first position and the second position. Specifically, it is determined according to the actual situation, which is not limited in this embodiment of the present invention.
示例性的,以目标多媒体为视频为例进行示例性说明。如图3所示,电子设备显示视频播放至进度条所在位置01的画面内容,即目标界面。用户此时可以点击进度条所在位置01。在电子设备接收到用户对位置01的点击输入(即第一输入)之后,响应于该点击输入,电子设备可以识别在进度条所在位置01显示的界面内容,确定目标进程为播放视频的进程,并开始从该视频所在01位置中截取视频片段内容。在视频播放至进度条所在位置02时,用户可以点击进度条所在位置02。在电子设备接收到用户对位置02的点击输入之后,响应于该点击输入,电子设备停止从该视频中截取视频片段内容,因此,电子设备截取的视频内容为进度条所在位置01至进度条所在位置02的视频片段。之后,电子设备可以对截取的视频片段进行打包,并将打包后的视频片段以及视频片段属于的应用程序的安装包、视频片段的打开方式、打包后的视频片段是否需要特殊读取等信息作为目标信息分享至目标设备。可以理解的是,用户可以重复上述的截取步骤以触发电子设备得到界面03显示的多个视频片段,如此用户可以点击“合并分享”控件,触发电子设备将多个视频片段合并。从而电子设备可以将合并后的视频片段打包成一个文件分享至目标设备。Exemplarily, the target multimedia is a video as an example for illustration. As shown in FIG. 3 , the electronic device displays the screen content of the video playing to the
示例性的,以目标多媒体为音频为例进行示例性说明。例如,在电子设备播放歌曲A的过程中,电子设备可以显示歌曲A的播放界面,即目标界面。用户可以点击播放界面中的控件‘录’。在电子设备接收到用户的点击输入之后,响应于该点击输入,电子设备识别该歌曲A播放界面,确定目标进程为播放歌曲A的进程,并开始从该歌曲A中截取音频片段内容。在歌曲A播放一段时间之后,若用户点击播放界面中的控件‘停’,则电子设备可以接收用户对的控件的点击输入,并响应于该点击输入,电子设备停止从该歌曲A中截取音频片段内容。之后,电子设备自动将两次输入之间的音频内容作为截取的音频片段,并对截取的音频片段进行打包,以及将打包后的音频片段以及音频片段属于的应用程序的安装包、音频片段的打开方式、打包后的音频片段是否需要特殊读取等信息作为目标信息分享至目标设备。Exemplarily, the target multimedia is audio as an example for illustration. For example, during the process of playing song A by the electronic device, the electronic device may display the playing interface of song A, that is, the target interface. The user can click the control 'record' in the playback interface. After the electronic device receives the user's click input, in response to the click input, the electronic device identifies the song A playing interface, determines that the target process is the process of playing the song A, and starts to intercept the audio segment content from the song A. After song A is played for a period of time, if the user clicks the control 'stop' in the playback interface, the electronic device can receive the user's click input on the control, and in response to the click input, the electronic device stops intercepting audio from the song A Fragment content. After that, the electronic device automatically uses the audio content between the two inputs as the intercepted audio clip, and packages the intercepted audio clip, as well as the packaged audio clip and the installation package of the application to which the audio clip belongs, and the audio clip. Information such as the opening method and whether the packaged audio clip needs special reading is shared to the target device as target information.
本发明实施例提供的信息分享方法,在目标进程为多媒体进程的情况下,如果用户想要将多媒体进程的某个片段分享给其他设备,那么用户可以通过开始截取输入和停止截取输入,触发电子设备从该目标多媒体中截取多媒体内容;然后,电子设备可以对截取的多媒体内容进行编辑操作,以得到目标信息;最后,电子设备可以将该目标信息分享给目标设备。如此,使用目标设备的其他用户可以触发目标设备显示截取的多媒体内容,即其他用户可以更快地查看自己感兴趣的内容。In the information sharing method provided by the embodiment of the present invention, when the target process is a multimedia process, if the user wants to share a certain segment of the multimedia process with other devices, the user can trigger the electronic The device intercepts the multimedia content from the target multimedia; then, the electronic device can edit the intercepted multimedia content to obtain target information; finally, the electronic device can share the target information with the target device. In this way, other users using the target device can trigger the target device to display the intercepted multimedia content, that is, other users can view the content they are interested in more quickly.
实施例二
可选的,在用户想要分享浏览网页中的内容的情况下,上述S102中“对目标界面识别,获取目标信息”,具体可以通过下述的B1至B3实现。Optionally, in the case where the user wants to share the content in the browsing web page, "identify the target interface and obtain the target information" in the above S102 can be specifically implemented through the following B1 to B3.
B1、电子设备对目标界面识别,确定该目标界面为包括N个历史进程信息的界面。B1. The electronic device identifies the target interface, and determines that the target interface is an interface including N pieces of historical process information.
其中,上述N为大于或等于1的整数。The above N is an integer greater than or equal to 1.
可选的,上述“包括N个历史进程信息的界面”可以为网页中的历史记录界面或为应用程序中的历史浏览界面。Optionally, the above-mentioned "interface including N pieces of historical process information" may be a history record interface in a web page or a history browsing interface in an application program.
示例性的,以包括N个历史进程信息的界面为网页中的历史记录界面为例进行示例性说明。假设用户通过电子设备访问一个网站论坛,如果用户想要将该网站论坛分享给其他设设备,那么用户可以触发电子设备显示包括该网站论坛的历史记录界面。Exemplarily, it is exemplified that the interface including N pieces of historical process information is a history record interface in a web page. Assuming that a user accesses a website forum through an electronic device, if the user wants to share the website forum to other devices, the user can trigger the electronic device to display a history interface including the website forum.
示例性的,以包括N个历史进程信息的界面为应用程序的历史浏览界面为例进行示例性说明。例如,用户正在使用电子设备中某一阅读类应用程序阅读电子书。然后,如果用户想要将该电子书的某精彩章节分享至其他设备,那么用户可以触发电子设备显示这个电子书的历史记录界面,该历史记录界面可以包括用户浏览过的各个章节的名称,或包括各个章节的访问链接地址,或包括各个章节的名称和访问链接地址。Exemplarily, the interface including N pieces of historical process information is taken as an example of the historical browsing interface of the application for illustrative description. For example, the user is reading an e-book using a certain reading application in the electronic device. Then, if the user wants to share a wonderful chapter of the e-book to other devices, the user can trigger the electronic device to display a history interface of the e-book, and the history interface can include the names of the chapters the user has browsed, or Include the access link address of each chapter, or include the name and access link address of each chapter.
B2、电子设备接收对该N个历史进程信息中的至少一个历史进程信息的第三输入。B2. The electronic device receives a third input of at least one historical process information among the N pieces of historical process information.
可选的,上述至少一个历史进程信息可以为N个历史进程信息中的部分历史进程信息或全部历史进程信息。Optionally, the at least one piece of historical process information may be part of the historical process information or all of the historical process information in the N pieces of historical process information.
可选的,上述第三输入为用户在包括N个历史进程信息的目标界面的触控输入,该第三输入可以用于从N个历史进程信息中选择至少一个历史进程信息。例如,该触控输入可以为用户在包括N个历史进程信息的界面的点击输入。当然,第三输入还可以为用户的手势输入、语音输入、物理按键输入或其他任意可能的输入等,本发明实施例不作限定。Optionally, the third input is a user touch input on a target interface including N pieces of historical process information, and the third input may be used to select at least one piece of historical process information from the N pieces of historical process information. For example, the touch input may be a user's click input on an interface including N pieces of historical process information. Of course, the third input may also be a user's gesture input, voice input, physical key input, or any other possible input, etc., which is not limited in the embodiment of the present invention.
B3、响应于该第三输入,电子设备获取目标信息。B3. In response to the third input, the electronic device acquires target information.
其中,上述目标信息包括以下至少一项:与该至少一个历史进程信息对应的网页地址、与该至少一个历史进程信息对应的界面内容。The above target information includes at least one of the following: a web page address corresponding to the at least one historical process information, and interface content corresponding to the at least one historical process information.
可选的,上述目标信息还可以包括应用程序的安装包、与该至少一个历史进程信息对应的目录或名称。Optionally, the above-mentioned target information may further include an installation package of the application, a directory or a name corresponding to the at least one historical process information.
示例性的,如图4所示,在用户浏览网页的情况下,如果想要将历史网页分享指其他设备,那么可以触发电子设备显示历史记录界面,即目标界面。用户可以通过第一输入触发电子设备对该历史记录界面识别,确定该目标界面为包括4个历史进程信息的界面,该4个历史进程信息分别对应的界面为历史界面04、历史界面05、历史界面06、历史界面07。用户可以从4个历史进程信息的界面中分别选择历史界面04、历史界面05和历史界面07,从而电子设备可以接收对该3个历史进程信息的第三输入,并响应于该第三输入,获取历史界面04的网页地址和界面内容、历史界面05的网页地址和界面内容、历史界面07的网页地址和界面内容,即电子设备可以获取目标信息。之后,电子设备可以将该目标信息打包后分享至目标设备。Exemplarily, as shown in FIG. 4 , when a user browses a web page, if he wants to share the history web page with other devices, the electronic device can be triggered to display a history record interface, that is, a target interface. The user can trigger the electronic device to identify the historical record interface through the first input, and determine that the target interface is an interface including 4 historical process information, and the interfaces corresponding to the 4 historical process information are
本发明实施例提供的信息分享方法,由于电子设备可以将N个历史进程信息显示在一个界面中,因此在用户想要将自己感兴趣的历史进程信息分享给其他设备,那么用户可以通过在该界面中的输入从N个历史进程信息中选择自己感兴趣的历史进程信息,从而可以实现将历史进程信息分享给目标设备。In the information sharing method provided by the embodiment of the present invention, since the electronic device can display N pieces of historical process information in one interface, if the user wants to share the historical process information that he is interested in to other devices, the user can The input in the interface selects the historical process information one is interested in from the N historical process information, so that the historical process information can be shared with the target device.
实施例三Embodiment 3
可选的,在用户想要分享存储的文件内容的情况下,上述S102中“对目标界面识别,获取目标信息”,具体可以通过下述的C1和C2实现。Optionally, in the case where the user wants to share the stored file content, "identify the target interface and obtain target information" in the above S102 may be specifically implemented through the following C1 and C2.
C1、电子设备对目标界面识别,确定目标进程为目标文件的进程。C1. The electronic device recognizes the target interface, and determines that the target process is the process of the target file.
可选的,上述目标文件可以为演示文稿、工作表、绘图、文档等。Optionally, the above-mentioned target file may be a presentation, a worksheet, a drawing, a document, or the like.
可选的,上述目标文件可以为保存在电子设备中的文件,或为保存与云盘客户端对应的服务器中的文件,或为保存在网络地址对应的服务器中的文件。Optionally, the above-mentioned target file may be a file stored in an electronic device, or a file stored in a server corresponding to the cloud disk client, or a file stored in a server corresponding to a network address.
C2、电子设备获取该目标文件的界面内容和该目标界面所属的应用程序的信息,作为目标信息。C2. The electronic device acquires the interface content of the target file and the information of the application program to which the target interface belongs, as target information.
可选的,在目标文件为保存在电子设备中的文件的情况下,上述目标信息可以包括以下至少一项:该目标文件的界面内容、该目标文件界面所属的应用程序的名称、该目标文件界面所属的应用程序的安装包。Optionally, when the target file is a file stored in an electronic device, the above-mentioned target information may include at least one of the following: the interface content of the target file, the name of the application to which the target file interface belongs, the target file The installation package of the application to which the interface belongs.
可选的,在目标文件为保存在与云盘客户端对应的服务器中的文件情况下,上述目标信息可以包括以下至少一项:该目标文件的界面内容、该目标文件界面所属的应用程序的名称、该目标文件界面所属的应用程序的安装包、云盘客户端的名称、云盘客户端的安装包。Optionally, in the case where the target file is a file stored in a server corresponding to the cloud disk client, the above-mentioned target information may include at least one of the following: the interface content of the target file, the interface content of the target file interface to which the application program belongs. Name, the installation package of the application to which the target file interface belongs, the name of the cloud disk client, and the installation package of the cloud disk client.
可选的,在目标文件为保存在网络地址对应的服务器中的文件的情况下,上述目标信息可以包括以下至少一项:该目标文件的界面内容、与该目标文件界面对应的网络地址、该目标文件的打开或读取方式等。Optionally, when the target file is a file stored in a server corresponding to a network address, the above-mentioned target information may include at least one of the following: the interface content of the target file, the network address corresponding to the interface of the target file, the How the target file is opened or read, etc.
示例性的,以目标进程为显示目标文件为例进行示例性说明。假设与云盘客户端对应的服务器中保存有多部网络小说。用户正在浏览该多部网络小说中的某部小说。在电子设备显示包括这部小说的某个精彩内容的文本界面的情况下,如果用户想要将这个精彩内容分享至其他用户使用的目标设备,那么用户可以点击这个文本界面。在电子设备接收到用户的点击输入之后,响应于该点击输入,电子设备对这个文本界面识别,确定目标进程为文本文件的进程。电子设备获取该文本界面的界面内容和该文本界面所属的应用程序的安装包,打包后作为目标信息。最后,电子设备可以将该目标信息分享至目标设备。Illustratively, the target process is taken as an example to display the target file for illustrative description. It is assumed that there are multiple online novels stored in the server corresponding to the cloud disk client. The user is browsing one of the multiple web novels. When the electronic device displays a text interface including a certain wonderful content of the novel, if the user wants to share the wonderful content to a target device used by other users, the user can click on the text interface. After the electronic device receives the user's click input, in response to the click input, the electronic device recognizes the text interface and determines that the target process is a process of a text file. The electronic device obtains the interface content of the text interface and the installation package of the application to which the text interface belongs, and packs them as target information. Finally, the electronic device can share the target information to the target device.
本发明实施例提供的信息分享方法,在电子设备对目标界面识别,确定目标进程为目标文件的进程的情况下,由于电子设备获取该目标文件的界面内容和该目标界面所属的应用程序的信息作为目标信息,并分享给目标设备,如此,目标设备可以更快锁定与目标信息对应的目标文件的界面内容,从而节省使用目标设备的用户的时间。In the information sharing method provided by the embodiment of the present invention, when the electronic device identifies the target interface and determines that the target process is the process of the target file, since the electronic device obtains the interface content of the target file and the information of the application program to which the target interface belongs As the target information, and share it with the target device, in this way, the target device can lock the interface content of the target file corresponding to the target information faster, thereby saving the time of the user using the target device.
实施例四Embodiment 4
可选的,在用户想要分享游戏数据的情况下,上述S102中“对目标界面识别,获取目标信息”,具体可以通过下述的D1和D2实现。Optionally, in the case where the user wants to share game data, "identify the target interface and obtain target information" in the above S102 may be specifically implemented through the following D1 and D2.
D1、电子设备对目标界面识别,确定目标进程为目标游戏的进程。D1. The electronic device recognizes the target interface, and determines that the target process is the process of the target game.
D2、电子设备获取目标游戏的实时数据、目标游戏属于的应用程序的信息,作为目标信息。D2. The electronic device acquires the real-time data of the target game and the information of the application program to which the target game belongs, as the target information.
其中,上述实时数据可以包括游戏应用程序的账户信息、缓存信息和游戏任务进程信息等中的至少一项。上述目标游戏属于的应用程序的信息可以包括:目标游戏属于的应用程序的名称和目标游戏属于的应用程序的安装包等中的至少一项。The real-time data may include at least one of account information, cache information, game task progress information, and the like of the game application. The information about the application to which the target game belongs may include at least one of the name of the application to which the target game belongs, and the installation package of the application to which the target game belongs.
需要说明的是,在目标设备接收到目标信息之后,一种可能的情况,发送该目标信息的电子设备和目标设备可以同时运行包含该目标信息的应用程序;另一种可能的情况,发送该目标信息的电子设备停止运行包含该目标信息的应用程序,而目标设备开始运行包含该目标信息的应用程序。It should be noted that, after the target device receives the target information, in one possible situation, the electronic device that sends the target information and the target device can run the application program containing the target information at the same time; The electronic device of the target information stops running the application program containing the target information, and the target device starts to run the application program containing the target information.
示例性的,用户A使用的电子设备正在运行游戏应用程序,假设该游戏应用程序只支持单个用户在线。如果用户A想要将游戏应用程序分享给用户B,那么电子设备可以获取当前游戏的账号和实时进程信息,以及该游戏应用程序的安装包。然后,电子设备将获取的当前游戏的账号和实时进程信息,以及该游戏应用程序的安装包打包后发送至用户B使用的电子设备。之后,在用户B触发电子设备开始运行该游戏应用程序的情况下,用户A的游戏应用程序默认处于断线中。Exemplarily, the electronic device used by user A is running a game application, assuming that the game application only supports a single user online. If user A wants to share the game application with user B, the electronic device can obtain the account and real-time progress information of the current game, and the installation package of the game application. Then, the electronic device packs the acquired account and real-time progress information of the current game, and the installation package of the game application to the electronic device used by user B. After that, when user B triggers the electronic device to start running the game application, user A's game application is disconnected by default.
示例性的,用户A使用的电子设备正在运行游戏应用程序,假设该游戏应用程序支持多个用户在线。如果用户A想要将游戏应用程序分享给用户B,那么电子设备可以获取当前游戏的账号和实时进程信息,以及该游戏应用程序的安装包。然后,电子设备将获取的当前游戏的账号和实时进程信息,以及该游戏应用程序的安装包打包后发送至用户B。之后,用户A保持运行该游戏应用程序,用户B可以触发电子设备开始运行该游戏应用程序,即用户A与用户B同时在线进行游戏,并到游戏结束。Exemplarily, the electronic device used by user A is running a game application, assuming that the game application supports multiple users online. If user A wants to share the game application with user B, the electronic device can obtain the account and real-time progress information of the current game, and the installation package of the game application. Then, the electronic device packages the acquired account and real-time progress information of the current game, and the installation package of the game application to user B after packaging. After that, user A keeps running the game application, and user B can trigger the electronic device to start running the game application, that is, user A and user B play the game online at the same time, and the game ends.
本发明实施例提供的信息分享方法,在用户想要将游戏数据实时同步给其他设备的情况下,由于电子设备可以获取当前运行的游戏应用程序的实时数据以及该游戏应用程序的安装包作为目标信息分享给目标设备,因此,根据游戏应用程序的功能可以切换运行的电子设备,或实现多个电子设备之间的实时互动。In the information sharing method provided by the embodiment of the present invention, when the user wants to synchronize the game data to other devices in real time, since the electronic device can obtain the real-time data of the currently running game application and the installation package of the game application as the target The information is shared with the target device, therefore, according to the function of the game application, the running electronic device can be switched, or the real-time interaction between multiple electronic devices can be realized.
可选的,本发明实施例提供的电子设备可以包括至少两个客户识别模块(subscriber identity module,SIM)卡。在电子设备包括至少两个客户识别模块SIM卡的情况下,为了不影响电子设备正在运行的目标进程,电子设备可以利用除目标进程所使用SIM卡之外的另一张SIM卡发送目标信息至目标设备。示例性的,结合图2,如图5所示,在S101之前,本发明实施例提供的信息分享方法还可以包括下述S103,且上述S102可以通过下述S102A实现。Optionally, the electronic device provided in this embodiment of the present invention may include at least two subscriber identity module (subscriber identity module, SIM) cards. In the case where the electronic device includes at least two customer identification module SIM cards, in order not to affect the target process running on the electronic device, the electronic device can use another SIM card other than the SIM card used by the target process to send target information to target device. Exemplarily, with reference to FIG. 2 , as shown in FIG. 5 , before S101 , the information sharing method provided in this embodiment of the present invention may further include the following S103 , and the above S102 may be implemented by the following S102A.
S103、电子设备通过至少两个SIM卡中的第一SIM卡接收目标数据,并根据该目标数据,显示目标界面。S103, the electronic device receives target data through a first SIM card of the at least two SIM cards, and displays a target interface according to the target data.
需要说明的是,上述目标数据为电子设备通过SIM卡传输的通信数据流,且该目标数据用于指示目标界面。It should be noted that the above target data is a communication data stream transmitted by the electronic device through the SIM card, and the target data is used to indicate the target interface.
S102A、响应于该第一输入,电子设备对该目标界面识别,获取目标信息,并通过至少两个SIM卡中的第二SIM卡将该目标信息分享至目标设备。S102A. In response to the first input, the electronic device identifies the target interface, acquires target information, and shares the target information to the target device through the second SIM card of the at least two SIM cards.
可选的,上述目标信息的描述可以参照上文的具体描述,此处不再赘述。Optionally, for the description of the above target information, reference may be made to the specific description above, which is not repeated here.
示例性的,以目标界面为应用程序的界面为例进行示例性说明。假设电子设备中设置有两张SIM卡。电子设备通过两张SIM卡中的第一SIM卡接收通讯数据,并根据该通讯数据,显示某视频类应用程序播放视频的视频界面,即目标界面。在电子设备显示该视频界面的情况下,电子设备可以接收用户对该视频界面的点击输入(即第一输入),并响应于该点击输入,电子设备对视频界面识别,获取与该视频界面对应的视频的进度信息,以及与该视频界面对应的视频的界面内容,即目标信息。然后,电子设备可以通过两张SIM卡中第二SIM卡,将与该视频界面对应的视频的进度信息,以及与该视频界面对应的视频的界面内容打包为一个文件,并将打包后的文件分享至目标设备。Exemplarily, the target interface is an interface of an application program as an example for illustrative description. It is assumed that two SIM cards are set in the electronic device. The electronic device receives communication data through the first SIM card of the two SIM cards, and according to the communication data, displays a video interface, ie, a target interface, of a video application program playing video. When the electronic device displays the video interface, the electronic device may receive a user's click input (ie, the first input) on the video interface, and in response to the click input, the electronic device recognizes the video interface, and obtains the corresponding video interface. The progress information of the video, and the interface content of the video corresponding to the video interface, that is, the target information. Then, the electronic device can package the progress information of the video corresponding to the video interface and the interface content of the video corresponding to the video interface into one file through the second SIM card of the two SIM cards, and package the packaged file Share to the target device.
示例性的,以目标界面为与在云端服务器中存储的文件对应的界面为例进行示例性说明。假设电子设备设置两张SIM卡,且云盘服务器中存储有大量视频文件。用户可以对一个视频文件的标识进行触控输入,从而电子设备可以通过两张SIM卡中的第一SIM卡将视频请求消息发送至云端服务器。之后,电子设备可以接收云端服务器返回的通讯数据,并根据该通讯数据,显示该通讯数据对应的视频界面,即目标界面。在电子设备显示该视频界面的情况下,如果用户想要将该视频文件的精彩片段分享至目标设备,那么用户可以对视频界面进行截取操作。在电子设备接收用户到对该视频界面的截取操作之后,电子设备可以响应于该点击输入,对视频界面识别,获取与该视频界面对应的视频文件的进度信息,以及与该视频界面对应的视频文件的界面内容,即目标信息。再之后,电子设备可以通过两张SIM卡中的第二SIM卡,将与该视频界面对应的视频文件的进度信息以及与该视频界面对应的视频文件的界面内容打包为一个文件,并将打包后的文件分享至目标设备。Exemplarily, the target interface is an interface corresponding to a file stored in the cloud server as an example for illustrative description. It is assumed that the electronic device is provided with two SIM cards, and a large number of video files are stored in the cloud disk server. The user can perform touch input on the identifier of a video file, so that the electronic device can send the video request message to the cloud server through the first SIM card of the two SIM cards. Afterwards, the electronic device can receive the communication data returned by the cloud server, and according to the communication data, display a video interface corresponding to the communication data, that is, the target interface. When the electronic device displays the video interface, if the user wants to share the highlight clip of the video file to the target device, the user can perform a capture operation on the video interface. After the electronic device receives the user's interception operation on the video interface, the electronic device can identify the video interface in response to the click input, and obtain progress information of the video file corresponding to the video interface and the video corresponding to the video interface. The interface content of the file, that is, the target information. After that, the electronic device can package the progress information of the video file corresponding to the video interface and the interface content of the video file corresponding to the video interface into a file through the second SIM card in the two SIM cards, and package the After the file is shared to the target device.
示例性的,以目标界面为用户浏览的网页为例进行示例性说明。假设电子设备中设置有两张SIM卡。用户正在浏览一视频网页,如果用户想要将浏览的视频网页分享至目标设备,那么用户可以触发电子设备显示包括所有视频网页的历史记录界面,从而电子设备可以通过两张SIM卡中的第一SIM卡将网页请求消息发送至云端服务器。之后,电子设备可以接收云端服务器返回的通讯数据,并根据该通讯数据,显示该通讯数据对应的历史记录界面,即目标界面。在电子设备显示该历史记录界面的情况下,接收用户对该历史记录界面的点击输入,即第一输入;并响应于该点击输入,电子设备对该历史记录界面识别,获取与该视频网页对应的地址链接,以及与该视频网页对应的视频内容,即目标信息。再之后,电子设备可以通过两张SIM卡中第二SIM卡,将与该视频网页对应的地址链接,以及与该视频网页对应的视频内容打包为一个文件,并将打包后的文件分享至目标设备。Exemplarily, the target interface is a webpage browsed by the user as an example for illustrative description. It is assumed that two SIM cards are set in the electronic device. The user is browsing a video web page. If the user wants to share the browsed video web page to the target device, the user can trigger the electronic device to display a history record interface including all video web pages, so that the electronic device can pass the first one of the two SIM cards. The SIM card sends the web page request message to the cloud server. Afterwards, the electronic device can receive the communication data returned by the cloud server, and according to the communication data, display a history record interface corresponding to the communication data, that is, a target interface. When the electronic device displays the history record interface, the user's click input on the history record interface is received, that is, the first input; and in response to the click input, the electronic device recognizes the history record interface, and obtains the corresponding video webpage. , and the video content corresponding to the video webpage, that is, target information. Afterwards, the electronic device can package the address link corresponding to the video webpage and the video content corresponding to the video webpage into a file through the second SIM card in the two SIM cards, and share the packaged file to the target. equipment.
本发明实施例提供的信息分享方法,在电子设备包括至少两个客户识别模块SIM卡的情况下,由于电子设备可以通过至少两个SIM卡中的一张SIM卡接收用于显示目标界面的目标数据,并通过另一张SIM卡向目标设备分享与目标界面对应的目标信息,因此可以在不影响电子设备上目标进程的运行速率的情况下,将目标信息快速分享给其它设备。In the information sharing method provided by the embodiments of the present invention, when the electronic device includes at least two customer identification module SIM cards, since the electronic device can receive a target for displaying the target interface through one of the at least two SIM cards data, and share the target information corresponding to the target interface to the target device through another SIM card, so the target information can be quickly shared to other devices without affecting the running rate of the target process on the electronic device.
需要说明的是,本发明实施例中,上述各个附图所示的信息分享方法均是以结合本发明实施例中的一个附图为例示例性的说明的。具体实现时,上述各个附图所示的信息分享方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。It should be noted that, in the embodiments of the present invention, the information sharing methods shown in the above figures are all illustratively described by taking a figure in the embodiments of the present invention as an example. During specific implementation, the information sharing methods shown in the above-mentioned respective drawings can also be implemented in combination with any other drawings shown in the above-mentioned embodiments that can be combined, which will not be repeated here.
如图6所示,本发明实施例提供一种电子设备600。该电子设备可以包括接收模块601、处理模块602和显示模块603。接收模块601,可以用于在显示模块603显示目标界面的情况下,接收用户的第一输入。处理模块602,可以用于响应于接收模块601接收的该第一输入,对该目标界面识别,获取目标信息,并将该目标信息分享至目标设备。其中,该目标信息用于指示与该目标界面对应的目标进程的进度和界面内容。As shown in FIG. 6 , an embodiment of the present invention provides an
可选的,处理模块602,具体可以用于对目标界面识别,确定目标进程为目标多媒体的进程,并从该目标多媒体中开始截取多媒体内容;并控制接收模块601接收用户的第二输入;以及响应于接收模块601接收的该第二输入,从该目标多媒体中停止截取多媒体内容,并对截取的多媒体内容进行编辑操作,得到目标信息。Optionally, the
可选的,处理模块602,具体可以用于对目标界面识别,确定该目标界面为包括N个历史进程信息的界面,N为大于或等于1的整数;并控制接收模块601接收对N个历史进程信息中的至少一个历史进程信息的第三输入;以及响应于接收模块601接收的第三输入,获取目标信息,该目标信息包括以下至少一项:与该至少一个历史进程信息对应的网页地址、与该至少一个历史进程信息对应的界面内容。Optionally, the
可选的,处理模块602,具体可以用于对目标界面识别,确定目标进程为目标文件的进程;并获取该目标文件的界面内容和该目标界面所属的应用程序的信息,作为目标信息。Optionally, the
可选的,电子设备包括至少两个客户识别模块SIM卡。显示模块603,可以用于在接收模块601接收用户的第一输入之前,通过至少两个SIM卡中的第一SIM卡接收目标数据,并根据该目标数据,显示目标界面。处理模块602,具体用于通过至少两个SIM卡中的第二SIM卡将目标信息分享至目标设备。Optionally, the electronic device includes at least two customer identification module SIM cards. The
本发明实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided in the embodiments of the present invention can implement each process implemented by the electronic device in the foregoing method embodiments, and to avoid repetition, details are not repeated here.
本发明实施例提供一种电子设备,在电子设备显示目标界面的情况下,如果一个用户想要将该目标界面对应的精彩内容分享至目标设备,那么该用户可以通过一个输入触发电子设备识别该目标界面,并获取该目标界面对应的目标进程的进度和界面内容作为目标信息,从而电子设备可以将该目标信息分享给目标设备。如此,在目标设备接收该目标信息后,使用目标设备的其他用户可以触发目标设备显示目标界面对应的内容。因此与现有的分享方式相比,其他用户无需花费较长时间从头开始查看分享的内容。如此,本发明提供的电子设备的分享方式的体验较好。An embodiment of the present invention provides an electronic device. When the electronic device displays a target interface, if a user wants to share the wonderful content corresponding to the target interface to the target device, the user can trigger the electronic device to recognize the target interface through an input. The target interface is obtained, and the progress of the target process and the interface content corresponding to the target interface are obtained as target information, so that the electronic device can share the target information with the target device. In this way, after the target device receives the target information, other users using the target device can trigger the target device to display the content corresponding to the target interface. Therefore, other users do not need to spend a long time viewing the shared content from scratch compared to existing sharing methods. In this way, the sharing method of the electronic device provided by the present invention has a better experience.
图7为实现本发明各个实施例的一种电子设备的硬件结构示意图。如图7所示,该电子设备200包括但不限于:射频单元201、网络模块202、音频输出单元203、输入单元204、传感器205、显示单元206、用户输入单元207、接口单元208、存储器209、处理器210、以及电源211等部件。本领域技术人员可以理解,图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention. As shown in FIG. 7 , the
其中,处理器210,用于在显示单元206在显示目标界面的情况下,控制用户输入单元207接收用户的第一输入;并响应于该第一输入,对该目标界面识别,获取目标信息,并将该目标信息分享至目标设备。其中,该目标信息用于指示与该目标界面对应的目标进程的进度和界面内容。Wherein, the
本发明实施例提供一种电子设备,在电子设备显示目标界面的情况下,如果一个用户想要将该目标界面对应的精彩内容分享至目标设备,那么该用户可以通过一个输入触发电子设备识别该目标界面,并获取该目标界面对应的目标进程的进度和界面内容作为目标信息,从而电子设备可以将该目标信息分享给目标设备。如此,在目标设备接收该目标信息后,使用目标设备的其他用户可以触发目标设备显示目标界面对应的内容。因此与现有的分享方式相比,其他用户无需花费较长时间从头开始查看分享的内容。如此,本发明提供的电子设备的分享方式的体验较好。An embodiment of the present invention provides an electronic device. When the electronic device displays a target interface, if a user wants to share the wonderful content corresponding to the target interface to the target device, the user can trigger the electronic device to recognize the target interface through an input. The target interface is obtained, and the progress of the target process and the interface content corresponding to the target interface are obtained as target information, so that the electronic device can share the target information with the target device. In this way, after the target device receives the target information, other users using the target device can trigger the target device to display the content corresponding to the target interface. Therefore, other users do not need to spend a long time viewing the shared content from scratch compared to existing sharing methods. In this way, the sharing method of the electronic device provided by the present invention has a better experience.
应理解的是,本发明实施例中,射频单元201可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器210处理;另外,将上行的数据发送给基站。通常,射频单元201包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元201还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
电子设备200通过网络模块202为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The
音频输出单元203可以将射频单元201或网络模块202接收的或者在存储器209中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元203还可以提供与电子设备200执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元203包括扬声器、蜂鸣器以及受话器等。The
输入单元204用于接收音频或视频信号。输入单元204可以包括图形处理器(Graphics Processing Unit,GPU)2041和麦克风2042,图形处理器2041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元206上。经图形处理器2041处理后的图像帧可以存储在存储器209(或其它存储介质)中或者经由射频单元201或网络模块202进行发送。麦克风2042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元201发送到移动通信基站的格式输出。The
电子设备200还包括至少一种传感器205,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板2061的亮度,接近传感器可在电子设备200移动到耳边时,关闭显示面板2061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器205还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元206用于显示由用户输入的信息或提供给用户的信息。显示单元206可包括显示面板2061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板2061。The
用户输入单元207可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元207包括触控面板2071以及其他输入设备2072。触控面板2071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板2071上或在触控面板2071附近的操作)。触控面板2071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器210,接收处理器210发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板2071。除了触控面板2071,用户输入单元207还可以包括其他输入设备2072。具体地,其他输入设备2072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板2071可覆盖在显示面板2061上,当触控面板2071检测到在其上或附近的触摸操作后,传送给处理器210以确定触摸事件的类型,随后处理器210根据触摸事件的类型在显示面板2061上提供相应的视觉输出。虽然在图7中,触控面板2071与显示面板2061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板2071与显示面板2061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the
接口单元208为外部装置与电子设备200连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元208可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备200内的一个或多个元件或者可以用于在电子设备200和外部装置之间传输数据。The
存储器209可用于存储软件程序以及各种数据。存储器209可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器209可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器210是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器209内的软件程序和/或模块,以及调用存储在存储器209内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器210可包括一个或多个处理单元;可选的,处理器210可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器210中。The
电子设备200还可以包括给各个部件供电的电源211(比如电池),可选的,电源211可以通过电源管理系统与处理器210逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,电子设备200包括一些未示出的功能模块,在此不再赘述。In addition, the
可选的,本发明实施例还提供一种电子设备,包括如图7所示的处理器210,存储器209,存储在存储器209上并可在处理器210上运行的计算机程序,该计算机程序被处理器210执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides an electronic device, including a
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,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, and when the computer program is executed by a processor, each process of the foregoing method embodiment can be achieved, and the same technical effect can be achieved, In order to avoid repetition, details are not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。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-ROM), including several instructions to make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in 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.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010286923.3ACN111600931A (en) | 2020-04-13 | 2020-04-13 | Information sharing method and electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010286923.3ACN111600931A (en) | 2020-04-13 | 2020-04-13 | Information sharing method and electronic device |
| Publication Number | Publication Date |
|---|---|
| CN111600931Atrue CN111600931A (en) | 2020-08-28 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010286923.3APendingCN111600931A (en) | 2020-04-13 | 2020-04-13 | Information sharing method and electronic device |
| Country | Link |
|---|---|
| CN (1) | CN111600931A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112328189A (en)* | 2020-11-27 | 2021-02-05 | 联想(北京)有限公司 | Information processing method and device, electronic equipment and computer storage medium |
| CN112929494A (en)* | 2021-01-22 | 2021-06-08 | 维沃移动通信有限公司 | Information processing method, information processing apparatus, information processing medium, and electronic device |
| CN113378094A (en)* | 2021-06-29 | 2021-09-10 | 维沃移动通信(杭州)有限公司 | Interface sharing method, device, equipment and medium |
| CN114048048A (en)* | 2021-11-15 | 2022-02-15 | Oppo广东移动通信有限公司 | Information sharing method, device, electronic device and storage medium |
| CN114860117A (en)* | 2022-04-24 | 2022-08-05 | Oppo广东移动通信有限公司 | Content input method, device and electronic device |
| CN115119069A (en)* | 2021-03-17 | 2022-09-27 | 阿里巴巴新加坡控股有限公司 | Multimedia content processing method, electronic device and computer storage medium |
| WO2022199434A1 (en)* | 2021-03-23 | 2022-09-29 | 北京芯海视界三维科技有限公司 | Method and apparatus for transmitting target between devices, and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104426919A (en)* | 2013-08-19 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Page sharing method, device and system |
| CN106294660A (en)* | 2016-08-04 | 2017-01-04 | 青岛海信电器股份有限公司 | Information interacting method and device |
| CN106936699A (en)* | 2017-04-26 | 2017-07-07 | 腾讯科技(深圳)有限公司 | A kind of information sharing method, device and system |
| US20170359187A1 (en)* | 2016-06-13 | 2017-12-14 | Logmein, Inc. | Scalable real-time videoconferencing over WebRTC |
| CN110602565A (en)* | 2019-08-30 | 2019-12-20 | 维沃移动通信有限公司 | Image processing method and electronic equipment |
| CN110622487A (en)* | 2017-10-09 | 2019-12-27 | 华为技术有限公司 | File sharing method and terminal |
| CN110784771A (en)* | 2019-10-30 | 2020-02-11 | 维沃移动通信有限公司 | A kind of video sharing method and electronic device |
| CN110851051A (en)* | 2019-10-28 | 2020-02-28 | 维沃移动通信有限公司 | Object sharing method and electronic equipment |
| CN110865745A (en)* | 2019-10-28 | 2020-03-06 | 维沃移动通信有限公司 | Screen capturing method and terminal equipment |
| CN110933511A (en)* | 2019-11-29 | 2020-03-27 | 维沃移动通信有限公司 | A video sharing method, electronic device and medium |
| CN110941501A (en)* | 2019-11-29 | 2020-03-31 | 维沃移动通信有限公司 | Application sharing method and electronic device |
| US20210067745A1 (en)* | 2019-08-29 | 2021-03-04 | CarmaCam, Inc. | Method and apparatus for traffic infraction management |
| US20210365582A1 (en)* | 2020-05-21 | 2021-11-25 | Meir Dahan | Method for Protecting Privacy of Shared Video Files |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104426919A (en)* | 2013-08-19 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Page sharing method, device and system |
| US20170359187A1 (en)* | 2016-06-13 | 2017-12-14 | Logmein, Inc. | Scalable real-time videoconferencing over WebRTC |
| CN106294660A (en)* | 2016-08-04 | 2017-01-04 | 青岛海信电器股份有限公司 | Information interacting method and device |
| CN106936699A (en)* | 2017-04-26 | 2017-07-07 | 腾讯科技(深圳)有限公司 | A kind of information sharing method, device and system |
| CN110622487A (en)* | 2017-10-09 | 2019-12-27 | 华为技术有限公司 | File sharing method and terminal |
| US20210067745A1 (en)* | 2019-08-29 | 2021-03-04 | CarmaCam, Inc. | Method and apparatus for traffic infraction management |
| CN110602565A (en)* | 2019-08-30 | 2019-12-20 | 维沃移动通信有限公司 | Image processing method and electronic equipment |
| CN110851051A (en)* | 2019-10-28 | 2020-02-28 | 维沃移动通信有限公司 | Object sharing method and electronic equipment |
| CN110865745A (en)* | 2019-10-28 | 2020-03-06 | 维沃移动通信有限公司 | Screen capturing method and terminal equipment |
| CN110784771A (en)* | 2019-10-30 | 2020-02-11 | 维沃移动通信有限公司 | A kind of video sharing method and electronic device |
| CN110941501A (en)* | 2019-11-29 | 2020-03-31 | 维沃移动通信有限公司 | Application sharing method and electronic device |
| CN110933511A (en)* | 2019-11-29 | 2020-03-27 | 维沃移动通信有限公司 | A video sharing method, electronic device and medium |
| US20210365582A1 (en)* | 2020-05-21 | 2021-11-25 | Meir Dahan | Method for Protecting Privacy of Shared Video Files |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112328189A (en)* | 2020-11-27 | 2021-02-05 | 联想(北京)有限公司 | Information processing method and device, electronic equipment and computer storage medium |
| CN112328189B (en)* | 2020-11-27 | 2023-01-17 | 联想(北京)有限公司 | Information processing method and device, electronic equipment and computer storage medium |
| CN112929494A (en)* | 2021-01-22 | 2021-06-08 | 维沃移动通信有限公司 | Information processing method, information processing apparatus, information processing medium, and electronic device |
| CN112929494B (en)* | 2021-01-22 | 2022-04-22 | 维沃移动通信有限公司 | Information processing method, apparatus, medium and electronic equipment |
| CN115119069A (en)* | 2021-03-17 | 2022-09-27 | 阿里巴巴新加坡控股有限公司 | Multimedia content processing method, electronic device and computer storage medium |
| WO2022199434A1 (en)* | 2021-03-23 | 2022-09-29 | 北京芯海视界三维科技有限公司 | Method and apparatus for transmitting target between devices, and electronic device |
| CN113378094A (en)* | 2021-06-29 | 2021-09-10 | 维沃移动通信(杭州)有限公司 | Interface sharing method, device, equipment and medium |
| CN114048048A (en)* | 2021-11-15 | 2022-02-15 | Oppo广东移动通信有限公司 | Information sharing method, device, electronic device and storage medium |
| CN114860117A (en)* | 2022-04-24 | 2022-08-05 | Oppo广东移动通信有限公司 | Content input method, device and electronic device |
| Publication | Publication Date | Title |
|---|---|---|
| CN111600931A (en) | Information sharing method and electronic device | |
| CN111596845A (en) | Display control method, device and electronic device | |
| CN109917995A (en) | A kind of object processing method and terminal device | |
| CN109857494B (en) | Message prompting method and terminal equipment | |
| CN110058754A (en) | A kind of option display method and terminal device | |
| CN109829707B (en) | Interface display method and terminal device | |
| CN110012152B (en) | Interface display method and terminal device | |
| CN111638822A (en) | Icon operation method and device and electronic equipment | |
| WO2021175143A1 (en) | Picture acquisition method and electronic device | |
| CN111090489B (en) | Information control method and electronic equipment | |
| CN109240783A (en) | A kind of interface display method and terminal device | |
| WO2021057290A1 (en) | Information control method and electronic device | |
| CN110969434B (en) | Payment method, server, terminal and system | |
| CN110795002A (en) | Screenshot method and terminal equipment | |
| CN107707774A (en) | Message display method and mobile terminal | |
| CN111339324A (en) | Multimedia playing method and electronic equipment | |
| WO2021057301A1 (en) | File control method and electronic device | |
| CN108681427A (en) | A kind of method and terminal device of access privilege control | |
| CN111459358A (en) | Application program control method and electronic equipment | |
| CN108763544A (en) | A display method and terminal | |
| CN109981442A (en) | Method for sending information and terminal device | |
| CN111459361B (en) | Application icon display method, device and electronic device | |
| CN110147186A (en) | Applied control method and terminal equipment | |
| CN109491670A (en) | A kind of page display method and terminal device | |
| WO2021121225A1 (en) | Method for installing application program, and electronic apparatus |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20200828 |