Movatterモバイル変換


[0]ホーム

URL:


CN106302131B - A kind of synchronous method and device of chat message difference - Google Patents

A kind of synchronous method and device of chat message difference
Download PDF

Info

Publication number
CN106302131B
CN106302131BCN201610826288.7ACN201610826288ACN106302131BCN 106302131 BCN106302131 BCN 106302131BCN 201610826288 ACN201610826288 ACN 201610826288ACN 106302131 BCN106302131 BCN 106302131B
Authority
CN
China
Prior art keywords
terminal device
information
synchronized
chat information
synchronize
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201610826288.7A
Other languages
Chinese (zh)
Other versions
CN106302131A (en
Inventor
黄宏用
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610826288.7ApriorityCriticalpatent/CN106302131B/en
Publication of CN106302131ApublicationCriticalpatent/CN106302131A/en
Application grantedgrantedCritical
Publication of CN106302131BpublicationCriticalpatent/CN106302131B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了一种聊天信息区别同步的方法及装置,其中的方法可包括:在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型;若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息,所述使用信息包括终端设备当前是否正在播放多媒体文件的信息;若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上。采用本发明可以解决现有技术中同一社交账号的聊天信息在不同终端设备上无区别同步显示,导致在某些应用场景下带来的不便的问题,提升用户体验。

The embodiment of the present invention discloses a method and device for distinguishing and synchronizing chat information, wherein the method may include: when the target social account is logged in on multiple terminal devices, detecting and judging the target social account to be synchronized the information type of the chat information; if it is determined that the chat information to be synchronized is a multimedia type, obtain the usage information of the terminal device that needs to synchronize the chat information among the plurality of terminal devices, and the usage information includes whether the terminal device is currently The information of the multimedia file is being played; if the first terminal device that needs to synchronize the chat information is currently playing the multimedia file, it is controlled not to synchronize the chat information to be synchronized to the first terminal device. Adoption of the present invention can solve the problem in the prior art that the chat information of the same social account is displayed synchronously without distinction on different terminal devices, which causes inconvenience in certain application scenarios, and improves user experience.

Description

Translated fromChinese
一种聊天信息区别同步的方法及装置A method and device for distinguishing and synchronizing chat information

技术领域technical field

本发明涉及电子技术领域,尤其涉及一种聊天信息区别同步的方法及装置。The invention relates to the field of electronic technology, in particular to a method and device for distinguishing and synchronizing chat information.

背景技术Background technique

随着互联网络技术的发展和人们生活水平的不断提高,各种网络应用的使用越来越普及,网络聊天已经成为人们生活中不可缺少的通信娱乐工具。在社交应用中,特别是移动社交网络应用中,大部分的社交工具,例如QQ、微信、陌陌等都是一个帐号对应一个虚拟角色,用户使用一个账号登录,该账号对应的相关信息,不论在哪个终端上登陆该账号,都可以获得该账号下对应的相关信息。With the development of Internet technology and the continuous improvement of people's living standards, the use of various network applications has become more and more popular, and online chat has become an indispensable communication and entertainment tool in people's lives. In social applications, especially in mobile social network applications, most social tools, such as QQ, WeChat, Momo, etc., have an account corresponding to a virtual character. On which terminal the account is logged in, relevant information corresponding to the account can be obtained.

例如,随着QQ应用的不断完善和进步,QQ新增有消息同步功能,该功能是指用户可以通过在各种智能设备(手机、电脑、pad等)上登陆自己的同一个账号,都能看到自己的聊天记录,如在线聊天、传输视频文件、语音文件等多种聊天记录。即所有通过该账号产生的聊天信息都可以在各个登陆了该账号的终端上进行同步。但是,在一些特殊的情况下,用户可能不希望所有的消息在所有的终端上同步,比如,当用户正在使用手机看电影时,此时若接收到朋友发送的视频聊天消息,则可能需要打断用户当前播放的电影,而切换为播放该视频消息,显然会影响用户的观影效果,用户体验较差。For example, with the continuous improvement and progress of QQ applications, QQ has added a message synchronization function. This function means that users can log in to their same account on various smart devices (mobile phones, computers, pads, etc.) See your own chat records, such as online chat, transfer video files, voice files and other chat records. That is, all the chat information generated through the account can be synchronized on each terminal logged into the account. However, in some special cases, the user may not want all messages to be synchronized on all terminals. For example, when the user is using a mobile phone to watch a movie, if a video chat message sent by a friend is received, the user may need to call Interrupting the movie that the user is currently playing, and switching to playing the video message will obviously affect the user's viewing effect, and the user experience is poor.

发明内容Contents of the invention

本发明实施例所要解决的技术问题在于,提供一种聊天信息区别同步的方法及装置,可以解决现有技术中同一社交账号的聊天信息在不同终端设备上无区别同步显示,导致在某些应用场景下带来的不便的问题。The technical problem to be solved by the embodiments of the present invention is to provide a method and device for distinguishing and synchronizing chat information, which can solve the problem that in the prior art, chat information of the same social account is displayed synchronously without distinction on different terminal devices, which causes problems in certain applications. The inconvenience caused by the scene.

第一方面,本发明实施例提供了一种聊天信息区别同步的方法,可包括:In the first aspect, the embodiment of the present invention provides a method for distinguishing and synchronizing chat information, which may include:

在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型;In the case that the target social account is logged in on multiple terminal devices, detecting and judging the information type of the chat information to be synchronized for the target social account;

若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息,所述使用信息包括终端设备当前是否正在播放多媒体文件的信息;If it is determined that the chat information to be synchronized is of a multimedia type, acquiring usage information of a terminal device that needs to synchronize chat information among the plurality of terminal devices, the usage information including whether the terminal device is currently playing a multimedia file;

若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上。If the first terminal device that needs to synchronize the chat information is currently playing a multimedia file, control the chat information to be synchronized not to be synchronized to the first terminal device.

第二方面,本发明实施例提供了一种聊天信息区别同步的装置,可包括:In the second aspect, the embodiment of the present invention provides a device for distinguishing and synchronizing chat information, which may include:

判断模块,用于在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型;A judging module, configured to detect and judge the information type of the chat information to be synchronized for the target social account when the target social account is logged in on multiple terminal devices;

获取模块,用于若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息,所述使用信息包括终端设备当前是否正在播放多媒体文件的信息;An acquisition module, configured to acquire usage information of a terminal device that needs to synchronize chat information among the plurality of terminal devices if it is determined that the chat information to be synchronized is a multimedia type, and the usage information includes whether the terminal device is currently playing information on multimedia files;

控制模块,用于若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上。The control module is configured to control not to synchronize the chat information to be synchronized to the first terminal device if the first terminal device that needs to synchronize the chat information is currently playing a multimedia file.

第三方面,本发明实施例提供了一种终端设备,可包括:In a third aspect, an embodiment of the present invention provides a terminal device, which may include:

存储有可执行程序代码的存储器;a memory storing executable program code;

与所述存储器耦合的处理器;a processor coupled to the memory;

所述处理器调用所述存储器中存储的所述可执行程序代码,执行如本发明实施例第一方面任意一方法中所描述的部分或全部步骤。The processor invokes the executable program code stored in the memory to execute some or all of the steps described in any method of the first aspect of the embodiments of the present invention.

第四方面,本发明提供一种计算机存储介质,用于储存为本发明实施例第二方面提供的聊天信息区别同步的装置所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In a fourth aspect, the present invention provides a computer storage medium for storing computer software instructions used by the device for distinguishing and synchronizing chat information provided in the second aspect of the embodiment of the present invention, which includes the program designed to execute the above aspect.

实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:

本发明实施例,通过在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型;若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息,所述使用信息包括终端设备当前是否正在播放多媒体文件的信息;若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上。即当用户的同一个账号在多个终端设备上登陆的情况下,根据聊天信息的类型(是否为音视频类信息)结合终端当前的工作状态(是否播放视频,是否播放音乐等)来决定音视频类聊天信息是否同步到该终端设备上,以方便用户在观看视频或者听音乐的时候不被打扰,同时节省由于不必要的信息同步造成的网络资源的浪费。In the embodiment of the present invention, when the target social account is logged in on multiple terminal devices, the information type of the chat information to be synchronized for the target social account is detected and judged; if the chat information to be synchronized is judged For the multimedia type, obtain the use information of the terminal device that needs to synchronize chat information among the plurality of terminal devices, and the use information includes whether the terminal device is currently playing multimedia files; if the first terminal that needs to perform chat information synchronization If the device is currently playing a multimedia file, control not to synchronize the chat information to be synchronized to the first terminal device. That is, when the same account of the user logs in on multiple terminal devices, the audio is determined according to the type of chat information (whether it is audio and video information) combined with the current working status of the terminal (whether to play video, whether to play music, etc.) Whether the video chat information is synchronized to the terminal device, so that users are not disturbed when watching videos or listening to music, and at the same time save the waste of network resources caused by unnecessary information synchronization.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明实施例提供的聊天消息同步的系统架构架图;FIG. 1 is a system architecture diagram of chat message synchronization provided by an embodiment of the present invention;

图2是本发明实施例提供的一种聊天信息区别同步的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for distinguishing and synchronizing chat information provided by an embodiment of the present invention;

图3是本发明实施例提供的另一种聊天信息区别同步的方法的流程示意图;FIG. 3 is a schematic flowchart of another method for differentiating and synchronizing chat information provided by an embodiment of the present invention;

图4a是本发明实施例提供的聊天信息区别同步的方法的一个具体应用场景示意图;Fig. 4a is a schematic diagram of a specific application scenario of the method for differentiated synchronization of chat information provided by an embodiment of the present invention;

图4b是本发明实施例提供的聊天信息区别同步的方法的另一个具体应用场景示意图;FIG. 4b is a schematic diagram of another specific application scenario of the method for differentiated synchronization of chat information provided by the embodiment of the present invention;

图5是本发明实施例提供的一种聊天信息区别同步的装置的结构示意图;Fig. 5 is a schematic structural diagram of a device for differentiating and synchronizing chat information provided by an embodiment of the present invention;

图6是本发明实施例提供的聊天信息区别同步的装置的另一实施例的结构示意图;FIG. 6 is a schematic structural diagram of another embodiment of an apparatus for differentiating and synchronizing chat information provided by an embodiment of the present invention;

图7是本发明实施例提供的终端设备的结构示意图;FIG. 7 is a schematic structural diagram of a terminal device provided by an embodiment of the present invention;

图8是本发明提供的终端设备的另一实施例的结构示意图。Fig. 8 is a schematic structural diagram of another embodiment of a terminal device provided by the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

以下分别进行详细说明。Each will be described in detail below.

本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some terms used in this application are explained to facilitate the understanding of those skilled in the art.

1)、终端设备,又称之为用户设备(User Equipment,UE),是一种向用户提供语音和/或数据连通性的设备,如具有无线连接功能的手持式设备、车载设备等。常见的终端设备例如包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(Mobile InternetDevice,MID)、可穿戴设备、智能手环、计步器、MP3播放器(Moving Picture Experts GroupAudio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture ExpertsGroup Audio Layer IV,动态影像专家压缩标准音频层面3)播放器、个人数字助理(Personal Digital Assistant,PDA)和膝上型便携计算机等。1) Terminal equipment, also called User Equipment (UE), is a device that provides voice and/or data connectivity to users, such as handheld devices and vehicle-mounted devices with wireless connection functions. Common terminal devices include, for example: mobile phones, tablet computers, notebook computers, handheld computers, mobile Internet devices (Mobile Internet Device, MID), wearable devices, smart bracelets, pedometers, MP3 players (Moving Picture Experts GroupAudio Layer III , MP4 (Moving Picture ExpertsGroup Audio Layer IV, Moving Picture Experts Group Audio Layer 3) player, personal digital assistant (Personal Digital Assistant, PDA) and laptop portable computer etc.

2)、应用,可以是应用软件(Application,APP),指为完成某项或多项特定工作的计算机程序,即用户可以使用的各种程序设计语言,以及用各种程序设计语言编制的应用程序的集合,分为应用软件包和用户程序,例如手机或电脑上各类操作系统下的应用软件;也可以是指终端设备的操作系统本身带有某些功能的可执行应用程序。2) Application, which can be application software (Application, APP), refers to a computer program for completing one or more specific tasks, that is, various programming languages that users can use, and applications compiled in various programming languages A collection of programs, divided into application software packages and user programs, such as application software under various operating systems on mobile phones or computers; it can also refer to executable applications with certain functions in the operating system of the terminal device itself.

3)、“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。3), "Multiple" refers to two or more than two. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.

为了便于理解本发明实施例,下面先对本发明实施例提供的系统构架进行描述。请参阅图1,图1是本发明实施例提供的聊天消息同步的系统架构图。如图1所示,本发明实施例提供的系统架构是一个基于客户端-服务器架构提供通信业务的架构,该系统架构中可以包括,社交应用服务器以及多个终端设备,其中,发送方终端设备和接收方终端设备均通过Internet网络登录相关的社交账号接入到社交应用服务器中,即发送方终端设备将需要发送的聊天信息通过先发送到社交应用服务器,再由社交应用服务器发送给接收方终端设备(反之亦然),从而完成从发送方终端设备到接收方终端设备的聊天信息(如文字消息、语音消息、动画消息、视频消息、传输文件等)的交互。In order to facilitate the understanding of the embodiments of the present invention, the system architecture provided by the embodiments of the present invention is firstly described below. Please refer to FIG. 1 . FIG. 1 is a system architecture diagram of chat message synchronization provided by an embodiment of the present invention. As shown in Figure 1, the system architecture provided by the embodiment of the present invention is an architecture for providing communication services based on a client-server architecture. The system architecture may include a social application server and multiple terminal devices, wherein the sender terminal device Both the terminal device and the receiving party log in the relevant social account through the Internet to access the social application server, that is, the terminal device of the sending party sends the chat information to be sent to the social application server first, and then the social application server sends it to the receiving party. terminal device (and vice versa), so as to complete the interaction of chat information (such as text message, voice message, animation message, video message, transfer file, etc.) from the sender terminal device to the receiver terminal device.

具体地,当用户使用同一个社交账号(例如QQ、微信、陌陌等各类社交应用)在不同终端设备(如手机、电脑、pad等)上登录时(可以是同时,也可以是有先有后的不同时),最终社交应用服务器都会将该社交账号对应的聊天消息(可能是一定时间段也可以是所有时间段)同步到所有登录了该社交账号的终端设备上,即所有通过该账号产生的聊天信息都可以在各个登陆了该账号的终端上进行同步。本发明中的各个实施例则是基于以上系统架构和技术背景,在一些特殊的情况下,用户可能不希望所有的消息在所有的终端上同步,进行的改善,用以提升用户体验。Specifically, when a user uses the same social account (such as QQ, WeChat, Momo and other social applications) to log in on different terminal devices (such as mobile phones, computers, pads, etc.) When there is a difference in the latter), the final social application server will synchronize the chat messages corresponding to the social account (it may be a certain period of time or all time periods) to all terminal devices that log in to the social account, that is, all users who pass the social account The chat information generated by the account can be synchronized on each terminal logged in the account. Various embodiments of the present invention are based on the above system architecture and technical background. In some special cases, users may not want all messages to be synchronized on all terminals, and improvements are made to enhance user experience.

还可以理解的是,以上图1中的系统架构只是本发明实施例中较优的一种实施方式,本发明实施例中的系统架构包括但不仅限于以上系统架构,只要能够实现本发明中的聊天信息区别同步的系统架构均属于本发明所保护和涵盖的范围。It can also be understood that the above system architecture in Figure 1 is only a preferred implementation mode in the embodiment of the present invention, and the system architecture in the embodiment of the present invention includes but not limited to the above system architecture, as long as it can realize the The system framework for distinguishing and synchronizing chat information belongs to the scope protected and covered by the present invention.

图2是本发明实施例提供的一种聊天信息区别同步的方法的流程示意图,下面将结合附图2从社交应用服务器或者是终端设备的控制器或处理器侧对本发明实施例中的一种聊天信息区别同步的方法进行详细介绍,该方法包括以下步骤S201-步骤S203。Fig. 2 is a schematic flowchart of a method for distinguishing and synchronizing chat information provided by an embodiment of the present invention. In the following, a method in the embodiment of the present invention will be described from a social application server or a controller or processor side of a terminal device in conjunction with Fig. 2 . The method for different synchronization of chat information is introduced in detail, and the method includes the following steps S201-step S203.

步骤S201:在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型。Step S201: When the target social account is logged in on multiple terminal devices, detect and determine the information type of the chat information to be synchronized for the target social account.

具体地,在本发明各实施例中,目标社交账号在多个终端设备上登陆的情况下,可以分为两种情况,一种是:用户同时在多个终端设备上登陆自己的社交账号,如用户在手机和平板电脑上分别登陆了自己的QQ号;另一种是在不同的时间段使用不同的终端设备登陆同一个账号,如用户早上9点在手机上登陆了自己的QQ号,上午10点退出后,11点又在平板电脑上登陆自己的QQ号。这两种情况下都需要同步聊天信息,前一种可以理解为是手机与平板电脑之间的相互同步,即手机在同步平板电脑上的聊天信息,平板电脑也在同步手机上的聊天信息,此时,同步对于手机和平板电脑来说是相互的;后一种可以理解为,用户早上先使用了手机接收了聊天信息,后来用户再使用平板电脑登陆时,又会同步早上手机上接收到的聊天信息,此时平板电脑相当于在同步手机上的聊天信息。Specifically, in each embodiment of the present invention, when the target social account is logged in on multiple terminal devices, it can be divided into two situations, one is: the user logs in his social account on multiple terminal devices at the same time, For example, the user has logged in their own QQ account on their mobile phone and tablet computer; the other is to use different terminal devices to log in to the same account at different time periods. After logging out at 10:00 am, I logged in to my QQ account on the tablet computer at 11:00 am. In both cases, the chat information needs to be synchronized. The former can be understood as the mutual synchronization between the mobile phone and the tablet computer, that is, the mobile phone is synchronizing the chat information on the tablet computer, and the tablet computer is also synchronizing the chat information on the mobile phone. At this time, the synchronization is mutual for the mobile phone and the tablet computer; the latter can be understood as, the user first uses the mobile phone to receive the chat information in the morning, and then when the user logs in with the tablet computer, it will synchronize the chat information received on the mobile phone in the morning. chat information, at this time, the tablet computer is equivalent to synchronizing the chat information on the mobile phone.

即可以简单的理解为,对于同一条聊天信息(发送或接收),后登陆获取到该聊天信息的终端设备总是在同步先发出或先接收该聊天信息的终端设备上的聊天信息(或者是一段时间段内,或者所有的),具体要看该目标社交账号的权限(如是普通身份还是会员身份等);若对于同一条聊天消息(发送或接收),存在两个及以上同时获取到该聊天信息的终端设备,则可以认为该两个以上的终端设备是相互同步其中任意一个终端设备上的聊天信息。举例来说,多个终端设备中并不一定所有的终端设备都需要进行聊天信息的同步,例如,终端设备1在9点已经显示过9:00到9:30的聊天信息了,此时若终端设备9:30才登陆的话,则此时虽然终端设备1和终端设备2都登陆了该目标社交账号,但是只有终端设备2需要同步9:00到9:30的聊天信息(待同步的聊天信息)。可见,不是所有登陆了目标社交账号的终端设备都需要同步待聊天信息。总结来说,本发明实施例中,对于同一条聊天消息(假如是当前时刻),多个终端设备当前都已经登陆目标社交账号时,多个终端设备都需要相互同步;对于同一条聊天消息(假如是当前时刻),多个终端设备有在当前时刻之前登陆,也有在当前时刻之后登陆时,则后登陆的需要同步,先登陆的不需要同步。That is, it can be simply understood as, for the same chat message (sent or received), the terminal device that obtains the chat message after logging in is always synchronous with the chat message on the terminal device that sends or receives the chat message first (or For a period of time, or all), it depends on the authority of the target social account (such as ordinary identity or member identity, etc.); if for the same chat message (sending or receiving), there are two or more chat information terminal device, it can be considered that the two or more terminal devices are mutually synchronizing the chat information on any one of the terminal devices. For example, not all of the multiple terminal devices need to synchronize chat information. For example, terminal device 1 has displayed chat information from 9:00 to 9:30 at 9:00. If the terminal device logs in at 9:30, although both terminal device 1 and terminal device 2 have logged in the target social account, only terminal device 2 needs to synchronize the chat information from 9:00 to 9:30 (the chat information to be synchronized information). It can be seen that not all terminal devices logged into the target social account need to synchronize the information to be chatted. To sum up, in the embodiment of the present invention, for the same chat message (if it is the current moment), when multiple terminal devices have currently logged into the target social account, the multiple terminal devices need to be synchronized with each other; for the same chat message ( If it is the current time), if multiple terminal devices log in before the current time, or after the current time, then those who log in later need to be synchronized, and those who log in first do not need to be synchronized.

基于上述,在目标社交账号在多个终端设备上登陆的情况下,监测该目标社交账号是否有待同步的聊天信息,包括监测多个终端先后登陆目标社交账号时,后登陆的终端设备当前是否需要同步之前登陆的终端设备上所接收或发送的聊天信息(聊天记录);也包括多个终端设备同时登陆目标社交账号时,所有同时登陆终端设备当前需要同步的所有即时聊天信息。当监测到需要进行聊天信息同步时,检测并判断该待同步的聊天信息的信息类型,其中,聊天信息的类型则主要分为文字类型,图片类型,语音类型,视频类型、动画类型等等。Based on the above, when the target social account is logged in on multiple terminal devices, monitor whether the target social account has chat information to be synchronized, including monitoring whether multiple terminals log in to the target social account successively, whether the terminal device that logs in later needs to Synchronize the chat information (chat records) received or sent on the previously logged-in terminal device; it also includes all the instant chat information that needs to be synchronized at the same time when multiple terminal devices log in to the target social account at the same time. When it is detected that chat information needs to be synchronized, the information type of the chat information to be synchronized is detected and judged, wherein the type of chat information is mainly divided into text type, picture type, voice type, video type, animation type and the like.

需要说明的是,本发明中各个实施例若是从终端设备的控制器或处理器侧来进行动作的执行,则可以认为各个终端设备通过控制器或处理器主动参与的控制,至于控制除自身以外的动作,可以理解为将控制指令或信号上传至社交应用服务器处,再由社交应用服务器转达给相应的其它终端设备;而若是理解为由社交应用服务器侧来执行,则可以将社交应用服务器理解为聊天消息同步的系统中的控制主导的动作执行主体。本发明对此不作具体限定。It should be noted that if each embodiment of the present invention executes actions from the controller or processor side of the terminal device, it can be considered that each terminal device actively participates in the control through the controller or processor. As for the control other than itself Actions can be understood as uploading control instructions or signals to the social application server, and then conveyed to other corresponding terminal devices by the social application server; and if it is understood as being executed by the social application server side, then the social application server can understand It is the control-led action execution subject in the system of chat message synchronization. The present invention does not specifically limit it.

步骤S202:若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息,所述使用信息包括终端设备当前是否正在播放多媒体文件的信息。Step S202: If it is determined that the chat information to be synchronized is a multimedia type, obtain the use information of the terminal device that needs to synchronize the chat information among the plurality of terminal devices, and the use information includes whether the terminal device is currently playing a multimedia file Information.

具体地,若判断出步骤S201中的待同步的聊天信息为多媒体类型时,则获取多个登陆了该目标社交账号的终端设备中需要进行聊天信息同步的终端设备当前是否正在播放多媒体文件的使用信息,以便于后续判断是否将多媒体类型的聊天信息发送到该终端设备上,以免打扰用户观看多媒体文件。Specifically, if it is determined that the chat information to be synchronized in step S201 is a multimedia type, then obtain the use of whether the terminal device that needs to synchronize the chat information among the multiple terminal devices logged into the target social account is currently playing multimedia files. information, so as to subsequently determine whether to send multimedia chat information to the terminal device, so as not to disturb the user watching the multimedia file.

步骤S203:若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上。Step S203: If the first terminal device that needs to synchronize chat information is currently playing a multimedia file, control not to synchronize the chat information to be synchronized to the first terminal device.

具体地,若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,即很有可能用户当前不想被打扰,若此时在播放多媒体文件的终端设备上接收到多媒体类型的聊天信息,则需要终端当前播放的多媒体文件,等到查看完聊天消息之后才可以继续播放多媒体文件,如此一来,不仅操作流程上繁琐,并且,若用户主动通过其它终端设备查看该聊天消息,那对于该播放多媒体文件的第一终端设备来则属于网络资源的浪费,即同一条聊天信息不必要的在第一终端设备上又同步了一遍。很显然,从提升用户体验和提高网络资源利用率的角度来看,在第一终端设备上同步该多媒类型聊天信息,对于正在观赏多媒体文件的用户来说,实属浪费。因此本发明实施例,通过控制不将所述待同步的聊天信息同步到所述第一终端设备上,从而减轻网络的负担和第一终端设备上的内存占用负担。Specifically, if the first terminal device that needs to synchronize chat information is currently playing a multimedia file, that is, it is very likely that the user does not want to be disturbed at the moment, if at this time the terminal device that plays the multimedia file receives multimedia chat information, then The multimedia file currently played by the terminal needs to wait until after viewing the chat message before continuing to play the multimedia file. In this way, not only the operation process is cumbersome, but also, if the user actively checks the chat message through other terminal devices, it is not necessary for the multimedia file to be played. The first terminal device of the file is a waste of network resources, that is, the same piece of chat information is unnecessarily synchronized on the first terminal device again. Obviously, from the perspective of improving user experience and network resource utilization, synchronizing the multimedia type chat information on the first terminal device is a waste for users who are viewing multimedia files. Therefore, in the embodiment of the present invention, by controlling not to synchronize the chat information to be synchronized to the first terminal device, the burden on the network and the memory occupation burden on the first terminal device are reduced.

本发明实施例,通过在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型;若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息,所述使用信息包括终端设备当前是否正在播放多媒体文件的信息;若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上。即当用户的同一个账号在多个终端设备上登陆的情况下,根据聊天信息的类型(是否为音视频类信息)结合终端当前的工作状态(是否播放视频,是否播放音乐等)来决定音视频类聊天信息是否同步到该终端设备上,以方便用户在观看视频或者听音乐的时候不被打扰,同时节省由于不必要的信息同步造成的网络资源的浪费。In the embodiment of the present invention, when the target social account is logged in on multiple terminal devices, the information type of the chat information to be synchronized for the target social account is detected and judged; if the chat information to be synchronized is judged For the multimedia type, obtain the use information of the terminal device that needs to synchronize chat information among the plurality of terminal devices, and the use information includes whether the terminal device is currently playing multimedia files; if the first terminal that needs to perform chat information synchronization If the device is currently playing a multimedia file, control not to synchronize the chat information to be synchronized to the first terminal device. That is, when the same account of the user logs in on multiple terminal devices, the audio is determined according to the type of chat information (whether it is audio and video information) combined with the current working status of the terminal (whether to play video, whether to play music, etc.) Whether the video chat information is synchronized to the terminal device, so that users are not disturbed when watching videos or listening to music, and at the same time save the waste of network resources caused by unnecessary information synchronization.

图3是本发明实施例提供的另一种聊天信息区别同步的方法的流程示意图,下面将结合附图3从终端设备侧对本发明实施例中的另一种聊天信息区别同步的方法进行详细介绍,如图3所示,该方法可以包括以下步骤S301-步骤S307。Fig. 3 is a schematic flow chart of another method for differentiated synchronization of chat information provided by an embodiment of the present invention. The following will introduce in detail another method for differentiated synchronization of chat information in the embodiment of the present invention from the terminal device side in conjunction with Fig. 3 , as shown in FIG. 3, the method may include the following steps S301-step S307.

步骤S301:在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型。Step S301: When the target social account is logged in on multiple terminal devices, detect and determine the information type of the chat information to be synchronized for the target social account.

步骤S302:若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息。Step S302: If it is determined that the chat information to be synchronized is of a multimedia type, obtain usage information of a terminal device that needs to synchronize chat information among the plurality of terminal devices.

步骤S303:若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上。Step S303: If the first terminal device that needs to synchronize chat information is currently playing a multimedia file, control not to synchronize the chat information to be synchronized to the first terminal device.

具体地,步骤S302至步骤S304可参考上述图1实施例中的步骤S201至步骤S203,这里不再赘述。Specifically, for step S302 to step S304, reference may be made to step S201 to step S203 in the above embodiment in FIG. 1 , which will not be repeated here.

步骤S304:若需要进行聊天信息同步的第二终端设备当前未播放多媒体文件,则控制将所述待同步的聊天信息同步到所述第二终端设备上。Step S304: If the second terminal device that needs to synchronize the chat information is not currently playing the multimedia file, control to synchronize the chat information to be synchronized to the second terminal device.

具体地,当然为了避免用户遗失或漏看聊天信息,可以控制将待同步的多媒体文件聊天信息同步到第当前未播放多媒体文件的第二终端设备上,可以理解的是本发明中所述的第一终端设备和第二终端设备都可以一个也可以是多个,视其本质所属而定,对其数量不作具体限定。Specifically, of course, in order to prevent the user from losing or missing the chat information, it is possible to control the synchronization of the multimedia file chat information to be synchronized to the second terminal device that is not currently playing the multimedia file. It can be understood that the first terminal device described in the present invention Both the first terminal device and the second terminal device may be one or more, depending on their nature, and the number thereof is not specifically limited.

步骤S305:向所述第一终端设备发送提示信息,所述提示信息用于提示所述待同步的聊天信息已经同步到所述第二终端设备上。Step S305: Send prompt information to the first terminal device, where the prompt information is used to prompt that the chat information to be synchronized has been synchronized to the second terminal device.

具体地,作为人性化的设定,可以在未向第一终端设备同步且向第二终端设备同步了待同步的聊天信息的情况下,将该提示信息发送至第一终端设备上,以便于通知用户前往第二终端设备上查看,在保证了聊天信息合理同步的情况下,又可以保证聊天信息的不遗漏。Specifically, as a humanized setting, when the chat information to be synchronized is not synchronized with the first terminal device but is synchronized with the second terminal device, the prompt information can be sent to the first terminal device, so that The user is notified to check on the second terminal device, and while the chat information is reasonably synchronized, the chat information can be guaranteed not to be missed.

步骤S306:接收确认在当前终端设备上查看所述待同步的聊天信息的确认指令。Step S306: Receive a confirmation instruction for confirming to view the chat information to be synchronized on the current terminal device.

具体地,进一步地,用户还可以根据自己的选择,确认是都在第一终端设备上查看该多媒体聊天信息。例如用户不介意中断当前的多媒体文件去查看该多媒体聊天消息,则可以供给该类用户人性化的选择,即用户通过点击确认指令,则第一终端设备上则立即将待同步的聊天信息同步过来,以供用户查看。Specifically, further, the user may further confirm whether to check the multimedia chat information on the first terminal device according to his own choice. For example, if the user does not mind interrupting the current multimedia file to view the multimedia chat message, a humanized choice can be provided for this type of user, that is, the user clicks to confirm the command, and then the chat information to be synchronized is immediately synchronized on the first terminal device , for users to view.

步骤S307:将所述待同步的聊天信息同步至所述第一终端设备上。Step S307: Synchronize the chat information to be synchronized to the first terminal device.

具体地,如图4a所示,图4a为本发明实施例提供的聊天信息区别同步的方法的具体应用场景示意图,图4a中,例如用户当前正在通过A型号设备播放视频,此时接收到了提示信息,内容为提示用户当前有一条来自用户XX的视频消息,并且已经显示在了当前未播放视频的B型号设备上,并提供用户是否点击查看的选项,此时用户可以根据自己的使用情况决定是否在A型号设备上查看该条视频消息。而如图4b所示,图4b为本发明实施例所提供的聊天信息区别同步的方法的另一种具体应用场景示意图,图4b中,用户通过B型号设备同样登陆了目标社交账号,在B型号设备上,用户并没有观看视频,因此聊天信息都可以正常显示,方便用户想要查看聊天信息时,可以完整的进行查看。Specifically, as shown in FIG. 4a, FIG. 4a is a schematic diagram of a specific application scenario of the method for distinguishing and synchronizing chat information provided by the embodiment of the present invention. In FIG. Information, the content is to remind the user that there is currently a video message from user XX, and it has been displayed on the B-type device that is not currently playing the video, and provide the user with the option of clicking to view it. At this time, the user can decide according to his own usage Whether to view the video message on the A-type device. As shown in Figure 4b, Figure 4b is a schematic diagram of another specific application scenario of the method for distinguishing and synchronizing chat information provided by the embodiment of the present invention. On the model device, the user does not watch the video, so the chat information can be displayed normally, so that when the user wants to view the chat information, he can view it completely.

在一种可能的实现方式中,所述方法还包括:若所述第一终端设备和所述第二终端设备当前均在播放多媒体文件,则判断所述第一终端设备和所述第二终端设备是否通过小窗口播放多媒体文件,并将所述待同步的聊天信息同步在通过小窗口播放多媒体文件对应的终端设备上。在一些特殊的情况下,可能用户的多个需要进行聊天信息同步的终端设备上均在进行多媒体文件的播放(例如联机打游戏),此时可以进一步通过判断哪个终端设备上是小窗口在播放,则将待同步的聊天信息同步到小窗口播放多媒体文件的终端设备上。以避免用户遗漏聊天信息。In a possible implementation manner, the method further includes: if both the first terminal device and the second terminal device are currently playing multimedia files, judging whether the first terminal device and the second terminal device Whether the device plays the multimedia file through the small window, and synchronizes the chat information to be synchronized on the terminal device corresponding to the multimedia file played through the small window. In some special cases, it is possible that multiple terminal devices of the user that need to synchronize chat information are playing multimedia files (for example, playing games online). At this time, you can further determine which terminal device is playing the small window , the chat information to be synchronized is synchronized to the terminal device that plays the multimedia file in the small window. In order to avoid users missing chat information.

本发明实施例,通过在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型;若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息,所述使用信息包括终端设备当前是否正在播放多媒体文件的信息;若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上。即当用户的同一个账号在多个终端设备上登陆的情况下,根据聊天信息的类型(是否为音视频类信息)结合终端当前的工作状态(是否播放视频,是否播放音乐等)来决定音视频类聊天信息是否同步到该终端设备上,以方便用户在观看视频或者听音乐的时候不被打扰,同时节省由于不必要的信息同步造成的网络资源的浪费。In the embodiment of the present invention, when the target social account is logged in on multiple terminal devices, the information type of the chat information to be synchronized for the target social account is detected and judged; if the chat information to be synchronized is judged For the multimedia type, obtain the use information of the terminal device that needs to synchronize chat information among the plurality of terminal devices, and the use information includes whether the terminal device is currently playing multimedia files; if the first terminal that needs to perform chat information synchronization If the device is currently playing a multimedia file, control not to synchronize the chat information to be synchronized to the first terminal device. That is, when the same account of the user logs in on multiple terminal devices, the audio is determined according to the type of chat information (whether it is audio and video information) combined with the current working status of the terminal (whether to play video, whether to play music, etc.) Whether the video chat information is synchronized to the terminal device, so that users are not disturbed when watching videos or listening to music, and at the same time save the waste of network resources caused by unnecessary information synchronization.

本发明实施例还提供了一种聊天信息区别同步的装置10,如图5所示,图5是本发明实施例中的聊天信息区别同步的装置的结构示意图,下面将结合附图5,对聊天信息区别同步的装置10的结构进行详细介绍。该装置10可包括:判断模块101、获取模块102和控制模块103,其中The embodiment of the present invention also provides a device 10 for differentiating and synchronizing chat information, as shown in FIG. The structure of the chat information synchronization device 10 will be described in detail. The device 10 may include: a judgment module 101, an acquisition module 102 and a control module 103, wherein

判断模块101,用于在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型;Judging module 101, for detecting and judging the information type of the chat information to be synchronized for the target social account when the target social account is logged in on multiple terminal devices;

获取模块102,用于若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息,所述使用信息包括终端设备当前是否正在播放多媒体文件的信息;The acquiring module 102 is configured to acquire usage information of a terminal device that needs to synchronize chat information among the plurality of terminal devices if it is determined that the chat information to be synchronized is a multimedia type, and the usage information includes whether the terminal device is currently Information about playing multimedia files;

控制模块103,用于若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上。The control module 103 is configured to control not to synchronize the chat information to be synchronized to the first terminal device if the first terminal device that needs to synchronize chat information is currently playing a multimedia file.

具体地,如图6所示的本发明提供的聊天信息区别同步的装置的另一实施例的结构示意图,该装置10还可包括:Specifically, as shown in FIG. 6 , a schematic structural diagram of another embodiment of an apparatus for differentiating and synchronizing chat information provided by the present invention, the apparatus 10 may also include:

第一同步模块104,用于若需要进行聊天信息同步的第二终端设备当前未播放多媒体文件,则控制将所述待同步的聊天信息同步到所述第二终端设备上。The first synchronization module 104 is configured to control to synchronize the chat information to be synchronized to the second terminal device if the second terminal device that needs to synchronize the chat information is not currently playing the multimedia file.

进一步地,如图6所示,所述装置还可包括:Further, as shown in Figure 6, the device may also include:

提示模块105,用于向所述第一终端设备发送提示信息,所述提示信息用于提示所述待同步的聊天信息已经同步到所述第二终端设备上。The prompt module 105 is configured to send prompt information to the first terminal device, where the prompt information is used to prompt that the chat information to be synchronized has been synchronized to the second terminal device.

再进一步地,所述提示信息包括提示是否在当前终端设备上查看所述待同步的聊天信息的选择信息;如图6所示,所述装置还可包括:Still further, the prompt information includes selection information prompting whether to view the chat information to be synchronized on the current terminal device; as shown in FIG. 6, the apparatus may further include:

接收模块106,用于接收确认在当前终端设备上查看所述待同步的聊天信息的确认指令;The receiving module 106 is configured to receive a confirmation instruction for checking the chat information to be synchronized on the current terminal device;

第二同步模块107,用于将所述待同步的聊天信息同步至所述第一终端设备上。The second synchronization module 107 is configured to synchronize the chat information to be synchronized to the first terminal device.

再进一步地,如图6所示,所述装置还可包括:Still further, as shown in Figure 6, the device may also include:

第三同步模块108,用于若所述第一终端设备和所述第二终端设备当前均在播放多媒体文件,则判断所述第一终端设备和所述第二终端设备是否通过小窗口播放多媒体文件,并将所述待同步的聊天信息同步在通过小窗口播放多媒体文件对应的终端设备上。A third synchronization module 108, configured to determine whether the first terminal device and the second terminal device are playing multimedia files through a small window if both the first terminal device and the second terminal device are currently playing multimedia files file, and synchronize the chat information to be synchronized on the terminal device corresponding to playing the multimedia file through the small window.

可理解的是,聊天信息区别同步的装置10中各模块的功能可对应参考上述图1至图4中的各方法实施例中的具体实现方式,这里不再赘述。It can be understood that the functions of each module in the device 10 for distinguishing and synchronizing chat information can refer to the specific implementation methods in the above-mentioned method embodiments in FIG. 1 to FIG. 4 , which will not be repeated here.

在本实施例中,聊天信息区别同步的装置10是以模块的形式来呈现。这里的“模块”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。此外,判断模块101和控制模块103可通过图7所示的终端设备的处理器201来实现,获取模块103可通过图7所示的终端设备的通信接口203来实现等。In this embodiment, the apparatus 10 for differentiating and synchronizing chat information is presented in the form of modules. The "module" here may refer to an application-specific integrated circuit (ASIC), a processor and memory executing one or more software or firmware programs, an integrated logic circuit, and/or other devices that can provide the above functions . In addition, the judging module 101 and the control module 103 can be realized by the processor 201 of the terminal device shown in FIG. 7 , and the obtaining module 103 can be realized by the communication interface 203 of the terminal device shown in FIG. 7 .

本发明实施例还提供了一种终端设备20,如图7所示,图7是本发明实施例中的终端设备的结构示意图,下面将结合附图7对终端设备20的结构进行详细介绍。该终端设备20包括至少一个处理器201,至少一个存储器202、至少一个通信接口203。所述处理器201、所述存储器202和所述通信接口203通过所述通信总线连接并完成相互间的通信。The embodiment of the present invention also provides a terminal device 20 , as shown in FIG. 7 , which is a schematic structural diagram of the terminal device in the embodiment of the present invention. The structure of the terminal device 20 will be described in detail below with reference to FIG. 7 . The terminal device 20 includes at least one processor 201 , at least one memory 202 , and at least one communication interface 203 . The processor 201 , the memory 202 and the communication interface 203 are connected through the communication bus and complete mutual communication.

处理器201可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。The processor 201 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the programs in the above solutions.

通信接口203,用于与其他设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。The communication interface 203 is used for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (Wireless Local Area Networks, WLAN) and so on.

存储器202可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(ElectricallyErasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The memory 202 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, and a random access memory (random access memory, RAM) or other types that can store information and instructions It can also be an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other optical disk storage, optical disk storage ( including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be stored by a computer Any other medium, but not limited to. The memory can exist independently and be connected to the processor through the bus. Memory can also be integrated with the processor.

其中,所述存储器202用于存储执行以上方案的应用程序代码,并由处理器201来控制执行。所述处理器201用于执行所述存储器202中存储的应用程序代码。Wherein, the memory 202 is used to store application program codes for executing the above solution, and the execution is controlled by the processor 201 . The processor 201 is configured to execute application program codes stored in the memory 202 .

存储器202存储的代码可执行以上提供的终端设备执行的图1-图4(包括图4a和图4b)的聊天信息区别同步的方法,比如在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型;若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息,所述使用信息包括终端设备当前是否正在播放多媒体文件的信息;若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上。The code stored in the memory 202 can execute the method for distinguishing and synchronizing the chat information of Figs. Detecting and judging the information type of the chat information to be synchronized for the target social account; if it is judged that the chat information to be synchronized is a multimedia type, acquiring the terminal device that needs to be synchronized with the chat information among the plurality of terminal devices The use information, the use information includes whether the terminal device is currently playing the information of the multimedia file; if the first terminal device that needs to synchronize the chat information is currently playing the multimedia file, then the control does not synchronize the chat information to be synchronized to the on the first terminal device.

可以理解的是,当本发明各个方法实施例中的执行主体为社交应用服务器时,该服务器的结构图同上述终端设备的结构示意图,在此不再赘述。It can be understood that, when the execution subject in each method embodiment of the present invention is a social application server, the structural diagram of the server is the same as the structural diagram of the above-mentioned terminal device, and will not be repeated here.

请参阅图8,图8是本发明实施例提供的终端设备的另一实施例的结构示意图。该终端设备30可以为智能移动终端(如手机),终端设备30包括:射频(英文:radiofrequency,RF)电路301、存储有一个或多个计算机程序的存储器302、输入装置303、输出装置304、传感器305、音频电路306、无线保真(英文:wireless fidelity,WiFi)模块307、包括有一个或多个处理核心的处理器308、以及电源303等部件。本领域技术人员可以理解,图8中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of another embodiment of a terminal device provided by an embodiment of the present invention. The terminal device 30 can be an intelligent mobile terminal (such as a mobile phone), and the terminal device 30 includes: a radio frequency (English: radiofrequency, RF) circuit 301, a memory 302 storing one or more computer programs, an input device 303, an output device 304, A sensor 305 , an audio circuit 306 , a wireless fidelity (English: wireless fidelity, WiFi) module 307 , a processor 308 including one or more processing cores, and a power supply 303 and other components. Those skilled in the art can understand that the structure of the terminal device shown in FIG. 8 does not constitute a limitation on the terminal device, and may include more or less components than those shown in the figure, or combine some components, or arrange different components. in:

RF电路301可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或多个处理器308处理;另外,将涉及上行的数据发送给基站。通常,RF电路301包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(英文:subscriber identity module,SIM)卡、收发信机、耦合器、低噪声放大器(英文:low noise amplifier,LNA)、双工器等。此外,RF电路301还可以通过无线通信与网络或其他终端设备进行通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(英文:global system of mobile communication,GSM)、通用分组无线服务(英文:general packet radio service,GPRS)、码分多址(英文:code division multipleaccess,CDMA)、宽带码分多址(英文:wideband code division multiple access,WCDMA)、长期演进(英文:long term evolution,LTE)、电子邮件、短消息服务(英文:shortmessaging service,SMS)等。The RF circuit 301 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information of the base station, it is processed by one or more processors 308; in addition, the data related to the uplink is sent to the base station . Generally, the RF circuit 301 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (English: subscriber identity module, SIM) card, a transceiver, a coupler, a low noise amplifier ( English: low noise amplifier, LNA), duplexer, etc. In addition, the RF circuit 301 can also communicate with the network or other terminal devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (English: global system of mobile communication, GSM), general packet radio service (English: general packet radio service, GPRS), code division Multiple access (English: code division multiple access, CDMA), broadband code division multiple access (English: wideband code division multiple access, WCDMA), long term evolution (English: long term evolution, LTE), email, short message service (English: short messaging service, SMS), etc.

存储器302可用于存储计算机程序以及模块,处理器308通过运行存储在存储器302的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器302可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端设备30的使用所创建的数据(比如拍摄的照片、音频数据、视频数据等)等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器302还可以包括存储器控制器,以提供处理器308和输入装置303对存储器302的访问。The memory 302 can be used to store computer programs and modules, and the processor 308 executes various functional applications and data processing by running the computer programs and modules stored in the memory 302 . The memory 302 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created using the terminal device 30 (such as photographed photos, audio data, video data, etc.) and the like. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 302 may also include a memory controller to provide access to the memory 302 by the processor 308 and the input device 303 .

输入装置303可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入装置303可包括触敏表面3031以及其他输入设备3032。触敏表面3031,也称为触摸显示面板或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面3031上或在触敏表面3031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面3031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器308,并能接收处理器308发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面3031。除了触敏表面3031,输入装置303还可以包括其他输入设备3032。具体地,其他输入设备3032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input device 303 can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input device 303 may include a touch-sensitive surface 3031 and other input devices 3032 . The touch-sensitive surface 3031, also referred to as a touch display panel or a touchpad, can collect user touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch-sensitive surface 3031 or on The operation near the touch-sensitive surface 3031), and drive the corresponding connection device according to the preset program. Optionally, the touch-sensitive surface 3031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 308, and can receive and execute commands sent by the processor 308. In addition, the touch-sensitive surface 3031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 3031 , the input device 303 may also include other input devices 3032 . Specifically, other input devices 3032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

输出装置304可用于显示由用户输入的信息或提供给用户的信息以及终端设备30的各种图形用户界面,这些图形用户界面可以由图形、文本、图标、视频和其任意组合来构成。输出装置304可包括显示面板3041,可选的,显示面板3041可以采用液晶显示器(英文:liquid crystal display,LCD)、有机发光二极管(英文:organic light-emitting diode,OLED)等形式来配置。进一步的,触敏表面3031可覆盖显示面板3041,当触敏表面3031检测到在其上或附近的触摸操作后,传送给处理器308以确定触摸事件的类型,随后处理器308根据触摸事件的类型在显示面板3041上提供相应的视觉输出。虽然在图8中,触敏表面3031与显示面板3041是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面3031与显示面板3041集成而实现输入和输出功能。The output device 304 can be used to display information input by the user or provided to the user and various graphical user interfaces of the terminal device 30. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The output device 304 may include a display panel 3041. Optionally, the display panel 3041 may be configured in the form of a liquid crystal display (English: liquid crystal display, LCD) or an organic light-emitting diode (English: organic light-emitting diode, OLED). Further, the touch-sensitive surface 3031 may cover the display panel 3041, and when the touch-sensitive surface 3031 detects a touch operation on or near it, it is sent to the processor 308 to determine the type of the touch event, and then the processor 308 determines the type of the touch event according to the The type provides a corresponding visual output on the display panel 3041. Although in FIG. 8, the touch-sensitive surface 3031 and the display panel 3041 are used as two independent components to realize input and input functions, in some embodiments, the touch-sensitive surface 3031 and the display panel 3041 can be integrated to realize input. and output functions.

终端设备30还可包括至少一种传感器305,比如距离传感器、光传感器、运动传感器以及其他传感器。具体地,距离传感器用于检测所述终端设备屏幕与覆盖所述终端设备的物体之间的距离,光传感器用于检测所述终端设备外部环境的光信号。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备30姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端设备30还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,此处不再赘述。The terminal device 30 may further include at least one sensor 305, such as a distance sensor, a light sensor, a motion sensor, and other sensors. Specifically, the distance sensor is used to detect the distance between the screen of the terminal device and the object covering the terminal device, and the light sensor is used to detect the light signal of the external environment of the terminal device. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of terminal device 30 posture (such as horizontal and vertical screen switching) , related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, knocking), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors that can also be configured on the terminal device 30, I won't repeat them here.

音频电路306、扬声器3061、传声器3062可提供用户与终端设备30之间的音频接口。音频电路306可将接收到的音频数据转换后的电信号,传输到扬声器3061,由扬声器3061转换为声音信号输出;另一方面,传声器3062将收集的声音信号转换为电信号,由音频电路306接收后转换为音频数据,再将音频数据输出处理器308处理后,经RF电路301以发送给比如另一设备,或者将音频数据输出至存储器302以便进一步处理。音频电路306还可能包括耳塞插孔,以提供外设耳机与终端设备30的通信。The audio circuit 306 , the speaker 3061 and the microphone 3062 can provide an audio interface between the user and the terminal device 30 . The audio circuit 306 can transmit the electrical signal converted from the received audio data to the loudspeaker 3061, and the loudspeaker 3061 converts it into a sound signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 308, and then sent to another device through the RF circuit 301, or the audio data is output to the memory 302 for further processing. The audio circuit 306 may also include an earplug jack to provide communication between an external earphone and the terminal device 30 .

WiFi属于短距离无线传输技术,终端设备30通过WiFi模块307可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块307,但是可以理解的是,其并不属于终端设备30的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The terminal device 30 can help users send and receive emails, browse webpages, and access streaming media through the WiFi module 307. It provides users with wireless broadband Internet access. Although FIG. 8 shows a WiFi module 307, it can be understood that it is not an essential component of the terminal device 30, and can be completely omitted as required without changing the essence of the invention.

处理器308是终端设备30的控制中心,利用各种接口和线路连接整个终端设备30的各个部分,通过运行或执行存储在存储器302内的计算机程序和/或模块,以及调用存储在存储器302内的数据,执行终端设备30的各种功能和处理数据,从而对终端设备30进行整体监控。可选的,处理器308可包括一个或多个处理核心;优选的,处理器308可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器308中。The processor 308 is the control center of the terminal device 30, and uses various interfaces and lines to connect various parts of the entire terminal device 30, and runs or executes computer programs and/or modules stored in the memory 302, and calls stored in the memory 302 data, execute various functions of the terminal device 30 and process data, so as to monitor the terminal device 30 as a whole. Optionally, the processor 308 may include one or more processing cores; preferably, the processor 308 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 308 .

终端设备30还包括给各个部件供电的电源303(比如电池),优选的,电源可以通过电源管理系统与处理器308逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源303还可以包括一个或多个直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal device 30 also includes a power supply 303 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 308 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system. . The power supply 303 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.

尽管未示出,终端设备30还可以包括摄像头、蓝牙模块等,此处不再赘述。具体在本发明实施例中,终端设备的输出装置304(或输入装置303)是触摸屏显示器,终端设备30还包括有存储器302、处理器308、以及一个或多个的计算机程序,其中一个或多个计算机程序存储于存储器302中,处理器308用于调用存储器302(非易失性存储器)存储的聊天信息区别同步的程序执行前述方法实施例中的各方法步骤流程,在此不再赘述。Although not shown, the terminal device 30 may also include a camera, a Bluetooth module, etc., which will not be repeated here. Specifically, in the embodiment of the present invention, the output device 304 (or input device 303) of the terminal device is a touch screen display, and the terminal device 30 also includes a memory 302, a processor 308, and one or more computer programs, wherein one or more A computer program is stored in the memory 302, and the processor 308 is used to call the chat information stored in the memory 302 (non-volatile memory) to distinguish and synchronize the program to execute the steps and procedures of the methods in the foregoing method embodiments, which will not be repeated here.

本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种聊天信息区别同步的方法的部分或全部步骤。The embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, it includes some or all steps of any one of the methods for distinguishing and synchronizing chat information described in the above method embodiments.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受It should be noted that, for the sake of simple description, the aforementioned method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by

所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。The sequence of actions described is limited because certain steps may be performed in other orders or simultaneously in accordance with the invention. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.

以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention have been described in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only used to help understand the method and core idea of the present invention; at the same time, for Those skilled in the art will have changes in the specific implementation and scope of application according to the idea of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (6)

Translated fromChinese
1.一种聊天信息区别同步的方法,其特征在于,包括:1. A method for distinguishing and synchronizing chat information, comprising:在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型,其中,所述信息类型包括文字类型,图片类型,语音类型,视频类型、动画类型;When the target social account is logged in on multiple terminal devices, detect and judge the information type of the chat information to be synchronized for the target social account, wherein the information type includes text type, picture type, voice type, video type, animation type;若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息,所述使用信息包括终端设备当前是否正在播放多媒体文件的信息;If it is determined that the chat information to be synchronized is of a multimedia type, acquiring usage information of a terminal device that needs to synchronize chat information among the plurality of terminal devices, the usage information including whether the terminal device is currently playing a multimedia file;若需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件且需要进行聊天信息同步的第二终端设备当前未播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上,且,控制将所述待同步的聊天信息同步到所述第二终端设备上;If the first terminal device that needs to synchronize chat information is currently playing a multimedia file and the second terminal device that needs to synchronize chat information is not currently playing a multimedia file, then control not to synchronize the chat information to be synchronized to the first terminal device. terminal device, and control the synchronization of the chat information to be synchronized to the second terminal device;若所述第一终端设备和所述第二终端设备当前均在播放多媒体文件,则判断所述第一终端设备和所述第二终端设备是否通过小窗口播放多媒体文件,并将所述待同步的聊天信息同步在通过小窗口播放多媒体文件对应的终端设备上。If both the first terminal device and the second terminal device are currently playing multimedia files, it is judged whether the first terminal device and the second terminal device are playing multimedia files through a small window, and the synchronized The chat information is synchronized on the terminal device corresponding to the multimedia file played through the small window.2.如权利要求1所述的方法,其特征在于,控制不将所述待同步的聊天信息同步到所述第一终端设备上,且,控制将所述待同步的聊天信息同步到所述第二终端设备上之后,所述方法还包括:2. The method according to claim 1, characterized in that, controlling not to synchronize the chat information to be synchronized to the first terminal device, and controlling to synchronize the chat information to be synchronized to the After the second terminal device is installed, the method further includes:向所述第一终端设备发送提示信息,所述提示信息用于提示所述待同步的聊天信息已经同步到所述第二终端设备上。Sending prompt information to the first terminal device, where the prompt information is used to prompt that the chat information to be synchronized has been synchronized to the second terminal device.3.如权利要求2所述的方法,其特征在于,所述提示信息包括提示是否在当前终端设备上查看所述待同步的聊天信息的选择信息;所述向所述第一终端设备发送提示信息之后,包括:3. The method according to claim 2, wherein the prompt information includes selection information prompting whether to view the chat information to be synchronized on the current terminal device; the sending prompt to the first terminal device After the information, include:接收确认在当前终端设备上查看所述待同步的聊天信息的确认指令;receiving a confirmation instruction for checking the chat information to be synchronized on the current terminal device;将所述待同步的聊天信息同步至所述第一终端设备上。Synchronize the chat information to be synchronized to the first terminal device.4.一种聊天信息区别同步的装置,其特征在于,包括:4. A device for distinguishing and synchronizing chat information, characterized in that it comprises:判断模块,用于在目标社交账号在多个终端设备上登陆的情况下,检测并判断针对所述目标社交账号的待同步的聊天信息的信息类型,其中,所述信息类型包括文字类型,图片类型,语音类型,视频类型、动画类型;A judging module, configured to detect and judge the information type of the chat information to be synchronized for the target social account when the target social account is logged in on multiple terminal devices, wherein the information type includes text type, picture type, voice type, video type, animation type;获取模块,用于若判断出所述待同步的聊天信息为多媒体类型,获取所述多个终端设备中需要进行聊天信息同步的终端设备的使用信息,所述使用信息包括终端设备当前是否正在播放多媒体文件的信息;An acquisition module, configured to acquire usage information of a terminal device that needs to synchronize chat information among the plurality of terminal devices if it is determined that the chat information to be synchronized is a multimedia type, and the usage information includes whether the terminal device is currently playing Information about multimedia files;控制模块,用于在需要进行聊天信息同步的第二终端设备当前未播放多媒体文件的同时,需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,则控制不将所述待同步的聊天信息同步到所述第一终端设备上;The control module is used to control not to synchronize the chat information to be synchronized when the second terminal device that needs to synchronize the chat information is not currently playing the multimedia file and the first terminal device that needs to synchronize the chat information is currently playing the multimedia file. information is synchronized to the first terminal device;第一同步模块,用于在需要进行聊天信息同步的第二终端设备当前未播放多媒体文件的同时,需要进行聊天信息同步的第一终端设备当前正在播放多媒体文件,控制将所述待同步的聊天信息同步到所述第二终端设备上;The first synchronization module is used to control the synchronization of the chat information to be synchronized when the second terminal device that needs to synchronize the chat information is not currently playing the multimedia file, and the first terminal device that needs to synchronize the chat information is currently playing the multimedia file. information is synchronized to the second terminal device;第三同步模块,用于若所述第一终端设备和所述第二终端设备当前均在播放多媒体文件,则判断所述第一终端设备和所述第二终端设备是否通过小窗口播放多媒体文件,并将所述待同步的聊天信息同步在通过小窗口播放多媒体文件对应的终端设备上。A third synchronization module, configured to determine whether the first terminal device and the second terminal device are playing multimedia files through a small window if both the first terminal device and the second terminal device are currently playing multimedia files , and synchronize the chat information to be synchronized on the terminal device corresponding to playing the multimedia file through the small window.5.如权利要求4所述的装置,其特征在于,所述装置还包括:5. The device of claim 4, further comprising:提示模块,用于在所述控制模块控制不将所述待同步的聊天信息同步到所述第一终端设备上,且,所述第一同步模块控制将所述待同步的聊天信息同步到所述第二终端设备上之后,向所述第一终端设备发送提示信息,所述提示信息用于提示所述待同步的聊天信息已经同步到所述第二终端设备上。The prompt module is used to control the control module not to synchronize the chat information to be synchronized to the first terminal device, and the first synchronization module controls to synchronize the chat information to be synchronized to the After being connected to the second terminal device, a prompt message is sent to the first terminal device, where the prompt message is used to prompt that the chat information to be synchronized has been synchronized to the second terminal device.6.如权利要求5所述的装置,其特征在于,所述提示信息包括提示是否在当前终端设备上查看所述待同步的聊天信息的选择信息;所述装置,还包括:6. The device according to claim 5, wherein the prompt information includes selection information prompting whether to view the chat information to be synchronized on the current terminal device; the device further comprises:接收模块,用于接收确认在当前终端设备上查看所述待同步的聊天信息的确认指令;A receiving module, configured to receive a confirmation instruction for checking the chat information to be synchronized on the current terminal device;第二同步模块,用于将所述待同步的聊天信息同步至所述第一终端设备上。The second synchronization module is configured to synchronize the chat information to be synchronized to the first terminal device.
CN201610826288.7A2016-09-142016-09-14A kind of synchronous method and device of chat message differenceExpired - Fee RelatedCN106302131B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610826288.7ACN106302131B (en)2016-09-142016-09-14A kind of synchronous method and device of chat message difference

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610826288.7ACN106302131B (en)2016-09-142016-09-14A kind of synchronous method and device of chat message difference

Publications (2)

Publication NumberPublication Date
CN106302131A CN106302131A (en)2017-01-04
CN106302131Btrue CN106302131B (en)2018-05-29

Family

ID=57711434

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610826288.7AExpired - Fee RelatedCN106302131B (en)2016-09-142016-09-14A kind of synchronous method and device of chat message difference

Country Status (1)

CountryLink
CN (1)CN106302131B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106685807A (en)*2017-01-092017-05-17广东小天才科技有限公司method and server for displaying information
CN107846450A (en)*2017-09-292018-03-27珂伯特机器人(天津)有限公司A kind of synchronous method of chat data

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103761029A (en)*2014-02-202014-04-30联想(北京)有限公司Message processing method and message processing device
CN104009910A (en)*2014-05-282014-08-27惠州Tcl移动通信有限公司Message pushing processing method and system based on mobile terminal and mobile terminal
CN104144116A (en)*2014-07-162014-11-12腾讯科技(深圳)有限公司Instant messaging method and system
CN104462173A (en)*2013-09-172015-03-25国际商业机器公司Method and system for improving social media data
CN104683591A (en)*2015-03-102015-06-03苏州天鸣信息科技有限公司Message disturbance-free method based on mobile terminal and mobile terminal using method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104462173A (en)*2013-09-172015-03-25国际商业机器公司Method and system for improving social media data
CN103761029A (en)*2014-02-202014-04-30联想(北京)有限公司Message processing method and message processing device
CN104009910A (en)*2014-05-282014-08-27惠州Tcl移动通信有限公司Message pushing processing method and system based on mobile terminal and mobile terminal
CN104144116A (en)*2014-07-162014-11-12腾讯科技(深圳)有限公司Instant messaging method and system
CN104683591A (en)*2015-03-102015-06-03苏州天鸣信息科技有限公司Message disturbance-free method based on mobile terminal and mobile terminal using method

Also Published As

Publication numberPublication date
CN106302131A (en)2017-01-04

Similar Documents

PublicationPublication DateTitle
CN106686396B (en)Method and system for switching live broadcast room
CN104518875B (en)Identity verification and account acquisition method and mobile terminal
WO2016184302A1 (en)Message forwarding method and electronic device
CN105208056B (en) Information interaction method and terminal
CN105930049A (en) A method and terminal for avoiding misoperation
CN106406924B (en)Control method and device for starting and quitting picture of application program and mobile terminal
CN105094501B (en)Method, device and system for displaying messages in mobile terminal
CN106209608B (en)Method and device for distinguishing and synchronizing chat information
WO2014166263A1 (en)Communication method, system, server and client device for user-interactive system
CN107817988A (en) Push message management method and related products
CN104660769B (en)A kind of methods, devices and systems for adding associated person information
CN106302130B (en)A kind of method and device that chat message difference is synchronous
CN106453514B (en)Method and device for distinguishing and synchronizing chat information
CN110688051B (en)Screen recording operation method and device, computer readable storage medium and terminal
CN106201682A (en)A kind of application controls method and device
KR101876394B1 (en)Method and device for playing media data on a terminal
CN106357512B (en)Method and device for distinguishing and synchronizing chat information
CN106484563A (en)A kind of data migration method and terminal unit
CN106302131B (en)A kind of synchronous method and device of chat message difference
CN106211102A (en)The method and device that the difference of a kind of chat message synchronizes
US20140309030A1 (en)Communication method, system, server and client device for user-interactive system
CN106293407A (en)A kind of image display method and terminal unit
CN106445491A (en) A picture switching method and terminal equipment
CN106357513B (en)Message processing method, device, server and message processing system
CN106230709B (en)Method and device for distinguishing and synchronizing chat information

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP01Change in the name or title of a patent holder

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01Change in the name or title of a patent holder
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20180529

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp