CN107040457B - Instant messaging method and device - Google Patents

Instant messaging method and device Download PDF

Info

Publication number
CN107040457B
CN107040457B CN201710471172.0A CN201710471172A CN107040457B CN 107040457 B CN107040457 B CN 107040457B CN 201710471172 A CN201710471172 A CN 201710471172A CN 107040457 B CN107040457 B CN 107040457B
Authority
CN
China
Prior art keywords
shared object
target area
instant messaging
chat
area
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
Application number
CN201710471172.0A
Other languages
Chinese (zh)
Other versions
CN107040457A (en
Inventor
朱洪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710471172.0A priority Critical patent/CN107040457B/en
Publication of CN107040457A publication Critical patent/CN107040457A/en
Application granted granted Critical
Publication of CN107040457B publication Critical patent/CN107040457B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Abstract

The invention provides an instant messaging method and a device, wherein the method comprises the following steps: acquiring a shared object aiming at the current instant messaging session, and sharing the shared object to other terminals in the current instant messaging session; if a first target area for the shared object and a sending instruction of first chat information for the first target area are detected, acquiring first coordinate information of the first target area in the shared object; sending the first coordinate information and the first chat information to other terminals in the current instant messaging session; if second coordinate information and second chat information aiming at the shared object from other terminals are received, determining a second target area in the shared object according to the second coordinate information; and marking and displaying the second target area on the displayed shared object on the session interface, and displaying the second chat content on the shared object. The invention can transmit the shared object and the chat content together, thereby improving the chat efficiency of instant messaging.

Description

Instant messaging method and device
Technical Field
The present invention relates to the field of instant messaging technologies, and in particular, to an instant messaging method and an instant messaging device.
Background
An Instant messaging service (IM) is a communication service based on the internet, and generally mainly implements an Instant messaging function on the internet. The instant messaging tool refers to software for realizing network instant messaging service, and can also be regarded as instant messaging client software.
At present, with the wide application of the instant messaging tool in the internet, people's communication demand for the instant messaging tool is increasing, for example, when a user uses the instant messaging tool to chat, it is also desirable to add data of other application programs, such as pictures, links, etc., to the chat content.
Although the instant messaging tool in the prior art basically realizes the function of sharing data of other application programs as chat contents, the data from other application programs and the chat contents sent by the user by using the instant messaging tool are independent when being sent and received in a message mode, and cannot be integrated for communication.
In practical use, when people use an instant messaging tool to communicate with objects such as pictures and links, the communicated content is often closely related to specific content (for example, content in a certain area) in the objects, and then an independent transmission mode for the objects and chat content (for example, text and voice forms) in the related art will cause that users need to explain the chat content in detail, so that the information input amount is increased, and the problem of low chat efficiency is caused.
Disclosure of Invention
The invention provides an instant messaging method and an instant messaging device, which aim to solve the problem of low chat efficiency caused by independent transmission of a shared object and chat contents by an instant messaging method in the related art.
In order to solve the above problem, according to an aspect of the present invention, the present invention discloses an instant messaging method applied to a first terminal, comprising:
acquiring a shared object aiming at the current instant messaging session, and sharing the shared object to other terminals in the current instant messaging session, wherein the shared object is displayed on a session interface of the current instant messaging session;
if a first target area for the shared object and a sending instruction of first chat information for the first target area are detected, acquiring first coordinate information of the first target area in the shared object, wherein the first target area is an area selected by a user in the shared object;
sending the first coordinate information and the first chat information to other terminals in the current instant messaging session;
if second coordinate information and second chat information aiming at the shared object from other terminals are received, determining a second target area in the shared object according to the second coordinate information;
and marking and displaying the second target area on the shared object displayed on the session interface, and displaying the second chat content on the shared object, wherein the second chat content points to the marked second target area.
Optionally, the shared object includes at least one of:
pictures, computer animations, documents, videos, codes.
Optionally, when the shared object is a document, if a sending instruction of a first target area for the document and first chat information for the first target area is detected, the method further includes:
acquiring the page number of the first target area in the shared object;
and sending the page number to other terminals in the current instant messaging session.
Optionally, when the shared object is a video, if a first target area for the video and a sending instruction of first chat information for the first target area are detected, the method further includes:
judging whether the first target area is a first sub-area or a second sub-area, wherein the first sub-area is an area selected by a user in a video frame in the video, and the second sub-area is an area automatically identified by a system in a sub-video selected by the user in the video;
if the first target area is the first sub-area, acquiring a time point of a video frame where the first target area is located in the video;
sending the time point to other terminals in the current instant messaging session;
if the first target area is the second sub-area, acquiring a time starting point and a time ending point of a section of sub-video selected by the user in the video;
and sending the time starting point and the time ending point to other terminals in the current instant messaging session.
Optionally, when the shared object is a code, if a first target area for the code and a sending instruction of first chat information for the first target area are detected, the method further includes:
acquiring a line number and a column number of the first target area in the code;
and sending the line number and the column number to other terminals in the current instant messaging session.
According to another aspect of the present invention, the present invention further discloses an instant messaging method, applied to a first terminal, wherein the method replaces the area in any one of the above methods with the position, replaces the first target area with the first target position, and replaces the second target area with the second target position.
According to another aspect of the present invention, the present invention also discloses an instant messaging device, applied to a first terminal, comprising:
the sharing module is used for acquiring a shared object aiming at the current instant messaging session and sharing the shared object to other terminals in the current instant messaging session, wherein the shared object is displayed on a session interface of the current instant messaging session;
an obtaining module, configured to obtain first coordinate information of a first target area in the shared object if a first target area for the shared object and a sending instruction of first chat information for the first target area are detected, where the first target area is an area selected by a user in the shared object;
the sending module is used for sending the first coordinate information and the first chat information to other terminals in the current instant messaging session;
a determining module, configured to determine a second target area in the shared object according to second coordinate information if second coordinate information and second chat information for the shared object are received from the other terminal;
and the display module is used for marking and displaying the second target area on the shared object displayed on the session interface and displaying the second chat content on the shared object, wherein the second chat content points to the marked second target area.
Optionally, the shared object includes at least one of:
pictures, computer animations, documents, videos, codes.
Optionally, the apparatus further comprises:
a page number obtaining module, configured to obtain, when the shared object is a document, a page number of the first target area in the shared object;
and the page number sending module is used for sending the page number to other terminals in the current instant messaging session.
Optionally, the apparatus further comprises:
a determining module, configured to determine, when the shared object is a video, whether the first target region is a first sub-region or a second sub-region, where the first sub-region is a region selected by a user in one video frame in the video, and the second sub-region is a region automatically identified by a system in a section of sub-video selected by the user in the video;
a first time point obtaining module, configured to obtain a time point of a video frame in which the first target region is located in the video if the first target region is the first sub-region;
a first time point sending module, configured to send the time point to other terminals in the current instant messaging session;
a second time point obtaining module, configured to obtain a time start point and a time end point of a segment of sub-video selected by the user in the video if the first target area is the second sub-area;
and the second time point sending module is used for sending the time starting point and the time ending point to other terminals in the current instant messaging session.
Optionally, the apparatus further comprises:
a line number and column number obtaining module, configured to obtain, when the shared object is a code, a line number and a column number of the first target area in the code;
and the line number and column number sending module is used for sending the line number and the column number to other terminals in the current instant messaging session.
According to another aspect of the present invention, the present invention further discloses an instant messaging device, which is applied to a first terminal, and the instant messaging device replaces the area in any one of the above devices with the position, the first target area with the first target position, and the second target area with the second target position.
Compared with the prior art, the invention has the following advantages:
the embodiment of the invention can share and display the shared object in the instant communication session to the chat interface of each terminal in the session, and can enable any terminal in the session to select the area of the shared object and directly act on the shared object of the chat interface of each terminal in the session aiming at the chat content of the area, thereby not only realizing the simultaneous transmission of the chat content of a certain part of the shared object and the coordinate of the part, but also enabling the chat content to be closely related to the corresponding selected area to be displayed on the shared object in each chat interface without specifically describing the selected area in the chat content, so that the chat mode is more visual, and the chat efficiency is improved.
In addition, the embodiment of the invention can send other positioning information such as page numbers and the like which determine the position of the first target area or the second target area to other terminals aiming at different shared objects, thereby facilitating the positioning display of the first target area and improving the communication efficiency of the instant communication system.
Drawings
FIG. 1 is a flow chart of the steps of an embodiment of an instant messaging method of the present invention;
FIG. 2 is a schematic diagram illustrating a display of a shared picture in an instant messaging method according to the present invention;
FIG. 3 is a flow chart of steps in another instant messaging method embodiment of the present invention;
fig. 4 is a block diagram of an instant messaging device according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an instant messaging method according to the present invention is shown, and applied to a first terminal, the method specifically includes the following steps:
step 101, obtaining a shared object aiming at a current instant messaging session, and sharing the shared object to other terminals in the current instant messaging session;
when more than two terminals form the current instant messaging session, each terminal can chat on one object, and thus, one terminal in the session needs to upload one object needing shared chat, so that the embodiment of the invention can obtain the shared object and share the shared object to the chat interface of each other terminal in the session, that is, the shared object can be displayed on the corresponding session interface of each terminal in the current instant messaging session, and thus, all chat parties can see the shared object on the respective chat interfaces.
Step 102, if a first target area for the shared object and a sending instruction of first chat information for the first target area are detected, acquiring first coordinate information of the first target area in the shared object;
wherein, the sending instruction is for the first target area and the corresponding first chat information.
103, sending the first coordinate information and the first chat information to other terminals in the current instant messaging session;
for example, if the sharing object is a picture as shown in fig. 2, and there is a character in the picture, the chat content of each terminal can be developed based on each part of the picture. If the first terminal wants to chat the face in the picture, the first face region 21 (i.e. the first target region) of the displayed picture can be selected in the chat interface, and the chat information for the first face region 21 is edited in the text edit box of the instant messaging software, and after the user clicks the send button, the embodiment of the present invention can detect the first face region 21 for the picture and the send instruction of the chat information for the first face region 21, so that the embodiment of the present invention can obtain the coordinate information of the selected first face region 21, and send the coordinate information together with the chat information to other terminals in the session.
When the other terminal receives the coordinate information and the chat information, the first target area and the first chat content are marked on the picture in the chat interface of each terminal in the current chat session in a manner similar to steps 104 and 105, and the first chat content is displayed.
For example, as shown in FIG. 2, the displayed chat content 22 is "she is beautiful! ".
Step 104, if second coordinate information and second chat information aiming at the shared object from the other terminals are received, determining a second target area in the shared object according to the second coordinate information;
and 105, performing label display on the second target area on the shared object displayed on the session interface, and displaying the second chat content on the shared object, wherein the second chat content points to the labeled second target area.
For example, the first terminal also receives coordinate information and chat information sent by other terminals (e.g., terminal 2) in the conversation and sent by aiming at the picture shown in fig. 2, then the embodiment of the present invention may determine the target area selected by the user of the terminal 2 in the picture according to the coordinate information, for example, the target area selected by the terminal 2 is the second face area 23, then the embodiment of the present invention may label the second face area 23 on the picture shown in fig. 2 displayed on the conversation interface in a sharing manner (for example, in a manner of a label box), and at the same time, may also display chat content 24 (here, "who is?") sent by the terminal 2, where the chat content points to the second face area 23.
By means of the technical scheme of the embodiment of the invention, the sharing object in the instant messaging session is shared and displayed to the chat interface of each terminal in the session, and the area selection of the sharing object by any one terminal in the session and the display of the chat content aiming at the area can be directly acted on the sharing object of the chat interface of each terminal in the session, so that the chat content aiming at a part of the sharing object and the coordinate of the part can be simultaneously sent, the chat content and the corresponding selected area can be closely related and displayed on the sharing object in each chat interface, the selected area does not need to be specifically described in the chat content, the chat mode is more intuitive, and the chat efficiency is improved.
In one embodiment, the shared object includes at least one of: pictures, computer animations, documents, videos, codes.
In one embodiment, when the shared object is a computer animation (i.e., a graphic generated by a computer, not a picture taken by a camera or the like) the instant messaging method for the computer animation is the same as the implementation method described with respect to fig. 2 in the above embodiment, i.e., the instant messaging method in which the shared object is a picture.
For example, when the current instant messaging session is a session in a game, a plurality of game parties can perform instant messaging in the session, for example, a player can perform chatting during the game process based on a played computer animation game, so that the computer animation game forms a shared object of the current session. Then, during the game process, the user needs to communicate with the current game scene according to the game progress, for example, how the teammates operate the game, and at this time, the player at the first terminal can select or point to a certain target area (for example, an outline of a certain object) on the interface of the computer animation game (for example, CS game), and then send chat information to the selected target area, so that another player in the session can see the target area selected by the other party and the chat information to the area from the game interface, thereby facilitating the next game operation according to the chat information, for example, listening to the command of the player who sends the information to advance from the direction of the selected area to match the teammates with the battles.
It should be noted that the current instant messaging session described in the embodiment of the present invention may be a session of any type of application, and the present invention is not particularly limited to the type of application to which the session belongs, and may be, for example, a game class, a science and education class, a social class, and the like.
In an embodiment, when the shared object is a document, if a sending instruction of a first target area for the document and a first chat message for the first target area is detected, the method according to an embodiment of the present invention not only performs step 102, but also includes: acquiring the page number of the first target area in the shared object (the execution sequence of the step and the step 102 is not limited); and sending the page number to other terminals in the current instant messaging session (the step and the step 103 may be executed simultaneously or sequentially, and the execution sequence is not limited).
For example, when the object shared by the users is a document (e.g., in the form of ppt, doc, pdf, HTML, etc.), chat parties may chat based on the document, and then the users may turn pages of the document to a certain page and select a text content (i.e., the first target area) for the page, and then input a text or voice comment (i.e., the first chat content) to send, where the embodiment of the present invention needs to acquire a page number of the selected text content in the document, and send the page number, together with the coordinate information of the text content selected in step 102 and the added text or voice comment content, to other terminals.
Similarly, when other terminals send the document-based shared information, the method according to the embodiment of the present invention correspondingly further includes: the first terminal receives the page number, searches a document of a corresponding page in the shared document according to the page number, determines a second target area in the document of the page according to the received coordinate information, marks the second target area on the document of the page number according to the step 105, and displays second chat content pointing to the second target area.
Optionally, in another embodiment, when the shared object is a video, if a sending instruction of a first target area for the video and first chat information for the first target area is detected, the method according to the embodiment of the present invention not only performs step 102, but also includes:
s11, determining whether the first target region is a first sub-region or a second sub-region, where the first sub-region is a region selected by a user in a video frame of the video, and the second sub-region is a region automatically recognized by a system in a sub-video selected by the user in the video (for example, a region automatically recognized by the system according to a predetermined algorithm, where the predetermined algorithm may be a recognition algorithm for an object such as a face recognition algorithm);
s12, if the first target area is the first sub-area, acquiring a time point of a video frame where the first target area is located in the video;
s13, sending the time point to other terminals in the current instant messaging session;
s14, if the first target area is the second sub-area, acquiring a time start point and a time end point of a sub-video (the sub-video is a part of a video with continuous time captured from a shared video) selected by the user in the video;
s15, sending the time start point and the time end point to other terminals in the current instant messaging session (step S15 and step S103 may be executed simultaneously or sequentially, and the execution sequence is not limited).
The execution sequence between steps S11-S14 and step 102 is not limited.
That is, when the sharing object is a shared video, in the information sharing, not only the coordinate information and the chat content of the selected area need to be sent, but also the time point of the video frame in which the selected area is located in the video or the time start point and the time end point of a segment of video in which the area automatically selected by the system is located need to be sent to other end points for sharing.
Similarly, when other terminals send the video-based sharing information, the method according to the embodiment of the present invention correspondingly further includes: the first terminal receives the time starting point and the time ending point of the single time point or the section of video, searches a corresponding video frame or a section of sub-video in the shared video according to the time starting point and the time ending point of the single time point or the section of video, determines a second target area in the video frame or the section of sub-video according to the received coordinate information, marks the second target area on the video frame or the section of sub-video according to the step 105, and displays second chat content pointing to the second target area.
Optionally, in another embodiment, when the shared object is a code, if a first target area for the code and a sending instruction of first chat information for the first target area are detected, the method according to the embodiment of the present invention not only performs step 102, but also includes: acquiring the line number and the column number of the first target area in the code (the execution sequence of the step and the step 102 is not limited); and sending the line number and the column number to other terminals in the current instant messaging session (the step and the step 103 may be executed simultaneously or sequentially, and the execution sequence is not limited).
For example, when the object shared by the users is a document (e.g., in the form of ppt, doc, pdf, HTML, etc.), the chat parties may chat based on the code, and then the users may select a segment of code (i.e., the first target area) for the code, and then input text or voice comments (i.e., the first chat content) for transmission, in this case, the embodiment of the present invention needs to obtain the line number and the column number of the selected segment of code in the code, and transmit the line number and the column number, the coordinate information of the selected segment of code, and the added text or voice comment content to other terminals, where the line number and the column number of the selected segment of code may replace the first coordinate information or the second coordinate information mentioned in the above embodiments.
Similarly, when another terminal sends the shared information based on one code, the method according to the embodiment of the present invention further includes: the first terminal receives the line number and the column number, searches a corresponding segment of code in the shared code according to the line number and the column number, labels the selected segment of code in the corresponding line number and column number of the segment of code in the second target area (i.e. a segment of code) according to the step 105, and displays the second chat content pointing to the second target area.
In addition, optionally, in an embodiment, the method according to an embodiment of the present invention may further replace the area, the first target area, and the second target area in any one of the above embodiments with a position, a first target position, and a second target position.
That is, the part for chat selected by the user may be not only one area but also one location.
The instant messaging method according to the embodiment of the present invention is described below by taking a shared object as an example, where the instant messaging method is applied to a first terminal, and with reference to fig. 3, the method specifically includes the following steps:
step 201, obtaining a shared object for a current instant messaging session, and sharing the shared object to other terminals in the current instant messaging session;
the shared object is taken as an example of a code, after a current instant messaging session is formed by more than two terminals, each terminal can chat on one code, and thus, one terminal in the session needs to upload one code needing to share the chat, so that the embodiment of the invention can obtain the code and share the code into a chat interface of each other terminal in the session, that is, the code can be displayed on a corresponding session interface of each terminal in the current instant messaging session, and thus, all chat parties can see the code on respective chat interfaces.
Step 202, if a first target position for the shared object and a sending instruction of first chat information for the first target position are detected, acquiring first coordinate information of the first target position in the shared object;
wherein the sending instruction is for the first target location and the corresponding first chat information.
Step 203, sending the first coordinate information and the first chat information to other terminals in the current instant messaging session;
here, the shared object is a code, and the chatting party chats about the code or the code, and the chatting contents of the respective terminals may be developed based on the positions of the respective characters in the code. If the first terminal wants to chat a certain character in the piece of code, the position of the certain character of the displayed piece of code can be clicked and selected in the chat interface, the chat information aiming at the character of the position is edited in the text editing frame of the instant messaging software, and after a user clicks a sending button, the selected position aiming at the piece of code and a sending instruction aiming at the chat information of the selected position can be detected, so that the coordinate information of the selected position can be obtained, and the coordinate information and the chat information are sent to other terminals in the conversation.
When the other terminal receives the coordinate information and the chat information, the first target location and the first chat content are labeled in the code (i.e. labeling of a character selected by the user is implemented) in the chat interface of each terminal in the current chat session in a manner similar to steps 204 and 205, and the first chat content is displayed.
For example, the displayed chat content is "this character error".
Step 204, if second coordinate information and second chat information aiming at the shared object from the other terminals are received, determining a second target position in the shared object according to the second coordinate information;
step 205, displaying the second target location on the shared object displayed on the session interface in an annotated manner, and displaying the second chat content on the shared object, wherein the second chat content points to the annotated second target location.
For example, the first terminal also receives coordinate information and chat information sent by other terminals (e.g., terminal 2) in the session for the piece of code, then the embodiment of the present invention may determine the target position selected by the user of terminal 2 in the piece of code according to the coordinate information, for example, the target position selected by terminal 2 is a position where another character is located in the code, then the embodiment of the present invention may share and display the position where the another character is located in the piece of code displayed on the session interface (e.g., in the form of a label box), and at the same time, may also display the chat content sent by terminal 2, where the chat content points to the another character.
By means of the technical scheme of the embodiment of the invention, the chat tool can be deeply integrated and cooperated with other objects (such as pictures, documents, codes, videos and the like) by introducing the object-based shared chat, so that a user does not need to perform detailed text description on a part of the shared object pointed by chat when editing chat content, only needs to select the part at a certain position of the shared object, the edited chat content is pure chat information, and does not need to contain information of the explanation, and the chat efficiency is greatly improved.
In addition, it should be noted that, as for the instant messaging method for performing chat of a shared object in the foregoing other embodiments with respect to a certain target area selected by a user, the instant messaging method is also applicable to selecting a certain location in the embodiments of the present invention to perform chat.
That is, an embodiment of the present invention further provides an instant messaging method, which is applied to a first terminal, where the method may be the method described in any of the above embodiments, where an area in the method is replaced with a position, a first target area is replaced with a first target position, and a second target area is replaced with a second target position.
In summary, the embodiment of the present invention introduces the object-based shared chat, and can deeply integrate and cooperate the chat tool with other objects (such as pictures, documents, codes, videos, and the like), so that when editing the chat content, the user does not need to perform detailed text description on a certain part of the shared object pointed by the chat, and only needs to select the shared object, and the edited chat content is pure chat information, and does not need to include information of the explanation, thereby greatly improving the chat efficiency.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Corresponding to the method provided by the embodiment of the present invention, referring to fig. 4, a block diagram of an instant messaging device according to an embodiment of the present invention is shown, which is applied to a first terminal, and specifically includes the following modules:
the sharing module 31 is configured to acquire a shared object for a current instant messaging session, and share the shared object to other terminals in the current instant messaging session, where the shared object is displayed on a session interface of the current instant messaging session;
an obtaining module 32, configured to obtain first coordinate information of a first target area in the shared object if a first target area for the shared object and a sending instruction of first chat information for the first target area are detected, where the first target area is an area selected by a user in the shared object;
a sending module 33, configured to send the first coordinate information and the first chat information to other terminals in the current instant messaging session;
a determining module 34, configured to determine a second target area in the shared object according to second coordinate information if second coordinate information and second chat information for the shared object are received from the other terminals;
a display module 35, configured to perform label display on the shared object displayed on the session interface to the second target area, and display the second chat content on the shared object, where the second chat content points to the labeled second target area.
Optionally, the shared object includes at least one of:
pictures, computer animations, documents, videos, codes.
Optionally, the apparatus further comprises:
a page number obtaining module, configured to obtain, when the shared object is a document, a page number of the first target area in the shared object;
and the page number sending module is used for sending the page number to other terminals in the current instant messaging session.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the first target area is a first sub-area or a second sub-area, wherein the first sub-area is an area selected by a user in one video frame in the video, and the second sub-area is an area automatically identified by a system in a section of sub-video selected by the user in the video;
a first time point obtaining module, configured to obtain a time point of a video frame in which the first target region is located in the video if the first target region is the first sub-region;
a first time point sending module, configured to send the time point to other terminals in the current instant messaging session;
a second time point obtaining module, configured to obtain a time start point and a time end point of a segment of sub-video selected by the user in the video if the first target area is the second sub-area;
and the second time point sending module is used for sending the time starting point and the time ending point to other terminals in the current instant messaging session.
Optionally, the apparatus further comprises:
a line number and column number obtaining module, configured to obtain, when the shared object is a code, a line number and a column number of the first target area in the code;
and the line number and column number sending module is used for sending the line number and the column number to other terminals in the current instant messaging session.
In addition, an embodiment of the present invention further provides an instant messaging device, which is applied to a first terminal, where the device may be the device according to any of the above embodiments, where a region in the device is replaced with a position, a first target region is replaced with a first target position, and a second target region is replaced with a second target position.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The instant messaging method and the instant messaging device provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (4)

1. An instant messaging method is applied to a first terminal, and is characterized by comprising the following steps:
acquiring a shared object aiming at the current instant messaging session, and sharing the shared object to other terminals in the current instant messaging session, wherein the shared object is displayed on a session interface of the current instant messaging session;
if a first target area for the shared object and a sending instruction of first chat information for the first target area are detected, acquiring first coordinate information of the first target area in the shared object, wherein the first target area is an area selected by a user in the shared object;
sending the first coordinate information and the first chat information to other terminals in the current instant messaging session;
if second coordinate information and second chat information aiming at the shared object from other terminals are received, determining a second target area in the shared object according to the second coordinate information;
marking and displaying the second target area on the shared object displayed on the session interface, and displaying the second chat content on the shared object, wherein the second chat content points to the marked second target area;
when the shared object is a document, if a sending instruction of a first target area for the document and first chat information for the first target area is detected, the method further includes:
acquiring the page number of the first target area in the shared object;
sending the page number to other terminals in the current instant messaging session;
when the shared object is a video, if a first target area for the video and a sending instruction of first chat information for the first target area are detected, the method further includes:
judging whether the first target area is a first sub-area or a second sub-area, wherein the first sub-area is an area selected by a user in a video frame in the video, and the second sub-area is an area automatically identified by a system in a sub-video selected by the user in the video;
if the first target area is the first sub-area, acquiring a time point of a video frame where the first target area is located in the video;
sending the time point to other terminals in the current instant messaging session;
if the first target area is the second sub-area, acquiring a time starting point and a time ending point of a section of sub-video selected by the user in the video;
sending the time starting point and the time ending point to other terminals in the current instant messaging session;
when the shared object is a code, if a first target area for the code and a sending instruction of first chat information for the first target area are detected, the method further includes:
acquiring a line number and a column number of the first target area in the code;
and sending the line number and the column number to other terminals in the current instant messaging session.
2. The method of claim 1, wherein the region is replaced with a location, the first target region is replaced with a first target location, and the second target region is replaced with a second target location.
3. An instant messaging device applied to a first terminal, comprising:
the sharing module is used for acquiring a shared object aiming at the current instant messaging session and sharing the shared object to other terminals in the current instant messaging session, wherein the shared object is displayed on a session interface of the current instant messaging session;
an obtaining module, configured to obtain first coordinate information of a first target area in the shared object if a first target area for the shared object and a sending instruction of first chat information for the first target area are detected, where the first target area is an area selected by a user in the shared object;
the sending module is used for sending the first coordinate information and the first chat information to other terminals in the current instant messaging session;
a determining module, configured to determine a second target area in the shared object according to second coordinate information if second coordinate information and second chat information for the shared object are received from the other terminal;
a display module, configured to perform label display on the second target area on the shared object displayed on the session interface, and display the second chat content on the shared object, where the second chat content points to the labeled second target area;
a page number obtaining module, configured to obtain, when the shared object is a document, a page number of the first target area in the shared object;
the page number sending module is used for sending the page number to other terminals in the current instant messaging session;
a determining module, configured to determine, when the shared object is a video, whether the first target region is a first sub-region or a second sub-region, where the first sub-region is a region selected by a user in one video frame in the video, and the second sub-region is a region automatically identified by a system in a section of sub-video selected by the user in the video;
a first time point obtaining module, configured to obtain a time point of a video frame in which the first target region is located in the video if the first target region is the first sub-region;
a first time point sending module, configured to send the time point to other terminals in the current instant messaging session;
a second time point obtaining module, configured to obtain a time start point and a time end point of a segment of sub-video selected by the user in the video if the first target area is the second sub-area;
a second time point sending module, configured to send the time starting point and the time ending point to other terminals in the current instant messaging session;
a line number and column number obtaining module, configured to obtain, when the shared object is a code, a line number and a column number of the first target area in the code;
and the line number and column number sending module is used for sending the line number and the column number to other terminals in the current instant messaging session.
4. The apparatus of claim 3, wherein the region is replaced with a location, the first target region is replaced with a first target location, and the second target region is replaced with a second target location.
CN201710471172.0A 2017-06-20 2017-06-20 Instant messaging method and device Active CN107040457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710471172.0A CN107040457B (en) 2017-06-20 2017-06-20 Instant messaging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710471172.0A CN107040457B (en) 2017-06-20 2017-06-20 Instant messaging method and device

Publications (2)

Publication Number Publication Date
CN107040457A CN107040457A (en) 2017-08-11
CN107040457B true CN107040457B (en) 2020-04-17

Family

ID=59541586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710471172.0A Active CN107040457B (en) 2017-06-20 2017-06-20 Instant messaging method and device

Country Status (1)

Country Link
CN (1) CN107040457B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019058B (en) * 2017-10-13 2022-12-06 腾讯科技(深圳)有限公司 Sharing method and device for file operation
US10791082B2 (en) * 2017-11-21 2020-09-29 D8AI Inc. Systems and methods for delivery and use of interactive objects
CN111324262B (en) * 2020-01-20 2022-04-29 腾讯科技(深圳)有限公司 Application interface control method, device, terminal and medium
CN113535662B (en) * 2020-07-09 2023-04-07 抖音视界有限公司 Information position indicating method and device, electronic equipment and storage medium
CN112015506B (en) * 2020-08-19 2023-08-22 北京字节跳动网络技术有限公司 Content display method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1627732A (en) * 2003-12-08 2005-06-15 腾讯科技(深圳)有限公司 Method and system of sharing application programs in instant communication system
CN101150537A (en) * 2007-10-10 2008-03-26 中国联合通信有限公司 A file sharing and control method and system for instant messaging conference
CN101163118A (en) * 2007-11-30 2008-04-16 腾讯科技(深圳)有限公司 Method and device of a plurality of IM users for real-time sharing object
WO2016044118A1 (en) * 2014-09-17 2016-03-24 Microsoft Technology Licensing, Llc Task completion across devices using a shared work space

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1627732A (en) * 2003-12-08 2005-06-15 腾讯科技(深圳)有限公司 Method and system of sharing application programs in instant communication system
CN101150537A (en) * 2007-10-10 2008-03-26 中国联合通信有限公司 A file sharing and control method and system for instant messaging conference
CN101163118A (en) * 2007-11-30 2008-04-16 腾讯科技(深圳)有限公司 Method and device of a plurality of IM users for real-time sharing object
WO2016044118A1 (en) * 2014-09-17 2016-03-24 Microsoft Technology Licensing, Llc Task completion across devices using a shared work space

Also Published As

Publication number Publication date
CN107040457A (en) 2017-08-11

Similar Documents

Publication Publication Date Title
CN107040457B (en) Instant messaging method and device
US10523626B1 (en) System and method for managing and displaying data messages
US8694586B2 (en) Maintaining corresponding relationships between chat transcripts and related chat content
JP6237386B2 (en) System, method and program for navigating video stream
CN104935497B (en) Communication session method and device
US11171893B2 (en) Methods and systems for providing virtual collaboration via network
US10154071B2 (en) Group chat with dynamic background images and content from social media
US10134194B2 (en) Marking up scenes using a wearable augmented reality device
US20150373063A1 (en) Method and apparatus for timeline-synchronized note taking during a web conference
US20150281142A1 (en) Hot Topic Pushing Method and Apparatus
CN112584086A (en) Real-time video transformation in video conferencing
US10346473B2 (en) Method and apparatus for creating a summary video
CN109446442B (en) Method and apparatus for processing information
CN109413056B (en) Method and apparatus for processing information
EP3624403A1 (en) File sending in instant messaging application
CN112929253B (en) Virtual image interaction method and device
US20190188224A1 (en) Method and apparatus for obtaining picture public opinions, computer device and storage medium
CN110019058B (en) Sharing method and device for file operation
CN111158924B (en) Content sharing method and device, electronic equipment and readable storage medium
US20160154959A1 (en) A method and system for monitoring website defacements
CN103490982B (en) Message processing method and device
CN112866092A (en) Group chat creating method and group chat creating device
US20150007054A1 (en) Capture, Store and Transmit Snapshots of Online Collaborative Sessions
CN113158094B (en) Information sharing method and device and electronic equipment
CN113965798A (en) Video information generating and displaying method, device, equipment and storage medium

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