WO2015032306A1 - Position sharing method, instant messaging client, server, and system - Google Patents

Position sharing method, instant messaging client, server, and system Download PDF

Info

Publication number
WO2015032306A1
WO2015032306A1 PCT/CN2014/085747 CN2014085747W WO2015032306A1 WO 2015032306 A1 WO2015032306 A1 WO 2015032306A1 CN 2014085747 W CN2014085747 W CN 2014085747W WO 2015032306 A1 WO2015032306 A1 WO 2015032306A1
Authority
WO
WIPO (PCT)
Prior art keywords
instant messaging
session
audio
clients
audio session
Prior art date
Application number
PCT/CN2014/085747
Other languages
French (fr)
Chinese (zh)
Inventor
杜娟
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2015032306A1 publication Critical patent/WO2015032306A1/en

Links

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/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • 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/21Monitoring or handling of messages
    • H04L51/222Monitoring or handling of messages using geographical location information, e.g. messages transmitted or received in proximity of a certain spot or area

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to the field of location sharing technologies, and in particular, to a location sharing method, an instant messaging client, a server, and a system. Background technique
  • Client A is the current location of client A when sharing location with client B as a shared requester.
  • the information will be sent to client B.
  • Client B can display the current location of client A in the map, but client B cannot simultaneously display the current location of client A and the current location of client B itself in the same map;
  • client B serves as the shared requester and shares the location with client A
  • the current location information of client B is sent to client A, and client A can display the current location of client B in the map, but the client A cannot simultaneously display the current location of client B and the current location of client A itself in the same map.
  • the existing location sharing scheme is limited to location sharing between two clients, and the location sharing belongs to one-way sharing, and the location synchronization positioning cannot be implemented for both parties that perform location sharing, thereby reducing the intelligence of location sharing.
  • Embodiments of the present invention provide a location sharing method, an instant messaging client, a server, and a system, location sharing between two or more instant messaging clients, and enabling location synchronization for each instant messaging client that performs location sharing. Show, enhance the intelligence of location sharing.
  • a first aspect of the present invention provides a location sharing method, which may include:
  • the location information of each instant messaging client in the at least two instant messaging clients is displayed in a map.
  • a second aspect of the present invention provides another location sharing method, which may include: Obtaining location information of each instant messaging client in the at least two instant messaging clients when at least two instant messaging clients perform location sharing;
  • Each instant messaging client displays location information of each instant messaging client in the at least two instant messaging clients in a map.
  • a third aspect of the present invention provides an instant messaging client, which may include:
  • a location obtaining module configured to acquire location information of each instant messaging client in the at least two instant messaging clients when the at least two instant messaging clients perform location sharing;
  • a location sharing module configured to display location information of each of the at least two instant messaging clients in the map.
  • a fourth aspect of the present invention provides a server, which may include:
  • a location obtaining module configured to acquire location information of each instant messaging client in the at least two instant messaging clients when the at least two instant messaging clients perform location sharing;
  • a location sharing module configured to share location information of each of the at least two instant messaging clients to each of the at least two instant messaging clients, so that the at least two Each instant messaging client in the instant messaging client displays location information of each instant messaging client in the at least two instant messaging clients in a map.
  • a fifth aspect of the present invention provides a location sharing system, including a server and at least two instant messaging clients, wherein the server is the server provided by the fourth aspect, and the instant messaging client is provided by the third aspect. Instant messaging client.
  • FIG. 1 is a flowchart of a location sharing method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another location sharing method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of still another method for location sharing according to an embodiment of the present invention.
  • FIG. 5a is a schematic diagram of a location sharing process according to an embodiment of the present invention.
  • FIG. 5b is another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • FIG. 5c is still another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • FIG. 5 is still another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • FIG. 5e is still another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • FIG. 5f is still another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • FIG. 5g is still another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • FIG. 5h is still another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • FIG. 5 is still another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an instant messaging client according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another instant messaging client according to an embodiment of the present invention
  • FIG. 8 is a schematic structural diagram of a location sharing module of an instant messaging client according to an embodiment of the present invention
  • FIG. 9 is an instant messaging according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of another server according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a session management module of a server according to an embodiment of the present invention
  • FIG. 13 is a schematic structural diagram of a location sharing system according to an embodiment of the present invention. detailed description
  • the instant messaging client can be installed and run in the terminal device, and the terminal device can include, but is not limited to: a tablet computer, a mobile phone, a PDA (Personal Digital Assistant), an e-reader, a laptop computer. Smart devices such as smart TVs and car terminals.
  • FIG. 1 is a flowchart of a location sharing method according to an embodiment of the present invention.
  • the process of the location sharing method shown in this embodiment is illustrated by any instant messaging client side that performs location sharing.
  • the method may include the following steps S101 to S102.
  • Step S101 When at least two instant messaging clients perform location sharing, obtain location information of each instant messaging client in the at least two instant messaging clients.
  • the execution body of this embodiment may be any one of the at least two instant messaging clients that perform location sharing.
  • the instant messaging client performing this step can be used as a location sharing invitee or as a location sharing invitee.
  • two instant messaging clients are instant messaging client A and instant messaging client B
  • instant messaging client A can send an instant messaging client to the server in an instant messaging session with instant messaging client B.
  • the location of B shares the invitation message so that the server forwards the location sharing invitation message to the instant messaging client B.
  • the instant messaging client A receives the location sharing confirmation message returned by the instant messaging client B forwarded by the server, the instant messaging client A and the instant messaging client B can share the location.
  • the instant messaging client A or the instant messaging client B that performs location sharing can be used as the execution body of this step.
  • Instant messaging client B can be shared with instant messaging client A and instant messaging client C.
  • the instant messaging client B receives the location sharing confirmation message returned by the instant messaging client A and the instant messaging client C forwarded by the server, the instant messaging client A, the instant messaging client B and the instant messaging client C Location sharing is possible.
  • the instant messaging client A, instant messaging client B or instant messaging client C for location sharing can be used as the execution body of this step.
  • each instant messaging client in the at least two instant messaging clients can be separately activated.
  • the location based service locates the application, obtains its own location information, and reports its own location information to the server.
  • the location information of the at least two instant messaging clients is obtained from the server.
  • LBS refers to a wireless communication network such as GSM (Global System for Mobile communications) network, CDMA (Code Division Multiple Access) network, or through GPS (Global Positioning System, Global Positioning System) And other positioning technologies, obtain geographic location information, and provide services based on the geographic location information.
  • Step S102 Display location information of each instant messaging client in the at least two instant messaging clients in a map.
  • each of the at least two instant messaging clients may save the map in advance, and perform real-time or timed update on the pre-stored map through the Internet;
  • the local end directly calls the pre-stored map, and displays the location information of each instant messaging client in the at least two instant messaging clients in the map.
  • this step may call a map in the Internet in real time, that is, obtain a map from the Internet in real time, and display each instant communication in the at least two instant messaging clients in the map.
  • the location information of the client may include the following steps S201 to S208.
  • Step S201 When at least two instant messaging clients perform location sharing, obtain location information of each instant messaging client in the at least two instant messaging clients.
  • Step S201 of the embodiment reference may be made to the step S101 of the embodiment shown in FIG. 1 , and details are not described herein.
  • the identifier information may be used to uniquely identify an instant messaging client, and the identifier information may include, but is not limited to, an instant messaging account, a mobile phone number, an email account, a user image of an instant messaging client, and the like.
  • Step S203 calling the map.
  • the pre-stored map can be called from the instant messaging client executing this step; Use the map on the Internet to get maps from the Internet in real time.
  • Step S204 Display the map in the location sharing interface.
  • this step displaying the map in the location sharing interface can make the display of the map more intuitive. It can be understood that this step is an optional step, that is, after performing step S203 in this embodiment, this step can also be skipped, and step S205 is directly executed.
  • Step S205 Display, in the map, location information of each instant messaging client in the at least two instant messaging clients by using identifier information of each of the at least two instant messaging clients.
  • Steps S203 to S205 of this embodiment may be the specific thinning step of step S102 of the embodiment shown in Fig. 1.
  • Step S206 Monitor mobile information of each instant messaging client in the at least two instant messaging clients, where the mobile information includes a moving direction and a moving distance.
  • the instant messaging client of the at least two instant messaging clients can enable the sensing device to sense the mobile information of the mobile device and report the mobile information to the server; or, the instants in the at least two instant messaging clients
  • the communication client obtains its own mobile information and reports it to the server by monitoring real-time or timing changes of its own location information.
  • the mobile information of each instant messaging client in the at least two instant messaging clients may be obtained from the server for monitoring.
  • Step S207 Display, in the map, mobile information of each of the at least two instant messaging clients.
  • the location information of each instant messaging client in the at least two instant messaging clients may be updated in the map according to the mobile information of each instant messaging client in the at least two instant messaging clients. Thereby displaying the mobile information of each instant messaging client in the at least two instant messaging clients in the map.
  • Step S208 Manage an instant messaging session of the at least two instant messaging clients.
  • the instant messaging session may be: at least one of an audio session, a video session, a text transmission, and a picture transmission.
  • the at least two instant messaging clients may perform an audio session during the location sharing process.
  • this step may manage the audio session of the at least two instant messaging clients, and the specific management may include the following four aspects:
  • the audio session permission information is used to prompt that the current session resource is in an idle state, and an audio session can be performed.
  • the instant messaging client can provide an audio session function (also referred to as an intercom function) during the location sharing process, and when the user wants to use the audio session function, the audio session operation can be initiated.
  • the instant messaging client can provide an audio session button in the location sharing interface.
  • an audio session operation is initiated, and the instant messaging client can send an audio session request message to the server according to the audio session operation.
  • the audio session request message may be used to indicate that the instant messaging client that sends the audio session request message is about to perform an audio session function, and the session audio information is about to be transmitted, so that the server prepares the transmission of the session audio information, for example: checking the session resource. , allocate cache space, establish transport connections, and more.
  • the instant messaging client performing the audio session can record and upload the user's session audio information in real time, for example: Wi-Fi (Wireless Fidelity), GPRS (General Packet) Radio Service, General Packet Radio Service Technology) or 3g (3rd-Generation, 3rd Generation Mobile Communication Technology) networks transmit the session audio information to the server.
  • Wi-Fi Wireless Fidelity
  • GPRS General Packet Radio Service
  • 3g 3rd-Generation, 3rd Generation Mobile Communication Technology
  • the user may initiate a stop audio session operation. Specifically, when the user releases the audio session button on the instant messaging client, that is, stops pressing the audio session button, the audio session operation is stopped, and the instant messaging client that performs the audio session sends the message to the server according to the stop audio session operation. Indicates that the instant messaging client performing the audio session ends the audio session stop message of the audio session and stops transmitting the session audio information.
  • the audio session prompt information is output in the location sharing interface.
  • FIG. 3 is a flowchart of still another method for location sharing according to an embodiment of the present invention. The process of the location sharing method shown in this embodiment is illustrated from a server side. Referring to FIG. 3, the method may include the following steps S301 to S302.
  • Step S301 When at least two instant messaging clients perform location sharing, obtain location information of each instant messaging client in the at least two instant messaging clients.
  • any one of the at least two instant messaging clients sends a location sharing invitation message for one or more other instant messaging clients, to the one or more other instant messaging clients Forwarding the location sharing invitation message, and when receiving the location sharing confirmation message returned by the one or more other instant messaging clients, confirming that the instant messaging client that sends the location sharing invitation message and the one or more Other instant messaging clients share location.
  • two instant messaging clients are instant messaging client A and instant messaging client B.
  • Instant messaging client A can send instant messaging client B in the instant messaging session with instant messaging client B.
  • the location sharing invitation message may forward the location sharing invitation message to the instant messaging client B, and when receiving the location sharing confirmation message returned by the instant messaging client B, forward the location sharing confirmation to the instant messaging client A.
  • instant messaging client A and instant messaging client B can share the location.
  • the location sharing invitation message for the instant messaging client A and the instant messaging client C is sent in the session interface of the C instant messaging group. This step can forward the location to the instant messaging client A and the instant messaging client C. Sharing the invitation message, when receiving the location sharing confirmation message returned by the instant messaging client A and the instant messaging client C, forwarding the location sharing confirmation message to the instant messaging client B, and determining the instant messaging client A, instant Communication client B and instant messaging client C can share location.
  • each instant messaging client in the at least two instant messaging clients can be separately activated.
  • the LBS positioning application obtains its own location information and reports its own location information to the server. This step can receive the location information reported by each instant messaging client in the at least two instant messaging clients.
  • Step S302 sharing location information of each instant messaging client in the at least two instant messaging clients to each instant messaging client in the at least two instant messaging clients, so that the at least two instant messaging clients
  • Each instant messaging client in the terminal displays location information of each instant messaging client in the at least two instant messaging clients in a map.
  • FIG. 4 is a flowchart of still another location sharing method according to an embodiment of the present invention. Referring to FIG. 4, the method may include the following steps S401 to S403.
  • Step S401 When at least two instant messaging clients perform location sharing, obtain location information of each instant messaging client in the at least two instant messaging clients.
  • Step S402 sharing location information of each instant messaging client in the at least two instant messaging clients to each instant messaging client in the at least two instant messaging clients, so that the at least two instant messaging clients
  • Each instant messaging client in the terminal displays location information of each instant messaging client in the at least two instant messaging clients in a map.
  • Step S403 managing an instant messaging session of the at least two instant messaging clients.
  • the instant messaging session may be: at least one of an audio session, a video session, a text transmission, and a picture transmission.
  • the at least two instant messaging clients can perform an audio session during the location sharing process.
  • this step may manage the audio session of the at least two instant messaging clients, and the specific management may include the following two aspects: (1) When the at least two are received Determining, in the at least two instant messaging clients, any other than the instant messaging client that sends the audio session request message, when the audio session request message is sent by any one of the instant messaging clients Whether the instant messaging client is in an audio session. Determining whether any other instant messaging client other than the instant messaging client that sends the audio session request message in the at least two instant messaging clients is performing an audio session, that is, checking whether the session resource is currently being Occupied.
  • the audio session allows a message to allow an instant messaging client transmitting the audio session request message to conduct an audio session and receive session audio information transmitted by the instant messaging client conducting the audio session.
  • the audio session permission message is used to prompt the current session resource to be in an idle state, and an audio session can be performed.
  • an audio session prohibition message is returned to the instant messaging client that sent the audio session request message to prohibit the instant messaging client that sent the audio session request message from making an audio session.
  • the audio session prohibition message is used to prompt that the current session resource is occupied, and the audio session cannot be performed.
  • each instant messaging client in the at least two instant messaging clients when at least two instant messaging clients perform location sharing, each instant messaging client in the at least two instant messaging clients is obtained. Position information of the terminal, and displaying location information of each instant messaging client in the at least two instant messaging clients in the map, thereby enabling location sharing between two or more instant messaging clients, and being able to perform The location sharing of each instant messaging client realizes the position synchronization display, which improves the intelligence of location sharing.
  • the location sharing method provided by the embodiment of the present invention will be described below with reference to FIG. 5 in a specific example. As shown in FIG. 5, the location sharing between two instant messaging clients is used as an example. The location sharing between two or more instant messaging clients may be similar to the case in this embodiment, and details are not described herein again.
  • the two instant messaging clients for location sharing are instant messaging client A and instant messaging client B, respectively corresponding to user a and user b.
  • the identification information of the instant messaging client A is the avatar information of the user a
  • the identification information of the instant messaging client B is the avatar information of the user b.
  • FIG. 5a is a schematic diagram of a location sharing process according to an embodiment of the present invention.
  • the instant messaging client A can provide a location sharing service in the session interface between the user a and the user b.
  • Figure 5a shows the session interface between user a and user b displayed by instant messaging client A.
  • the top of the interface displays the peer (ie instant messaging client B) ID of the instant messaging session with instant messaging client A ( The "B" shown at the top of the interface as shown in Figure 5a.
  • Instant messaging client A can be in the session world shown in Figure 5a Setting the "real-time location” button in the face, the user a clicks the "real-time location” button to initiate a location sharing invitation operation for the user b, at which time the instant messaging client A can send a location sharing invitation to the instant messaging client B to the server. Message, and wait for instant messaging client B to confirm.
  • FIG. 5b is another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • a location sharing interface in the instant messaging client A is shown.
  • the location sharing interface can output a prompt message “waiting for the other party to join the real-time location”.
  • the map may also be displayed to display the location information of the instant messaging client A and the avatar information of the user a (as shown in the location sharing interface shown in FIG. 5b).
  • the top of the location sharing interface is provided with a "close” button and a "minimize” button.
  • FIG. 5c shows still another schematic diagram of the location sharing process provided by the embodiment of the present invention.
  • the instant messaging client A can minimize the location sharing interface and redisplay the session interface between the user a and the user b (as shown in FIG. 5c).
  • a prompt message "You are in real-time location sharing" in the session interface; user a can restore the location sharing interface by operating the prompt message (as shown in Figure 5b).
  • FIG. 5 is still another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • Figure 5d shows the session interface between user b and user a as shown by instant messaging client B.
  • the session interface will output a prompt message "user a initiates location sharing".
  • User b can click the prompt message or click the "real time location" button in the session interface to initiate a location sharing confirmation operation, at which time instant messaging client B returns a location sharing confirmation message to the server for the server to instant messaging client A
  • the location sharing confirmation message is forwarded, so that the instant messaging client A and the instant messaging client B can perform location sharing.
  • FIG. 5e to FIG. 5f are still further schematic diagrams of a location sharing process according to an embodiment of the present invention.
  • Figure 5e shows the location sharing interface shown by instant messaging client A
  • Figure 5f shows the location sharing interface shown by instant messaging client B.
  • the instant messaging client A receives the location sharing confirmation message returned by the instant messaging client B
  • the instant messaging client A and the instant messaging client B can share the location.
  • the instant messaging client A can obtain the location information of the instant messaging client A, the avatar information of the user a, the location information of the instant messaging client B, and the avatar information of the user b; And calling the map to display all the acquired information (such as the location sharing interface shown in Figure 5e), the location sharing interface shown in Figure 5e uses the avatar information of the user a (as shown in the left side of Figure 5e) Information) displays the location information of the instant messaging client A, and displays the location information of the instant messaging client B by using the avatar information of the user b (the male avatar information shown on the right side of FIG.
  • the instant messaging client B can obtain the location information of the instant messaging client A, the avatar information of the user a, the location information of the instant messaging client B, and the avatar information of the user b; and call the map to display all the acquired information (the location sharing as shown in FIG. 5f) Interface), in the map of the location sharing interface, the user's avatar information (as shown in the left side of FIG. 5e) is used to display the location information of the instant messaging client A, and the avatar information of the user b is used (eg The male avatar information shown on the right side of FIG. 5e) displays the location information of the instant messaging client B.
  • the instant messaging clients A and B can monitor the mobile information of the instant messaging clients A and B, and display the monitored mobile information in the map.
  • the instant messaging client A can update the location information of the instant messaging client A in real time in the map shown in FIG. 5e to display the mobile information of the instant messaging client A, and update the location information of the instant messaging client B in real time to display Instant messaging client B's mobile information.
  • the instant messaging client B can update the location information of the instant messaging client A in real time in the map shown in FIG. 5f to display the mobile information of the instant messaging client A, and update the location information of the instant messaging client B in real time to display Instant messaging client B's mobile information, thereby enabling location tracking between user a and user b.
  • FIG. 5g is still another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • Figure 5g shows the location sharing interface shown by instant messaging client A.
  • an audio session function is provided in this interface, which is the "press and hold” button shown in Figure 5g.
  • the instant messaging client A can send an audio session request message to the server according to the audio session operation.
  • the instant messaging client A can record and upload the session audio information of the user a in real time.
  • FIG. 5h is still another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • Figure 5h shows the location sharing interface shown by instant messaging client B.
  • the server will contact the instant messaging client.
  • End B returns an audio session prohibition message, indicating that the current session resource has been occupied by user a, and user b cannot initiate an audio session operation; at this time, instant messaging client B can output the prompt message shown in FIG. 5h, "the other party speaks, please be slightly beautiful. Try again.”
  • FIG. 5h shows the prompt message shown in FIG. 5h, "the other party speaks, please be slightly beautiful. Try again.”
  • FIG. 5 is another schematic diagram of a location sharing process according to an embodiment of the present invention.
  • Figure 5i shows the location sharing interface shown by instant messaging client B.
  • the user a can release the "hold and hold" button in the instant messaging client A to initiate the stop audio session operation, at which time the instant messaging client A sends a message to the server indicating that the user a ends the audio session.
  • the audio session stops the message and stops transmitting session audio information.
  • the server forwards the session audio information of the user a to the instant messaging client B, and the instant messaging user b plays the audio information of the session in real time.
  • both the instant messaging client A and the instant messaging client B can output session prompt information, which can be seen, for example, in the location shown in FIG. 5i.
  • Sharing interface The avatar information of user a in the map flashes, and the ID "A" of instant messaging client A and the time of audio playback appear in the location sharing interface.
  • the embodiment of the present invention when at least two instant messaging clients perform location sharing, acquiring location information of each instant messaging client in the at least two instant messaging clients, and Displaying location information of each instant messaging client in the at least two instant messaging clients, thereby enabling location sharing between two or more instant messaging clients, and being capable of sharing instant messaging clients for location sharing
  • the side realizes the position synchronization display, which improves the intelligence of location sharing.
  • the instant messaging client provided by the embodiment of the present invention will be described in detail below with reference to FIG. 6 to FIG. It should be noted that the instant messaging client shown in FIG. 6 to FIG. 9 may be any one of the at least two instant messaging clients that perform location sharing.
  • FIG. 6 is a schematic structural diagram of an instant messaging client according to an embodiment of the present invention.
  • the instant messaging client can include: a location acquisition module 101 and a location sharing module 102.
  • the location obtaining module 101 is configured to acquire location information of each instant messaging client in the at least two instant messaging clients when the at least two instant messaging clients perform location sharing.
  • Each of the at least two instant messaging clients can initiate an LBS positioning application to obtain its own location information, and report its own location information to the server; the location obtaining module 101 can obtain the Location information for at least two instant messaging clients.
  • the location sharing module 102 is configured to display location information of each instant messaging client in the at least two instant messaging clients in a map.
  • each of the at least two instant messaging clients can pre-store the map and update the pre-stored map in real time or periodically through the Internet; the location sharing module 102 can directly call the pre-stored map from the local end, and display the at least two instants in the map. Location information of each instant messaging client in the communication client.
  • the location sharing module 102 can call a map in the Internet in real time, that is, obtain a map from the Internet in real time, and display the at least two instant messaging clients in the map. Location information for each instant messaging client.
  • FIG. 7 is a schematic structural diagram of another instant messaging client according to an embodiment of the present invention. Referring to FIG.
  • the instant messaging client may include: a location obtaining module 101, a location sharing module 102, a mobile monitoring module 103, a mobile display module 104, and a session management module 105.
  • the structure of the location obtaining module 101 and the location sharing module 102 can be referred to the description of the embodiment shown in FIG. 6, and details are not described herein.
  • the mobile monitoring module 103 is configured to monitor mobile information of each of the at least two instant messaging clients, where the mobile information includes a moving direction and a moving distance.
  • the instant messaging client of the at least two instant messaging clients can enable the sensing device to sense the mobile information of the mobile device and report the mobile information to the server; or, the instants in the at least two instant messaging clients
  • the communication client obtains its own mobile information and reports it to the server by monitoring real-time or timing changes of its own location information.
  • the mobile monitoring module 103 may obtain, from the server, mobile information of each of the at least two instant messaging clients for monitoring.
  • the mobile display module 104 is configured to display, in the map, mobile information of each of the at least two instant messaging clients.
  • the mobile display module 104 may update, according to the mobile information of each instant messaging client in the at least two instant messaging clients, the location of each instant messaging client in the at least two instant messaging clients in the map. Information, thereby implementing display of mobile information of each of the at least two instant messaging clients in the map.
  • the session management module 105 is configured to manage instant messaging sessions of the at least two instant messaging clients.
  • the instant messaging session may be: at least one of an audio session, a video session, a text transmission, and a picture transmission.
  • the at least two instant messaging clients may perform an audio session during the location sharing process.
  • the session management module 105 can manage audio sessions of the at least two instant messaging clients.
  • FIG. 8 is a schematic structural diagram of a location sharing module of an instant messaging client according to an embodiment of the present invention.
  • the location sharing module 102 may include an identifier obtaining unit 1201, a map invoking unit 1202, a map display unit 1203, and a location display unit 1204.
  • the identifier obtaining unit 1201 is configured to acquire identification information of each instant messaging client in the at least two instant messaging clients.
  • the identifier information may be used to uniquely identify an instant messaging client, and the identifier information may include, but is not limited to, an instant messaging account, a mobile phone number, an email account, a user image of an instant messaging client, and the like.
  • the map invoking unit 1202 is used to call a map.
  • the map invoking unit 1202 can call the pre-stored map from the local end; or can call the map in the Internet, that is, obtain the map from the Internet in real time.
  • the map display unit 1203 is for displaying the map in the location sharing interface.
  • the map display unit 1203 displays a map in the location sharing interface, which makes the display of the map more intuitive. It can be understood that the map display unit 1203 is an optional unit.
  • the location display unit 1204 is configured to display, in the map, location information of each instant messaging client in the at least two instant messaging clients by using identifier information of each instant messaging client in the at least two instant messaging clients.
  • FIG. 9 is a schematic structural diagram of a session management module of an instant messaging client according to an embodiment of the present invention.
  • the instant messaging session of this embodiment is an audio session, and the session management module 105 can manage audio sessions of the at least two instant messaging clients.
  • the session management module 105 can include: a session request unit 1501, a first session management unit 1502, a session stop unit 1503, a second session management unit 1504, and a session prompting unit 1505.
  • the session requesting unit 1501 is configured to send an audio session request message to the server when detecting that the user initiates an audio session.
  • the instant messaging client can provide an audio session function (also referred to as an intercom function) during the location sharing process, and when the user wants to use the audio session function, the audio session operation can be initiated.
  • the instant messaging client may provide an audio session button in the location sharing interface, and when the user presses the audio session button, initiate an audio session operation, and the session requesting unit 1501 may according to the audio session.
  • the operation sends an audio session request message to the server.
  • the audio session request message may be used to indicate that the instant messaging client that sends the audio session request message is about to perform an audio session function, and the session audio information is about to be transmitted, so that the server prepares the transmission of the session audio information, for example: checking the session resource. , allocate cache space, establish transport connections, and more.
  • the first session management unit 1502 is configured to allow the user to perform an audio session if the audio session permission message returned by the server is received, and transmit the acquired session audio information to the server.
  • the audio session permission information is used to prompt that the current session resource is in an idle state, and an audio session can be performed.
  • the first session management unit 1502 can record and upload the user's session audio information in real time, for example: the session audio can be transmitted to the server through a network such as Wi-Fi, GPRS or 5g. information.
  • the session stop unit 1503 is configured to send an audio session stop message to the server when detecting that the user stops the audio session, so that the server forwards the session audio information to other instant messaging clients for playing.
  • the user may initiate a stop audio session operation. Specifically, when the user releases the audio session button on the instant messaging client, that is, stops pressing the audio session button, the audio session operation is stopped, and the session stop unit 1503 sends an audio session to the server according to the stop audio session operation.
  • the stop message indicates that the instant messaging client conducting the audio session ends the audio session and stops transmitting the session audio information.
  • the second session management unit 1504 if receiving the audio session prohibition message returned by the server, prohibits the user from performing an audio session, and outputs prompt information for prohibiting the audio session.
  • the audio session prohibition message is used to prompt that the current session resource is occupied, and the audio session cannot be performed.
  • the session prompting unit 1505 is configured to output audio session prompt information in the location sharing interface when any one of the at least two instant messaging clients performs an audio session.
  • each instant messaging client in the at least two instant messaging clients when at least two instant messaging clients perform location sharing, each instant messaging client in the at least two instant messaging clients is obtained. Position information of the terminal, and displaying location information of each instant messaging client in the at least two instant messaging clients in the map, thereby enabling location sharing between two or more instant messaging clients, and being able to perform Each instant messaging client shared by the location realizes position synchronization display. Improve the intelligence of location sharing.
  • the server provided by the embodiment of the present invention will be described in detail below with reference to FIG. 10 to FIG.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention. Referring to FIG. 10, the server may include: a location acquisition module 201 and a location sharing module 202.
  • the location obtaining module 201 is configured to acquire location information of each instant messaging client in the at least two instant messaging clients when the at least two instant messaging clients perform location sharing.
  • Each of the at least two instant messaging clients can initiate an LBS positioning application to obtain the location information of the LBS, and report the location information of the user to the server.
  • the location obtaining module 201 can receive the at least two Location information reported by each instant messaging client in the instant messaging client.
  • the location sharing module 202 is configured to share location information of each of the at least two instant messaging clients to each of the at least two instant messaging clients, so that the at least two Each instant messaging client in the instant messaging client displays location information of each instant messaging client in the at least two instant messaging clients in a map.
  • FIG. 11 is a schematic structural diagram of another server according to an embodiment of the present invention. Referring to FIG. 11, the server may include: a location acquisition module 201, a location sharing module 202, and a session management module 203.
  • the location obtaining module 201 and the location sharing module 202 of this embodiment may refer to the location obtaining module 201 and the location sharing module 202 of the embodiment shown in FIG. 10, and details are not described herein.
  • the session management module 203 is configured to manage the instant messaging session of the at least two instant messaging clients.
  • the instant messaging session may be: at least one of an audio session, a video session, a text transmission, and a picture transmission.
  • the at least two instant messaging clients may perform an audio session during the location sharing process.
  • the session management module 203 can manage audio sessions of the at least two instant messaging clients.
  • FIG. 12 is a schematic structural diagram of a session management module of a server according to an embodiment of the present invention.
  • the instant messaging session in this embodiment is an audio session.
  • the session management module 203 can manage audio sessions of the at least two instant messaging clients, and the session management module 203 can The judgment unit 2301, the session management unit 2302, and the audio sharing unit 2303 are included.
  • the determining unit 2301 is configured to: when receiving the audio session request message sent by any one of the at least two instant messaging clients, determine the audio of the at least two instant messaging clients Whether any other instant messaging client other than the instant messaging client of the session request message is in an audio session.
  • Determining whether any other instant messaging client other than the instant messaging client that sends the audio session request message in the at least two instant messaging clients is performing an audio session that is, checking whether the session resource is currently being Occupied.
  • the session management unit 2302 is configured to, when the determination result is no, return an audio session permission message to the instant messaging client that sends the audio session request message, to allow the instant messaging client that sends the audio session request message to perform an audio session. And receiving the session audio information transmitted by the instant messaging client that performs the audio session, and when the determination result is yes, returning an audio session prohibition message to the instant messaging client that sends the audio session request message to prohibit sending the The instant messaging client of the audio session request message makes an audio session.
  • the audio session permission message is used to prompt that the current session resource is in an idle state, and an audio session may be performed.
  • the audio session prohibition message is used to prompt that the current session resource is occupied, and the audio session cannot be performed.
  • the audio sharing unit 2303 is configured to: when receiving the audio session stop message sent by the instant messaging client that performs the audio session, forward the session audio information to the at least two instant messaging clients. Other instant messaging clients other than the instant messaging client of the audio session play.
  • FIG. 13 is a schematic structural diagram of a location sharing system according to an embodiment of the present invention.
  • the system may include a server and at least two instant messaging clients, wherein the server may be attached
  • the instant messaging client can refer to the related description of the embodiment shown in FIG. 6 to FIG. 9, and details are not described herein.
  • the side realizes the position synchronization display, which improves the intelligence of location sharing.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Embodiments of the present invention provide a position sharing method, an instant messaging client, a server, and a system. The method may comprise: when at least two instant messaging clients share a position, obtaining position information of each of the at least two instant messaging clients; and displaying the position information of each of the at least two instant messaging clients in a map. By using the present invention, a position can be shared among two or more instant messaging clients, and the position can be synchronously displayed on the instant messaging clients sharing the position, thereby improving the smartness of the position sharing.

Description

一种位置共享方法、 即时通讯客户端、 服务器及系统 技术领域  Location sharing method, instant messaging client, server and system
本发明涉及互联网技术领域, 具体涉及位置共享技术领域, 尤其涉及一种 位置共享方法、 即时通讯客户端、 服务器及系统。 背景技术  The present invention relates to the field of Internet technologies, and in particular, to the field of location sharing technologies, and in particular, to a location sharing method, an instant messaging client, a server, and a system. Background technique
随着互联网技术的发展, 位置共享技术也得到迅速发展。 现有的位置共享 方案通常发生于两个客户端之间, 且共享的位置通常是单方面的, 例如: 客户 端 A作为共享请求方与客户端 B进行位置共享时,客户端 A的当前位置信息会 发送至客户端 B, 客户端 B可在地图中显示客户端 A的当前位置, 但客户端 B 无法在同一地图中同步显示客户端 A的当前位置和客户端 B 自身的当前位置; 同理, 客户端 B作为共享请求方与客户端 A进行位置共享时, 客户端 B的当前 位置信息会发送至客户端 A, 客户端 A可在地图中显示客户端 B的当前位置, 但客户端 A无法在同一地图中同步显示客户端 B的当前位置和客户端 A自身的 当前位置。 由此可知, 现有的位置共享方案仅仅局限于两个客户端之间的位置 共享, 且位置共享属于单向共享, 无法对进行位置共享的双方实现位置同步定 位, 降低了位置共享的智能性。 发明内容  With the development of Internet technology, location sharing technology has also developed rapidly. The existing location sharing scheme usually occurs between two clients, and the shared location is usually unilateral. For example: Client A is the current location of client A when sharing location with client B as a shared requester. The information will be sent to client B. Client B can display the current location of client A in the map, but client B cannot simultaneously display the current location of client A and the current location of client B itself in the same map; When client B serves as the shared requester and shares the location with client A, the current location information of client B is sent to client A, and client A can display the current location of client B in the map, but the client A cannot simultaneously display the current location of client B and the current location of client A itself in the same map. It can be seen that the existing location sharing scheme is limited to location sharing between two clients, and the location sharing belongs to one-way sharing, and the location synchronization positioning cannot be implemented for both parties that perform location sharing, thereby reducing the intelligence of location sharing. . Summary of the invention
本发明实施例提供一种位置共享方法、 即时通讯客户端、 服务器及系统, 两个或多个即时通讯客户端之间的位置共享, 且能够对进行位置共享的各即时 通讯客户端实现位置同步显示, 提升位置共享的智能性。  Embodiments of the present invention provide a location sharing method, an instant messaging client, a server, and a system, location sharing between two or more instant messaging clients, and enabling location synchronization for each instant messaging client that performs location sharing. Show, enhance the intelligence of location sharing.
本发明第一方面提供一种位置共享方法, 可包括:  A first aspect of the present invention provides a location sharing method, which may include:
当至少两个即时通讯客户端进行位置共享时, 获取所述至少两个即时通讯 客户端中的各即时通讯客户端的位置信息;  Obtaining location information of each instant messaging client in the at least two instant messaging clients when the at least two instant messaging clients perform location sharing;
在地图中显示所述至少两个即时通讯客户端中的各即时通讯客户端的位置 信息。  The location information of each instant messaging client in the at least two instant messaging clients is displayed in a map.
本发明第二方面提供另一种位置共享方法, 可包括: 当至少两个即时通讯客户端进行位置共享时, 获取所述至少两个即时通讯 客户端中的各即时通讯客户端的位置信息; A second aspect of the present invention provides another location sharing method, which may include: Obtaining location information of each instant messaging client in the at least two instant messaging clients when at least two instant messaging clients perform location sharing;
将所述至少两个即时通讯客户端中的各即时通讯客户端的位置信息共享至 所述至少两个即时通讯客户端中的各即时通讯客户端, 以便所述至少两个即时 通讯客户端中的各即时通讯客户端在地图中显示所述至少两个即时通讯客户端 中的各即时通讯客户端的位置信息。  Sharing location information of each of the at least two instant messaging clients to each of the at least two instant messaging clients, so that the at least two instant messaging clients Each instant messaging client displays location information of each instant messaging client in the at least two instant messaging clients in a map.
本发明第三方面提供一种即时通讯客户端, 可包括:  A third aspect of the present invention provides an instant messaging client, which may include:
位置获取模块, 用于当至少两个即时通讯客户端进行位置共享时, 获取所 述至少两个即时通讯客户端中的各即时通讯客户端的位置信息;  a location obtaining module, configured to acquire location information of each instant messaging client in the at least two instant messaging clients when the at least two instant messaging clients perform location sharing;
位置共享模块, 用于在地图中显示所述至少两个即时通讯客户端中的各即 时通讯客户端的位置信息。  And a location sharing module, configured to display location information of each of the at least two instant messaging clients in the map.
本发明第四方面提供一种服务器, 可包括:  A fourth aspect of the present invention provides a server, which may include:
位置获取模块, 用于当至少两个即时通讯客户端进行位置共享时, 获取所 述至少两个即时通讯客户端中的各即时通讯客户端的位置信息;  a location obtaining module, configured to acquire location information of each instant messaging client in the at least two instant messaging clients when the at least two instant messaging clients perform location sharing;
位置共享模块, 用于将所述至少两个即时通讯客户端中的各即时通讯客户 端的位置信息共享至所述至少两个即时通讯客户端中的各即时通讯客户端, 以 便所述至少两个即时通讯客户端中的各即时通讯客户端在地图中显示所述至少 两个即时通讯客户端中的各即时通讯客户端的位置信息。  a location sharing module, configured to share location information of each of the at least two instant messaging clients to each of the at least two instant messaging clients, so that the at least two Each instant messaging client in the instant messaging client displays location information of each instant messaging client in the at least two instant messaging clients in a map.
本发明第五方面提供一种位置共享系统, 包括服务器和至少两个即时通讯 客户端, 其中, 所述服务器为上述第四方面提供的服务器, 所述即时通讯客户 端为上述第三方面提供的即时通讯客户端。  A fifth aspect of the present invention provides a location sharing system, including a server and at least two instant messaging clients, wherein the server is the server provided by the fourth aspect, and the instant messaging client is provided by the third aspect. Instant messaging client.
实施本发明实施例, 具有如下有益效果:  Embodiments of the present invention have the following beneficial effects:
本发明实施例中, 当至少两个即时通讯客户端进行位置共享时, 获取所述 至少两个即时通讯客户端中的各即时通讯客户端的位置信息, 并在地图中显示 所述至少两个即时通讯客户端中的各即时通讯客户端的位置信息, 从而能够实 现两个或多个即时通讯客户端之间的位置共享, 且能够对进行位置共享的各即 时通讯客户端实现位置同步显示, 提升了位置共享的智能性。 附图说明  In the embodiment of the present invention, when at least two instant messaging clients perform location sharing, acquiring location information of each instant messaging client in the at least two instant messaging clients, and displaying the at least two instants in a map The location information of each instant messaging client in the communication client, so that the location sharing between two or more instant messaging clients can be realized, and the position synchronization display can be realized for each instant messaging client that performs location sharing, and the position is improved. The intelligence of location sharing. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will be implemented. BRIEF DESCRIPTION OF THE DRAWINGS The drawings, which are used in the description or the description of the prior art, are briefly described. It is obvious that the drawings in the following description are only some embodiments of the present invention, and those skilled in the art do not make creative work. Further drawings can also be obtained from these drawings.
图 1为本发明实施例提供的一种位置共享方法的流程图;  FIG. 1 is a flowchart of a location sharing method according to an embodiment of the present invention;
图 2为本发明实施例提供的另一种位置共享方法的流程图;  2 is a flowchart of another location sharing method according to an embodiment of the present invention;
图 3为本发明实施例提供的又一种位置共享方法的流程图;  FIG. 3 is a flowchart of still another method for location sharing according to an embodiment of the present invention;
图 4为本发明实施例提供的又一种位置共享方法的流程图;  4 is a flowchart of still another method for location sharing according to an embodiment of the present invention;
图 5a为本发明实施例提供的位置共享过程的一个示意图;  FIG. 5a is a schematic diagram of a location sharing process according to an embodiment of the present invention; FIG.
图 5b为本发明实施例提供的位置共享过程的另一个示意图;  FIG. 5b is another schematic diagram of a location sharing process according to an embodiment of the present invention;
图 5c为本发明实施例提供的位置共享过程的又一个示意图;  FIG. 5c is still another schematic diagram of a location sharing process according to an embodiment of the present invention;
图 5d为本发明实施例提供的位置共享过程的又一个示意图;  FIG. 5 is still another schematic diagram of a location sharing process according to an embodiment of the present invention; FIG.
图 5e为本发明实施例提供的位置共享过程的又一个示意图;  FIG. 5e is still another schematic diagram of a location sharing process according to an embodiment of the present invention; FIG.
图 5f为本发明实施例提供的位置共享过程的又一个示意图;  FIG. 5f is still another schematic diagram of a location sharing process according to an embodiment of the present invention;
图 5g为本发明实施例提供的位置共享过程的又一个示意图;  FIG. 5g is still another schematic diagram of a location sharing process according to an embodiment of the present invention;
图 5h为本发明实施例提供的位置共享过程的又一个示意图;  FIG. 5h is still another schematic diagram of a location sharing process according to an embodiment of the present invention;
图 5i为本发明实施例提供的位置共享过程的又一个示意图;  FIG. 5 is still another schematic diagram of a location sharing process according to an embodiment of the present invention; FIG.
图 6为本发明实施例提供的一种即时通讯客户端的结构示意图;  6 is a schematic structural diagram of an instant messaging client according to an embodiment of the present invention;
图 7为本发明实施例提供的另一种即时通讯客户端的结构示意图; 图 8为本发明实施例提供的即时通讯客户端的位置共享模块的结构示意图; 图 9为本发明实施例提供的即时通讯客户端的会话管理模块的结构示意图; 图 10为本发明实施例提供的一种服务器的结构示意图;  FIG. 7 is a schematic structural diagram of another instant messaging client according to an embodiment of the present invention; FIG. 8 is a schematic structural diagram of a location sharing module of an instant messaging client according to an embodiment of the present invention; FIG. 9 is an instant messaging according to an embodiment of the present invention. A schematic diagram of a structure of a client's session management module; FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention;
图 11为本发明实施例提供的另一种服务器的结构示意图;  FIG. 11 is a schematic structural diagram of another server according to an embodiment of the present disclosure;
图 12为本发明实施例提供的服务器的会话管理模块的结构示意图; 图 13为本发明实施例提供的一种位置共享系统的结构示意图。 具体实施方式  FIG. 12 is a schematic structural diagram of a session management module of a server according to an embodiment of the present invention; FIG. 13 is a schematic structural diagram of a location sharing system according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 本发明实施例中, 即时通讯客户端可以安装并运行于终端设备中, 该终端 设备可以包括但不限于: 平板电脑、 手机、 PDA ( Personal Digital Assistant, 个 人数字助理)、 电子阅读器、 笔记本电脑、 智能电视、 车载终端等智能设备。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention. In the embodiment of the present invention, the instant messaging client can be installed and run in the terminal device, and the terminal device can include, but is not limited to: a tablet computer, a mobile phone, a PDA (Personal Digital Assistant), an e-reader, a laptop computer. Smart devices such as smart TVs and car terminals.
下面将结合附图 1至附图 5,对本发明实施例提供的位置共享方法进行详细 介绍。  The location sharing method provided by the embodiment of the present invention will be described in detail below with reference to FIG. 1 to FIG.
图 1 为本发明实施例提供的一种位置共享方法的流程图, 本实施例所示的 位置共享方法的流程从进行位置共享的任一即时通讯客户端侧进行阐述。 参见 图 1, 该方法可包括以下步骤 S101至步骤 S102。  FIG. 1 is a flowchart of a location sharing method according to an embodiment of the present invention. The process of the location sharing method shown in this embodiment is illustrated by any instant messaging client side that performs location sharing. Referring to FIG. 1, the method may include the following steps S101 to S102.
步骤 S101, 当至少两个即时通讯客户端进行位置共享时, 获取所述至少两 个即时通讯客户端中的各即时通讯客户端的位置信息。  Step S101: When at least two instant messaging clients perform location sharing, obtain location information of each instant messaging client in the at least two instant messaging clients.
本实施例的执行主体可以为进行位置共享的所述至少两个即时通讯客户端 中的任一个即时通讯客户端。 需要说明的是, 进行位置共享之前, 执行本步骤 的即时通讯客户端既可以作为位置共享邀请方, 也可以作为位置共享被邀请方。 例如:假设两个即时通讯客户端分别为即时通讯客户端 A和即时通讯客户端 B, 即时通讯客户端 A可以在与即时通讯客户端 B的即时通讯会话界面中向服务器 发送针对即时通讯客户端 B的位置共享邀请消息, 以便所述服务器向即时通讯 客户端 B转发所述位置共享邀请消息。 当即时通讯客户端 A接收到所述服务器 转发的即时通讯客户端 B所返回的位置共享确认消息时, 即时通讯客户端 A与 即时通讯客户端 B可以进行位置共享。 此时, 进行位置共享的即时通讯客户端 A或即时通讯客户端 B均可以作为本步骤的执行主体。 再如: 假设三个即时通 讯客户端分别为即时通讯客户端 A、 即时通讯客户端 B和即时通讯客户端 C, 即时通讯客户端 B可以在与即时通讯客户端 A和即时通讯客户端 C共属的即时 通讯群组的会话界面中向服务器发送针对即时通讯客户端 A和即时通讯客户端 C的位置共享邀请消息, 以便所述服务器向即时通讯客户端 A和即时通讯客户 端 C转发所述位置共享邀请消息。 当即时通讯客户端 B接收到所述服务器转发 的即时通讯客户端 A和即时通讯客户端 C所返回的位置共享确认消息时, 即时 通讯客户端 A、 即时通讯客户端 B和即时通讯客户端 C可以进行位置共享。 此 时, 进行位置共享的即时通讯客户端 A、 即时通讯客户端 B或即时通讯客户端 C均可以作为本步骤的执行主体。  The execution body of this embodiment may be any one of the at least two instant messaging clients that perform location sharing. It should be noted that before the location sharing, the instant messaging client performing this step can be used as a location sharing invitee or as a location sharing invitee. For example, suppose that two instant messaging clients are instant messaging client A and instant messaging client B, and instant messaging client A can send an instant messaging client to the server in an instant messaging session with instant messaging client B. The location of B shares the invitation message so that the server forwards the location sharing invitation message to the instant messaging client B. When the instant messaging client A receives the location sharing confirmation message returned by the instant messaging client B forwarded by the server, the instant messaging client A and the instant messaging client B can share the location. At this time, the instant messaging client A or the instant messaging client B that performs location sharing can be used as the execution body of this step. Another example: Assume that three instant messaging clients are instant messaging client A, instant messaging client B and instant messaging client C. Instant messaging client B can be shared with instant messaging client A and instant messaging client C. Sending a location sharing invitation message to the instant messaging client A and the instant messaging client C to the server in the session interface of the instant messaging group, so that the server forwards the message to the instant messaging client A and the instant messaging client C Location sharing invitation message. When the instant messaging client B receives the location sharing confirmation message returned by the instant messaging client A and the instant messaging client C forwarded by the server, the instant messaging client A, the instant messaging client B and the instant messaging client C Location sharing is possible. At this time, the instant messaging client A, instant messaging client B or instant messaging client C for location sharing can be used as the execution body of this step.
本步骤中, 所述至少两个即时通讯客户端中的各即时通讯客户端可分别启 动 LBS ( Location Based Services, 基于位置服务) 定位应用, 获得自身的位置 信息, 并向服务器上报自身的位置信息; 本步骤可从服务器获取所述至少两个 即时通讯客户端的位置信息。 其中, LBS指通过无线通讯网络如 GSM ( Global System for Mobile communications, 全球移动通信系统) 网络、 CDMA ( Code Division Multiple Access, 码分多址) 网络, 或者通过 GPS ( Global Positioning System, 全球定位系统)等定位技术, 获取地理位置信息, 并基于该地理位置 信息提供服务。 In this step, each instant messaging client in the at least two instant messaging clients can be separately activated. The location based service (LBS) locates the application, obtains its own location information, and reports its own location information to the server. In this step, the location information of the at least two instant messaging clients is obtained from the server. Among them, LBS refers to a wireless communication network such as GSM (Global System for Mobile communications) network, CDMA (Code Division Multiple Access) network, or through GPS (Global Positioning System, Global Positioning System) And other positioning technologies, obtain geographic location information, and provide services based on the geographic location information.
步骤 S102, 在地图中显示所述至少两个即时通讯客户端中的各即时通讯客 户端的位置信息。  Step S102: Display location information of each instant messaging client in the at least two instant messaging clients in a map.
在本步骤的一种可行的实施方式中: 所述至少两个即时通讯客户端中的各 即时通讯客户端可以预先保存地图, 并通过互联网对预存的地图进行实时或定 时更新; 本步骤可从本端直接调用预存的地图, 并在该地图中显示所述至少两 个即时通讯客户端中的各即时通讯客户端的位置信息。 在本步骤的另一种可行 的实施方式中, 本步骤可以实时调用互联网中的地图, 即实时从互联网获取地 图, 并在该地图中显示所述至少两个即时通讯客户端中的各即时通讯客户端的 位置信息。 图 2 为本发明实施例提供的另一种位置共享方法的流程图, 本实施例所示 的位置共享方法的流程从进行位置共享的任一即时通讯客户端侧进行阐述。 参 见图 2, 该方法可包括以下步骤 S201至步骤 S208。  In a feasible implementation manner of the step, each of the at least two instant messaging clients may save the map in advance, and perform real-time or timed update on the pre-stored map through the Internet; The local end directly calls the pre-stored map, and displays the location information of each instant messaging client in the at least two instant messaging clients in the map. In another feasible implementation manner of this step, this step may call a map in the Internet in real time, that is, obtain a map from the Internet in real time, and display each instant communication in the at least two instant messaging clients in the map. The location information of the client. FIG. 2 is a flowchart of another location sharing method according to an embodiment of the present invention. The process of the location sharing method shown in this embodiment is illustrated by any instant messaging client side that performs location sharing. Referring to Fig. 2, the method may include the following steps S201 to S208.
步骤 S201, 当至少两个即时通讯客户端进行位置共享时, 获取所述至少两 个即时通讯客户端中的各即时通讯客户端的位置信息。  Step S201: When at least two instant messaging clients perform location sharing, obtain location information of each instant messaging client in the at least two instant messaging clients.
本实施例的步骤 S201可以参见图 1所示实施例的步骤 S101, 在此不赘述。 步骤 S202, 获取所述至少两个即时通讯客户端中的各即时通讯客户端的标 识信息。  For the step S201 of the embodiment, reference may be made to the step S101 of the embodiment shown in FIG. 1 , and details are not described herein. Step S202: Obtain identification information of each instant messaging client in the at least two instant messaging clients.
其中, 所述标识信息可用于唯一标识一个即时通讯客户端, 该标识信息可 包括但不限于: 即时通讯账号、 手机号、 email账号、 即时通讯客户端的用户头 像, 等等。  The identifier information may be used to uniquely identify an instant messaging client, and the identifier information may include, but is not limited to, an instant messaging account, a mobile phone number, an email account, a user image of an instant messaging client, and the like.
步骤 S203, 调用地图。  Step S203, calling the map.
本步骤中, 可从执行本步骤的即时通讯客户端调用预存的地图; 也可以调 用互联网中的地图, 即实时从互联网获取地图。 In this step, the pre-stored map can be called from the instant messaging client executing this step; Use the map on the Internet to get maps from the Internet in real time.
步骤 S204, 将所述地图显示于位置共享界面中。  Step S204: Display the map in the location sharing interface.
本步骤中, 在位置共享界面中显示地图, 可以使地图的展示更为直观。 可 以理解的是, 本步骤为可选步骤, 即本实施例在执行步骤 S203之后, 也可跳过 本步骤, 直接执行步骤 S205。  In this step, displaying the map in the location sharing interface can make the display of the map more intuitive. It can be understood that this step is an optional step, that is, after performing step S203 in this embodiment, this step can also be skipped, and step S205 is directly executed.
步骤 S205, 在所述地图中釆用所述至少两个即时通讯客户端中的各即时通 讯客户端的标识信息显示所述至少两个即时通讯客户端中的各即时通讯客户端 的位置信息。  Step S205: Display, in the map, location information of each instant messaging client in the at least two instant messaging clients by using identifier information of each of the at least two instant messaging clients.
本实施例的步骤 S203至步骤 S205可以为图 1所示实施例的步骤 S102的具 体细化步骤。  Steps S203 to S205 of this embodiment may be the specific thinning step of step S102 of the embodiment shown in Fig. 1.
步骤 S206, 监测所述至少两个即时通讯客户端中的各即时通讯客户端的移 动信息, 所述移动信息包括移动方向和移动距离。  Step S206: Monitor mobile information of each instant messaging client in the at least two instant messaging clients, where the mobile information includes a moving direction and a moving distance.
其中, 所述至少两个即时通讯客户端中的各即时通讯客户端可以启用传感 装置, 感测自身的移动信息并上报至服务器; 或者, 所述至少两个即时通讯客 户端中的各即时通讯客户端通过监测自身的位置信息的实时或定时变化, 获得 自身的移动信息并上报至服务器。 本步骤可以从服务器获取所述至少两个即时 通讯客户端中的各即时通讯客户端的移动信息以进行监测。  The instant messaging client of the at least two instant messaging clients can enable the sensing device to sense the mobile information of the mobile device and report the mobile information to the server; or, the instants in the at least two instant messaging clients The communication client obtains its own mobile information and reports it to the server by monitoring real-time or timing changes of its own location information. In this step, the mobile information of each instant messaging client in the at least two instant messaging clients may be obtained from the server for monitoring.
步骤 S207, 在所述地图中显示所述至少两个即时通讯客户端中的各即时通 讯客户端的移动信息。  Step S207: Display, in the map, mobile information of each of the at least two instant messaging clients.
本步骤中, 可根据所述至少两个即时通讯客户端中的各即时通讯客户端的 移动信息, 在所述地图中更新所述至少两个即时通讯客户端中的各即时通讯客 户端的位置信息, 从而在所述地图中实现对所述至少两个即时通讯客户端中的 各即时通讯客户端的移动信息的显示。  In this step, the location information of each instant messaging client in the at least two instant messaging clients may be updated in the map according to the mobile information of each instant messaging client in the at least two instant messaging clients. Thereby displaying the mobile information of each instant messaging client in the at least two instant messaging clients in the map.
步骤 S208, 对所述至少两个即时通讯客户端的即时通讯会话进行管理。 其中, 所述即时通讯会话可以为: 音频会话、 视频会话、 文本传输和图片 传输中的至少一种。 优选地, 本发明实施例中, 所述至少两个即时通讯客户端 可以在位置共享过程中进行音频会话。 当所述即时通讯会话为音频会话时, 本 步骤可以对所述至少两个即时通讯客户端的音频会话进行管理, 具体的管理可 包括以下四个方面:  Step S208: Manage an instant messaging session of the at least two instant messaging clients. The instant messaging session may be: at least one of an audio session, a video session, a text transmission, and a picture transmission. Preferably, in the embodiment of the present invention, the at least two instant messaging clients may perform an audio session during the location sharing process. When the instant messaging session is an audio session, this step may manage the audio session of the at least two instant messaging clients, and the specific management may include the following four aspects:
(一) 当检测到用户发起音频会话时, 向所述服务器发送音频会话请求消 息; 若接收到所述服务器返回的音频会话允许消息, 则允许所述用户进行音频 会话, 并将获取的会话音频信息传输至所述服务器。 其中, 音频会话允许信息 用于提示当前的会话资源处于空闲状态, 可进行音频会话。 (1) Sending an audio session request to the server when detecting that the user initiates an audio session If the audio session permission message returned by the server is received, the user is allowed to perform an audio session, and the acquired session audio information is transmitted to the server. The audio session permission information is used to prompt that the current session resource is in an idle state, and an audio session can be performed.
本发明实施例中, 即时通讯客户端可在位置共享过程中提供音频会话功能 (又可称对讲功能), 用户欲使用音频会话功能时, 可发起音频会话操作。 具体 地, 即时通讯客户端可在位置共享界面中提供音频会话按键, 当用户按压该音 频会话按键时, 发起音频会话操作, 即时通讯客户端可根据该音频会话操作向 服务器发送音频会话请求消息。 其中, 该音频会话请求消息可用于表明发送该 音频会话请求消息的即时通讯客户端即将进行音频会话功能, 并即将传输会话 音频信息, 以便于服务器进行会话音频信息的传输准备, 例如: 检查会话资源、 分配緩存空间、 建立传输连接等等。 所述服务器返回音频会话允许消息之后, 进行音频会话的即时通讯客户端可实时录制并实时上传用户的会话音频信息, 例如: 可通过 Wi-Fi ( Wireless Fidelity, 无线保真)、 GPRS ( General Packet Radio Service, 通用分组无线服务技术)或 3g ( 3rd-Generation, 第三代移动通信技术) 等网络, 向服务器传输该会话音频信息。  In the embodiment of the present invention, the instant messaging client can provide an audio session function (also referred to as an intercom function) during the location sharing process, and when the user wants to use the audio session function, the audio session operation can be initiated. Specifically, the instant messaging client can provide an audio session button in the location sharing interface. When the user presses the audio session button, an audio session operation is initiated, and the instant messaging client can send an audio session request message to the server according to the audio session operation. The audio session request message may be used to indicate that the instant messaging client that sends the audio session request message is about to perform an audio session function, and the session audio information is about to be transmitted, so that the server prepares the transmission of the session audio information, for example: checking the session resource. , allocate cache space, establish transport connections, and more. After the server returns the audio session permission message, the instant messaging client performing the audio session can record and upload the user's session audio information in real time, for example: Wi-Fi (Wireless Fidelity), GPRS (General Packet) Radio Service, General Packet Radio Service Technology) or 3g (3rd-Generation, 3rd Generation Mobile Communication Technology) networks transmit the session audio information to the server.
(二) 当检测到所述用户停止所述音频会话时, 向所述服务器发送音频会 话停止消息, 以便所述服务器将所述会话音频信息转发至其他即时通讯客户端 进行播放。  (2) When detecting that the user stops the audio session, sending an audio session stop message to the server, so that the server forwards the session audio information to other instant messaging clients for playing.
本发明实施例中, 用户完成音频会话后, 可发起停止音频会话操作。 具体 地, 当用户松开即时通讯客户端上的音频会话按键, 即停止按压该音频会话按 键时, 发起停止音频会话操作, 进行音频会话的即时通讯客户端即根据该停止 音频会话操作向服务器发送表明进行音频会话的即时通讯客户端结束音频会话 的音频会话停止消息, 并停止传输会话音频信息。  In the embodiment of the present invention, after the user completes the audio session, the user may initiate a stop audio session operation. Specifically, when the user releases the audio session button on the instant messaging client, that is, stops pressing the audio session button, the audio session operation is stopped, and the instant messaging client that performs the audio session sends the message to the server according to the stop audio session operation. Indicates that the instant messaging client performing the audio session ends the audio session stop message of the audio session and stops transmitting the session audio information.
(三) 当检测到用户发起音频会话时, 向所述服务器发送音频会话请求消 息; 若接收到所述服务器返回的音频会话禁止消息, 则禁止所述用户进行音频 会话, 并输出禁止音频会话的提示信息。 其中, 音频会话禁止消息用于提示当 前的会话资源已被占用, 无法进行音频会话。  (3) when detecting that the user initiates an audio session, sending an audio session request message to the server; if receiving an audio session inhibition message returned by the server, prohibiting the user from performing an audio session, and outputting an audio session prohibition Prompt message. The audio session prohibition message is used to prompt that the current session resource is occupied, and the audio session cannot be performed.
(四) 当所述至少两个即时通讯客户端中的任一即时通讯客户端进行音频 会话时, 在位置共享界面中输出音频会话提示信息。  (4) When any one of the at least two instant messaging clients performs an audio session, the audio session prompt information is output in the location sharing interface.
通过上述图 1至附图 2所示实施例的描述, 本发明实施例中, 当至少两个 即时通讯客户端进行位置共享时, 获取所述至少两个即时通讯客户端中的各即 时通讯客户端的位置信息, 并在地图中显示所述至少两个即时通讯客户端中的 各即时通讯客户端的位置信息, 从而能够实现两个或多个即时通讯客户端之间 的位置共享, 且能够对进行位置共享的各即时通讯客户端实现位置同步显示, 提升了位置共享的智能性。 图 3 为本发明实施例提供的又一种位置共享方法的流程图, 本实施例所示 的位置共享方法的流程从服务器侧进行阐述。 参见图 3, 该方法可包括以下步骤 S301至步骤 S302。 Through the above description of the embodiment shown in FIG. 1 to FIG. 2, in the embodiment of the present invention, at least two When the instant messaging client performs location sharing, acquiring location information of each instant messaging client in the at least two instant messaging clients, and displaying, on the map, each instant messaging client in the at least two instant messaging clients The location information can realize location sharing between two or more instant messaging clients, and can realize location synchronization display for each instant messaging client that performs location sharing, thereby improving the intelligence of location sharing. FIG. 3 is a flowchart of still another method for location sharing according to an embodiment of the present invention. The process of the location sharing method shown in this embodiment is illustrated from a server side. Referring to FIG. 3, the method may include the following steps S301 to S302.
步骤 S301, 当至少两个即时通讯客户端进行位置共享时, 获取所述至少两 个即时通讯客户端中的各即时通讯客户端的位置信息。  Step S301: When at least two instant messaging clients perform location sharing, obtain location information of each instant messaging client in the at least two instant messaging clients.
本步骤中, 当所述至少两个即时通讯客户端中的任一即时通讯客户端发送 针对一个或多个其他即时通讯客户端的位置共享邀请消息时, 向所述一个或多 个其他即时通讯客户端转发所述位置共享邀请消息, 并在接收到所述一个或多 个其他即时通讯客户端返回的位置共享确认消息时, 确认发送位置共享邀请消 息的即时通讯客户端和所述一个或多个其他即时通讯客户端进行位置共享。 例 如: 假设两个即时通讯客户端分别为即时通讯客户端 A和即时通讯客户端 B, 即时通讯客户端 A可以在与即时通讯客户端 B的即时通讯会话界面中发送针对 即时通讯客户端 B的位置共享邀请消息; 本步骤可向即时通讯客户端 B转发所 述位置共享邀请消息, 当接收到即时通讯客户端 B所返回的位置共享确认消息 时, 向即时通讯客户端 A转发该位置共享确认消息, 并确认即时通讯客户端 A 与即时通讯客户端 B可以进行位置共享。 再如: 4叚设三个即时通讯客户端分别 为即时通讯客户端 A、 即时通讯客户端 B和即时通讯客户端 C, 即时通讯客户 端 B可以在与即时通讯客户端 A和即时通讯客户端 C共属的即时通讯群组的会 话界面中发送针对即时通讯客户端 A和即时通讯客户端 C的位置共享邀请消息, 本步骤可向即时通讯客户端 A和即时通讯客户端 C转发所述位置共享邀请消息, 当接收到即时通讯客户端 A和即时通讯客户端 C所返回的位置共享确认消息时, 向即时通讯客户端 B转发所述位置共享确认消息, 并确定即时通讯客户端 A、 即时通讯客户端 B和即时通讯客户端 C可以进行位置共享。  In this step, when any one of the at least two instant messaging clients sends a location sharing invitation message for one or more other instant messaging clients, to the one or more other instant messaging clients Forwarding the location sharing invitation message, and when receiving the location sharing confirmation message returned by the one or more other instant messaging clients, confirming that the instant messaging client that sends the location sharing invitation message and the one or more Other instant messaging clients share location. For example: Suppose two instant messaging clients are instant messaging client A and instant messaging client B. Instant messaging client A can send instant messaging client B in the instant messaging session with instant messaging client B. The location sharing invitation message; this step may forward the location sharing invitation message to the instant messaging client B, and when receiving the location sharing confirmation message returned by the instant messaging client B, forward the location sharing confirmation to the instant messaging client A. Message, and confirm that instant messaging client A and instant messaging client B can share the location. Another example: 4 叚 three instant messaging clients are instant messaging client A, instant messaging client B and instant messaging client C, instant messaging client B can be in the instant messaging client A and instant messaging client The location sharing invitation message for the instant messaging client A and the instant messaging client C is sent in the session interface of the C instant messaging group. This step can forward the location to the instant messaging client A and the instant messaging client C. Sharing the invitation message, when receiving the location sharing confirmation message returned by the instant messaging client A and the instant messaging client C, forwarding the location sharing confirmation message to the instant messaging client B, and determining the instant messaging client A, instant Communication client B and instant messaging client C can share location.
本步骤中, 所述至少两个即时通讯客户端中的各即时通讯客户端可分别启 动 LBS定位应用, 获得自身的位置信息, 并向服务器上报自身的位置信息; 本 步骤可接收所述至少两个即时通讯客户端中的各即时通讯客户端上报的位置信 息。 In this step, each instant messaging client in the at least two instant messaging clients can be separately activated. The LBS positioning application obtains its own location information and reports its own location information to the server. This step can receive the location information reported by each instant messaging client in the at least two instant messaging clients.
步骤 S302, 将所述至少两个即时通讯客户端中的各即时通讯客户端的位置 信息共享至所述至少两个即时通讯客户端中的各即时通讯客户端, 以便所述至 少两个即时通讯客户端中的各即时通讯客户端在地图中显示所述至少两个即时 通讯客户端中的各即时通讯客户端的位置信息。 图 4示出本发明实施例提供的又一种位置共享方法的流程图。 参见图 4, 该 方法可包括以下步骤 S401至步骤 S403。  Step S302, sharing location information of each instant messaging client in the at least two instant messaging clients to each instant messaging client in the at least two instant messaging clients, so that the at least two instant messaging clients Each instant messaging client in the terminal displays location information of each instant messaging client in the at least two instant messaging clients in a map. FIG. 4 is a flowchart of still another location sharing method according to an embodiment of the present invention. Referring to FIG. 4, the method may include the following steps S401 to S403.
步骤 S401, 当至少两个即时通讯客户端进行位置共享时, 获取所述至少两 个即时通讯客户端中的各即时通讯客户端的位置信息。  Step S401: When at least two instant messaging clients perform location sharing, obtain location information of each instant messaging client in the at least two instant messaging clients.
步骤 S402, 将所述至少两个即时通讯客户端中的各即时通讯客户端的位置 信息共享至所述至少两个即时通讯客户端中的各即时通讯客户端, 以便所述至 少两个即时通讯客户端中的各即时通讯客户端在地图中显示所述至少两个即时 通讯客户端中的各即时通讯客户端的位置信息。  Step S402, sharing location information of each instant messaging client in the at least two instant messaging clients to each instant messaging client in the at least two instant messaging clients, so that the at least two instant messaging clients Each instant messaging client in the terminal displays location information of each instant messaging client in the at least two instant messaging clients in a map.
本实施例的步骤 S401至步骤 S402可参见图 3所示实施例的步骤 S301至步 骤 S302, 在此不赘述。  For the steps S401 to S402 of the embodiment, the steps S301 to S302 of the embodiment shown in FIG. 3 are omitted, and details are not described herein.
步骤 S403, 对所述至少两个即时通讯客户端的即时通讯会话进行管理。 其中, 所述即时通讯会话可以为: 音频会话、 视频会话、 文本传输和图片 传输中的至少一种。 优选地, 所述至少两个即时通讯客户端可以在位置共享过 程中进行音频会话。 当所述即时通讯会话为音频会话时, 本步骤可以对所述至 少两个即时通讯客户端的音频会话进行管理, 具体的管理可包括以下两个方面: (一) 当接收到所述至少两个即时通讯客户端中的任一个即时通讯客户端 发送的音频会话请求消息时, 判断所述至少两个即时通讯客户端中除发送所述 音频会话请求消息的即时通讯客户端之外的任一其他即时通讯客户端是否正在 进行音频会话。 其中, 判断所述至少两个即时通讯客户端中除发送所述音频会 话请求消息的即时通讯客户端之外的任一其他即时通讯客户端是否正在进行音 频会话, 即是检查会话资源当前是否被占用。  Step S403, managing an instant messaging session of the at least two instant messaging clients. The instant messaging session may be: at least one of an audio session, a video session, a text transmission, and a picture transmission. Preferably, the at least two instant messaging clients can perform an audio session during the location sharing process. When the instant messaging session is an audio session, this step may manage the audio session of the at least two instant messaging clients, and the specific management may include the following two aspects: (1) When the at least two are received Determining, in the at least two instant messaging clients, any other than the instant messaging client that sends the audio session request message, when the audio session request message is sent by any one of the instant messaging clients Whether the instant messaging client is in an audio session. Determining whether any other instant messaging client other than the instant messaging client that sends the audio session request message in the at least two instant messaging clients is performing an audio session, that is, checking whether the session resource is currently being Occupied.
如果判断结果为否, 向发送所述音频会话请求消息的即时通讯客户端返回 音频会话允许消息, 以允许发送所述音频会话请求消息的即时通讯客户端进行 音频会话, 并接收所述进行音频会话的即时通讯客户端传输的会话音频信息。 其中, 音频会话允许消息用于提示当前的会话资源处于空闲状态, 可进行音频 会话。 If the judgment result is no, return to the instant messaging client that sends the audio session request message The audio session allows a message to allow an instant messaging client transmitting the audio session request message to conduct an audio session and receive session audio information transmitted by the instant messaging client conducting the audio session. The audio session permission message is used to prompt the current session resource to be in an idle state, and an audio session can be performed.
如果判断结果为是, 向发送所述音频会话请求消息的即时通讯客户端返回 音频会话禁止消息, 以禁止发送所述音频会话请求消息的即时通讯客户端进行 音频会话。 其中, 音频会话禁止消息用于提示当前的会话资源已被占用, 无法 进行音频会话。  If the result of the determination is yes, an audio session prohibition message is returned to the instant messaging client that sent the audio session request message to prohibit the instant messaging client that sent the audio session request message from making an audio session. The audio session prohibition message is used to prompt that the current session resource is occupied, and the audio session cannot be performed.
(二) 当接收到所述进行音频会话的即时通讯客户端发送的音频会话停止 消息时, 将所述会话音频信息转发至所述至少两个即时通讯客户端中除所述进 行音频会话的即时通讯客户端之外的其他即时通讯客户端进行播放。  (2) when receiving the audio session stop message sent by the instant messaging client performing the audio session, forwarding the session audio information to the at least two instant messaging clients except the audio session Other instant messaging clients other than the communication client play.
通过上述图 3至附图 4所示实施例的描述, 本发明实施例中, 当至少两个 即时通讯客户端进行位置共享时, 获取所述至少两个即时通讯客户端中的各即 时通讯客户端的位置信息, 并在地图中显示所述至少两个即时通讯客户端中的 各即时通讯客户端的位置信息, 从而能够实现两个或多个即时通讯客户端之间 的位置共享, 且能够对进行位置共享的各即时通讯客户端实现位置同步显示, 提升了位置共享的智能性。 下面将结合附图 5,以一个具体实例来阐述本发明实施例提供的位置共享方 法。 附图 5 以两个即时通讯客户端之间的位置共享为例进行说明, 两个以上的 即时通讯客户端之间的位置共享可与本实施例情况类似, 在此不再赘述。  According to the foregoing description of the embodiment shown in FIG. 3 to FIG. 4, in the embodiment of the present invention, when at least two instant messaging clients perform location sharing, each instant messaging client in the at least two instant messaging clients is obtained. Position information of the terminal, and displaying location information of each instant messaging client in the at least two instant messaging clients in the map, thereby enabling location sharing between two or more instant messaging clients, and being able to perform The location sharing of each instant messaging client realizes the position synchronization display, which improves the intelligence of location sharing. The location sharing method provided by the embodiment of the present invention will be described below with reference to FIG. 5 in a specific example. As shown in FIG. 5, the location sharing between two instant messaging clients is used as an example. The location sharing between two or more instant messaging clients may be similar to the case in this embodiment, and details are not described herein again.
图 5 所示实例中, 进行位置共享的两个即时通讯客户端分别为即时通讯客 户端 A和即时通讯客户端 B, 分别对应用户 a和用户 b。 即时通讯客户端 A的 标识信息为用户 a的头像信息, 即时通讯客户端 B的标识信息为用户 b的头像 信息。  In the example shown in Figure 5, the two instant messaging clients for location sharing are instant messaging client A and instant messaging client B, respectively corresponding to user a and user b. The identification information of the instant messaging client A is the avatar information of the user a, and the identification information of the instant messaging client B is the avatar information of the user b.
图 5a为本发明实施例提供的位置共享过程的一个示意图。 参见图 5a, 即时 通讯客户端 A可以在用户 a与用户 b的会话界面中提供位置共享服务。 图 5a示 出了即时通讯客户端 A所展示的用户 a与用户 b的会话界面, 该界面的顶部显 示与即时通讯客户端 A进行即时通讯会话的对端(即即时通讯客户端 B ) ID (如 图 5a所示的界面顶部显示的 "B" )。 即时通讯客户端 A可在图 5a所示的会话界 面中设置 "实时位置" 按键, 用户 a点击该 "实时位置" 按键将发起针对用户 b 的位置共享邀请操作, 此时即时通讯客户端 A可向服务器发送针对即时通讯客 户端 B的位置共享邀请消息, 并等待即时通讯客户端 B进行确认。 FIG. 5a is a schematic diagram of a location sharing process according to an embodiment of the present invention. Referring to FIG. 5a, the instant messaging client A can provide a location sharing service in the session interface between the user a and the user b. Figure 5a shows the session interface between user a and user b displayed by instant messaging client A. The top of the interface displays the peer (ie instant messaging client B) ID of the instant messaging session with instant messaging client A ( The "B" shown at the top of the interface as shown in Figure 5a. Instant messaging client A can be in the session world shown in Figure 5a Setting the "real-time location" button in the face, the user a clicks the "real-time location" button to initiate a location sharing invitation operation for the user b, at which time the instant messaging client A can send a location sharing invitation to the instant messaging client B to the server. Message, and wait for instant messaging client B to confirm.
图 5b为本发明实施例提供的位置共享过程的另一个示意图结合图 5a,示出 了即时通讯客户端 A中的位置共享界面。 参见图 5b, 在即时通讯客户端 A等待 确认的过程中, 该位置共享界面中可输出提示消息 "等待对方加入实时位置"。 优选地, 在即时通讯客户端 A等待确认的过程中, 还可调用地图显示即时通讯 客户端 A的位置信息和用户 a的头像信息 (如图 5b所示的位置共享界面)。 再 请参见图 5b, 位置共享界面的顶部设有 "关闭" 按键和 "最小化" 按键, 用户 a点击 "关闭"按键, 可发起取消位置共享操作, 此时即时通讯客户端 A之前发 送的位置共享邀请消息失效, 即时通讯客户端 A退出位置共享界面, 返回至用 户 a与用户 b的会话界面 (如图 5a所示)。 结合图 5a至图 5b, 图 5c示出本发 明实施例提供的位置共享过程的又一个示意图。 参见图 5c, 用户 a在图 5b中点 击 "最小化" 按键后, 即时通讯客户端 A可将位置共享界面进行最小化处理, 重新显示用户 a与用户 b的会话界面(如图 5c所示),并在该会话界面中输出"您 正在进行实时位置共享" 的提示消息; 用户 a可通过操作该提示消息, 重新还 原至位置共享界面 (如图 5b所示)。  FIG. 5b is another schematic diagram of a location sharing process according to an embodiment of the present invention. Referring to FIG. 5a, a location sharing interface in the instant messaging client A is shown. Referring to FIG. 5b, in the process of the instant messaging client A waiting for confirmation, the location sharing interface can output a prompt message “waiting for the other party to join the real-time location”. Preferably, in the process of the instant messaging client A waiting for confirmation, the map may also be displayed to display the location information of the instant messaging client A and the avatar information of the user a (as shown in the location sharing interface shown in FIG. 5b). Referring to FIG. 5b, the top of the location sharing interface is provided with a "close" button and a "minimize" button. The user a clicks the "close" button to initiate a cancel location sharing operation, where the instant messaging client A sends the location. The sharing invitation message is invalid, and the instant messaging client A exits the location sharing interface and returns to the session interface between the user a and the user b (as shown in FIG. 5a). 5a to 5b, FIG. 5c shows still another schematic diagram of the location sharing process provided by the embodiment of the present invention. Referring to FIG. 5c, after the user a clicks the "minimize" button in FIG. 5b, the instant messaging client A can minimize the location sharing interface and redisplay the session interface between the user a and the user b (as shown in FIG. 5c). And output a prompt message "You are in real-time location sharing" in the session interface; user a can restore the location sharing interface by operating the prompt message (as shown in Figure 5b).
图 5d为本发明实施例提供的位置共享过程的又一个示意图。 结合图 5a至 图 5c, 图 5d示出了即时通讯客户端 B所展示的用户 b与用户 a的会话界面。在 接收到即时通讯客户端 A发送的位置共享邀请消息后, 该会话界面将输出提示 消息 "用户 a发起位置共享"。 用户 b可点击该提示消息或点击该会话界面中的 "实时位置" 按键, 以发起位置共享确认操作, 此时即时通讯客户端 B向服务 器返回位置共享确认消息, 以便服务器向即时通讯客户端 A转发该位置共享确 认消息, 使得即时通讯客户端 A与即时通讯客户端 B可以进行位置共享。  FIG. 5 is still another schematic diagram of a location sharing process according to an embodiment of the present invention. Referring to Figures 5a through 5c, Figure 5d shows the session interface between user b and user a as shown by instant messaging client B. After receiving the location sharing invitation message sent by the instant messaging client A, the session interface will output a prompt message "user a initiates location sharing". User b can click the prompt message or click the "real time location" button in the session interface to initiate a location sharing confirmation operation, at which time instant messaging client B returns a location sharing confirmation message to the server for the server to instant messaging client A The location sharing confirmation message is forwarded, so that the instant messaging client A and the instant messaging client B can perform location sharing.
图 5e至图 5f分别为本发明实施例提供的位置共享过程的又一个示意图。图 5e示出了即时通讯客户端 A所展示的位置共享界面,图 5f示出了即时通讯客户 端 B所展示的位置共享界面。 即时通讯客户端 A在接收到即时通讯客户端 B返 回的位置共享确认消息后, 即时通讯客户端 A与即时通讯客户端 B可进行位置 共享。 本发明实施例中, 即时通讯客户端 A可获取即时通讯客户端 A的位置信 息、 用户 a的头像信息、 即时通讯客户端 B的位置信息和用户 b的头像信息; 并调用地图显示获取的所有信息 (如图 5e所示的位置共享界面), 图 5e所示的 位置共享界面的地图中釆用用户 a的头像信息 (如图 5e左侧所示的女性的头像 信息)显示即时通讯客户端 A的位置信息, 釆用用户 b的头像信息(如图 5e右 侧所示的男性的头像信息)显示即时通讯客户端 B的位置信息; 同理, 即时通 讯客户端 B可获取即时通讯客户端 A的位置信息、 用户 a的头像信息、 即时通 讯客户端 B的位置信息和用户 b的头像信息; 并调用地图显示获取的所有信息 (如图 5f所示的位置共享界面),该位置共享界面的地图中釆用用户 a的头像信 息 (如图 5e左侧所示的女性的头像信息)显示即时通讯客户端 A的位置信息, 釆用用户 b的头像信息 (如图 5e右侧所示的男性的头像信息)显示即时通讯客 户端 B的位置信息。 进一步, 本发明实施例中, 即时通讯客户端 A和 B可监测 即时通讯客户端 A和 B的移动信息, 并在地图中显示监测到的移动信息。 具体 地,即时通讯客户端 A可在图 5e所示的地图中实时更新即时通讯客户端 A的位 置信息以显示即时通讯客户端 A的移动信息, 实时更新即时通讯客户端 B的位 置信息以显示即时通讯客户端 B的移动信息。 同理, 即时通讯客户端 B可在图 5f所示的地图中实时更新即时通讯客户端 A的位置信息以显示即时通讯客户端 A的移动信息, 实时更新即时通讯客户端 B的位置信息以显示即时通讯客户端 B的移动信息, 从而实现了用户 a与用户 b之间的位置跟踪。 FIG. 5e to FIG. 5f are still further schematic diagrams of a location sharing process according to an embodiment of the present invention. Figure 5e shows the location sharing interface shown by instant messaging client A, and Figure 5f shows the location sharing interface shown by instant messaging client B. After the instant messaging client A receives the location sharing confirmation message returned by the instant messaging client B, the instant messaging client A and the instant messaging client B can share the location. In the embodiment of the present invention, the instant messaging client A can obtain the location information of the instant messaging client A, the avatar information of the user a, the location information of the instant messaging client B, and the avatar information of the user b; And calling the map to display all the acquired information (such as the location sharing interface shown in Figure 5e), the location sharing interface shown in Figure 5e uses the avatar information of the user a (as shown in the left side of Figure 5e) Information) displays the location information of the instant messaging client A, and displays the location information of the instant messaging client B by using the avatar information of the user b (the male avatar information shown on the right side of FIG. 5e); similarly, the instant messaging client B can obtain the location information of the instant messaging client A, the avatar information of the user a, the location information of the instant messaging client B, and the avatar information of the user b; and call the map to display all the acquired information (the location sharing as shown in FIG. 5f) Interface), in the map of the location sharing interface, the user's avatar information (as shown in the left side of FIG. 5e) is used to display the location information of the instant messaging client A, and the avatar information of the user b is used (eg The male avatar information shown on the right side of FIG. 5e) displays the location information of the instant messaging client B. Further, in the embodiment of the present invention, the instant messaging clients A and B can monitor the mobile information of the instant messaging clients A and B, and display the monitored mobile information in the map. Specifically, the instant messaging client A can update the location information of the instant messaging client A in real time in the map shown in FIG. 5e to display the mobile information of the instant messaging client A, and update the location information of the instant messaging client B in real time to display Instant messaging client B's mobile information. Similarly, the instant messaging client B can update the location information of the instant messaging client A in real time in the map shown in FIG. 5f to display the mobile information of the instant messaging client A, and update the location information of the instant messaging client B in real time to display Instant messaging client B's mobile information, thereby enabling location tracking between user a and user b.
图 5g为本发明实施例提供的位置共享过程的又一个示意图。 图 5g示出了 即时通讯客户端 A所展示的位置共享界面。 参见图 5g, 在该界面中可提供音频 会话功能, 即图 5g所示的 "按住讲话" 按键。 当用户 a按压该 "按住讲话" 按 键时, 将发起音频会话操作, 此时即时通讯客户端 A可根据该音频会话操作向 服务器发送音频会话请求消息。 在接收到服务器返回的音频会话允许消息时, 即时通讯客户端 A可实时录制并实时上传用户 a的会话音频信息。  FIG. 5g is still another schematic diagram of a location sharing process according to an embodiment of the present invention. Figure 5g shows the location sharing interface shown by instant messaging client A. Referring to Figure 5g, an audio session function is provided in this interface, which is the "press and hold" button shown in Figure 5g. When the user a presses the "press and hold" button, an audio session operation will be initiated, at which time the instant messaging client A can send an audio session request message to the server according to the audio session operation. Upon receiving the audio session permission message returned by the server, the instant messaging client A can record and upload the session audio information of the user a in real time.
图 5h为本发明实施例提供的位置共享过程的又一个示意图。 图 5h示出了 即时通讯客户端 B所展示的位置共享界面。 参见图 5h, 用户 a进行音频会话期 间, 如果用户 b也通过按压 "按住讲话" 按键发起音频会话操作 (即时通讯客 户端 B会向服务器发送音频会话请求消息),则服务器将向即时通讯客户端 B返 回音频会话禁止消息, 提示当前的会话资源已被用户 a占用, 用户 b无法发起 音频会话操作;此时即时通讯客户端 B可输出图 5h所示的提示消息 "对方说话, 请稍美再试"。 图 5i为本发明实施例提供的位置共享过程的又一个示意图。 图 5i示出了即 时通讯客户端 B所展示的位置共享界面。 当用户 a完成音频会话后, 用户 a可 松开即时通讯客户端 A中的 "按住说话" 按键, 发起停止音频会话操作, 此时 即时通讯客户端 A向服务器发送表明用户 a结束音频会话的音频会话停止消息, 并停止传输会话音频信息。 服务器向即时通讯客户端 B转发用户 a的会话音频 信息, 即时通讯用户 b则对该会话音频信息进行实时播放。 需要说明的是, 即 时通讯客户端 A在进行上述的音频会话过程中, 即时通讯客户端 A和即时通讯 客户端 B均可输出会话提示信息, 该会话提示信息例如可参见图 5i所示的位置 共享界面: 地图中的用户 a 的头像信息闪烁, 位置共享界面中出现即时通讯客 户端 A的 ID "A" 和音频播放的时间。 FIG. 5h is still another schematic diagram of a location sharing process according to an embodiment of the present invention. Figure 5h shows the location sharing interface shown by instant messaging client B. Referring to FIG. 5h, during the audio session of the user a, if the user b also initiates an audio session operation by pressing the "press and hold speech" button (the instant messaging client B will send an audio session request message to the server), the server will contact the instant messaging client. End B returns an audio session prohibition message, indicating that the current session resource has been occupied by user a, and user b cannot initiate an audio session operation; at this time, instant messaging client B can output the prompt message shown in FIG. 5h, "the other party speaks, please be slightly beautiful. Try again." FIG. 5 is another schematic diagram of a location sharing process according to an embodiment of the present invention. Figure 5i shows the location sharing interface shown by instant messaging client B. After the user a completes the audio session, the user a can release the "hold and hold" button in the instant messaging client A to initiate the stop audio session operation, at which time the instant messaging client A sends a message to the server indicating that the user a ends the audio session. The audio session stops the message and stops transmitting session audio information. The server forwards the session audio information of the user a to the instant messaging client B, and the instant messaging user b plays the audio information of the session in real time. It should be noted that, during the audio session of the instant messaging client A, both the instant messaging client A and the instant messaging client B can output session prompt information, which can be seen, for example, in the location shown in FIG. 5i. Sharing interface: The avatar information of user a in the map flashes, and the ID "A" of instant messaging client A and the time of audio playback appear in the location sharing interface.
通过上述各实施例的描述, 本发明实施例中, 当至少两个即时通讯客户端 进行位置共享时, 获取所述至少两个即时通讯客户端中的各即时通讯客户端的 位置信息, 并在地图中显示所述至少两个即时通讯客户端中的各即时通讯客户 端的位置信息, 从而能够实现两个或多个即时通讯客户端之间的位置共享, 且 能够对进行位置共享的各即时通讯客户端实现位置同步显示, 提升了位置共享 的智能性。 下面将结合附图 6至附图 9,对本发明实施例提供的即时通讯客户端进行详 细介绍。 需要说明的是, 附图 6至附图 9所示的即时通讯客户端可以为进行位 置共享的所述至少两个即时通讯客户端中的任一即时通讯客户端。  According to the description of the foregoing embodiments, in the embodiment of the present invention, when at least two instant messaging clients perform location sharing, acquiring location information of each instant messaging client in the at least two instant messaging clients, and Displaying location information of each instant messaging client in the at least two instant messaging clients, thereby enabling location sharing between two or more instant messaging clients, and being capable of sharing instant messaging clients for location sharing The side realizes the position synchronization display, which improves the intelligence of location sharing. The instant messaging client provided by the embodiment of the present invention will be described in detail below with reference to FIG. 6 to FIG. It should be noted that the instant messaging client shown in FIG. 6 to FIG. 9 may be any one of the at least two instant messaging clients that perform location sharing.
图 6为本发明实施例提供的一种即时通讯客户端的结构示意图。 参见图 6, 该即时通讯客户端可包括: 位置获取模块 101和位置共享模块 102。  FIG. 6 is a schematic structural diagram of an instant messaging client according to an embodiment of the present invention. Referring to FIG. 6, the instant messaging client can include: a location acquisition module 101 and a location sharing module 102.
位置获取模块 101 用于当至少两个即时通讯客户端进行位置共享时, 获取 所述至少两个即时通讯客户端中的各即时通讯客户端的位置信息。  The location obtaining module 101 is configured to acquire location information of each instant messaging client in the at least two instant messaging clients when the at least two instant messaging clients perform location sharing.
所述至少两个即时通讯客户端中的各即时通讯客户端可分别启动 LBS定位 应用, 获得自身的位置信息, 并向服务器上报自身的位置信息; 所述位置获取 模块 101可从服务器获取所述至少两个即时通讯客户端的位置信息。  Each of the at least two instant messaging clients can initiate an LBS positioning application to obtain its own location information, and report its own location information to the server; the location obtaining module 101 can obtain the Location information for at least two instant messaging clients.
位置共享模块 102,用于在地图中显示所述至少两个即时通讯客户端中的各 即时通讯客户端的位置信息。  The location sharing module 102 is configured to display location information of each instant messaging client in the at least two instant messaging clients in a map.
在本发明的一种可行的实施方式中: 所述至少两个即时通讯客户端中的各 即时通讯客户端可以预先保存地图, 并通过互联网对预存的地图进行实时或定 时更新; 所述位置共享模块 102可从本端直接调用预存的地图, 并在该地图中 显示所述至少两个即时通讯客户端中的各即时通讯客户端的位置信息。 在本发 明的另一种可行的实施方式中, 所述位置共享模块 102可以实时调用互联网中 的地图, 即实时从互联网获取地图, 并在该地图中显示所述至少两个即时通讯 客户端中的各即时通讯客户端的位置信息。 图 7为本发明实施例提供的另一种即时通讯客户端的结构示意图。参见图 7, 该即时通讯客户端可包括: 位置获取模块 101、 位置共享模块 102、 移动监测模 块 103、 移动显示模块 104和会话管理模块 105。 其中, 位置获取模块 101和位 置共享模块 102的结构可参见图 6所示实施例的描述, 在此不赘述。 In a feasible implementation manner of the present invention: each of the at least two instant messaging clients The instant messaging client can pre-store the map and update the pre-stored map in real time or periodically through the Internet; the location sharing module 102 can directly call the pre-stored map from the local end, and display the at least two instants in the map. Location information of each instant messaging client in the communication client. In another feasible implementation manner of the present invention, the location sharing module 102 can call a map in the Internet in real time, that is, obtain a map from the Internet in real time, and display the at least two instant messaging clients in the map. Location information for each instant messaging client. FIG. 7 is a schematic structural diagram of another instant messaging client according to an embodiment of the present invention. Referring to FIG. 7, the instant messaging client may include: a location obtaining module 101, a location sharing module 102, a mobile monitoring module 103, a mobile display module 104, and a session management module 105. The structure of the location obtaining module 101 and the location sharing module 102 can be referred to the description of the embodiment shown in FIG. 6, and details are not described herein.
移动监测模块 103 用于监测所述至少两个即时通讯客户端中的各即时通讯 客户端的移动信息, 所述移动信息包括移动方向和移动距离。  The mobile monitoring module 103 is configured to monitor mobile information of each of the at least two instant messaging clients, where the mobile information includes a moving direction and a moving distance.
其中, 所述至少两个即时通讯客户端中的各即时通讯客户端可以启用传感 装置, 感测自身的移动信息并上报至服务器; 或者, 所述至少两个即时通讯客 户端中的各即时通讯客户端通过监测自身的位置信息的实时或定时变化, 获得 自身的移动信息并上报至服务器。 所述移动监测模块 103 可以从服务器获取所 述至少两个即时通讯客户端中的各即时通讯客户端的移动信息以进行监测。  The instant messaging client of the at least two instant messaging clients can enable the sensing device to sense the mobile information of the mobile device and report the mobile information to the server; or, the instants in the at least two instant messaging clients The communication client obtains its own mobile information and reports it to the server by monitoring real-time or timing changes of its own location information. The mobile monitoring module 103 may obtain, from the server, mobile information of each of the at least two instant messaging clients for monitoring.
移动显示模块 104用于在所述地图中显示所述至少两个即时通讯客户端中 的各即时通讯客户端的移动信息。  The mobile display module 104 is configured to display, in the map, mobile information of each of the at least two instant messaging clients.
所述移动显示模块 104可根据所述至少两个即时通讯客户端中的各即时通 讯客户端的移动信息, 在所述地图中更新所述至少两个即时通讯客户端中的各 即时通讯客户端的位置信息, 从而在所述地图中实现对所述至少两个即时通讯 客户端中的各即时通讯客户端的移动信息的显示。  The mobile display module 104 may update, according to the mobile information of each instant messaging client in the at least two instant messaging clients, the location of each instant messaging client in the at least two instant messaging clients in the map. Information, thereby implementing display of mobile information of each of the at least two instant messaging clients in the map.
会话管理模块 105 用于对所述至少两个即时通讯客户端的即时通讯会话进 行管理。  The session management module 105 is configured to manage instant messaging sessions of the at least two instant messaging clients.
其中, 所述即时通讯会话可以为: 音频会话、 视频会话、 文本传输和图片 传输中的至少一种。 优选地, 本发明实施例中, 所述至少两个即时通讯客户端 可以在位置共享过程中进行音频会话。 当所述即时通讯会话为音频会话时, 所 述会话管理模块 105可以对所述至少两个即时通讯客户端的音频会话进行管理。 图 8为本发明实施例提供的即时通讯客户端的位置共享模块的结构示意图。 参见图 8,该位置共享模块 102可包括:标识获取单元 1201、地图调用单元 1202、 地图显示单元 1203和位置显示单元 1204。 The instant messaging session may be: at least one of an audio session, a video session, a text transmission, and a picture transmission. Preferably, in the embodiment of the present invention, the at least two instant messaging clients may perform an audio session during the location sharing process. When the instant messaging session is an audio session, the session management module 105 can manage audio sessions of the at least two instant messaging clients. FIG. 8 is a schematic structural diagram of a location sharing module of an instant messaging client according to an embodiment of the present invention. Referring to FIG. 8, the location sharing module 102 may include an identifier obtaining unit 1201, a map invoking unit 1202, a map display unit 1203, and a location display unit 1204.
标识获取单元 1201用于获取所述至少两个即时通讯客户端中的各即时通讯 客户端的标识信息。  The identifier obtaining unit 1201 is configured to acquire identification information of each instant messaging client in the at least two instant messaging clients.
其中, 所述标识信息可用于唯一标识一个即时通讯客户端, 该标识信息可 包括但不限于: 即时通讯账号、 手机号、 email账号、 即时通讯客户端的用户头 像, 等等。  The identifier information may be used to uniquely identify an instant messaging client, and the identifier information may include, but is not limited to, an instant messaging account, a mobile phone number, an email account, a user image of an instant messaging client, and the like.
地图调用单元 1202用于调用地图。  The map invoking unit 1202 is used to call a map.
所述地图调用单元 1202可从本端调用预存的地图; 也可以调用互联网中的 地图, 即实时从互联网获取地图。  The map invoking unit 1202 can call the pre-stored map from the local end; or can call the map in the Internet, that is, obtain the map from the Internet in real time.
地图显示单元 1203用于将所述地图显示于位置共享界面中。  The map display unit 1203 is for displaying the map in the location sharing interface.
所述地图显示单元 1203在位置共享界面中显示地图, 可以使地图的展示更 为直观。 可以理解的是, 所述地图显示单元 1203为可选单元。  The map display unit 1203 displays a map in the location sharing interface, which makes the display of the map more intuitive. It can be understood that the map display unit 1203 is an optional unit.
位置显示单元 1204用于在所述地图中釆用所述至少两个即时通讯客户端中 的各即时通讯客户端的标识信息显示所述至少两个即时通讯客户端中的各即时 通讯客户端的位置信息。 图 9为本发明实施例提供的即时通讯客户端的会话管理模块的结构示意图。 本实施例的即时通讯会话为音频会话, 所述会话管理模块 105 可以对所述至少 两个即时通讯客户端的音频会话进行管理。 参见图 9, 该会话管理模块 105可包 括: 会话请求单元 1501、 第一会话管理单元 1502、 会话停止单元 1503、 第二会 话管理单元 1504和会话提示单元 1505。  The location display unit 1204 is configured to display, in the map, location information of each instant messaging client in the at least two instant messaging clients by using identifier information of each instant messaging client in the at least two instant messaging clients. . FIG. 9 is a schematic structural diagram of a session management module of an instant messaging client according to an embodiment of the present invention. The instant messaging session of this embodiment is an audio session, and the session management module 105 can manage audio sessions of the at least two instant messaging clients. Referring to FIG. 9, the session management module 105 can include: a session request unit 1501, a first session management unit 1502, a session stop unit 1503, a second session management unit 1504, and a session prompting unit 1505.
会话请求单元 1501, 用于当检测到所述用户发起音频会话时, 向所述服务 器发送音频会话请求消息。  The session requesting unit 1501 is configured to send an audio session request message to the server when detecting that the user initiates an audio session.
本发明实施例中, 即时通讯客户端可在位置共享过程中提供音频会话功能 (又可称对讲功能), 用户欲使用音频会话功能时, 可发起音频会话操作。 具体 地, 即时通讯客户端可在位置共享界面中提供音频会话按键, 当用户按压该音 频会话按键时, 发起音频会话操作, 所述会话请求单元 1501可根据该音频会话 操作向服务器发送音频会话请求消息。 其中, 该音频会话请求消息可用于表明 发送该音频会话请求消息的即时通讯客户端即将进行音频会话功能, 并即将传 输会话音频信息, 以便于服务器进行会话音频信息的传输准备, 例如: 检查会 话资源、 分配緩存空间、 建立传输连接等等。 In the embodiment of the present invention, the instant messaging client can provide an audio session function (also referred to as an intercom function) during the location sharing process, and when the user wants to use the audio session function, the audio session operation can be initiated. Specifically, the instant messaging client may provide an audio session button in the location sharing interface, and when the user presses the audio session button, initiate an audio session operation, and the session requesting unit 1501 may according to the audio session. The operation sends an audio session request message to the server. The audio session request message may be used to indicate that the instant messaging client that sends the audio session request message is about to perform an audio session function, and the session audio information is about to be transmitted, so that the server prepares the transmission of the session audio information, for example: checking the session resource. , allocate cache space, establish transport connections, and more.
第一会话管理单元 1502, 用于若接收到所述服务器返回的音频会话允许消 息, 则允许所述用户进行音频会话, 并将获取的会话音频信息传输至所述服务 器。  The first session management unit 1502 is configured to allow the user to perform an audio session if the audio session permission message returned by the server is received, and transmit the acquired session audio information to the server.
其中, 音频会话允许信息用于提示当前的会话资源处于空闲状态, 可进行 音频会话。所述服务器返回音频会话允许消息之后,所述第一会话管理单元 1502 可实时录制并实时上传用户的会话音频信息, 例如: 可通过 Wi-Fi、 GPRS或 5g 等网络, 向服务器传输该会话音频信息。  The audio session permission information is used to prompt that the current session resource is in an idle state, and an audio session can be performed. After the server returns the audio session permission message, the first session management unit 1502 can record and upload the user's session audio information in real time, for example: the session audio can be transmitted to the server through a network such as Wi-Fi, GPRS or 5g. information.
会话停止单元 1503, 用于当检测到所述用户停止所述音频会话时, 向所述 服务器发送音频会话停止消息, 以便所述服务器将所述会话音频信息转发至其 他即时通讯客户端进行播放。  The session stop unit 1503 is configured to send an audio session stop message to the server when detecting that the user stops the audio session, so that the server forwards the session audio information to other instant messaging clients for playing.
本发明实施例中, 用户完成音频会话后, 可发起停止音频会话操作。 具体 地, 当用户松开即时通讯客户端上的音频会话按键, 即停止按压该音频会话按 键时, 发起停止音频会话操作, 所述会话停止单元 1503即根据该停止音频会话 操作向服务器发送音频会话停止消息, 表明进行音频会话的即时通讯客户端结 束音频会话, 并停止传输会话音频信息。  In the embodiment of the present invention, after the user completes the audio session, the user may initiate a stop audio session operation. Specifically, when the user releases the audio session button on the instant messaging client, that is, stops pressing the audio session button, the audio session operation is stopped, and the session stop unit 1503 sends an audio session to the server according to the stop audio session operation. The stop message indicates that the instant messaging client conducting the audio session ends the audio session and stops transmitting the session audio information.
第二会话管理单元 1504, 若接收到所述服务器返回的音频会话禁止消息, 则禁止所述用户进行音频会话, 并输出禁止音频会话的提示信息。  The second session management unit 1504, if receiving the audio session prohibition message returned by the server, prohibits the user from performing an audio session, and outputs prompt information for prohibiting the audio session.
其中, 音频会话禁止消息用于提示当前的会话资源已被占用, 无法进行音 频会话。  The audio session prohibition message is used to prompt that the current session resource is occupied, and the audio session cannot be performed.
会话提示单元 1505, 用于当所述至少两个即时通讯客户端中的任一即时通 讯客户端进行音频会话时, 在位置共享界面中输出音频会话提示信息。  The session prompting unit 1505 is configured to output audio session prompt information in the location sharing interface when any one of the at least two instant messaging clients performs an audio session.
通过上述图 6至附图 9所示实施例的描述, 本发明实施例中, 当至少两个 即时通讯客户端进行位置共享时, 获取所述至少两个即时通讯客户端中的各即 时通讯客户端的位置信息, 并在地图中显示所述至少两个即时通讯客户端中的 各即时通讯客户端的位置信息, 从而能够实现两个或多个即时通讯客户端之间 的位置共享, 且能够对进行位置共享的各即时通讯客户端实现位置同步显示, 提升了位置共享的智能性。 下面将结合附图 10至附图 12,对本发明实施例提供的服务器进行详细介绍。 图 10为本发明实施例提供的一种服务器的结构示意图。 参见图 10, 该服务 器可包括: 位置获取模块 201和位置共享模块 202。 According to the description of the embodiment shown in FIG. 6 to FIG. 9 , in the embodiment of the present invention, when at least two instant messaging clients perform location sharing, each instant messaging client in the at least two instant messaging clients is obtained. Position information of the terminal, and displaying location information of each instant messaging client in the at least two instant messaging clients in the map, thereby enabling location sharing between two or more instant messaging clients, and being able to perform Each instant messaging client shared by the location realizes position synchronization display. Improve the intelligence of location sharing. The server provided by the embodiment of the present invention will be described in detail below with reference to FIG. 10 to FIG. FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention. Referring to FIG. 10, the server may include: a location acquisition module 201 and a location sharing module 202.
位置获取模块 201, 用于当至少两个即时通讯客户端进行位置共享时, 获取 所述至少两个即时通讯客户端中的各即时通讯客户端的位置信息。  The location obtaining module 201 is configured to acquire location information of each instant messaging client in the at least two instant messaging clients when the at least two instant messaging clients perform location sharing.
所述至少两个即时通讯客户端中的各即时通讯客户端可分别启动 LBS定位 应用, 获得自身的位置信息, 并向服务器上报自身的位置信息; 所述位置获取 模块 201 可接收所述至少两个即时通讯客户端中的各即时通讯客户端上报的位 置信息。  Each of the at least two instant messaging clients can initiate an LBS positioning application to obtain the location information of the LBS, and report the location information of the user to the server. The location obtaining module 201 can receive the at least two Location information reported by each instant messaging client in the instant messaging client.
位置共享模块 202,用于将所述至少两个即时通讯客户端中的各即时通讯客 户端的位置信息共享至所述至少两个即时通讯客户端中的各即时通讯客户端, 以便所述至少两个即时通讯客户端中的各即时通讯客户端在地图中显示所述至 少两个即时通讯客户端中的各即时通讯客户端的位置信息。 图 11为本发明实施例提供的另一种服务器的结构示意图。 参见图 11, 该服 务器可包括: 位置获取模块 201、 位置共享模块 202和会话管理模块 203。  The location sharing module 202 is configured to share location information of each of the at least two instant messaging clients to each of the at least two instant messaging clients, so that the at least two Each instant messaging client in the instant messaging client displays location information of each instant messaging client in the at least two instant messaging clients in a map. FIG. 11 is a schematic structural diagram of another server according to an embodiment of the present invention. Referring to FIG. 11, the server may include: a location acquisition module 201, a location sharing module 202, and a session management module 203.
本实施例的位置获取模块 201和位置共享模块 202可参见图 10所示实施例 的位置获取模块 201和位置共享模块 202, 在此不赘述。  The location obtaining module 201 and the location sharing module 202 of this embodiment may refer to the location obtaining module 201 and the location sharing module 202 of the embodiment shown in FIG. 10, and details are not described herein.
会话管理模块 203,用于对所述至少两个即时通讯客户端的即时通讯会话进 行管理。  The session management module 203 is configured to manage the instant messaging session of the at least two instant messaging clients.
其中, 所述即时通讯会话可以为: 音频会话、 视频会话、 文本传输和图片 传输中的至少一种。 优选地, 本发明实施例中, 所述至少两个即时通讯客户端 可以在位置共享过程中进行音频会话。 当所述即时通讯会话为音频会话时, 所 述会话管理模块 203可以对所述至少两个即时通讯客户端的音频会话进行管理。 图 12为本发明实施例提供的服务器的会话管理模块的结构示意图。 本实施 例的所述即时通讯会话为音频会话, 参见图 12, 所述会话管理模块 203可以对 所述至少两个即时通讯客户端的音频会话进行管理, 该会话管理模块 203 可包 括: 判断单元 2301、 会话管理单元 2302和音频共享单元 2303。 The instant messaging session may be: at least one of an audio session, a video session, a text transmission, and a picture transmission. Preferably, in the embodiment of the present invention, the at least two instant messaging clients may perform an audio session during the location sharing process. When the instant messaging session is an audio session, the session management module 203 can manage audio sessions of the at least two instant messaging clients. FIG. 12 is a schematic structural diagram of a session management module of a server according to an embodiment of the present invention. The instant messaging session in this embodiment is an audio session. Referring to FIG. 12, the session management module 203 can manage audio sessions of the at least two instant messaging clients, and the session management module 203 can The judgment unit 2301, the session management unit 2302, and the audio sharing unit 2303 are included.
判断单元 2301, 用于当接收到所述至少两个即时通讯客户端中的任一个即 时通讯客户端发送的音频会话请求消息时, 判断所述至少两个即时通讯客户端 中除发送所述音频会话请求消息的即时通讯客户端之外的任一其他即时通讯客 户端是否正在进行音频会话。  The determining unit 2301 is configured to: when receiving the audio session request message sent by any one of the at least two instant messaging clients, determine the audio of the at least two instant messaging clients Whether any other instant messaging client other than the instant messaging client of the session request message is in an audio session.
其中, 判断所述至少两个即时通讯客户端中除发送所述音频会话请求消息 的即时通讯客户端之外的任一其他即时通讯客户端是否正在进行音频会话, 即 是检查会话资源当前是否被占用。  Determining whether any other instant messaging client other than the instant messaging client that sends the audio session request message in the at least two instant messaging clients is performing an audio session, that is, checking whether the session resource is currently being Occupied.
会话管理单元 2302, 用于当判断结果为否时, 向发送所述音频会话请求消 息的即时通讯客户端返回音频会话允许消息, 以允许发送所述音频会话请求消 息的即时通讯客户端进行音频会话, 并接收所述进行音频会话的即时通讯客户 端传输的会话音频信息, 当判断结果为是时, 向发送所述音频会话请求消息的 即时通讯客户端返回音频会话禁止消息, 以禁止发送所述音频会话请求消息的 即时通讯客户端进行音频会话。  The session management unit 2302 is configured to, when the determination result is no, return an audio session permission message to the instant messaging client that sends the audio session request message, to allow the instant messaging client that sends the audio session request message to perform an audio session. And receiving the session audio information transmitted by the instant messaging client that performs the audio session, and when the determination result is yes, returning an audio session prohibition message to the instant messaging client that sends the audio session request message to prohibit sending the The instant messaging client of the audio session request message makes an audio session.
其中, 音频会话允许消息用于提示当前的会话资源处于空闲状态, 可进行 音频会话, 音频会话禁止消息用于提示当前的会话资源已被占用, 无法进行音 频会话。  The audio session permission message is used to prompt that the current session resource is in an idle state, and an audio session may be performed. The audio session prohibition message is used to prompt that the current session resource is occupied, and the audio session cannot be performed.
音频共享单元 2303, 用于当接收到所述进行音频会话的即时通讯客户端发 送的音频会话停止消息时, 将所述会话音频信息转发至所述至少两个即时通讯 客户端中除所述进行音频会话的即时通讯客户端之外的其他即时通讯客户端进 行播放。  The audio sharing unit 2303 is configured to: when receiving the audio session stop message sent by the instant messaging client that performs the audio session, forward the session audio information to the at least two instant messaging clients. Other instant messaging clients other than the instant messaging client of the audio session play.
通过上述图 10至附图 12所示实施例的描述, 本发明实施例中, 当至少两 个即时通讯客户端进行位置共享时, 获取所述至少两个即时通讯客户端中的各 即时通讯客户端的位置信息, 并在地图中显示所述至少两个即时通讯客户端中 的各即时通讯客户端的位置信息, 从而能够实现两个或多个即时通讯客户端之 间的位置共享, 且能够对进行位置共享的各即时通讯客户端实现位置同步显示, 提升了位置共享的智能性。 图 13为本发明实施例提供的一种位置共享系统的结构示意图。 参见图 13, 该系统可包括服务器和至少两个即时通讯客户端, 其中, 所述服务器可参见附 图 10至附图 12所示实施例的相关描述, 所述即时通讯客户端可参见附图 6至 附图 9所示实施例的相关描述, 在此不赘述。 According to the foregoing description of the embodiment shown in FIG. 10 to FIG. 12, in the embodiment of the present invention, when at least two instant messaging clients perform location sharing, each instant messaging client in the at least two instant messaging clients is obtained. Position information of the terminal, and displaying location information of each instant messaging client in the at least two instant messaging clients in the map, thereby enabling location sharing between two or more instant messaging clients, and being able to perform The location sharing of each instant messaging client realizes the position synchronization display, which improves the intelligence of location sharing. FIG. 13 is a schematic structural diagram of a location sharing system according to an embodiment of the present invention. Referring to FIG. 13, the system may include a server and at least two instant messaging clients, wherein the server may be attached For a description of the embodiment shown in FIG. 10 to FIG. 12, the instant messaging client can refer to the related description of the embodiment shown in FIG. 6 to FIG. 9, and details are not described herein.
通过上述各实施例的描述, 本发明实施例中, 当至少两个即时通讯客户端 进行位置共享时, 获取所述至少两个即时通讯客户端中的各即时通讯客户端的 位置信息, 并在地图中显示所述至少两个即时通讯客户端中的各即时通讯客户 端的位置信息, 从而能够实现两个或多个即时通讯客户端之间的位置共享, 且 能够对进行位置共享的各即时通讯客户端实现位置同步显示, 提升了位置共享 的智能性。  According to the description of the foregoing embodiments, in the embodiment of the present invention, when at least two instant messaging clients perform location sharing, acquiring location information of each instant messaging client in the at least two instant messaging clients, and Displaying location information of each instant messaging client in the at least two instant messaging clients, thereby enabling location sharing between two or more instant messaging clients, and being capable of sharing instant messaging clients for location sharing The side realizes the position synchronization display, which improves the intelligence of location sharing.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算 机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体( Read-Only Memory, ROM )或随机存储记忆体 ( Random Access Memory, RAM )等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已, 当然不能以此来限定本发明之 保护范围, 因此依本发明权利要求所作的等同变化, 仍属本发明所涵盖的范围。  The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and the equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims

权 利 要 求 书 claims
1、 一种位置共享方法, 其特征在于, 包括: 1. A location sharing method, characterized by including:
当至少两个即时通讯客户端进行位置共享时, 获取所述至少两个即时通讯 客户端中的各即时通讯客户端的位置信息; When at least two instant messaging clients perform location sharing, obtain the location information of each of the at least two instant messaging clients;
在地图中显示所述至少两个即时通讯客户端中的各即时通讯客户端的位置 信息。 The location information of each of the at least two instant messaging clients is displayed on the map.
2、 如权利要求 1所述的方法, 其特征在于, 所述在地图中显示所述至少两 个即时通讯客户端中的各即时通讯客户端的位置信息包括: 2. The method of claim 1, wherein displaying the location information of each of the at least two instant messaging clients on the map includes:
获取所述至少两个即时通讯客户端中的各即时通讯客户端的标识信息; 调用地图, 以及 Obtain the identification information of each of the at least two instant messaging clients; call the map, and
在所述地图中釆用所述至少两个即时通讯客户端中的各即时通讯客户端的 标识信息显示所述至少两个即时通讯客户端中的各即时通讯客户端的位置信 息。 The location information of each of the at least two instant messaging clients is displayed on the map using the identification information of each of the at least two instant messaging clients.
3、 如权利要求 2所述的方法, 其特征在于, 所述调用地图之后, 在所述地 图中釆用所述至少两个即时通讯客户端中的各即时通讯客户端的标识信息显示 所述至少两个即时通讯客户端中的各即时通讯客户端的位置信息之前, 3. The method of claim 2, wherein after calling the map, the identification information of each of the at least two instant messaging clients is used to display the at least two instant messaging clients in the map. Before the location information of each instant messaging client in the two instant messaging clients,
将所述地图显示于位置共享界面中。 Display the map in the location sharing interface.
4、 如权利要求 1所述的方法, 还包括: 4. The method of claim 1, further comprising:
监测所述至少两个即时通讯客户端中的各即时通讯客户端的移动信息, 所 述移动信息包括移动方向和移动距离; Monitor the movement information of each instant messaging client in the at least two instant messaging clients, where the movement information includes movement direction and movement distance;
在所述地图中显示所述至少两个即时通讯客户端中的各即时通讯客户端的 移动信息。 Movement information of each of the at least two instant messaging clients is displayed on the map.
5、 如权利要求 1所述的方法, 其特征在于, 还包括: 对所述至少两个即时 通讯客户端的即时通讯会话进行管理; 5. The method of claim 1, further comprising: managing the instant messaging sessions of the at least two instant messaging clients;
其中, 所述即时通讯会话为: 音频会话、 视频会话、 文本传输和图片传输 中的至少一种 t Among them, the instant messaging sessions are: audio session, video session, text transmission and picture transmission at least one of t
6、如权利要求 5所述的方法, 其特征在于, 所述即时通讯会话为音频会话, 所述对所述至少两个即时通讯客户端的即时通讯会话进行管理包括: 6. The method of claim 5, wherein the instant messaging session is an audio session, and the managing the instant messaging sessions of the at least two instant messaging clients includes:
当用户发起音频会话时, 向所述服务器发送音频会话请求消息; When the user initiates an audio session, send an audio session request message to the server;
若接收到所述服务器返回的音频会话允许消息, 则允许所述用户进行音频 会话, 并将获取的会话音频信息传输至所述服务器。 If the audio session permission message returned by the server is received, the user is allowed to have an audio session, and the obtained session audio information is transmitted to the server.
7、 如权利要求 6所述的方法, 其特征在于, 所述对所述至少两个即时通讯 客户端的即时通讯会话进行管理还包括: 7. The method of claim 6, wherein said managing the instant messaging sessions of the at least two instant messaging clients further includes:
当检测到所述用户停止所述音频会话时, 向所述服务器发送音频会话停止 消息, 以便所述服务器将所述会话音频信息转发至其他即时通讯客户端进行播 放。 When it is detected that the user stops the audio session, an audio session stop message is sent to the server so that the server forwards the session audio information to other instant messaging clients for playback.
8、 如权利要求 6所述的方法, 其特征在于, 所述对所述至少两个即时通讯 客户端的即时通讯会话进行管理还包括: 8. The method of claim 6, wherein said managing the instant messaging sessions of the at least two instant messaging clients further includes:
若接收到所述服务器返回的音频会话禁止消息, 则禁止所述用户音频会话, 并输出禁止音频会话的提示信息。 If the audio session prohibition message returned by the server is received, the user audio session is prohibited, and a prompt message indicating that the audio session is prohibited is output.
9、 如权利要求 6所述的方法, 其特征在于, 所述对所述至少两个即时通讯 客户端的即时通讯会话进行管理还包括: 9. The method of claim 6, wherein said managing the instant messaging sessions of the at least two instant messaging clients further includes:
当所述至少两个即时通讯客户端中的任一即时通讯客户端进行音频会话 时, 在位置共享界面中输出音频会话提示信息。 When any one of the at least two instant messaging clients conducts an audio session, audio session prompt information is output in the location sharing interface.
10、 一种位置共享方法, 其特征在于, 包括: 10. A location sharing method, characterized by including:
当至少两个即时通讯客户端进行位置共享时, 获取所述至少两个即时通讯 客户端中的各即时通讯客户端的位置信息; When at least two instant messaging clients perform location sharing, obtain the location information of each of the at least two instant messaging clients;
将所述至少两个即时通讯客户端中的各即时通讯客户端的位置信息共享至 所述至少两个即时通讯客户端中的各即时通讯客户端, 以便所述至少两个即时 通讯客户端中的各即时通讯客户端在地图中显示所述至少两个即时通讯客户端 中的各即时通讯客户端的位置信息。 The location information of each of the at least two instant messaging clients is shared with each of the at least two instant messaging clients, so that the location information of each of the at least two instant messaging clients is Each instant messaging client displays the at least two instant messaging clients on the map The location information of each instant messaging client in .
11、 如权利要求 10所述的方法, 其特征在于, 还包括: 对所述至少两个即 时通讯客户端的即时通讯会话进行管理; 11. The method of claim 10, further comprising: managing the instant messaging sessions of the at least two instant messaging clients;
其中, 所述即时通讯会话为: 音频会话、 视频会话、 文本传输和图片传输 中的至少一种。 Wherein, the instant messaging session is at least one of: audio session, video session, text transmission and picture transmission.
12、 如权利要求 11所述的方法, 其特征在于, 所述即时通讯会话为音频会 话, 所述对所述至少两个即时通讯客户端的即时通讯会话进行管理包括: 12. The method of claim 11, wherein the instant messaging session is an audio session, and the managing the instant messaging sessions of the at least two instant messaging clients includes:
当接收到所述至少两个即时通讯客户端中的任一个即时通讯客户端发送的 音频会话请求消息时, 判断所述至少两个即时通讯客户端中除发送所述音频会 话请求消息的即时通讯客户端之外的任一其他即时通讯客户端是否正在进行音 频会话; When receiving an audio session request message sent by any one of the at least two instant messaging clients, it is determined that the instant messaging client among the at least two instant messaging clients is the one that sent the audio session request message. Whether there is an ongoing audio session with any other instant messaging client other than the client;
如果判断结果为否, 向发送所述音频会话请求消息的即时通讯客户端返回 音频会话允许消息, 以允许发送所述音频会话请求消息的即时通讯客户端进行 音频会话, 并接收所述进行音频会话的即时通讯客户端传输的会话音频信息; 如果判断结果为是, 向发送所述音频会话请求消息的即时通讯客户端返回 音频会话禁止消息, 以禁止发送所述音频会话请求消息的即时通讯客户端进行 音频会话。 If the judgment result is no, return an audio session permission message to the instant messaging client that sent the audio session request message to allow the instant messaging client that sent the audio session request message to conduct an audio session, and receive the audio session request message. session audio information transmitted by the instant messaging client; if the judgment result is yes, return an audio session prohibition message to the instant messaging client that sent the audio session request message to prohibit the instant messaging client that sent the audio session request message. Have an audio session.
13、 如权利要求 12所述的方法, 其特征在于, 所述对所述至少两个即时通 讯客户端的即时通讯会话进行管理还包括: 13. The method of claim 12, wherein said managing the instant messaging sessions of the at least two instant messaging clients further includes:
当接收到所述进行音频会话的即时通讯客户端发送的音频会话停止消息 时, 将所述会话音频信息转发至所述至少两个即时通讯客户端中除所述进行音 频会话的即时通讯客户端之外的其他即时通讯客户端进行播放。 When receiving the audio session stop message sent by the instant messaging client conducting the audio session, forward the session audio information to the at least two instant messaging clients except the instant messaging client conducting the audio session. other than other instant messaging clients.
14、 一种即时通讯客户端, 其特征在于, 包括: 14. An instant messaging client, characterized by including:
位置获取模块, 用于当至少两个即时通讯客户端进行位置共享时, 获取所 述至少两个即时通讯客户端中的各即时通讯客户端的位置信息; A location acquisition module, configured to obtain the location information of each of the at least two instant messaging clients when at least two instant messaging clients perform location sharing;
位置共享模块, 用于在地图中显示所述至少两个即时通讯客户端中的各即 时通讯客户端的位置信息。 a location sharing module, configured to display each of the at least two instant messaging clients on a map The location information of the instant messaging client.
15、 如权利要求 14所述的即时通讯客户端, 其特征在于, 所述位置共享模 块包括: 15. The instant messaging client as claimed in claim 14, wherein the location sharing module includes:
标识获取单元, 用于获取所述至少两个即时通讯客户端中的各即时通讯客 户端的标识信息; An identification acquisition unit, configured to obtain identification information of each instant messaging client in the at least two instant messaging clients;
地图调用单元, 用于调用地图; Map calling unit, used to call maps;
位置显示单元, 用于在所述地图中釆用所述至少两个即时通讯客户端中的 各即时通讯客户端的标识信息显示所述至少两个即时通讯客户端中的各即时通 讯客户端的位置信息。 A location display unit configured to use the identification information of each of the at least two instant messaging clients to display the location information of each of the at least two instant messaging clients on the map. .
16、 如权利要求 15所述的即时通讯客户端, 其特征在于, 所述位置共享模 块还包括: 16. The instant messaging client as claimed in claim 15, wherein the location sharing module further includes:
地图显示单元, 用于将所述地图显示于位置共享界面中。 A map display unit, configured to display the map in the location sharing interface.
17、 如权利要求 14-所述的即时通讯客户端, 其特征在于, 还包括: 移动监测模块, 用于监测所述至少两个即时通讯客户端中的各即时通讯客 户端的移动信息, 所述移动信息包括移动方向和移动距离; 17. The instant messaging client of claim 14, further comprising: a movement monitoring module, configured to monitor the movement information of each of the at least two instant messaging clients, Movement information includes movement direction and movement distance;
移动显示模块, 用于在所述地图中显示所述至少两个即时通讯客户端中的 各即时通讯客户端的移动信息。 A mobile display module, configured to display mobile information of each of the at least two instant messaging clients on the map.
18、 如权利要求 17所述的即时通讯客户端, 其特征在于, 还包括: 会话管理模块, 用于对所述至少两个即时通讯客户端的即时通讯会话进行 管理; 18. The instant messaging client as claimed in claim 17, further comprising: a session management module, configured to manage the instant messaging sessions of the at least two instant messaging clients;
其中, 所述即时通讯会话为: 音频会话、 视频会话、 文本传输和图片传输 中的至少一种。 Wherein, the instant messaging session is at least one of: audio session, video session, text transmission and picture transmission.
19、 如权利要求 18所述的即时通讯客户端, 其特征在于, 所述即时通讯会 话为音频会话, 所述会话管理模块包括: 19. The instant messaging client as claimed in claim 18, wherein the instant messaging session is an audio session, and the session management module includes:
会话请求单元, 用于当检测到用户发起音频会话时, 向所述服务器发送音 频会话请求消息; A session request unit, configured to send an audio session to the server when it is detected that the user initiates an audio session. Frequent session request message;
第一会话管理单元, 用于若接收到所述服务器返回的音频会话允许消息, 则允许所述用户进行音频会话, 并将获取的会话音频信息传输至所述服务器。 The first session management unit is configured to allow the user to conduct an audio session if it receives an audio session permission message returned by the server, and transmit the obtained session audio information to the server.
20、 如权利要求 19所述的即时通讯客户端, 其特征在于, 所述会话管理模 块还包括: 20. The instant messaging client as claimed in claim 19, wherein the session management module further includes:
会话停止单元, 用于当检测到所述用户停止所述音频会话时, 向所述服务 器发送音频会话停止消息, 以便所述服务器将所述会话音频信息转发至其他即 时通讯客户端进行播放。 A session stopping unit, configured to send an audio session stopping message to the server when it is detected that the user stops the audio session, so that the server can forward the session audio information to other instant messaging clients for playback.
21、 如权利要求 19所述的即时通讯客户端, 其特征在于, 所述会话管理模 块还包括: 21. The instant messaging client as claimed in claim 19, wherein the session management module further includes:
第二会话管理单元, 若接收到所述服务器返回的音频会话禁止消息, 则禁 止所述用户进行音频会话, 并输出禁止音频会话的提示信息。 If the second session management unit receives the audio session prohibition message returned by the server, it prohibits the user from conducting the audio session, and outputs prompt information indicating that the audio session is prohibited.
22、 如权利要求 19所述的即时通讯客户端, 其特征在于, 所述会话管理模 块还包括: 22. The instant messaging client of claim 19, wherein the session management module further includes:
会话提示单元, 用于当所述至少两个即时通讯客户端中的任一即时通讯客 户端进行音频会话时, 在位置共享界面中输出音频会话提示信息。 A session prompt unit, configured to output audio session prompt information in the location sharing interface when any one of the at least two instant messaging clients conducts an audio session.
23、 一种服务器, 其特征在于, 包括: 23. A server, characterized by including:
位置获取模块, 用于当至少两个即时通讯客户端进行位置共享时, 获取所 述至少两个即时通讯客户端中的各即时通讯客户端的位置信息; A location acquisition module, configured to obtain the location information of each of the at least two instant messaging clients when at least two instant messaging clients perform location sharing;
位置共享模块, 用于将所述至少两个即时通讯客户端中的各即时通讯客户 端的位置信息共享至所述至少两个即时通讯客户端中的各即时通讯客户端, 以 便所述至少两个即时通讯客户端中的各即时通讯客户端在地图中显示所述至少 两个即时通讯客户端中的各即时通讯客户端的位置信息。 A location sharing module configured to share the location information of each of the at least two instant messaging clients to each of the at least two instant messaging clients so that the at least two Each of the instant messaging clients displays the location information of each of the at least two instant messaging clients on a map.
24、 如权利要求 23所述的服务器, 其特征在于, 还包括: 24. The server of claim 23, further comprising:
会话管理模块, 用于对所述至少两个即时通讯客户端的即时通讯会话进行 管理; A session management module, configured to manage the instant messaging sessions of the at least two instant messaging clients. manage;
其中, 所述即时通讯会话为: 音频会话、 视频会话、 文本传输和图片传输 中的至少一种。 Wherein, the instant messaging session is at least one of: audio session, video session, text transmission and picture transmission.
25、 如权利要求 24所述的服务器, 其特征在于, 所述即时通讯会话为音频 会话; 则所述会话管理模块包括: 25. The server of claim 24, wherein the instant messaging session is an audio session; then the session management module includes:
判断单元, 用于当接收到所述至少两个即时通讯客户端中的任一个即时通 讯客户端发送的音频会话请求消息时, 判断所述至少两个即时通讯客户端中除 发送所述音频会话请求消息的即时通讯客户端之外的任一其他即时通讯客户端 是否正在进行音频会话; Determining unit, configured to, when receiving an audio session request message sent by any one of the at least two instant messaging clients, determine whether any of the at least two instant messaging clients sends the audio session. Whether an audio session is ongoing on any other IM client other than the one requesting the message;
会话管理单元, 用于当判断结果为否时, 向发送所述音频会话请求消息的 即时通讯客户端返回音频会话允许消息, 以允许发送所述音频会话请求消息的 即时通讯客户端进行音频会话, 并接收所述进行音频会话的即时通讯客户端传 输的会话音频信息, 当判断结果为是时, 向发送所述音频会话请求消息的即时 通讯客户端返回音频会话禁止消息, 以禁止发送所述音频会话请求消息的即时 通讯客户端进行音频会话。 The session management unit is configured to, when the judgment result is no, return an audio session permission message to the instant messaging client that sent the audio session request message, so as to allow the instant messaging client that sent the audio session request message to conduct an audio session, And receive the session audio information transmitted by the instant messaging client that performs the audio session, and when the judgment result is yes, return an audio session prohibition message to the instant messaging client that sent the audio session request message to prohibit sending the audio. Session request message for an instant messaging client to conduct an audio session.
26、如权利要求 25所述的服务器, 其特征在于, 所述会话管理模块还包括: 音频共享单元, 用于当接收到所述进行音频会话的即时通讯客户端发送的 音频会话停止消息时, 将所述会话音频信息转发至所述至少两个即时通讯客户 端中除所述进行音频会话的即时通讯客户端之外的其他即时通讯客户端进行播 放。 26. The server of claim 25, wherein the session management module further includes: an audio sharing unit, configured to: when receiving an audio session stop message sent by the instant messaging client conducting an audio session, The conversation audio information is forwarded to other instant messaging clients among the at least two instant messaging clients except the instant messaging client that conducts the audio conversation for playing.
27、 一种位置共享系统, 包括服务器和至少两个即时通讯客户端, 其特征 在于, 所述服务器为如权利要求 23-26任一项所述的服务器, 所述即时通讯客户 端为如权利要求 14-22任一项所述的即时通讯客户端。 27. A location sharing system, including a server and at least two instant messaging clients, characterized in that the server is the server as claimed in any one of claims 23-26, and the instant messaging client is as claimed in the right The instant messaging client described in any one of requirements 14-22.
PCT/CN2014/085747 2013-09-09 2014-09-02 Position sharing method, instant messaging client, server, and system WO2015032306A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310409273.7A CN104426749A (en) 2013-09-09 2013-09-09 Position sharing method, instant messaging client, server and system
CN201310409273.7 2013-09-09

Publications (1)

Publication Number Publication Date
WO2015032306A1 true WO2015032306A1 (en) 2015-03-12

Family

ID=52627796

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/085747 WO2015032306A1 (en) 2013-09-09 2014-09-02 Position sharing method, instant messaging client, server, and system

Country Status (2)

Country Link
CN (2) CN109768920B (en)
WO (1) WO2015032306A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111555956A (en) * 2019-12-11 2020-08-18 中国科学院软件研究所 Method for processing picture containing readable geographic position information in instant messaging and electronic device

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915354A (en) * 2015-10-23 2016-08-31 乐视致新电子科技(天津)有限公司 Group traveling communication method, server, terminal and system
CN105610950B (en) * 2015-12-30 2020-07-24 腾讯科技(深圳)有限公司 Conversation processing method and system in motorcade trip
CN105791090B (en) * 2016-03-01 2020-01-14 Oppo广东移动通信有限公司 Position information sharing method and device and server
CN106813673A (en) * 2016-12-19 2017-06-09 北京东方车云信息技术有限公司 A kind of position display method and device
CN106708538B (en) 2017-01-23 2020-04-21 腾讯科技(深圳)有限公司 Interface display method and device
CN107147565A (en) * 2017-05-09 2017-09-08 深圳市伊特利网络科技有限公司 Communication apparatus is automatically positioned interactive information and discloses method and system
CN107480248B (en) * 2017-08-11 2020-12-15 北京安云世纪科技有限公司 Geographic position information loading method and device and mobile terminal
CN108126344B (en) * 2018-01-24 2021-04-20 网易(杭州)网络有限公司 Method for sharing position in game and storage medium
CN110519459A (en) * 2019-08-27 2019-11-29 广东小天才科技有限公司 Method of speech processing and device, terminal device, computer readable storage medium
CN112836142A (en) * 2019-11-22 2021-05-25 腾讯科技(深圳)有限公司 Aggregation point processing method based on position sharing
CN114124862B (en) * 2020-08-31 2023-07-04 上海云鱼智能科技有限公司 Method, device, server, client, terminal and storage medium for acquiring user information according to ultrashort ID

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101646126A (en) * 2009-08-28 2010-02-10 宇龙计算机通信科技(深圳)有限公司 Service and mobile terminals, and position sharing method and system based on mobile packets
CN102067654A (en) * 2008-06-19 2011-05-18 维里逊专利及许可公司 Location-aware instant message
CN102440011A (en) * 2011-10-24 2012-05-02 华为终端有限公司 Method for sharing terminal position and terminal device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200823678A (en) * 2006-11-22 2008-06-01 Acer Inc Method and electronic device for sharing data via instant message
WO2009026367A1 (en) * 2007-08-20 2009-02-26 Emotive Communications, Inc. Interactive interface for devices supporting communication employing sender-specified media content
CN101765055A (en) * 2009-12-23 2010-06-30 深圳市戴文科技有限公司 Method, system and terminal equipment of PTT communication
CN102571618B (en) * 2010-12-07 2015-08-05 腾讯科技(深圳)有限公司 A kind of method and apparatus of instant messaging
CN103067249A (en) * 2011-10-20 2013-04-24 腾讯科技(深圳)有限公司 Contact display method, instant messaging software client side and client server
CN103036953B (en) * 2012-11-30 2016-05-04 北京搜狗科技发展有限公司 A kind ofly provide the method and apparatus of dynamic location information for user

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102067654A (en) * 2008-06-19 2011-05-18 维里逊专利及许可公司 Location-aware instant message
CN101646126A (en) * 2009-08-28 2010-02-10 宇龙计算机通信科技(深圳)有限公司 Service and mobile terminals, and position sharing method and system based on mobile packets
CN102440011A (en) * 2011-10-24 2012-05-02 华为终端有限公司 Method for sharing terminal position and terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111555956A (en) * 2019-12-11 2020-08-18 中国科学院软件研究所 Method for processing picture containing readable geographic position information in instant messaging and electronic device

Also Published As

Publication number Publication date
CN104426749A (en) 2015-03-18
CN109768920A (en) 2019-05-17
CN109768920B (en) 2021-04-30

Similar Documents

Publication Publication Date Title
WO2015032306A1 (en) Position sharing method, instant messaging client, server, and system
US9871930B2 (en) Call invites
US9059880B2 (en) Notification of communication events
TWI551112B (en) Non-transitory tangible machine-readable medium and client device for transitioning between a circuit switched audio call and a video call
CN105144673B (en) Reduced latency server-intervention audio-video communication
US11805158B2 (en) Method and system for elevating a phone call into a video conferencing session
US9060049B2 (en) Notification of communication events
US10602092B2 (en) Personalized audio-video invitations via peer-to-peer connection
US10097694B1 (en) Method and system for moving phone call participation between carrier and data networks
US7853278B2 (en) Communication control server, communication terminal and communication control method
CN103167153A (en) System and method of displaying position of mobile phone on the line in real time
CN108989179B (en) Message processing method and device and storage medium
WO2015131750A1 (en) Method, device and system for establishing multi-party call based on web rtc
KR20090019446A (en) System and method for providing location information
US20180103151A1 (en) Communication System
WO2015127793A1 (en) Recording method, voice exchanging device, recording server, and recording system
WO2013149428A1 (en) Method for realizing switching to device-to-device communication mode, network apparatus and user equipment
US10511569B2 (en) Techniques for providing multi-modal multi-party calling
KR101567136B1 (en) Multipoint conference device and switching method from point-to-point communication to multipoint conference
US9509726B2 (en) Optimizing call bearer path using session initiation protocol proxy
US20150365133A1 (en) Touch and Talk Auto-Configuring of Video Conferences Using Near Field Communication (NFC)
US20200186636A1 (en) Enabling call transfer using headset
CN112203040B (en) Railway emergency communication method and system based on communication conference
CN107046673B (en) Method and system for wireless calling
CN110234079A (en) A kind of important traffic group calling method, server, user equipment and storage device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14842080

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04.08.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14842080

Country of ref document: EP

Kind code of ref document: A1