This application claims priority to a Chinese Patent Application No. 202111204212.8, filed Oct. 15, 2021, which is hereby incorporated by reference in its entirety.
The embodiments in the present application relate to the technical field of computers, in particular to a comment sharing method, apparatus and electronic device.
More and more users record and share their lives by recording short videos, and short videos have become the important way for users to acquire information. When a user watches short videos shared by other users on the user’s mobile phone, the user can “like” the short videos and make comments in a comment area of the short videos.
The comments in the comment area are diverse and rich. At present, users can share good videos with other users, but when the users see wonderful comments in the comment area, they can’t share the comments with other users, therefore, the shareable contents are monotonous.
The disclosed embodiment provides a comment sharing method, apparatus, and electronic device, which can enrich the shareable contents and improve the user experience.
In a first aspect, an embodiment of the present disclosure provides a comment sharing method, comprising:
receiving a sharing request from a user for a target comment, wherein the target comment is a comment on an object in a first application; displaying a sharing interface, on which a first list of identities of users to be shared is included, wherein the users to be shared are users associated with logged-in users of the first application in the first application; in response to an operation by the user on the identity of a first target user in the first list, transmitting information about the target comment to a client of the first target user through the first application, and the information about the target comment includes contents of the target comment.
In a second aspect, an embodiment of the present disclosure provides a comment sharing apparatus, comprising:
In a third aspect, an embodiment of the present disclosure provides an electronic device, including a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor executes the comment sharing method of the first aspect above.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium in which computer-executable instructions are stored, and the computer-executable instructions, when executed by a processor, cause implementation of the comment sharing method of the first aspect and various possible designs of the first aspect above.
In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including computer instructions, which, when executed by a processor, implement the comment sharing method of the first aspect and various possible designs of the first aspect above.
In the comment sharing method, apparatus and electronic device provided by this embodiment, the comment sharing method comprises: receiving a sharing request from a user for a target comment, displaying a sharing interface, on which a first list of identities of users to be shared is included, in response to an operation by the user on the identity of a first target user in the first list, transmitting information about the target comment to a client of the first target user through the first application. The embodiments of the present disclosure can provide users with the function of sharing comments in the first application, and users can select target comments to share with users who require to share, thus enriching the shared contents and improving the user experience.
In order to more clearly explain the embodiments of this disclosure or the technical solutions in 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 drawings in the following description are some embodiments of the present disclosure, and for those ordinary skilled in the field, other drawings can be obtained according to these drawings without paying creative effort.
In order to make the objects, technical solutions, and advantages of the embodiments of the present disclosure to be clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of embodiments of the present disclosure, not all of them. All other embodiments obtained by those ordinary skilled in this field based on the embodiments in the present disclosure without creative work are within the protection scope of the present disclosure.
Referring to a in
In view of the problems in the prior art, an embodiment of the present disclosure provides a comment sharing method. An electronic device can share comments to users who require to share based on user’s operations, so that users can not only share short videos, but also share comments, thus enriching the shareable contents and improving the user experience.
In one embodiment, the electronic device can be a wireless terminal or a wired terminal. A wireless terminal may refer to a handheld device with wireless connection function, or any other processing device connected to a wireless modem. The wireless terminal can communicate with one or more core network devices via Radio Access Network (RAN). The wireless terminal can be a mobile terminal, such as a mobile phone (or “cellular” phone) and a computer with mobile terminals, for example, any portable, pocket-sized, handheld, computer built-in or vehicle-mounted mobile devices, which can exchange language and/or data with the radio access network. For example, the wireless terminal can also be Personal Communication Service (PCS) phone, cordless phone, Session Initiation Protocol (SIP) phone, Wireless Local Loop (WLL) station, Personal Digital Assistant (PDA) and other devices. A wireless terminal can also be referred to as system, Subscriber Unit, Subscriber Station, Mobile Station, Mobile, Remote Station, Remote Terminal, Access Terminal, User Terminal, User Agent, User Device or User Equipment, and is not limited here. Optionally, the above-mentioned terminals can also be smart watches, tablet computers, wearable devices, etc. In the embodiments of the present disclosure, the electronic devices are not limited, and the following embodiments and drawings illustrate the electronic device by taking the mobile phone as an example.
It should be noted that in the above-mentioned
S201, receiving a sharing request from a user for a target comment, wherein the target comment is a comment on an object in a first application.
The first application may include, but are not limited to, short video application, video application, audio application, navigation application, and social application. when the first application is different, the object in the first application is different.
Illustratively, when the first application is a short video application, the object in the first application is a short video. When the first application is a social application, the object in the first application can be multimedia resources published by users, such as texts, documents, images, videos, etc. When the first application is a navigation application, the object in the first application can be destination or planned route, etc. The following description takes the first application as a short video application and the object as a short video as an example.
The object comment may be a comment on the object in the first application. In one embodiment, the comment on the object in the first application exists in the comment area for the object in the first application, and in this embodiment, the user can operate the interface of the first application displayed by the electronic device, trigger the electronic device to display the comment area for the object in the first application, and the comment area includes at least one user’s comment on the object. Comments may include but are not limited to, texts, images, videos, emoticons, etc. The manner of the user operating the interface of the first application displayed by the electronic device may be, but not be limited to, long press, triple tap, etc.
In an embodiment, when an electronic device displays an object, such as a short video, the user can long-press the interface of the short video, trigger the electronic device to display the comment area for the object in the first application, and in turn, the user can select the target comment in the comment area.
In an embodiment, in order to adapt to the user’s habits, a few modifications are made to an existing interface in the embodiment of the present disclosure. A process before receiving the sharing request from the user for the target comment will be described with reference to
For example, before the above S201, the electronic device can also display an object in the first application, and the electronic device displays a comment area for the object in response to the user’s request for the comment area for the object. For example, if a comment control is displayed on the interface of the electronic device displaying the object in the first application, the user can operate the comment control to request the electronic device to display the comment area for the object. The electronic device can display the comment area for the object in response to detecting that the user operates the comment control.
After displaying the comment area for the object, the electronic device displays an operation list in response to detecting preset operations by the user on the target comment in the comment area. Among them, the preset operations can include, but is not limited to, long press, triple tap, etc., and the following embodiments will take the long press as an example. That is, the electronic device can display the operation list in response to detecting the user’s long-press operation on the target comment. The operation list includes at least one operation control for the target comment, and the at least one operation control includes a sharing control. For example, the user operating the sharing control can input a sharing request for the target comment into the electronic device, and correspondingly, the electronic device can receive the user’s sharing request for the target comment.
Taking the first application being a short video application as an example, the following describes the process that the user triggers the electronic device to receive the sharing request for the target comment:
a in
For example, if the user’s preset operation on the target comment in the comment area is a long press operation, when the user long presses the comment 22, the electronic device can display the operation list 30A in response to detecting the user’s preset operation on the target comment in the comment area (long press operation). For example, the target comment is “Great”.
As shown in c in
In one embodiment, the user can click on other locations on the electronic device other than the operation list 30A, to trigger the electronic device to display the comment interface 20 without displaying the operation list 30A. Alternatively, in one embodiment, the operation list 30A may further include a cancel control, and the user clicking the cancel control may trigger the electronic device to display the comment interface 20 without displaying the operation list 30A. It should be understood that in c of
S202, displaying a sharing interface, on which a first list of identities of users to be shared is included, wherein the users to be shared are users associated with logged-in users of the first application in the first application.
The electronic device can display a sharing interface in response to receiving the user’s sharing request for the target comment. The sharing interface includes a first list of identities of users to be shared, and the first list includes the identity of at least one user to be shared.
Among them, the users to be shared are the users associated with logged-in users of the first application in the first application. Specifically, the users to be shared are the users associated with the logged-in users of the first application on the electronic device in the first application. The logged-in user of the first application can be a user who requests the sharing of the target comment, or can be a user who does not request the sharing of the target comment, such as a user who requests the sharing of the target comment shares the target comment with someone else’s electronic device.
For example, if a user A logs in the short video application with his/her own account on his/her own electronic device, the logged-in user of the first application is the user A. If a user B watches the short video using user A’s electronic device, and the user who logs in the short video application on user A’s electronic device is a user A, then the logged-in user of the first application is the user A.
The users associated with the logged-in users of the first application in the first application can be users who are concerned by the logged-in users of the first application in the first application, or users who pay attention to each other with the logged-in users of the first application in the first application (or become friends with each other). For example, if the logged-in user of the first application on the electronic device is user A, the user associated with user A may be the user concerned by user A or the user who pay attention to each other with user A. The following description will take the user associated with the logged-in user of the first application in the first application being the user concerned by the logged-in user of the first application in the first application as an example.
The identity of the user to be shared may include, but not be limited to, the information used to distinguish the user to be shared, such as avatar and nickname of the user to be shared, and so on.
For example, as shown in c in
S203, in response to an operation by the user on the identity of a first target user in the first list, transmitting information about the target comment to a client of the first target user through the first application, and the information about the target comment includes contents of the target comment.
In one embodiment, the first list may include all users associated with the logged-in user of the first application in the first application. The user can select the identity of the first target user in the first list who needs to share the target comment. Correspondingly, the electronic device can transmit the target comment to the first target user in response to the user’s operation on the identity of the first target user in the first list.
Because the user to be shared is the user associated with the logged-in user of the first application on the electronic device in the first application, the logged-in user can share the target comment with the user to be shared in the first application by the way of private message. Among them, the process that the logged-in user communicates with the user to be shared in the first application by way of private message can be as follows:
The electronic device transmits information about the target comment to the client of the first target user through the first application. Specifically, the electronic device can transmit the information about the target comment to an electronic device, i.e., a client, by which the first target user logs in the first application, through a server corresponding to the first application. Among them, the electronic device can transmit the information about the target comment and the identity of the first target user to a server corresponding to the first application, and then the server corresponding to the first application can transmit the information about the target comment to the electronic device by which the first target user logs in the first application. For example, if the first target user is a user A to be shared, then the first target user logs in the electronic device of the first application, that is, the electronic device by which the user A to be shared logs in the first application, such as the mobile phone of the user to be shared.
In one embodiment, the information about the target comment may include the content of the target comment, such as “Great”.
In an embodiment, referring to the sharing interface 40 shown by d in
Referring to d in
Among them, after the user selects the user A to be shared as the first target user and clicks the transmitting control 42, the electronic device can transmit the information about the target comment to the electronic device, by which the user A to be shared logs in the short video application, through the short video server. d1 in
In one embodiment, the first target user is at least one user. In the above-mentioned d in
The comment sharing method according to embodiments of the present disclosure includes: receiving a sharing request from a user for a target comment, displaying a sharing interface, on which a first list of identities of users to be shared is included, in response to an operation by the user on the identity of a first target user in the first list, transmitting information about the target comment to a client of the first target user through the first application. In the embodiments of the present disclosure, the electronic device can provide the user with the function of sharing comments in the first application, and the user can select the target comments to share with the users who require to share in the first application, thus enriching the sharing content and improving the user experience.
The sharing interface 40 will be further described below. In one embodiment, in addition to the first list 41, the sharing interface 40 can include at least one of the following items: the identity 50 of at least one second application to be shared, the search control 60, and the input box 70. In one embodiment, the sharing interface 40 may also include the content 80 of the target comment.
In this embodiment, the above-mentioned d in
Referring to a in
First, the identity 50 of at least one second application to be shared.
The second application can be different from the first application, the second application can be, but not limited to, a social application. In the following embodiments, the first application being a short video application and the second application being a social application are taken as an example.
In the embodiment shown in
In this embodiment, as shown in
For example, if the target second application is social application 1, then the users to be shared in the target second application are users who become friends with each other with the logged-in users of social application 1 in social application 1 on the electronic device, or users who are concerned by the logged-in users of social application 1 in social application 1 on the electronic device.
The user can select a second target user from the identities of users to be shared in the target second application, so as to trigger the electronic device to share the target comments with the second target user. Among them, in response to the user’s operation on the identity of the second target user in the identities of users to be shared in the target second application, the electronic device can transmit information about the target comment to the client of the second target user through the target second application. Specifically, the electronic device can transmit the information about the target comment to an electronic device by which the second target user logs in the target second application through the server corresponding to the target second application.
Specifically, the electronic device can transmit the information about target comment information and the identity of the second target user to the server corresponding to the target second application, and then the server corresponding to the target second application can transmit the information about the target comment to the electronic device by which the second target user logs in the target second application.
Referring to a in
Second, search control 60.
The above-mentioned d in
In an embodiment, the information about all users associated with the logged-in user of the first application on the electronic device may include: the number of interactions or the time of the last interaction between the logged-in user of the first application on the electronic device and the user to be shared. The electronic device can determine the users to be shared displayed in the first list and their display order according to the number of interactions or the time of the last interaction between the logged-in user of the first application on the electronic device and the users to be shared.
For example, taking the number of interactions between the logged-in user of the first application on the electronic device and the user to be shared as an example, the electronic device can arrange the identities of top three users to be shared in the order of the number of interactions between the users to be shared and the logged-in users of the first application on the electronic device, as the users to be shared displayed in the first list, and display the users to be shared according to the order of the number of interactions from the high to the low.
As shown in a in
For example, taking the time of last interaction between the logged-in user of the first application on the electronic device and the user to be shared as an example, the electronic device can take the top three users to be shared with the latest last interaction time as the users to be shared displayed in the first list, and display the users to be shared in the order of the last interaction time from far to near. If the top three users to be shared with the latest last interaction time between the logged-in user and the users to be shared: user A to be shared, user B to be shared and user C to be shared, and in the order of last interaction time between the logged-in user and the users to be shared from far to near is user C to be shared, user B to be shared and user A to be shared, the electronic device can display user A to be shared, user B to be shared and user C to be shared in the first list according to the order of “ user C to be shared, user B to be shared and user A to be shared”. In this embodiment, the top three users to be shared with the latest last interaction time are taken as examples.
In view that the identities of some users associated with the logged-in users of the first application on the electronic device are displayed in the first list, if the first list does not contain the identities of users who require sharing of the target comments, in order to facilitate the user to find more users to be shared, a search control 60 is provided on the sharing interface 40 in this embodiment of the present disclosure. The processes in response to the search operation will be described with reference to
In this embodiment, users can click the search control 60 to find more users to be shared. Accordingly, in response to the user’s operation on the search control 60, the electronic device can display the second list 61 of identities of the users to be shared. In an embodiment, the sharing interface 40 may not include the search control 60, and the user may perform a preset action to trigger the electronic device to display the second list 61 of identities of the users to be shared. Illustratively, the preset action can be: shake the electronic device, or draw a circle in the air with the electronic device in hand, etc. Among them, in response to the user’s operation on the search control 60 or in response that the user performs the preset action, the electronic device can determine detection of the user’s search operation, and then the second list 61 is displayed.
The second list 61 includes: identities of all users associated with the logged-in user of the first application in the first application on the electronic device, in other words, the second list 61 includes the identities of all users associated with the search operation.
As shown in c in
In an embodiment, because of the large number of users to be shared, in order to facilitate the user to quickly find a first target user, the interface shown in c in
In this embodiment, in response to the user’s operation on the identity of a third target user in the second list, the electronic device can transmit the information about the target comment to the client of the third target user through the first application. Specifically, the electronic device can transmit the information about the target comment to an electronic device, by which the third target user logs in the first application, through the server corresponding to the first application. For example, if the user operates on the identity of the user D to be shared in the second list, the electronic device can transmit the information about the target comment to the electronic device by which the user D to be shared logs in the short video application through the server corresponding to the short video application.
Third, the contents of target comment.
In an embodiment, in order to make the user to clarify the target comment selected by the user, referring to a in
Among them, the comments replied by the target comment refer to comments made by other users in the first application on the objects in the first application, and the target comments are comments that reply to the comments made by other users. Illustratively, referring to b in
In this embodiment, before sharing the target comments, the user can determine his/her own selected target comment so as to timely determine whether the target comment is correct, which is convenient for the user to modify the target comment in time.
Fourth, input box 70.
In an embodiment, when sharing the target comments with other users to be shared, users can add their own ideas to enrich the contents shared by electronic device. In this embodiment, referring to a in
In this way, based on the above descriptions in “First” to “Fourth”, the information about the target comment transmitted by the electronic device to the first target user or the second target user can include not only the content of the target comment, but also at least one of the following: the identity of the user who published the target comment, the identity of the object, and the identity of the user to which the comment replied by the target comment belongs.
In an embodiment, the information about the target comment can be a comment card, that is, the electronic device can transmit the target comment to the client of the first target user (or the second target user or the third target user) in the form of a comment card. Among them, the electronic device stores a comment card template, which defines content in the comment card and location of the content in advance.
Illustratively, in one embodiment, the comment card includes the content of the target comment, the identity of the user who published the target comment, and the identity of the object. In this embodiment, before transmitting the information about the target comment to the client of the first target user (or the second target user or the third target user), the electronic device needs to generate the comment card. Among them, the electronic device can extract the content of the target comment and the identity of the user who published the target comment from the target comment. The electronic device acquires the identity of the object, and fills the content of the target comment, the identity of the user who published the target comment, and the identity of the object into the comment card template to obtain the comment card, as shown in
Among them, because the target comment is structural, that is to say, the format of the target comment is fixed, for example, the first row of the target comment is “ the identity of the user who published the target comment” and the second row of the target comment is “ the content of the target comment”. In the embodiments of the present disclosure, the electronic device can extract the content of the target comment, the identity of the user who published the target comment from the target comment based on the format of the target comment.
In an embodiment, the identity of the object can be, but not limited to, the name, title, image, etc. of the object. In one embodiment, the first application is a short video application, the object is a short video, and the identity of the object is the cover of the short video.
For example, when the first target user receives the comment card of the target comment from the logged-in user of the first application on the electronic device, the comment card can be displayed. In
In an embodiment, when the content of the target comment is video or audio, the comment card may not display video or audio, but instead use “video” to represent video and “music” to represent audio, so as to indicate to the first target user that the target comment is video or audio.
In an embodiment, when the content of the target comment is video, the content of the target comment included in the comment card can be the cover of the video.
In the embodiments of the present disclosure, users can not only share the content of the target comment with other users, but also share other information about the target comment with other users, which can further enrich the shared content. In addition, users can not only share the information about target comment with other users in the same application, but also share the information about target comment with other users in other different applications, which can enrich the sharing manner and improve the user experience. In addition, users can also add their own ideas and opinions when sharing the content of target comments with other users, which can further enrich the shared content.
In the above embodiments, the content carried in the information about the target comment is preset. In one embodiment, the user can customize the content carried in the information about the target comment, further enrich the shared content and improve the user experience.
In this embodiment, a in
In a in
Among them, the electronic device can determine the content in the information about the target comment in response to the user’s operation on the custom tag, and then obtain the information about the target comment based on the content in the information about the target comment. For example, if the user selects tag 1 and tag 3 in a of
Accordingly, d1 in
In the embodiments of the present disclosure, when a user shares information about the target comment with other users, the user can customize the contents of the information about the target comment, so that the information about the target comment shared by the user can be more in line with user’s preferences, and the user experience can be improved.
Referring to
In a possible implementation, the processing module 804 is configured to determine the users to be shared displayed in the first list and their display order according to the number of interactions or the time of last interaction between the logged-in user and the users to be shared; or determine the users to be shared displayed in the first list and their display order according to the attributes of the users to be shared.
In a possible implementation, the first target user is at least one user.
In a possible implementation, the sharing interface also includes identity of at least one second application to be shared.
In a possible implementation, the display module 802 is further configured to, in response to the user’s operation on the identity of a target second application among the identities of at least one second application, display the identities of users to be shared in the target second application, wherein the users to be shared in the target second application are users associated with logged-in users of the target second application in the target second application.
The transceiving module 803 is further configured to, in response to the user’s operation on an identity of a second target user among the identities of users to be shared in the target second application, transmit the information about the target comment to a client of the second target user through the target second application.
In a possible implementation, the display module 802 is further configured to display a second list in response to the user’s search operation, wherein the second list includes identities of all users associated with the search operation.
The transceiving module 803 is further configured to, in response to the user’s operation on an identity of a third target user in the second list, transmit the information about the target comment to a client of the third target user through the first application.
In a possible implementation, the information about the target comment further includes at least one of the following: identity of a user who published the target comment, identity of the object, and identity of a user to which a comment replied by the target comment belongs to.
In a possible implementation, the information about the target comment is a comment card.
In a possible implementation, the processing module 804 is further configured to generate the comment card.
In a possible implementation, the comment card includes contents of the target comment, the identity of the user who published the target comment, and the identity of the object.
In a possible implementation, the processing module 804 is specifically configured to extract the contents of the target comment and the identity of the user who published the target comment from the target comment, obtain the identity of the object, and fill the contents of the target comment, the identity of the user who published the target comment and the identity of the object into a comment card template to obtain the comment card.
In a possible implementation, the first application is a short video application, the object is a short video, and the identity of the object is the cover of the short video.
In a possible implementation, the sharing interface also includes an input box.
The processing module 804 is further configured to, in response to a user inputting information in the input box, add the information in the input box to the information about the target comment.
In a possible implementation, the sharing interface further includes a custom tag, which includes at least one of the following: a tag of the identity of the user that published the target comment, the tag of the identity of object, and the tag of the identity of the user to which the comment replied by the target comment belongs.
The processing module 804 is further configured to determine the contents in the information about the target comment in response to the user’s operation on the custom tag.
In a possible implementation, the display module 802 is further configured to display the object, display a comment area for the object in response to the user’s request for the comment area for the object, and display an operation list in response to detecting a preset operation by the user on the target comment in the comment area, wherein the operation list includes controls for at least one operation on the target comment, and the controls include a sharing control.
In a possible implementation, the preset operation is long press or double click.
The comment sharing apparatus according to embodiments of the present disclosure can be employed to implement the technical solutions of the above method embodiments, and their implementation principles and technical effects are similar, so will not be repeated here.
In order to realize the above embodiments, the embodiments of the present disclosure also provide an electronic device.
Referring to
As shown in
Generally, the following devices can be connected to the I/O interface 905: an input device 906 including, for example, touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 907 such as Liquid Crystal Display (LCD), speakers, vibrators, etc.; a storage device 908 including a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or in wired so as to exchange data. Although
Particularly, according to embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product including a computer program carried on a computer readable medium, the computer program containing program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 909, or installed from the storage device 908 or from the ROM 902. When executed by the processing device 901, the computer program carries out the above-mentioned functions defined in the method of the embodiment of the present disclosure.
It should be noted that the above-mentioned computer-readable medium in this disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any combination of the above. More specific examples of computer-readable storage media may include, but not limited to, an electrical connection with one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, device, or equipment. In this disclosure, the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, in which computer-readable program code is carried. This propagated data signal can take many forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit the program for use by or in connection with the instruction execution system, apparatus, or device. The program code contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
The computer-readable medium may be included in the electronic device; or it can exist alone without being loaded into the electronic device.
The above-mentioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to execute the method shown in the above-mentioned embodiments.
Computer program codes for performing the operations of the present disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as “C” language or similar programming languages. The program codes can be completely executed on the user’s computer, partially executed on the user’s computer, executed as an independent software package, partially executed on the user’s computer, and partially executed on the remote computer, or completely executed on the remote computer or server. In a case related to remote computers, the remote computers can be connected to the user computers through any kind of networks, including Local Area Network (LAN) or Wide Area Network (WAN), or can be connected to external computers (for example, through the Internet with Internet service providers).
The flowcharts and block diagrams in the drawings illustrate the architecture, functions, and operations of possible embodiments of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of the code, which contains one or more executable instructions for implementing specified logical functions. It should also be noted that in some alternative implementations, the functions labeled in the blocks may also occur in a different order than those labeled in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, and sometimes they can be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, and the combination of blocks in the block diagram and/or flowchart, can be realized by a dedicated hardware-based system that performs specified functions or operations, or can be realized by a combination of dedicated hardware and computer instructions.
The modules described in the embodiments of this disclosure can be realized by software or hardware. In some cases, the name of the module does not limit the module itself. For example, the first acquisition module can also be described as “a module that acquires at least two Internet protocol addresses”.
The functions described above herein can be at least partially performed by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: field programmable gate array (FPGA), application specific integrated circuit (ASIC), application specific standard product (ASSP), system on chip (SOC), complex programmable logic device (CPLD) and so on.
In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. More specific examples of machine-readable storage medium may include electrical connections based on one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memories), optical fibers, compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the above.
In a first aspect, according to one or more embodiments of the present disclosure, there is provided a comment sharing method, comprising: receiving a sharing request from a user for a target comment, wherein the target comment is a comment on an object in a first application; displaying a sharing interface, on which a first list of identities of users to be shared is included, wherein the users to be shared are users associated with logged-in users of the first application in the first application; in response to an operation by the user on the identity of a first target user in the first list, transmitting information about the target comment to a client of the first target user through the first application, and the information about the target comment includes contents of the target comment
According to one or more embodiments of the present disclosure, the method further comprises, before displaying the interface, determining the users to be shared displayed in the first list and their display order according to the number of interactions or the time of last interaction between the logged-in user and the users to be shared; or, determining the users to be shared displayed in the first list and their display order according to the attributes of the users to be shared.
According to one or more embodiments of the present disclosure, the first target user is at least one user.
According to one or more embodiments of the present disclosure, the sharing interface also includes identity of at least one second application to be shared.
According to one or more embodiments of the present disclosure, the method further comprises, in response to the user’s operation on the identity of a target second application among the identities of at least one second application, displaying the identities of users to be shared in the target second application, wherein the users to be shared in the target second application are users associated with logged-in users of the target second application in the target second application; in response to the user’s operation on an identity of a second target user among the identities of users to be shared in the target second application, transmitting the information about the target comment to a client of the second target user through the target second application.
According to one or more embodiments of the present disclosure, the method further comprises displaying a second list in response to the user’s search operation, wherein the second list includes identities of all users associated with the search operation; in response to the user’s operation on an identity of a third target user in the second list, transmitting the information about the target comment to a client of the third target user through the first application.
According to one or more embodiments of the present disclosure, the information about the target comment further includes at least one of the following: identity of a user who published the target comment, identity of the object, and identity of a user to which a comment replied by the target comment belongs to.
According to one or more embodiments of the present disclosure, the information about the target comment is a comment card.
According to one or more embodiments of the present disclosure, the method further comprises: before transmitting information about the target comment to a client of the first target user through the first application, generating the comment card.
According to one or more embodiments of the present disclosure, the comment card includes contents of the target comment, the identity of the user who published the target comment, and the identity of the object.
According to one or more embodiments of the present disclosure, the generating the comment card comprises extracting the contents of the target comment and the identity of the user who published the target comment from the target comment; obtaining the identity of the object, and filling the contents of the target comment, the identity of the user who published the target comment and the identity of the object into a comment card template to obtain the comment card.
According to one or more embodiments of the present disclosure, the first application is a short video application, the object is a short video, and the identity of the object is the cover of the short video.
According to one or more embodiments of the present disclosure, the sharing interface also includes an input box; and the method further comprises: before transmitting information about the target comment to a client of the first target user through the first application, in response to a user inputting information in the input box, adding the information in the input box to the information about the target comment.
According to one or more embodiments of the present disclosure, the sharing interface further includes a custom tag, which includes at least one of the following: a tag of the identity of the user that published the target comment, the tag of the identity of object, and the tag of the identity of the user to which the comment replied by the target comment belongs.
The method further comprises: before transmitting information about the target comment to a client of the first target user through the first application, determining the contents in the information about the target comment in response to the user’s operation on the custom tag.
According to one or more embodiments of the present disclosure, the method further comprises: before receiving a sharing request from a user for a target comment, displaying the object; displaying a comment area for the object in response to the user’s request for the comment area for the object; and displaying an operation list in response to detecting a preset operation by the user on the target comment in the comment area, wherein the operation list includes controls for at least one operation on the target comment, and the controls include a sharing control.
According to one or more embodiments, the preset operation is long press or double click.
In a second aspect, according to one or more embodiments of the present disclosure, there is provided a comment sharing apparatus, comprising:
According to one or more embodiments, the processing module is configured to determine the users to be shared displayed in the first list and their display order according to the number of interactions or the time of last interaction between the logged-in user and the users to be shared; or, determine the users to be shared displayed in the first list and their display order according to the attributes of the users to be shared.
According to one or more embodiments, the first target user is at least one user.
According to one or more embodiments, the sharing interface also includes identity of at least one second application to be shared.
According to one or more embodiments, the display module is further configured to, in response to the user’s operation on the identity of a target second application among the identities of at least one second application, display the identities of users to be shared in the target second application, wherein the users to be shared in the target second application are users associated with logged-in users of the target second application in the target second application.
The transceiving module is further configured to, in response to the user’s operation on an identity of a second target user among the identities of users to be shared in the target second application, transmit the information about the target comment to a client of the second target user through the target second application.
According to one or more embodiments, the display module is further configured to display a second list in response to the user’s search operation, wherein the second list includes identities of all users associated with the search operation.
The transceiving module is further configured to, in response to the user’s operation on an identity of a third target user in the second list, transmit the information about the target comment to a client of the third target user through the first application.
According to one or more embodiments, the information about the target comment further includes at least one of the following: identity of a user who published the target comment, identity of the object, and identity of a user to which a comment replied by the target comment belongs to.
In a possible implementation, the information about the target comment is a comment card.
In a possible implementation, the processing module is further configured to generate the comment card.
In a possible implementation, the comment card includes contents of the target comment, the identity of the user who published the target comment, and the identity of the object.
In a possible implementation, the processing module is specifically configured to extract the contents of the target comment and the identity of the user who published the target comment from the target comment, obtain the identity of the object, and fill the contents of the target comment, the identity of the user who published the target comment and the identity of the object into a comment card template to obtain the comment card.
According to one or more embodiments, the first application is a short video application, the object is a short video, and the identity of the object is the cover of the short video.
According to one or more embodiments, the sharing interface also includes an input box.
The processing module is further configured to, in response to a user inputting information in the input box, add the information in the input box to the information about the target comment.
According to one or more embodiments, the sharing interface further includes a custom tag, which includes at least one of the following: a tag of the identity of the user that published the target comment, the tag of the identity of object, and the tag of the identity of the user to which the comment replied by the target comment belongs.
The processing module is further configured to determine the contents in the information about the target comment in response to the user’s operation on the custom tag.
According to one or more embodiments, the display module is further configured to display the object, display a comment area for the object in response to the user’s request for the comment area for the object, and display an operation list in response to detecting a preset operation by the user on the target comment in the comment area, wherein the operation list includes controls for at least one operation on the target comment, and the controls include a sharing control.
According to one or more embodiments, the preset operation is long press or double click.
In a third aspect, according to one or more embodiments, there is provided an electronic device, including a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor executes the comment sharing method as described in the first aspect and various possible designs of the first aspect above.
In a fourth aspect, according to one or more embodiments, there is provided a computer-readable storage medium in which computer-executable instructions are stored, and the computer-executable instructions, when executed by a processor, cause implementation of the comment sharing method as described the first aspect and various possible designs of the first aspect above.
In a fifth aspect, according to one or more embodiments, there is provided a computer program product, including computer instructions, which, when executed by a processor, implement the comment sharing method as described the first aspect and various possible designs of the first aspect above.
The above description is only the preferred embodiment of the present disclosure and the explanation of the applied technical principles. Those skilled in the art should understand that the disclosure scope involved in this disclosure is not limited to the technical solution formed by the specific combination of the above technical features, but also covers other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features can be mutually replaced with the technical features with similar functions disclosed in this disclosure (but not limited to).
Furthermore, although the operations are depicted in a particular order, this should not be understood as requiring these operations to be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be beneficial. Similarly, although the above discussion contains a number of specific implementation details, these should not be interpreted as limitations on the scope of the present disclosure. Some features described in the context of separate embodiments can also be implemented in a single embodiment in combination. On the contrary, various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.
Although the subject matter has been described in language specific to structural features and/or logical acts of methods, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. On the contrary, the specific features and actions described above are only exemplary forms of implementing the claims.
Number | Date | Country | Kind |
---|---|---|---|
202111204212.8 | Oct 2021 | CN | national |