CN109003194B - Comment sharing method, terminal and storage medium - Google Patents
Comment sharing method, terminal and storage medium Download PDFInfo
- Publication number
- CN109003194B CN109003194B CN201710418197.4A CN201710418197A CN109003194B CN 109003194 B CN109003194 B CN 109003194B CN 201710418197 A CN201710418197 A CN 201710418197A CN 109003194 B CN109003194 B CN 109003194B
- Authority
- CN
- China
- Prior art keywords
- comment
- content
- audio
- sharing
- picture
- 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.)
- Active
Links
Images
Classifications
-
- G06Q10/40—
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种评论分享方法、终端及存储介质,属于计算机技术领域。所述方法包括:获取目标评论的评论内容,所述目标评论为对第一应用程序中的目标对象的评论;生成所述评论内容所对应的分享图片;获取目标分享方式;通过所述目标分享方式分享所述分享图片至第二应用程序。解决了相关技术中通过分享截屏图片的方式分享评论时,分享效率较低的问题;达到了可以直接在第一应用程序中进行分享,提高分享效率的效果。
The invention discloses a comment sharing method, a terminal and a storage medium, belonging to the technical field of computers. The method includes: obtaining the comment content of the target comment, and the target comment is a comment on the target object in the first application program; generating a shared picture corresponding to the comment content; acquiring the target sharing method; way to share the shared picture to the second application program. It solves the problem of low sharing efficiency when sharing comments by sharing screenshots in the related art; achieves the effect of directly sharing in the first application program and improving the sharing efficiency.
Description
技术领域technical field
本发明实施例涉及计算机技术领域,特别涉及一种评论分享方法、终端以及存储介质。The embodiment of the present invention relates to the field of computer technology, and in particular to a method for sharing comments, a terminal and a storage medium.
背景技术Background technique
日常生活中,用户经常有将一个应用程序中的评论分享至另一应用程序的需求。比如,将在新闻应用程序中看到的精彩评论分享到微博。In daily life, users often have the need to share comments in one application to another application. For example, sharing a great commentary seen in a news app to Weibo.
相关的一种评论分享方法包括:终端展示第一应用程序中包括待分享的评论的界面,截取当前展示的界面,得到截屏图片;接收退出第一应用程序的退出指令,退出第一应用程序;接收打开第二应用程序的打开指令,打开第二应用程序,在第二应用程序中调用相册进而通过分享截屏图片的方式来分享评论。A related comment sharing method includes: the terminal displays an interface including comments to be shared in the first application program, intercepts the currently displayed interface, and obtains a screenshot; receives an exit instruction to exit the first application program, and exits the first application program; Receive an opening instruction to open the second application program, open the second application program, call the photo album in the second application program, and then share comments by sharing screenshots.
上述方案中,由于用户需要手动退出第一应用程序并手动打开第二应用程序之后,才能分享评论,因此上述方案中分享评论的效率较低。In the above solution, since the user needs to manually exit the first application program and manually open the second application program before sharing the comment, the efficiency of sharing comments in the above solution is low.
发明内容Contents of the invention
为了解决现有技术中存在的问题,本发明实施例提供了一种评论分享方法、终端以及存储介质。技术方案如下:In order to solve the problems in the prior art, the embodiment of the present invention provides a comment sharing method, a terminal and a storage medium. The technical solution is as follows:
根据本发明实施例的第一方面,提供一种评论分享方法,该方法包括:According to the first aspect of the embodiments of the present invention, a comment sharing method is provided, the method comprising:
获取目标评论的评论内容,所述目标评论为对第一应用程序中的目标对象的评论;acquiring comment content of a target comment, where the target comment is a comment on a target object in the first application program;
生成所述评论内容所对应的分享图片;Generate a shared picture corresponding to the comment content;
获取目标分享方式;Obtain the target sharing method;
通过所述目标分享方式分享所述分享图片至第二应用程序。Sharing the shared picture to the second application program through the target sharing method.
根据本发明实施例的第二方面,提供一种终端,该终端包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如下操作:According to the second aspect of the embodiments of the present invention, there is provided a terminal, the terminal includes a processor and a memory, the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the The at least one program, the code set or the instruction set is loaded and executed by the processor to achieve the following operations:
获取目标评论的评论内容,所述目标评论为对第一应用程序中的目标对象的评论;acquiring comment content of a target comment, where the target comment is a comment on a target object in the first application program;
生成所述评论内容所对应的分享图片;Generate a shared picture corresponding to the comment content;
获取目标分享方式;Obtain the target sharing method;
通过所述目标分享方式分享所述分享图片至第二应用程序。Sharing the shared picture to the second application program through the target sharing method.
根据本发明实施例的第三方面,提供一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如下操作:According to a third aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, the storage medium stores at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one A program, said set of codes or instructions is loaded and executed by said processor to:
获取目标评论的评论内容,所述目标评论为对第一应用程序中的目标对象的评论;acquiring comment content of a target comment, where the target comment is a comment on a target object in the first application program;
生成所述评论内容所对应的分享图片;Generate a shared picture corresponding to the comment content;
获取目标分享方式;Obtain the target sharing method;
通过所述目标分享方式分享所述分享图片至第二应用程序。Sharing the shared picture to the second application program through the target sharing method.
本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the embodiments of the present invention are:
通过在分享评论时,生成该评论的评论内容所对应的分享图片,进而分享该分享图片至第二应用程序;解决了相关技术中通过分享截屏图片的方式分享评论时,分享效率较低的问题;达到了可以直接在第一应用程序中进行分享,提高分享效率的效果。同时,相关技术中,由于截屏图片中可能会包括与该评论相邻的其他评论的内容,而这些内容并非是用户真正想要分享的内容,因此上述方案在分享之后截屏图片中的相邻评论可能会对阅读者造成干扰,而上述方案中分享图片中的内容均是用户真正想要分享的内容,避免了相关技术中给阅读者造成的干扰。By generating a shared picture corresponding to the comment content of the comment when sharing a comment, and then sharing the shared picture to the second application program; solving the problem of low sharing efficiency in related technologies when sharing comments by sharing screenshots ; Achieved the effect of directly sharing in the first application program and improving the sharing efficiency. At the same time, in related technologies, since the screenshot may include the content of other comments adjacent to the comment, and these contents are not the content that the user really wants to share, the adjacent comments in the screenshot of the above solution after sharing It may cause interference to readers, and the content in the shared pictures in the above solution is the content that the user really wants to share, which avoids interference to readers caused by related technologies.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1是本发明一个实施例提供的评论分享方法的流程图;Fig. 1 is a flowchart of a comment sharing method provided by an embodiment of the present invention;
图2是本发明一个实施例提供的第一应用程序展示的分享选项的示意图;Fig. 2 is a schematic diagram of sharing options displayed by the first application provided by an embodiment of the present invention;
图3是本发明一个实施例提供的触发展示分享选项的示意图;Fig. 3 is a schematic diagram of a trigger display sharing option provided by an embodiment of the present invention;
图4是本发明一个实施例提供的触发展示分享选项的另一示意图;Fig. 4 is another schematic diagram of a trigger display sharing option provided by an embodiment of the present invention;
图5是本发明一个实施例提供的生成的分享图片的示意图;Fig. 5 is a schematic diagram of a generated shared picture provided by an embodiment of the present invention;
图6是本发明一个实施例提供的用于表征音视频内容的预设信息的示意图;FIG. 6 is a schematic diagram of preset information used to characterize audio and video content provided by an embodiment of the present invention;
图7是本发明一个实施例提供的展示的候选分享方式的示意图;Fig. 7 is a schematic diagram of a candidate sharing mode provided by an embodiment of the present invention;
图8是本发明一个实施例提供的生成分享图片的流程图;Fig. 8 is a flow chart of generating shared pictures provided by an embodiment of the present invention;
图9是本发明一个实施例提供的生成的分享图片的另一示意图;FIG. 9 is another schematic diagram of a generated shared picture provided by an embodiment of the present invention;
图10是本发明一个实施例提供的评论分享装置的示意图;Fig. 10 is a schematic diagram of a comment sharing device provided by an embodiment of the present invention;
图11是本发明一个实施例提供的终端的示意图。Fig. 11 is a schematic diagram of a terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present invention clearer, the following will further describe in detail the embodiments of the present invention in conjunction with the accompanying drawings.
本发明各个实施例提供的评论分享方法用于终端中,该终端可以为诸如手机、平板电脑、台式电脑、笔记本电脑或者电子阅读器之类的终端。该终端中可以安装有第一应用程序和第二应用程序,该第一应用程序可以为资讯类应用程序如“头条新闻”或者“新闻热点”,或者,音视频共享应用程序如“电台”或者“搞笑视频”等等;第二应用程序可以为社交类应用程序如微博,或者,聊天程序,或者,邮件。其中,第一应用程序和第二应用程序可以为终端中预先安装的应用程序,也可以为用户自定义安装的应用程序,并且,通常情况下,第一应用程序和第二应用程序为不同的应用程序。The comment sharing method provided by various embodiments of the present invention is used in a terminal, and the terminal may be a terminal such as a mobile phone, a tablet computer, a desktop computer, a notebook computer or an electronic reader. A first application program and a second application program may be installed in the terminal, and the first application program may be an information application program such as "headline news" or "news hotspot", or an audio and video sharing application program such as "radio station" or "Funny video" and so on; the second application program can be a social application program such as Weibo, or a chat program, or email. Wherein, the first application program and the second application program may be pre-installed application programs in the terminal, or user-defined installed application programs, and, usually, the first application program and the second application program are different application.
在第一应用程序中,用户可以评论第一应用程序中的各个对象,在第一应用程序为资讯类应用程序时,应用程序中的对象可以为一条资讯;在第一应用程序为音视频共享应用程序时,应用程序中的对象可以为一段音频或者视频。比如,以第一应用程序为“头条新闻”为例,用户查看新闻之后,用户可以发表对该条新闻的评论;又比如,以第一应用程序为“电台”为例,在主播上传节目之后,听众可以发表对该节目的评论;再比如,以第一应用程序为“搞笑视频”为例,用户观看过某一视频之后,用户可以发表对该视频的评论。这也就是说,第一应用程序中的各个对象可能会有诸多评论,而这些评论中不乏见解独到或者另辟蹊径的精彩评论,因此上述场景中会有分享评论的需求。而下述各个实施例将对分享评论的具体方法做详细介绍。In the first application program, the user can comment on each object in the first application program. When the first application program is an information application program, the object in the application program can be a piece of information; When using an application, the object in the application can be a piece of audio or video. For example, taking the first app as "Headline News" as an example, after the user views the news, the user can post a comment on the news; another example, taking the first app as "Radio Station" as an example, after the anchor uploads the program , the listener can post a comment on the program; for another example, taking the first application program as "funny video" as an example, after the user has watched a certain video, the user can post a comment on the video. That is to say, each object in the first application may have many comments, and some of these comments are wonderful comments with unique insights or new approaches, so there is a need to share comments in the above scenario. Each of the following embodiments will introduce the specific method of sharing comments in detail.
请参考图1,其示出了本发明一个实施例提供的评论分享方法的方法流程图,如图1所示,该评论分享方法可以包括:Please refer to FIG. 1, which shows a method flowchart of a comment sharing method provided by an embodiment of the present invention. As shown in FIG. 1, the comment sharing method may include:
步骤101,获取目标评论的评论内容,目标评论为对第一应用程序中的目标对象的评论。
用户在使用第一应用程序的过程中,当用户想要分享目标对象的某一评论时,用户可以施加触发分享该评论的触发指令,相应的,终端可以通过第一应用程序接收到该触发指令。并在接收到触发指令之后,获取请求分享的目标评论的评论内容。其中,在第一应用程序为资讯类应用程序时,该目标对象可以为一条资讯;在第一应用程序为音视频共享应用程序时,该目标对象可以为一段音频或者视频;并且,下述除特殊说明外,均以第一应用程序为资讯类应用程序,且目标对象为一条资讯来举例说明。During the process of using the first application program, when the user wants to share a certain comment of the target object, the user can apply a trigger instruction to trigger sharing of the comment, and correspondingly, the terminal can receive the trigger instruction through the first application program . And after receiving the trigger instruction, obtain the comment content of the target comment requested to be shared. Wherein, when the first application program is an information application program, the target object can be a piece of information; when the first application program is an audio and video sharing application program, the target object can be a piece of audio or video; and, except Unless otherwise specified, the first application program is an information application program and the target object is a piece of information for example.
触发指令可以为选择该目标评论所对应的分享选项的选择指令。其中:The trigger instruction may be a selection instruction for selecting a sharing option corresponding to the target comment. in:
分享选项可以为第一应用程序在展示评论时直接展示的选项,比如,请参考图2,第一应用程序在展示各条评论时,可以展示用于触发分享该评论的分享选项21。The sharing option may be an option directly displayed by the first application when displaying a comment. For example, referring to FIG. 2 , when displaying each comment, the first application may display a
或者,or,
分享选项可以为通过预设入口触发展示的选项。比如,请参考图3,第一应用程序在展示评论时可以展示该评论所对应的预设入口31,在接收到选择该预设入口31的选择指令之后,展示候选列表,该候选列表中包括分享该评论的分享选项32,其中,候选列表中还可以包括用于实现其他功能的选项,比如包括复制该评论的选项、举报该评论的选项等等。The sharing option may be an option to trigger display through a preset entry. For example, please refer to FIG. 3 , when the first application program displays comments, it can display the
又或者,or,
分享选项为通过预设操作触发展示的选项。比如,请参考图4,第一应用程序展示评论区中的各条评论,在接收到作用于目标评论的展示区域41的选择指令之后,展示该分享选项42;可选地,在接收到选择指令之后,在展示分享选项42的同时还可以展示其他选项如展示图中所示的复制选项43以及举报选项44。其中,该选择指令可以为触摸指令、长按指令或者其他任一形式的指令。实际实现时,第一应用程序接收到选择指令之后,第一应用程序可以识别该选择指令所对应的位置,展示用于触发分享展示在识别得到的位置处的评论的分享选项。The sharing option is an option that triggers display through a preset action. For example, please refer to FIG. 4 , the first application program displays each comment in the comment area, and after receiving a selection instruction acting on the
需要说明的是,评论中可以包括文本、图片、音视频内容中的至少一种,每种内容占据一定的区域,如展示文本的区域为文本展示区域,展示图片的区域为图片展示区域,而展示音视频内容的区域为音视频展示区域,并且通常情况下,用户选择图片时其目的通常是放大展示该图片,选择音视频内容时其目的通常为播放该音视频内容,因此在本方案中在接收到选择指令之后,终端可以识别接收到的选择指令在展示区域中的位置,若识别得到的位置处于展示区域中除图片展示区域以及音视频内容展示区域之外的其他展示区域中,则获取目标评论的评论内容;而若识别得到的位置处于展示区域中的图片展示区域或者音视频内容展示区域时,则此时结束本次分享,并执行放大图片或者播放音视频内容的操作。It should be noted that comments can include at least one of text, pictures, and audio and video content, and each content occupies a certain area. For example, the area where text is displayed is the text display area, and the area where pictures are displayed is the image display area. The area where the audio and video content is displayed is the audio and video display area, and usually, when the user selects a picture, the purpose is to enlarge the picture, and when the user selects the audio and video content, the purpose is to play the audio and video content, so in this solution After receiving the selection instruction, the terminal can identify the location of the received selection instruction in the display area, if the identified location is in other display areas in the display area except for the picture display area and the audio and video content display area, then Obtain the comment content of the target comment; and if the identified position is in the picture display area or audio and video content display area in the display area, then end the sharing at this time, and perform the operation of enlarging the picture or playing the audio and video content.
步骤102,检测评论内容中是否包括敏感词。
终端可以通过第一应用程序检测评论内容中是否包括敏感词库中的词语,若检测结果为评论内容中包括敏感词库中的词语,则确定评论内容中包括敏感词,反之若检测结果为评论内容中不包括敏感词库中的词语则确定评论内容中不包括敏感词。其中,敏感词库中包括至少一个敏感词。The terminal can detect whether the comment content includes words in the sensitive thesaurus through the first application program. If the detection result is that the comment content includes the words in the sensitive thesaurus, then it is determined that the comment content includes sensitive words. Otherwise, if the detection result is a comment If the content does not include the words in the sensitive lexicon, it is determined that the sensitive words are not included in the comment content. Wherein, the sensitive vocabulary includes at least one sensitive word.
其中,敏感词库可以为第一应用程序中默认的词库,也可以为用户预先自定义的词库。Wherein, the sensitive lexicon may be a default lexicon in the first application program, or may be a user-defined lexicon in advance.
可选地,由于评论内容中可以包括文本、图片和音视频内容中的至少一种,并且基于包括的内容的不同,终端检测评论内容中是否包含敏感词的步骤也有所不同,下述针对不同情况分别进行介绍。Optionally, because the comment content may include at least one of text, pictures, and audio and video content, and based on the content included, the steps for the terminal to detect whether sensitive words are included in the comment content are also different. The following is for different situations Introduce separately.
若评论内容中包括文字,则直接检测文字中是否包括敏感词库中的词语。If the comment content includes text, it is directly detected whether the text includes words in the sensitive thesaurus.
若评论内容中包括图片,则终端可以先识别图片,检测识别结果中是否包括敏感词库中的词语。其中,终端可以通过OCR(Optical Character Recognition,光学字符识别)识别图片中的文字,在识别得到文字之后,检测识别得到的文字中是否包括敏感词库中的词语。If the comment content includes a picture, the terminal can first identify the picture, and detect whether the recognition result includes words in the sensitive lexicon. Wherein, the terminal can recognize the text in the picture through OCR (Optical Character Recognition, Optical Character Recognition), and after the text is recognized, it detects whether the recognized text includes words in the sensitive lexicon.
若评论内容中包括音频,则将该音频转换为文本,检测转换得到的文本中是否包括敏感词库中的词语。If the comment content includes audio, convert the audio into text, and detect whether the converted text includes words in the sensitive lexicon.
若评论内容中包括视频,则提取该视频中的音频,然后将音频转换为文本,检测转换得到的文本中是否包括敏感词库中的词语。If the comment content includes a video, extract the audio from the video, then convert the audio into text, and detect whether the converted text includes words in the sensitive lexicon.
步骤103,若评论内容中不包括敏感词,则生成评论内容所对应的分享图片。
由于评论内容中可以包括文本、图片和音视频内容中的至少一种,且基于评论内容中包括的内容的不同,终端生成评论内容所对应的分享图片的生成方式也有所不同,因此,本步骤可以包括如下几种可能的实现方式。其中,音视频内容可以包括音频、视频或者同时包括上述两者。Since the comment content can include at least one of text, pictures, and audio and video content, and based on the content included in the comment content, the generation method of the shared picture corresponding to the comment content generated by the terminal is also different. Therefore, this step can Several possible implementations are included as follows. Wherein, the audio-video content may include audio, video, or both.
第一种,若评论内容中不包括音视频内容,则终端生成包括该评论内容的分享图片。In the first type, if the comment content does not include audio and video content, the terminal generates a shared picture including the comment content.
也即在评论内容中包括文本、图片或者同时包括上述两者时,终端可以通过第一应用程序直接生成包括上述评论内容的分享图片。其中,评论内容中的文本在分享图片中以第一预设格式存在,该第一预设格式包括字体、字号以及段落等等。比如,预设格式包括:字体为楷体、字号为四号、段落为首行缩进2字符且行距为1.5。评论中的图片在分享图片中以第二预设格式存在,该第二预设格式包括居中、两端对齐、左对齐或者右对齐等等。其中,第一预设格式和第二预设格式可以为第一应用程序中默认的格式,也可以为用户在第一应用程序中预先设置并保存的格式。That is, when the comment content includes text, pictures, or both, the terminal can directly generate a shared picture including the comment content through the first application program. Wherein, the text in the comment content exists in a first preset format in the shared picture, and the first preset format includes font, font size, paragraph and so on. For example, the preset format includes: the font is italic, the font size is four, the first line of the paragraph is indented by 2 characters, and the line spacing is 1.5. The picture in the comment exists in the second preset format in the shared picture, and the second preset format includes centering, aligning both ends, left aligning or right aligning and so on. Wherein, the first preset format and the second preset format may be default formats in the first application program, or may be formats preset and saved by the user in the first application program.
可选地,终端在生成分享图片时,可以通过第一应用程序先生成画布,然后在该画布中绘制获取到的评论内容。比如,在画布中绘制评论内容中的文本或者图片。其中,本实施例所说的画布可以为空白的画布,也可以为具有预设底色(如奶黄色、淡蓝色)的画布,还可以为设置有预设花纹的画布。Optionally, when generating the shared picture, the terminal may first generate a canvas through the first application program, and then draw the acquired comment content in the canvas. For example, draw the text or pictures in the comment content on the canvas. Wherein, the canvas mentioned in this embodiment can be a blank canvas, or a canvas with a preset background color (such as cream yellow, light blue), or a canvas with a preset pattern.
实际实现时,在评论内容中同时包括文本和图片时,终端可以按照预设排版方式生成该分享图片。预设排版方式包括先布局文本再布局评论中的图片,或者先布局评论中的图片然后再布局文本。比如,请参考图5,请示出了以一种可能的布局方式布局之后生成的分享图片。In actual implementation, when the comment content includes text and pictures at the same time, the terminal can generate the shared picture according to the preset typesetting method. The preset layout methods include laying out the text first and then the pictures in the comments, or laying out the pictures in the comments first and then laying out the text. For example, please refer to FIG. 5 , which shows a shared picture generated after being laid out in a possible layout manner.
需要说明的是,评论内容在画布中距离上下左右的间隙均为预设间隙。比如,距离画布的左右两侧2个字符,距离画布的上侧4个字符,且距离画布的下侧3字符。It should be noted that the gaps between the comment content on the canvas, up, down, left, and right are preset gaps. For example, 2 characters from the left and right sides of the canvas, 4 characters from the upper side of the canvas, and 3 characters from the lower side of the canvas.
第二种,若评论内容中包括音视频内容,则终端生成包括预设信息以及评论内容中除音视频内容之外的其他信息的分享图片。In the second type, if the comment content includes audio and video content, the terminal generates a shared picture including preset information and other information in the comment content except audio and video content.
预设信息用于表征音视频内容。可选地,该预设信息基于音视频内容的类型的不同而不同。其中,多媒体内容的类型为音频或者视频。比如,当音视频内容为音频时,该预设信息可以为图6中(1)图所示的信息;当音视频内容为视频时,该预设信息可以为图6中(2)图所示的信息。Preset information is used to represent audio and video content. Optionally, the preset information is different based on different types of audio and video content. Wherein, the type of the multimedia content is audio or video. For example, when the audio and video content is audio, the preset information can be the information shown in Figure 6 (1); when the audio and video content is video, the preset information can be the information shown in Figure 6 (2) displayed information.
上述仅以在评论内容中包括音频时,通过预设信息来表征音频来举例说明,可选地,终端还可以通过第一应用程序将该音频转换为文本,然后生成包括转换得到的文本的分享图片。类似的,在评论中包括视频时,终端可以通过第一应用程序提取视频中的音频,将音频转换为文本,然后生成包括转换后的文本的分享图片。The above is only exemplified by using preset information to represent the audio when the audio is included in the comment content. Optionally, the terminal can also convert the audio into text through the first application program, and then generate a shared message including the converted text. picture. Similarly, when a video is included in a comment, the terminal may extract audio from the video through the first application program, convert the audio into text, and then generate a shared picture including the converted text.
其中,在评论内容中还包括文本、图片或者同时包括上述两者时,分享图片中还可以相应的包括上述内容。Wherein, when the comment content also includes text, pictures or both, the shared picture may also include the above content accordingly.
需要说明的是,若检测结果为评论内容中包括敏感词,则说明该评论可能会造成负面影响,此时为了限制该评论的传播,终端可以屏蔽本次分享。可选地,在终端屏蔽本次分享前,还可以展示提示信息,该提示信息用于提示屏蔽分享的原因。实际实现时,终端可以展示提示信息预设时长的时间,如展示3S,在展示时长达到预设时长时,终端结束本次分享如跳转至请求分享前的界面。预设时长为第一应用程序中默认的时长,或者是用户在第一应用程序中预先自定义并保存的时长。It should be noted that if the detection result shows that the comment contains sensitive words, it means that the comment may cause negative impact. At this time, in order to limit the dissemination of the comment, the terminal can block this sharing. Optionally, before the terminal blocks the sharing, a prompt message may also be displayed, and the prompt message is used to prompt the reason for blocking the sharing. In actual implementation, the terminal can display the prompt information for a preset duration, such as displaying 3S, and when the display duration reaches the preset duration, the terminal ends this sharing, such as jumping to the interface before requesting sharing. The preset duration is a default duration in the first application program, or a duration customized and saved in advance by the user in the first application program.
步骤104,获取目标分享方式。
第一应用程序可以展示候选分享方式,接收选择某一候选分享方式的选择指令,在接收到该选择指令之后,将该选择指令选择的候选分享方式确定为目标分享方式。The first application program may display candidate sharing methods, receive a selection instruction for selecting a candidate sharing method, and determine the candidate sharing method selected by the selection instruction as the target sharing method after receiving the selection instruction.
本实施例所说的目标分享方式为分享信息至第二应用程序的分享方式,比如,将信息分享至微博。实际实现时,目标分享方式还可以为分享信息至第二应用程序中的某一好友、某一群组或者分享信息至第二应用程序的社交平台。The target sharing method mentioned in this embodiment is a sharing method of sharing information to a second application program, for example, sharing information to Weibo. In actual implementation, the target sharing method may also be sharing information with a certain friend or a certain group in the second application program, or sharing information with a social platform of the second application program.
可选地,第一应用程序可以在接收到选择步骤101中的分享选项之后,展示候选分享方式。比如,结合图2,在第一应用程序接收到选择分享选项21的选择指令之后,第一应用程序可以展示图7所示的候选分享方式(XX好友71、朋友圈72、微博73)。Optionally, after receiving the sharing option in the selecting
可选地,第一应用程序还可以在接收到预设操作时直接展示候选分享方式。比如,在接收到作用于目标评论的展示区域的选择指令之后,展示候选分享方式。Optionally, the first application program may also directly display candidate sharing methods when receiving a preset operation. For example, after receiving a selection instruction acting on the display area of the target comment, the candidate sharing methods are displayed.
步骤105,通过目标分享方式分享分享图片至第二应用程序。
此后,第一应用程序即可分享该分享图片至第二应用程序。可选地,第一应用程序可以通过内置的第二应用程序的API(Application Programming Interface,应用程序编程接口)发送该分享图片至该第二应用程序,第二应用程序分享接收到的该分享图片。Thereafter, the first application program can share the shared picture to the second application program. Optionally, the first application program can send the shared picture to the second application program through the API (Application Programming Interface, Application Programming Interface) of the built-in second application program, and the second application program shares the received shared picture .
可选地,第二应用程序的API可以包括至少两个,比如,包括分享至第二应用程序的好友的第一API以及分享至第二应用程序的社交平台的第二API,此时,当选择的目标分享方式为分享该分享图片至好友时,第一应用程序即可通过第一API发送该分享图片至第二应用程序,第二应用程序分享该分享图片至好友;而若选择的目标分享方式为分享该分享图片至第二应用程序的社交平台,则第一应用程序即可通过第二API发送该分享图片至第二应用程序,第二应用程序分享该分享图片至社交平台。Optionally, the API of the second application program may include at least two, for example, including a first API shared to friends of the second application program and a second API shared to the social platform of the second application program. When the selected target sharing method is to share the shared picture to friends, the first application can send the shared picture to the second application through the first API, and the second application can share the shared picture to friends; and if the selected target The sharing method is to share the shared picture to the social platform of the second application program, then the first application program can send the shared picture to the second application program through the second API, and the second application program can share the shared picture to the social platform.
其中,在第一应用程序通过第一API发送分享图片至第二应用程序之后,第二应用可以自动开启,并展示好友列表,在接收到选择某一好友的选择指令之后,发送该分享图片至选择的好友,选择的好友可以为单一好友,也可以为一个群组;在第一应用程序通过第二API发送分享图片至第二应用程序之后,第二应程序可以展示分享该分享图片至社交平台的分享界面,并在接收到确认分享指令时,分享该分享图片至社交平台。Wherein, after the first application program sends the shared picture to the second application program through the first API, the second application program can automatically open and display the list of friends, and after receiving the selection instruction of selecting a certain friend, send the shared picture to the The selected friend, the selected friend can be a single friend or a group; after the first application sends the shared picture to the second application through the second API, the second application can display and share the shared picture to social The sharing interface of the platform, and when receiving the confirmation sharing instruction, share the shared picture to the social platform.
需要补充说明的一点是,上述实施例只是以先执行步骤101后执行步骤104来举例说明,实际实现时,还可以同时执行步骤101和步骤104,或者先执行步骤104后执行步骤101。比如,在第一应用程序接收到作用于目标评论的展示区域的选择指令之后,获取目标分享方式,并获取目标评论的评论内容。It needs to be added that the above embodiment is just an example of performing
需要补充说明的另一点是,步骤102为可选步骤,实际实现时可以执行也可以不执行。Another point that needs to be supplemented is that
综上所述,本实施例提供的评论分享方法,通过在分享评论时,生成该评论的评论内容所对应的分享图片,进而分享该分享图片至第二应用程序;解决了相关技术中通过分享截屏图片的方式分享评论时,分享效率较低的问题;达到了可以直接在第一应用程序中进行分享,提高分享效率的效果。同时,相关技术中,由于截屏图片中可能会包括与该评论相邻的其他评论的内容,而这些内容并非是用户真正想要分享的内容,因此上述方案在分享之后截屏图片中的相邻评论可能会对阅读者造成干扰,而上述方案中分享图片中的内容均是用户真正想要分享的内容,避免了相关技术中给阅读者造成的干扰。To sum up, the comment sharing method provided by this embodiment generates a shared picture corresponding to the comment content of the comment when sharing the comment, and then shares the shared picture to the second application program; When sharing comments in the form of screenshots, the sharing efficiency is low; it achieves the effect of directly sharing in the first application program and improving the sharing efficiency. At the same time, in related technologies, since the screenshot may include the content of other comments adjacent to the comment, and these contents are not the content that the user really wants to share, the adjacent comments in the screenshot of the above solution after sharing It may cause interference to readers, and the content in the shared pictures in the above solution is the content that the user really wants to share, which avoids interference to readers caused by related technologies.
此外,通过分享图片的形式分享评论,这相对于通过文字或者链接的形式分享,其对用户的视觉冲击更大,提高了该分享图片被分享之后,其他用户查看的概率。In addition, sharing comments in the form of sharing pictures has a greater visual impact on users than sharing in the form of text or links, and increases the probability that other users will view the shared pictures after they are shared.
需要补充说明的是,请参考图8,上述步骤103可以包括:It should be supplemented that referring to FIG. 8, the
步骤103a,获取关联信息,关联信息包括发布目标评论的用户帐户的帐户名称、目标对象的标题以及图形码中的至少一种;图形码中携带有目标对象的链接地址。
第一应用程序获取图形码的获取方式包括:获取目标对象的链接地址,根据该链接地址生成该图形码。其中,图形码可以为二维码也可以为条形码。The manner in which the first application program acquires the graphic code includes: acquiring the link address of the target object, and generating the graphic code according to the link address. Wherein, the graphic code may be a two-dimensional code or a bar code.
上述仅以关联信息包括上述内容为例,可选地,该关联信息中还可以包括第一应用程序的名称、第一应用程序的Logo(徽标)、发布目标评论的用户帐户的头像和装扮信息中的至少一种。其中,装扮信息是指用于装扮分享图片的信息。比如,该装扮信息可以为在预设位置处显示预设内容,该预设位置可以为画布中的左上角、右上角、左下角或者右下角,预设内容可以为图案、文字或者同时包括两者。The above is only an example where the associated information includes the above content. Optionally, the associated information may also include the name of the first application, the Logo (logo) of the first application, the avatar and dress information of the user account that posted the target comment at least one of the Wherein, the dress-up information refers to information used to dress up and share pictures. For example, the dressing information can be to display preset content at a preset position, and the preset position can be the upper left corner, upper right corner, lower left corner or lower right corner of the canvas, and the preset content can be patterns, texts, or both. By.
步骤103b,根据关联信息以及评论内容生成分享图片。
可选地,本步骤可以包括:Optionally, this step may include:
若评论内容中不包括音视频内容,则生成包括关联信息和评论内容的分享图片;If the comment content does not include audio and video content, generate a shared picture including related information and comment content;
若评论内容中包括音视频内容,则生成包括关联信息、预设信息以及评论内容中除音视频内容之外的其他内容的分享图片,预设信息为用于表征音视频内容的类型的信息。If the comment content includes audio and video content, generate a shared picture including associated information, preset information and content other than audio and video content in the comment content, and the preset information is information used to characterize the type of audio and video content.
这与上述实施例中的步骤103的生成方式类似,不同的是,在本步骤中分享图片中还可以包括关联信息。比如,以关联信息包括用户帐户的帐户名称、资讯的标题以及二维码来举例,请参考图9,其示出了生成的一种可能的分享图片的示意图。This is similar to the generation method of
通过在生成分享图片时,生成携带有图形码的图片,使得阅读者可以通过该图形码来查看目标对象的原文,方便了阅读者的使用。By generating a picture with a graphic code when generating the shared picture, the reader can view the original text of the target object through the graphic code, which facilitates the use of the reader.
需要补充说明的另一点是,在步骤103之前,该评论分享方法还可以包括如下步骤:Another point that needs to be added is that before
第一,检测评论内容中是否仅包括音视频内容。First, it is detected whether the comment content only includes audio and video content.
可选地,在获取到评论内容之后,终端可以检测该评论内容中是否包括音视频内容,若检测结果为评论内容中不包括音视频内容,则执行步骤103;若检测结果为评论内容中包括音视频内容,则继续检测该评论内容中是否还包括其他内容,若检测结果为评论内容中还包括其他内容,则执行步骤103;而若检测结果为评论内容中不包括其他内容,则确定评论内容中仅包括音视频内容。Optionally, after obtaining the comment content, the terminal can detect whether the comment content includes audio and video content, if the detection result is that the comment content does not include audio and video content, then perform
第二,若评论内容中仅包括音视频内容,则结束本次分享。Second, if the comment content only includes audio and video content, this sharing is ended.
若检测结果为评论内容中仅包括音视频内容,则由于后续以图片的形式分享,而图片并不能表征音视频的内容,因此,在本实施例中,为了降低终端的处理复杂度以及避免无效信息给其他用户造成的干扰,终端可以结束本次分享。可选地,终端结束分享之前,终端可以展示用于提示结束原因的提示信息,比如,展示内容为“本次分享不合法”的提示信息。If the detection result is that only audio and video content is included in the comment content, the subsequent sharing will be in the form of pictures, and pictures cannot represent the content of audio and video. Therefore, in this embodiment, in order to reduce the processing complexity of the terminal and avoid invalid If the information causes interference to other users, the terminal can end the sharing. Optionally, before the terminal ends sharing, the terminal may display prompt information for prompting the reason for the end, for example, display a prompt message whose content is "this sharing is illegal".
而若检测结果为评论内容中不是仅仅包括音视频内容,则终端可以执行后续操作。And if the detection result is that the comment content does not only include audio and video content, the terminal may perform subsequent operations.
需要说明的是,本实施例对检测评论内容中是否包括敏感词的步骤以及检测评论内容中是否仅包括音视频内容的步骤的执行顺序并不做限定,实际实现时,可以先检测敏感词后检测是否仅包括音视频内容,或者,同时执行上述两个步骤,再或者,先检测是否仅包括音视频内容,然后检测敏感词。It should be noted that this embodiment does not limit the execution sequence of the steps of detecting whether the comment content includes sensitive words and whether the comment content only includes audio and video content. In actual implementation, sensitive words can be detected first and then Detect whether only audio and video content is included, or perform the above two steps at the same time, or, first detect whether only audio and video content is included, and then detect sensitive words.
请参考图10,其示出了本发明一个实施例提供的评论分享装置的结构示意图,如图10所示,该评论分享装置可以包括:获取模块1010、生成模块1020和分享模块1030。Please refer to FIG. 10 , which shows a schematic structural diagram of a comment sharing device provided by an embodiment of the present invention. As shown in FIG. 10 , the comment sharing device may include: an
获取模块1010,用于获取目标评论的评论内容,所述目标评论为对第一应用程序中的目标对象的评论;An
生成模块1020,用于生成所述获取模块1010获取到的所述评论内容所对应的分享图片;A
所述获取模块1010,还用于获取目标分享方式;The obtaining
分享模块1030,用于通过所述目标分享方式分享所述分享图片至第二应用程序。The
综上所述,本实施例提供的评论分享装置,通过在分享评论时,生成该评论的评论内容所对应的分享图片,进而分享该分享图片至第二应用程序;解决了相关技术中通过分享截屏图片的方式分享评论时,分享效率较低的问题;达到了可以直接在第一应用程序中进行分享,提高分享效率的效果。同时,相关技术中,由于截屏图片中可能会包括与该评论相邻的其他评论的内容,而这些内容并非是用户真正想要分享的内容,因此上述方案在分享之后截屏图片中的相邻评论可能会对阅读者造成干扰,而上述方案中分享图片中的内容均是用户真正想要分享的内容,避免了相关技术中给阅读者造成的干扰。To sum up, the comment sharing device provided by this embodiment generates a shared picture corresponding to the comment content of the comment when sharing the comment, and then shares the shared picture to the second application program; When sharing comments in the form of screenshots, the sharing efficiency is low; it achieves the effect of directly sharing in the first application program and improving the sharing efficiency. At the same time, in related technologies, since the screenshot may include the content of other comments adjacent to the comment, and these contents are not the content that the user really wants to share, the adjacent comments in the screenshot of the above solution after sharing It may cause interference to readers, and the content in the shared pictures in the above solution is the content that the user really wants to share, which avoids interference to readers caused by related technologies.
此外,通过分享图片的形式分享评论,这相对于通过文字或者链接的形式分享,其对用户的视觉冲击更大,提高了该分享图片被分享之后,其他用户查看的概率。In addition, sharing comments in the form of sharing pictures has a greater visual impact on users than sharing in the form of text or links, and increases the probability that other users will view the shared pictures after they are shared.
基于上述实施例提供的评论分享装置,可选的,所述获取模块1010,包括:Based on the comment sharing device provided in the above embodiments, optionally, the
获取单元,用于获取关联信息,所述关联信息包括发布所述目标评论的用户帐户的帐户名称、所述目标对象的标题以及图形码中的至少一种;所述图形码中携带有所述目标对象的链接地址;An acquisition unit, configured to acquire associated information, the associated information including at least one of the account name of the user account that issued the target comment, the title of the target object, and a graphic code; the graphic code carries the The link address of the target object;
生成单元,用于根据所述获取模块获取到的所述关联信息以及所述评论内容生成所述分享图片。A generating unit, configured to generate the shared picture according to the associated information acquired by the acquiring module and the comment content.
可选地,所述生成单元,还用于:Optionally, the generating unit is also used for:
若所述评论内容中不包括音视频内容,则生成包括所述关联信息和所述评论内容的分享图片;If the comment content does not include audio and video content, then generate a shared picture including the associated information and the comment content;
若所述评论内容中包括音视频内容,则生成包括所述关联信息、预设信息以及所述评论内容中除所述音视频内容之外的其他内容的所述分享图片,所述预设信息为用于表征所述音视频内容的类型的信息。If the comment content includes audio and video content, generate the shared picture including the associated information, preset information, and other content in the comment content except the audio and video content, and the preset information It is the information used to characterize the type of the audio and video content.
可选地,所述装置还包括:Optionally, the device also includes:
检测模块,用于检测所述评论内容中是否包括敏感词;A detection module, configured to detect whether sensitive words are included in the comment content;
所述生成模块1020,还用于在所述检测模块的检测结果为所述评论内容中不包括所述敏感词时,执行所述生成所述评论内容所对应的分享图片的操作。The
通过在生成分享图片时,生成携带有图形码的图片,使得阅读者可以通过该图形码来查看目标对象的原文,方便了阅读者的使用。By generating a picture with a graphic code when generating the shared picture, the reader can view the original text of the target object through the graphic code, which facilitates the use of the reader.
可选地,所述装置还包括:Optionally, the device also includes:
检测模块,用于检测所述评论内容中是否仅包括音视频内容;A detection module, configured to detect whether only audio and video content is included in the comment content;
结束模块,用于在所述检测模块的检测结果为所述评论内容中仅包括所述音视频内容时,结束本次分享。An end module, configured to end this sharing when the detection result of the detection module is that only the audio and video content is included in the comment content.
需要说明的是:上述实施例提供的评论分享装置,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将服务器的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的评论分享装置和评论分享方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the comment sharing device provided by the above-mentioned embodiment is only illustrated by the division of the above-mentioned functional modules. Divided into different functional modules to complete all or part of the functions described above. In addition, the comment sharing device and the comment sharing method embodiments provided in the above embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.
本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质可以是存储器中所包含的计算机可读存储介质;也可以是单独存在,未装配入终端中的计算机可读存储介质。该计算机可读存储介质存储有至少一条指令、至少一段程序、代码集或指令集,该至少一条指令、至少一段程序、代码集或指令集由处理器加载并执行以实现如下操作:The embodiment of the present invention also provides a computer-readable storage medium, which may be a computer-readable storage medium contained in a memory; or a computer-readable storage medium that exists independently and is not assembled into a terminal medium. The computer-readable storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to achieve the following operations:
获取目标评论的评论内容,所述目标评论为对第一应用程序中的目标对象的评论;acquiring comment content of a target comment, where the target comment is a comment on a target object in the first application program;
生成所述评论内容所对应的分享图片;Generate a shared picture corresponding to the comment content;
获取目标分享方式;Obtain the target sharing method;
通过所述目标分享方式分享所述分享图片至第二应用程序。Sharing the shared picture to the second application program through the target sharing method.
可选地,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如下操作:Optionally, the at least one instruction, the at least one section of program, the code set or instruction set are loaded and executed by the processor to implement the following operations:
获取关联信息,所述关联信息包括发布所述目标评论的用户帐户的帐户名称、所述目标对象的标题以及图形码中的至少一种;所述图形码中携带有所述目标对象的链接地址;Obtain associated information, the associated information includes at least one of the account name of the user account that posted the target comment, the title of the target object, and a graphic code; the graphic code carries the link address of the target object ;
根据所述关联信息以及所述评论内容生成所述分享图片。The shared picture is generated according to the associated information and the comment content.
可选地,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如下操作:Optionally, the at least one instruction, the at least one section of program, the code set or instruction set are loaded and executed by the processor to implement the following operations:
若所述评论内容中不包括音视频内容,则生成包括所述关联信息和所述评论内容的分享图片;If the comment content does not include audio and video content, then generate a shared picture including the associated information and the comment content;
若所述评论内容中包括音视频内容,则生成包括所述关联信息、预设信息以及所述评论内容中除所述音视频内容之外的其他内容的所述分享图片,所述预设信息为用于表征所述音视频内容的类型的信息。If the comment content includes audio and video content, generate the shared picture including the associated information, preset information, and other content in the comment content except the audio and video content, and the preset information It is the information used to characterize the type of the audio and video content.
可选地,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如下操作:Optionally, the at least one instruction, the at least one section of program, the code set or instruction set are loaded and executed by the processor to implement the following operations:
检测所述评论内容中是否包括敏感词;Detect whether sensitive words are included in the comment content;
若所述评论内容中不包括所述敏感词,则执行所述生成所述评论内容所对应的分享图片的操作。If the sensitive word is not included in the comment content, the operation of generating the shared picture corresponding to the comment content is performed.
可选地,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如下操作:Optionally, the at least one instruction, the at least one section of program, the code set or instruction set are loaded and executed by the processor to implement the following operations:
检测所述评论内容中是否仅包括音视频内容;Detect whether the comment content only includes audio and video content;
若所述评论内容中仅包括所述音视频内容,则结束本次分享。If the comment content only includes the audio and video content, then this sharing is ended.
图11其示出了本发明一个实施例提供的终端1100的框图,该终端可以包括射频(RF,Radio Frequency)电路1101、包括有一个或一个以上计算机可读存储介质的存储器1102、输入单元1103、展示单元1104、传感器1105、音频电路1106、无线保真(WiFi,WirelessFidelity)模块1107、包括有一个或者一个以上处理核心的处理器1108、以及电源1109等部件。本领域技术人员可以理解,图11中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Fig. 11 shows a block diagram of a terminal 1100 provided by an embodiment of the present invention, the terminal may include a radio frequency (RF, Radio Frequency)
RF电路1101可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器1108处理;另外,将涉及上行的数据发送给基站。通常,RF电路1101包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,RF电路1101还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GSM,Global System of Mobile communication)、通用分组无线服务(GPRS,GeneralPacket Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long TermEvolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。The
存储器1102可用于存储软件程序以及模块,处理器1108通过运行存储在存储器1102的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器1102可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1102可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器1102还可以包括存储器控制器,以提供处理器1108和输入单元1103对存储器1102的访问。The
输入单元1103可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元1103可包括触敏表面以及其他输入设备。触敏表面,也称为触摸展示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1108,并能接收处理器1108发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元1103还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
展示单元1104可用于展示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。展示单元1104可包括展示面板,可选的,可以采用液晶展示器(LCD,Liquid CrystalDisplay)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置展示面板。进一步的,触敏表面可覆盖展示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器1108以确定触摸事件的类型,随后处理器1108根据触摸事件的类型在展示面板上提供相应的视觉输出。虽然在图11中,触敏表面与展示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与展示面板集成而实现输入和输出功能。The
终端还可包括至少一种传感器1105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节展示面板的亮度,接近传感器可在终端移动到耳边时,关闭展示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The terminal may also include at least one
音频电路1106、扬声器,传声器可提供用户与终端之间的音频接口。音频电路1106可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路1106接收后转换为音频数据,再将音频数据输出处理器1108处理后,经RF电路1101以发送给比如另一终端,或者将音频数据输出至存储器1102以便进一步处理。音频电路1106还可能包括耳塞插孔,以提供外设耳机与终端的通信。The
WiFi属于短距离无线传输技术,终端通过WiFi模块1107可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图11示出了WiFi模块1107,但是可以理解的是,其并不属于终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The terminal can help users send and receive emails, browse web pages, and access streaming media through the
处理器1108是终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1102内的软件程序和/或模块,以及调用存储在存储器1102内的数据,执行终端的各种功能和处理数据。可选的,处理器1108可包括一个或多个处理核心;优选的,处理器1108可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1108中。The
终端还包括给各个部件供电的电源1109(比如电池),优选的,电源可以通过电源管理系统与处理器1108逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源1109还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal also includes a power supply 1109 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the
尽管未示出,终端还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端中的处理器1108会运行存储在存储器1102中的至少一条指令、至少一段程序、代码集或指令集,从而实现如下操作:Although not shown, the terminal may also include a camera, a Bluetooth module, etc., which will not be repeated here. Specifically, in this embodiment, the
获取目标评论的评论内容,所述目标评论为对第一应用程序中的目标对象的评论;acquiring comment content of a target comment, where the target comment is a comment on a target object in the first application program;
生成所述评论内容所对应的分享图片;Generate a shared picture corresponding to the comment content;
获取目标分享方式;Obtain the target sharing method;
通过所述目标分享方式分享所述分享图片至第二应用程序。Sharing the shared picture to the second application program through the target sharing method.
可选地,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如下操作:Optionally, the at least one instruction, the at least one section of program, the code set or instruction set are loaded and executed by the processor to implement the following operations:
获取关联信息,所述关联信息包括发布所述目标评论的用户帐户的帐户名称、所述目标对象的标题以及图形码中的至少一种;所述图形码中携带有所述目标对象的链接地址;Obtain associated information, the associated information includes at least one of the account name of the user account that posted the target comment, the title of the target object, and a graphic code; the graphic code carries the link address of the target object ;
根据所述关联信息以及所述评论内容生成所述分享图片。The shared picture is generated according to the associated information and the comment content.
可选地,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如下操作:Optionally, the at least one instruction, the at least one section of program, the code set or instruction set are loaded and executed by the processor to implement the following operations:
若所述评论内容中不包括音视频内容,则生成包括所述关联信息和所述评论内容的分享图片;If the comment content does not include audio and video content, then generate a shared picture including the associated information and the comment content;
若所述评论内容中包括音视频内容,则生成包括所述关联信息、预设信息以及所述评论内容中除所述音视频内容之外的其他内容的所述分享图片,所述预设信息为用于表征所述音视频内容的类型的信息。If the comment content includes audio and video content, generate the shared picture including the associated information, preset information, and other content in the comment content except the audio and video content, and the preset information It is the information used to characterize the type of the audio and video content.
可选地,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如下操作:Optionally, the at least one instruction, the at least one section of program, the code set or instruction set are loaded and executed by the processor to implement the following operations:
检测所述评论内容中是否包括敏感词;Detect whether sensitive words are included in the comment content;
若所述评论内容中不包括所述敏感词,则执行所述生成所述评论内容所对应的分享图片的操作。If the sensitive word is not included in the comment content, the operation of generating the shared picture corresponding to the comment content is performed.
可选地,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如下操作:Optionally, the at least one instruction, the at least one section of program, the code set or instruction set are loaded and executed by the processor to implement the following operations:
检测所述评论内容中是否仅包括音视频内容;Detect whether the comment content only includes audio and video content;
若所述评论内容中仅包括所述音视频内容,则结束本次分享。If the comment content only includes the audio and video content, then this sharing is ended.
应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”(“a”、“an”、“the”)旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that, as used herein, the singular form "a", "an", "the" is intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710418197.4A CN109003194B (en) | 2017-06-06 | 2017-06-06 | Comment sharing method, terminal and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710418197.4A CN109003194B (en) | 2017-06-06 | 2017-06-06 | Comment sharing method, terminal and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109003194A CN109003194A (en) | 2018-12-14 |
| CN109003194B true CN109003194B (en) | 2023-07-14 |
Family
ID=64572650
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710418197.4A Active CN109003194B (en) | 2017-06-06 | 2017-06-06 | Comment sharing method, terminal and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109003194B (en) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109992733A (en) * | 2019-04-11 | 2019-07-09 | 北京字节跳动网络技术有限公司 | Method, apparatus, electronic equipment and the storage medium that information is shared |
| CN109992732A (en) * | 2019-04-11 | 2019-07-09 | 北京字节跳动网络技术有限公司 | Information sharing method, device, electronic equipment and storage medium |
| CN110245304B (en) * | 2019-04-16 | 2021-09-03 | 创新先进技术有限公司 | Data sharing method, device and computer readable medium |
| US10984206B2 (en) | 2019-04-16 | 2021-04-20 | Advanced New Technologies Co., Ltd. | Data storing and sharing using two-dimensional codes |
| CN113965540B (en) * | 2019-04-30 | 2023-03-21 | 创新先进技术有限公司 | Information sharing method, device and equipment |
| CN110826319A (en) * | 2019-10-30 | 2020-02-21 | 维沃移动通信有限公司 | Application information processing method and terminal device |
| CN111510557B (en) * | 2020-04-14 | 2022-03-29 | 维沃移动通信有限公司 | Content processing method and electronic equipment |
| CN113949901A (en) * | 2021-10-15 | 2022-01-18 | 北京字节跳动网络技术有限公司 | Comment sharing method and device and electronic equipment |
| CN116244490A (en) * | 2023-03-09 | 2023-06-09 | 北京字跳网络技术有限公司 | Content sharing method, device, equipment, computer readable storage medium and product |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104333531A (en) * | 2013-07-22 | 2015-02-04 | 腾讯科技(深圳)有限公司 | Network resource sharing and obtaining method, device, terminal |
| CN104918066A (en) * | 2014-03-11 | 2015-09-16 | 上海数字电视国家工程研究中心有限公司 | Video content censoring method and system |
| CN104980766A (en) * | 2014-04-01 | 2015-10-14 | 联想移动通信科技有限公司 | Information processing method, device, and terminal |
| CN105323704A (en) * | 2014-07-07 | 2016-02-10 | 中兴通讯股份有限公司 | User comment sharing method, device and system |
| CN105912610A (en) * | 2016-04-06 | 2016-08-31 | 乐视控股(北京)有限公司 | Method and device for guiding share based on character information |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20120099836A (en) * | 2011-03-02 | 2012-09-12 | 삼성전자주식회사 | Apparatus and method for sharing comment in mobile communication teminal |
| US8934015B1 (en) * | 2011-07-20 | 2015-01-13 | Google Inc. | Experience sharing |
| TW201419175A (en) * | 2012-11-15 | 2014-05-16 | Richplay Information Co Ltd | Method for sharing and tracking comments on webpage |
| CN103688513B (en) * | 2013-06-29 | 2017-01-25 | 华为技术有限公司 | Content sharing method and Social Synchronizing Apparatus |
| CN104660630B (en) * | 2013-11-18 | 2018-10-16 | 北大方正集团有限公司 | Microblogging application process and device |
| CN105824836B (en) * | 2015-01-07 | 2020-01-10 | 宇龙计算机通信科技(深圳)有限公司 | Screenshot sharing method and device, and information receiving method and device |
| CN106375829A (en) * | 2016-08-31 | 2017-02-01 | 腾讯科技(深圳)有限公司 | Video comment method, and related device and system |
-
2017
- 2017-06-06 CN CN201710418197.4A patent/CN109003194B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104333531A (en) * | 2013-07-22 | 2015-02-04 | 腾讯科技(深圳)有限公司 | Network resource sharing and obtaining method, device, terminal |
| CN104918066A (en) * | 2014-03-11 | 2015-09-16 | 上海数字电视国家工程研究中心有限公司 | Video content censoring method and system |
| CN104980766A (en) * | 2014-04-01 | 2015-10-14 | 联想移动通信科技有限公司 | Information processing method, device, and terminal |
| CN105323704A (en) * | 2014-07-07 | 2016-02-10 | 中兴通讯股份有限公司 | User comment sharing method, device and system |
| CN105912610A (en) * | 2016-04-06 | 2016-08-31 | 乐视控股(北京)有限公司 | Method and device for guiding share based on character information |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109003194A (en) | 2018-12-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109003194B (en) | Comment sharing method, terminal and storage medium | |
| US10419823B2 (en) | Method for controlling multimedia playing, apparatus thereof and storage medium | |
| US10334309B2 (en) | Bullet screen display method and apparatus | |
| RU2616536C2 (en) | Method, device and terminal device to display messages | |
| CN108549519B (en) | Split screen processing method and device, storage medium and electronic equipment | |
| CN104243671B (en) | Volume adjusting method, device and electronic equipment | |
| US10652287B2 (en) | Method, device, and system for managing information recommendation | |
| US9740671B2 (en) | Method and apparatus of generating a webpage from an original design file comprising layers | |
| CN106020987A (en) | Method and device for determining kernel running configuration in processor | |
| US9921735B2 (en) | Apparatuses and methods for inputting a uniform resource locator | |
| CN107436948B (en) | File searching method and device and terminal | |
| CN107589901A (en) | Page display method, device, terminal and computer-readable storage medium | |
| CN104090879A (en) | Picture sharing method, device and system | |
| CN103491240B (en) | A kind of alarm clock ringing method, device and mobile terminal | |
| CN106231575B (en) | Short message processing method and device | |
| CN108958629A (en) | Split screen quitting method and device, storage medium and electronic equipment | |
| CN106098088B (en) | A kind of method and apparatus of the display lyrics | |
| CN103823851A (en) | Webpage display method and webpage display device | |
| CN104254020B (en) | The player method of media data, device and terminal | |
| CN106293407A (en) | A kind of image display method and terminal unit | |
| CN106201223A (en) | A kind of notification message display packing and device | |
| CN106302131B (en) | A kind of synchronous method and device of chat message difference | |
| CN108845755A (en) | Split screen processing method and device, storage medium and electronic equipment | |
| CN106227558A (en) | Application program startup method, device and terminal | |
| CN106059898A (en) | Information transmission method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |
