WO2015101340A1 - Function activation method and device - Google Patents

Function activation method and device Download PDF

Info

Publication number
WO2015101340A1
WO2015101340A1 PCT/CN2014/096010 CN2014096010W WO2015101340A1 WO 2015101340 A1 WO2015101340 A1 WO 2015101340A1 CN 2014096010 W CN2014096010 W CN 2014096010W WO 2015101340 A1 WO2015101340 A1 WO 2015101340A1
Authority
WO
WIPO (PCT)
Prior art keywords
function
startup
link
client
program
Prior art date
Application number
PCT/CN2014/096010
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
Priority claimed from CN201310754304.2A external-priority patent/CN103761123B/en
Priority claimed from CN201310754562.0A external-priority patent/CN103763312B/en
Application filed by 广州华多网络科技有限公司 filed Critical 广州华多网络科技有限公司
Publication of WO2015101340A1 publication Critical patent/WO2015101340A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a function starting method and apparatus.
  • Team Voice Tools is a web tool that supports multiplayer online voice communication as well as video communication.
  • the Team Voice tool provides a variety of subroutines, each of which, when invoked by the client of the Team Voice tool, launches a feature provided by the Team Voice tool.
  • the subroutine is a game subroutine
  • the game subroutine can be called by the client of the team voice tool to start the game
  • the subroutine is a channel subroutine
  • the channel subroutine can be called by the client of the team voice tool to start. Channel.
  • the related art provides a function starting method, including: a user viewing a communication message sent by another user, the communication message carrying a name of a function recommended by another user, the user inputting the name in a search box provided by the client, triggering the client
  • the function searches the function according to the name. If the startup option of the function is retrieved, the startup option is displayed, and the user clicks the function option displayed by the client to start the function.
  • the client needs to retrieve the corresponding function according to the name of the function input by the user, and the function is started after the user clicks the startup option of the function, which causes the startup process of the function to be more complicated, and reduces the efficiency of the user using the function.
  • the function is started after the user clicks the startup option of the function, which causes the function startup process to be more complicated.
  • the embodiment of the invention provides a function starting method and device. The technical solution is as follows:
  • an embodiment of the present invention provides a function starting method, where the method includes:
  • the function indicated by the startup link is started.
  • an embodiment of the present invention provides a function starting method, where the method includes:
  • the launch link is sent to other clients for the other client to initiate the function indicated by the launch link, the launch link being used to initiate the functionality provided by the other client.
  • a function starting method for a terminal, where the terminal includes a client and a startup program corresponding to the client, and the startup program is configured to process a customization corresponding to a predetermined protocol header.
  • a program for the Uniform Resource Locator URL protocol the method comprising:
  • the predetermined protocol header in the startup link is extracted by the operating system
  • the client startup function is triggered by the launcher.
  • an embodiment of the present invention provides a function starting device, where the method includes:
  • a message receiving module configured to receive a communication message sent by another client
  • a message detecting module configured to detect whether the communication message received by the message receiving module includes a startup link, where the startup link is used to start a function provided by the client;
  • a function startup module configured to: when the message detection module detects that the communication message includes the startup link, initiate a function indicated by the startup link.
  • an embodiment of the present invention provides a function starting device, where the method includes:
  • a link obtaining module configured to obtain a startup link from an input box of the client
  • a link sending module configured to send the startup link acquired by the link obtaining module to another client, so that the other client starts a function indicated by the startup link, and the startup link is used to start the Features provided by other clients.
  • an embodiment of the present invention provides a function starting apparatus, where the terminal includes a client and a startup program corresponding to the client, where the startup program is used to process a predetermined protocol header.
  • the device includes:
  • a parameter extraction module configured to extract, by the operating system, a predetermined protocol header in the startup link after the startup link is triggered;
  • a program search module configured to search, by the operating system, the startup program according to the predetermined protocol header
  • a function startup module configured to trigger the client startup function by the startup program found by the program search module.
  • an embodiment of the present invention provides a function starting device, where the device includes:
  • One or more processors are One or more processors.
  • the memory stores one or more programs, the one or more programs being configured to be executed by the one or more processors, the one or more programs including instructions for:
  • the function indicated by the startup link is started.
  • an embodiment of the present invention provides a function starting device, where the device includes:
  • One or more processors are One or more processors.
  • the memory stores one or more programs, the one or more programs being configured to be executed by the one or more processors, the one or more programs including instructions for:
  • the launch link is sent to other clients for the other client to initiate the function indicated by the launch link, the launch link being used to initiate the functionality provided by the other client.
  • an embodiment of the present invention provides a function starting apparatus, where the terminal includes a client and a startup program corresponding to the client, where the startup program is used to process a predetermined protocol header.
  • the device includes:
  • One or more processors are One or more processors.
  • the memory stores one or more programs, the one or more programs being configured to be Executed by one or more processors, the one or more programs including instructions for:
  • the predetermined protocol header in the startup link is extracted by the operating system
  • the client startup function is triggered by the launcher.
  • the startup link is directly obtained from the received communication message, and the function is directly activated according to the startup link, which solves the problem that the client needs to retrieve the corresponding function according to the name of the function input by the user, and starts the function after the user clicks the startup option of the function.
  • the problem that affects the startup efficiency of the function is achieved, and the effect of improving the startup efficiency of the function is achieved.
  • FIG. 1 is a schematic structural diagram of a team voice tool according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for a function starting method according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for starting a function according to another embodiment of the present invention.
  • FIG. 3B is a schematic diagram of application of an activation link display manner according to an embodiment of the present invention.
  • 3C is a schematic diagram of application of a first channel starting method according to an embodiment of the present invention.
  • FIG. 3D is a schematic diagram of application of a second channel starting method according to an embodiment of the present invention.
  • FIG. 3E is a schematic diagram of application of a first game starting method according to an embodiment of the present invention.
  • FIG. 3F is a schematic diagram of application of a second game starting method according to an embodiment of the present invention.
  • FIG. 3G is a schematic diagram of application of a method for adding a group member according to an embodiment of the present disclosure
  • FIG. 3H is a schematic diagram of application of a second group member adding method according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for a function starting method according to an embodiment of the present invention.
  • FIG. 5A is a flowchart of a method for a function starting method according to another embodiment of the present invention.
  • FIG. 5B is a schematic diagram of generating a startup link according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for a function starting method according to an embodiment of the present invention.
  • FIG. 7A is a flowchart of a method for a function starting method according to another embodiment of the present invention.
  • FIG. 7B is a schematic diagram of application of a channel starting method according to another embodiment of the present invention.
  • FIG. 7C is a schematic diagram of an application of a game launching method according to another embodiment of the present invention.
  • 7D is a schematic diagram of application of a group member adding method according to another embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a function starting device according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a function starting device according to still another embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a function starting device according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a function starting device according to still another embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a function starting device according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a function starting device according to still another embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a team voice tool according to an embodiment of the present invention.
  • the team voice tool includes a client 110, a server 120, and a client 130.
  • the client 110 can be installed in a terminal such as a computer, a smart phone, a tablet, and an e-book reader.
  • the terminal can be installed with an application client of the team voice tool, or a web browser with a browser installed and then accessing the team voice tool through a browser.
  • the client 110 has the ability to send and receive communication messages. The embodiment is described by the client 110 receiving the communication message.
  • the communication message is a message that the server 120 forwards to the client 110 after the client 130 sends the message to the server 120.
  • Server 120 can be coupled to client 110 via a wireless or wired network.
  • the server 120 can be one or more servers or a cloud computing center.
  • the server 120 can be implemented by one server; it can also be implemented by a combination of multiple servers, each of which assumes the same or different functions, such as a server for registration and login, a server for saving user avatars, and The server for saving channel information and configuration information, the server for saving pictures or videos, and the like; the server 120 can also be implemented by a cloud computing center, which is a virtual computing platform formed by a whole service cluster.
  • the client 130 can be installed in, for example, a computer, a smart phone, a tablet, and an e-book reader. In the terminal of the class.
  • the terminal can be installed with an application client of the team voice tool, or a web browser with a browser installed and then accessing the team voice tool through a browser.
  • the client 130 has the ability to send and receive communication messages. The embodiment is described by the client 130 sending a communication message.
  • the communication message is a message that the server 120 forwards to the client 110 after the client 130 sends the message to the server 120.
  • the team voice tool includes a client 110 and a launcher corresponding to the client 110.
  • the client 110 and the launcher can be installed in terminals such as computers, smart phones, tablets, and e-book readers.
  • the terminal can be installed with an application client of the team voice tool, or a web browser with a browser installed and then accessing the team voice tool through a browser.
  • the client 110 has the ability to receive a boot parameter sent by the launcher and initiate a function corresponding to the boot parameter.
  • FIG. 2 is a flowchart of a method for starting a function according to an embodiment of the present invention.
  • the function starting method can be applied to the client 110 shown in FIG.
  • the client 110 is referred to as a local client in order to distinguish it from other clients.
  • the function startup method includes:
  • Step 201 Receive a communication message sent by another client.
  • the communication message is a message sent by the other client to the local client, and may include a text message, a picture message, an audio message, a video message, etc., and the communication message is not limited in this embodiment.
  • Step 202 Detect whether the communication message includes a startup link, and the startup link is used to start the function provided by the client.
  • the local client Since the local client does not determine whether the communication message includes the startup link, the local client needs to detect the communication message. If the communication message includes the startup link, the local client can directly start the function according to the startup link, that is, step 203 is performed. If the communication message does not include a launch link, the local client can present the communication message. The launch link is used to launch the functionality provided by the local client.
  • Step 203 If the detection result is that the communication message includes a startup link, the function indicated by the startup link is started.
  • the function starting method receives a communication message sent by another client, detects whether the communication message includes a startup link, and starts a link for starting a function provided by the client; if the detection result is a communication message Including the launch link, launch the work indicated by the launch link Yes, the startup link can be obtained directly from the communication message, and the function is directly activated according to the startup link, which solves the problem that the client needs to retrieve the corresponding function according to the name of the function input by the user, and activates the function after the user clicks the startup option of the function.
  • the problem that affects the startup efficiency of the function is achieved, and the effect of improving the startup efficiency of the function is achieved.
  • FIG. 3A is a flowchart of a method for starting a function according to another embodiment of the present invention.
  • the function starting method can be applied to the client 110 shown in FIG. 1.
  • the client 110 is referred to as a local client in order to distinguish it from other clients.
  • the function startup method includes:
  • Step 301 Receive a communication message sent by another client.
  • the communication message is a message sent by the other client to the local client, and may include a text message, a picture message, an audio message, a video message, etc., and the communication message is not limited in this embodiment.
  • a local client can receive communication messages sent by other clients through a chat panel, or a local client can receive communications sent by other clients through a channel it enters.
  • the message is not limited in this embodiment.
  • Step 302 Detect whether the communication message includes a startup link, and the startup link is used to start the function provided by the client.
  • the launch link is used to launch the functionality provided by the local client.
  • the function to be activated may be a function recommended by other clients to the local client.
  • the function may be a certain channel that other clients enter, or a certain game that other clients are playing, etc. The example does not limit the function.
  • the local client does not determine whether the communication message includes the startup link, the local client needs to detect the communication message. If the communication message includes the startup link, the local client can directly start the function according to the startup link, that is, step 303 is performed. If the communication message does not include a launch link, the local client can present the communication message.
  • detecting whether the communication message includes a startup link includes:
  • the local client can detect whether the communication message is The predetermined protocol header is included, and it is determined according to the detection result whether the communication message includes a startup link. For example, if the communication message is "Please try y://pd", the local client determines that "y://" is the predetermined protocol header by the regular expression, thereby determining that "y://pd" in the communication message is Start the link.
  • Step 303 If the detection result is that the communication message includes the start link, the start link is displayed; if the trigger signal is received, the step 304 is triggered, and the trigger signal is used to trigger the start link.
  • the local client may automatically start the function indicated by the startup link after detecting that the communication message includes the startup link, or may display the startup link after detecting that the communication message includes the startup link, and When the user triggers the launch link, the function indicated by the launch link is launched.
  • the local client can display all the startup links as hyperlinks.
  • the startup link is displayed as “ y://pd ”, and when the pointer is moved to the hyperlink, the pointer becomes a finger.
  • the startup link is displayed, including:
  • startup link includes a program identification field
  • program identification field is obtained, and the program identification field is used to identify the subroutine
  • the program identification field is used to identify the subroutine, and the subroutine is called by the local client to start the function.
  • the startup link may not include the program identification field; when the local client includes at least two subprograms, in order to clarify Which subroutine is called to start the function, and the startup link needs to include the program identification field.
  • the program identification field is equivalent to the module identification field in the Chinese patent application with the application number 201310754562.0, and the subroutine is equivalent to the functional module in the Chinese patent application with the application number 201310754562.0.
  • the program identification field may include a module identifier of the subroutine.
  • the program identification field may include a pinyin abbreviation pd of "channel”; if the subroutine is a game subroutine, the program identification field may include a pinyin abbreviation yxdt of "game lobby".
  • the local client can also set different presentation templates for different subroutines, and after obtaining the program identification field, according to the corresponding relationship and the startup link
  • the program identification field determines the presentation template and displays the launch link through the presentation template.
  • the subroutine is a channel subroutine
  • the local client can display the ticket including the "room”
  • the subroutine is a game subroutine
  • the local client can display the ticket including the "gamepad” and the like.
  • FIG. 3B (2) is described by taking a ticket including "room” as an example.
  • the startup link only needs to include the program identification field, and the local client can determine the function according to the subroutine; if the subprogram has the ability to start at least two functions, the startup link needs to be activated.
  • Including the program identification field it is also necessary to include a function identification field, and the local client determines the function to be activated according to the function identification field.
  • the function identification field includes a function identifier of the function.
  • the function identifier may be the identifier "123" of the channel 123; if the subroutine is a game subroutine, the function identifier may be the identifier "10" of the game 10. or,
  • the launch link may also include a function description field that is used to describe the function.
  • the function description field may include at least one of a text introduction of a function, a picture introduction, an audio introduction, and a video introduction. Text descriptions can include names and popularity.
  • the local client may also add at least one of the function identification field and the function description field to the presentation template for presentation.
  • the presentation template is displayed, including:
  • the function identification field is added to the presentation template for display, the function identification field is used to identify the function;
  • the launch link further includes a function description field
  • the function description field is added to the presentation template for presentation, and the function description field is used to describe the function.
  • the function description field includes the function name and popularity as an example. Then, after the function identification field, “semi-smoke and semi-rain (134)” is displayed, that is, the name of the identification function is “semi-smoke and semi-rain”, and the popularity is 134.
  • function description field is added to the presentation template for display, including:
  • the local client may obtain an image in the installation package of the network or the local client according to the image address, and add the image to the display template for exhibition. Show.
  • the image address is obtained after the other client converts the image.
  • Step 304 start the function indicated by the startup link.
  • launching the function indicated by the launch link includes:
  • startup link only includes the program identification field, determine the subroutine indicated by the program identification field, and activate the function through the subroutine;
  • startup link only includes the function identification field, determine the function indicated by the function identification field, and activate the function
  • the startup link includes a program identification field and a function identification field, determining a subroutine indicated by the program identification field, and determining a function indicated by the function identification field, and starting the function by the subroutine;
  • the program identification field is used to identify a subroutine, and the function identification field is used to identify a function.
  • the local client may only provide one function. At this time, the local client may first determine the subroutine, and then start the unique function through the subroutine. Or, the local client may provide a function uniquely corresponding to the program identification field. At this time, the local client may first determine the subroutine, and then determine the function corresponding to the subprogram, and the function is started by the subroutine. .
  • the local client can directly start the function, or the local client needs to start the function through the subroutine. If the local client needs to start the function through a subroutine, the local client may only call one subroutine. At this time, the local client may first determine the function, and then start the function through a unique subroutine. Alternatively, the local client provides a subroutine that uniquely corresponds to the function identification field. At this time, the local client can determine the function first, and then determine the subroutine corresponding to the function, and then start the function through the subroutine.
  • the local client can first determine the subroutine and function, and then activate the function through the subroutine.
  • the subroutine can include a built-in subroutine and an external subroutine, and the method of starting the function by the built-in subroutine and the external subroutine is different, the function is started by the subroutine, including:
  • the local client can call the function identified by the built-in subroutine startup function identification field.
  • the local client can pass the interface. Triggering the external subroutine startup function; when the startup link includes a program identification field and a function identification field, the local client may send the function identification field to the external subroutine through the interface, after the external subroutine receives the function identification field, Start the function identified by the feature identification field.
  • the function starting method receives a communication message sent by another client, detects whether the communication message includes a startup link, and starts a link for starting a function provided by the client; if the detection result is a communication message Including the startup link, the function indicated by the startup link is started, the startup link can be directly obtained from the received communication message, and the function is directly activated according to the startup link, and the client needs to retrieve the corresponding function according to the name of the function input by the user.
  • the function starts the function after the user clicks the function's startup option, which affects the function startup efficiency and achieves the effect of improving the function startup efficiency.
  • the image can be converted into text for transmission, which saves the traffic of the client and saves the transmission resource.
  • user A and user B are chatting.
  • user A wants to recommend "game 10" to user B
  • user A can send a communication message to the B client through the A client.
  • the B client will detect y://yxdt-[10] in the communication message after it is a startup link.
  • ://yxdt-[10] is displayed in the form of a hyperlink or a ticket. If user B clicks on the launch link, the B client directly launches "game 10" by launching the "game subroutine" identified by "yxdt” in the link.
  • the subroutine may be a channel subroutine, or the subroutine may be a game subroutine, or the subroutine may be a group member adding subroutine, and the following steps are respectively explained according to the above three subroutines, specifically as follows:
  • the local client needs to determine the frequency that needs to be activated by the channel identifier. Road.
  • the function is started by the subroutine, including: generating a channel start request carrying the channel identifier, and sending the channel start request to the server through the channel subroutine, and the channel start request is used to request to activate the channel identified by the channel identifier.
  • the local client may generate a channel start request carrying the channel identifier 123 and send the channel start request to the server.
  • the server determines that the channel subroutine requests to start the channel 123, triggering the process of starting the channel 123. Specifically, the server may obtain the channel data included in the channel 123, the channel name, the information of the currently listening audience, the live broadcast screen of the anchor, the interaction data between the live broadcast and the viewer, and send the channel data to the channel subroutine, the channel.
  • the subroutine displays the channel data.
  • the following is an example of the process of the user A recommending the channel to the user B.
  • the user A is in the chat interface of the client A.
  • Enter a communication message including "Hi, User B, join y://pd-[123] together, as shown in Figure 3C (1);
  • Client B used by User B receives the communication message Thereafter, the communication message is converted into a ticket for display, the ticket includes "Room 123" as shown in FIG. 3C (2); if User B clicks on the ticket, enters Channel 123, as shown in FIG. 3C (3).
  • the application diagram of the second channel activation method shown in FIG. 3D Please refer to the application diagram of the second channel activation method shown in FIG. 3D.
  • the client A uses the invitation interface of “invite friends to enter the channel”, as shown in FIG. 3D (1); user A is in the friend's User B is input/selected in the input box, and channel 123 is input/selected in the input box of the channel, and client A generates a communication message according to the above operation, and the communication message includes "Hi, user B, and joins y://pd together. -[123] ⁇ ", as shown in Fig. 3D(2); after receiving the communication message, the client B used by the user B converts the communication message into a ticket for display, the ticket containing "room 123", as shown in Fig. 3D (3); if user B clicks on the ticket, enters channel 123, as shown in FIG. 3D(4).
  • the local client needs to determine the game that needs to be launched through the game identification.
  • the function is started by the subroutine, including: generating a game start request carrying the game identifier, and transmitting the game start request to the server through the game subroutine, the game start request for requesting to start the game identified by the game identifier.
  • the game subroutine may be an external game subroutine provided by a third party and communicate with the client through an interface.
  • the local client reads the game identifier from the function identification field is 10
  • the local client may generate a game launch request carrying the game identifier 10
  • the The game start request is sent to the server, and the server determines that the game subroutine requests to start the game 10, triggering the process of starting the game 10.
  • the server may acquire the game identifier included in the game 10, the game name, the information of the player currently participating in the game, the interaction data between the players, the game progress, the game equipment, and the like, and send the game data to the game subroutine.
  • the game subroutine displays the game data.
  • the following is an example of the process in which the user A recommends the game to the user B.
  • the user A is in the chat interface of the client A.
  • Enter a communication message including "Hi, User B, play y://yxdt-[10] together, as shown in Figure 3E(1);
  • Client B used by User B receives the communication message Thereafter, the communication message is converted into a ticket for display, the ticket containing "gamepad 10" as shown in FIG. 3E(2); if user B clicks on the ticket, enters game 10, as shown in FIG. 3E(3).
  • the application diagram of the second game startup method shown in FIG. 3F Please refer to the application diagram of the second game startup method shown in FIG. 3F.
  • the client A uses the invitation interface of “invite friends to play games together”, as shown in FIG. 3F (1); user A is in the friend.
  • User B is input/selected in the input box, and game 10 is input/selected in the input box of the game, and client A generates a communication message according to the above operation, the communication message includes "Hi, user B, play y:// together" Yxdt-[10], as shown in Fig. 3F(2); after receiving the communication message, the client B used by the user B converts the communication message into a ticket for display, the ticket containing the "gamepad 10", such as Figure 3F (3); if user B clicks on the ticket, enters game 10, as shown in Figure 3F (4).
  • the function is a group member adding function
  • the local client needs to identify the group that needs to add the user account through the group identity.
  • the function is started by the subroutine, including: obtaining an account identifier of the user account registered in the client, generating a group member adding request carrying the account identifier and the group identifier, and adding the subroutine to the server through the group member
  • the group member add request is sent, and the group member add request is used to request that the user account be added to the group.
  • the account may be generated.
  • the group member of the identifier 100 and the group identifier 123456 adds a request and sends the group member addition request to the server, and the server triggers the step of adding the user account 100 to the group of the group identifier 123456.
  • the server may directly add the user account 100 to the group 123456, adding a subroutine feedback adding success message to the group member; when the group 123456 Add rules When any user account is forbidden, the server cannot add the user account 100 to the group 123456, and adds a subroutine feedback adding failure message to the group member; when the group 123456 adding rule is waiting for the group owner to make a decision, the server may Adding a subroutine feedback to the group member waits for the message of the group owner decision; when the adding rule of the group 123456 is to correctly answer the question, the server may add a subroutine feedback question to the group member.
  • the process of the user A is recommended to be added to the group 123456 by the user A.
  • FIG. 3G refer to the application diagram of the first group member adding method shown in FIG. 3G, where the user A is at the client.
  • a communication message is input in the chat interface of A, and the communication message includes “Hi, user B, join y://qz-[123456] together, as shown in FIG. 3G(1); client B used by user B is
  • the communication message is converted into a ticket for display, the ticket includes "team 123456", as shown in FIG. 3G (2); if user B clicks on the ticket, user B's account B is added to group 123456 , as shown in Figure 3G (3).
  • the client A uses the invitation interface of “invite friends to join the group”, as shown in FIG. 3H(1); A enters/selects user B in the input box of the friend, enters/selects group 123456 in the input box of the group, and client A generates a communication message according to the above operation, the communication message includes “Hi, user B, together Add y://qz-[123456], as shown in Figure 3H(2); after receiving the communication message, client B used by user B converts the communication message into a ticket for display. 123456", as shown in Fig. 3H (3); if user B clicks on the ticket, user B's account B is added to group 123456, as shown in Fig. 3H (4).
  • FIG. 4 is a flowchart of a method for starting a function according to an embodiment of the present invention.
  • the function starting method can be applied to the client 130 shown in FIG.
  • the client 130 is referred to as a local client in order to distinguish it from other clients.
  • the function startup method includes:
  • step 401 a startup link is obtained from the input box of the client.
  • Step 402 Send the startup link to other clients, so that the other client starts the function indicated by the startup link, and the startup link is used to start the functions provided by other clients.
  • the local client can send the startup link as a communication message directly to other clients, or add the startup link to the communication message, and add other text messages, picture messages, audio messages, and video messages to the communication message, which will be added.
  • the subsequent communication message is sent to other clients, and after receiving the communication message, the other client can start the function according to the startup link in the communication message.
  • the function starting method obtained by the embodiment of the present invention obtains a startup link from the input box of the client; sends the startup link to other clients, and the startup link is used to start the functions provided by other clients, so that other clients
  • the startup link can be directly received, and the function is directly activated according to the startup link, and the other client needs to retrieve the corresponding function according to the name of the function input by the user, and the function is activated after the user clicks the startup option of the function, which affects the function.
  • the problem of starting efficiency has the effect of improving the startup efficiency of the function.
  • the function starting method may be applied to the client 130 shown in FIG. 1.
  • the client 130 is referred to as a local client in order to distinguish it from other clients.
  • the function startup method includes:
  • Step 501 Obtain a startup link from an input box of the client, and the startup link is obtained by an input operation or a paste operation.
  • the launch link is used to indicate local client startup features.
  • the function to be started may be a function recommended by the local client to other clients, for example, the function may be a certain channel that the local client enters, or a certain game that the local client is playing, etc., this embodiment No restrictions are placed on the function.
  • the local client may obtain an activation link in the input box, and the input box may be an input box in a chat panel with a friend, or may be an input box of a channel entered by the local client, etc., this embodiment Not limited.
  • the startup link may be obtained by at least one of a user's input operation and a paste operation.
  • the startup link is obtained from the input box of the client, including:
  • the at least one keyword matches a predetermined protocol header, where the predetermined protocol header is a header of a custom URL protocol corresponding to the startup link;
  • the at least one keyword is complemented to obtain a startup link, where the startup link includes a predetermined protocol header.
  • the local client can compare the entered at least one keyword with a predetermined protocol header. If the at least one keyword matches the predetermined protocol header, the local client may directly use the at least one keyword as the startup link, or the local client may complete the at least one keyword to prevent the user from starting the input. Enter an error when linking, making it His client can't start the function according to the startup link, and can avoid the problem of inputting the startup link for a long time, which reduces the efficiency of function startup.
  • the at least one keyword is complemented to obtain a startup link, including:
  • the local client may pre-configure the field template, and each field template is used to input a program identification field or a function identification field, and determine the user when the local client detects that at least one keyword input in the input box matches the predetermined protocol header. You need to enter the startup link. At this time, the local client can display the pre-configured field templates so that the user selects a field template in each field template displayed. The local client complements the keyword according to the field template selected by the user. All, generate a startup link.
  • the program identification field includes a program identifier of the subroutine.
  • the program identification field may include a pinyin abbreviation pd of “channel”; if the subroutine is a game subroutine, the program identification field may include “game”.
  • the function identification field includes a function identifier of the function. For example, if the subroutine is a channel subroutine, the function identifier may be the identifier "123" of the channel 123; if the subroutine is a game subroutine, the function identifier may be the identifier of the game 10 "10" ".
  • the local client may also generate a launch link according to at least one of a program identification field, a function identification field, and a function description field.
  • the function description field may include at least one of a text introduction, a picture introduction, an audio introduction, and a video introduction of the function, and the text introduction may include a name and popularity.
  • the method further includes:
  • the field template includes a template for inputting a program identification field, acquiring a program identifier of the subprogram, adding the program identifier to the program identification field, the program identification field is used to identify the subroutine; and/or,
  • the field template includes a field template for inputting the function identification field, obtaining a function identifier of the function, adding the function identifier to the function identifier field, the function identifier field is used to identify the function; and/or,
  • the local client can pre- First configure the program identification field whose content is not empty. For example, refer to the generation diagram of the startup link shown in FIG. 5B.
  • the local client pre-configured field template includes a “pd” template and a “yxdt” template, and assumes that the keyword entered by the user in the input box is “y://”.
  • the local client detects that the input keyword matches the predetermined protocol header "y://”, and displays the field template "pd" template and the "yxdt” template in the drop-down list. If the user selects the "pd" template, The local client generates a launch link for "y://pd”.
  • the function description field is used as an example for the function name and popularity.
  • the local client can add “semi-smoke and semi-rain (134)” after the function identification field, that is, the name of the identification function is “semi-smoke and semi-rain”.
  • Popularity is 134.
  • generating a function description field including:
  • the local client may obtain a picture address of the picture in the network or the installation package of the local client, and add the picture address to the function description field. Since the image traffic is much larger than the text traffic, the local client converts the image into a picture address and sends it to other clients, which can save traffic of the local client and save transmission resources.
  • the launch link is obtained by a paste operation in the input box, which is triggered by triggering a pre-displayed shortcut key.
  • the local client may also display a shortcut key of the startup function. If the user triggers the shortcut key, the local client obtains the startup link corresponding to the function, and pastes the startup link into the input box through a paste operation. . Since the user only needs to perform a simple copying operation and a pasting operation, the time for the user to input the startup link can be saved, and the efficiency of function startup is further improved.
  • Step 502 Send the startup link to other clients, so that the other client starts the function indicated by the startup link, and the startup link is used to start the functions provided by other clients.
  • the local client can send the startup link as a communication message directly to other clients, or add the startup link to the communication message, and add other text messages, picture messages, audio messages, and video messages to the communication message, which will be added.
  • the subsequent communication message is sent to other clients, and after receiving the communication message, the other client can start the function according to the startup link in the communication message.
  • the function starting method obtained by the embodiment of the present invention obtains a startup link from the input box of the client; sends the startup link to other clients, and the startup link is used to start the functions provided by other clients, so that other clients
  • the startup link can be directly received, and the function is directly activated according to the startup link, and the other client needs to retrieve the corresponding function according to the name of the function input by the user, and the function is activated after the user clicks the startup option of the function, which affects the function.
  • the problem of starting efficiency has the effect of improving the startup efficiency of the function.
  • by obtaining the picture address of the picture; adding the picture address to the function description field the picture can be converted into text for transmission, which saves the traffic of the client and saves the transmission resource.
  • user A and user B are chatting, and if user A wants to recommend "game 10" to user B, "game 10" can be recommended to user B by an input operation or a paste operation.
  • the user A may input at least one keyword in the input box of the A client, and the A client detects the at least one keyword and the predetermined protocol header "y: //"
  • the user A can open “game 10” and click the button of "start link shortcut key” displayed in "game 10", and the client A receives the user. After the click operation of A, copy the start link “y://yxdt-[10]" of "Game 10", and display the prompt message "One-click copy start link”, after user A sees the prompt message, Paste the copied "y://yxdt-[10]” into the input box and get the startup link.
  • the A client sends the launch link to the B client.
  • the "launch link shortcut” can be displayed in the form of an airline ticket to characterize the efficient start of the function.
  • the above embodiments use the startup link startup function in the communication message as an example to describe the function startup method.
  • the client can start the function through the startup link in the communication message, and can also input through the user. Or the startup link startup function in the webpage.
  • the following embodiments are described by taking the example of the startup link activation function by the client.
  • the start-up connection in this embodiment is equivalent to the predetermined link in the Chinese patent application with the application number 201310754304.2.
  • FIG. 6 is a flowchart of a method for starting a function according to an embodiment of the present invention.
  • the function startup method may be applied to a terminal, where the terminal includes a client and a startup program corresponding to the client, and the startup program is started. It is a program for processing a custom URL protocol corresponding to a predetermined protocol header.
  • the function startup method includes:
  • Step 601 After the startup link is triggered, the predetermined protocol header in the startup link is extracted by the operating system.
  • the startup link includes a predetermined protocol header, wherein the predetermined protocol header is used to indicate a startup procedure for processing a custom URL protocol corresponding to the predetermined protocol header, and the custom URL protocol is a user-defined URL protocol.
  • the terminal may trigger the launch link when the user input is completed; if the launch link is a link pre-edited in the web page, the terminal may trigger the launch link when the user clicks on the link.
  • the launch link is a link entered by the user
  • the terminal may trigger the launch link when the user input is completed; if the launch link is a link pre-edited in the web page, the terminal may trigger the launch link when the user clicks on the link.
  • this embodiment does not limit the manner in which the link is triggered.
  • Step 602 The startup program is searched by the operating system according to a predetermined protocol header.
  • step 603 the client startup function is triggered by the startup program.
  • the function starting method extracts a predetermined protocol header in the startup link through the operating system after the startup link is triggered; searches for the startup program according to the predetermined protocol header by the operating system; triggers the client by starting the program.
  • the terminal startup function can directly start the function according to the startup link, and solves the problem that the user needs to jump more interfaces when the function is started according to the function introduction information, thereby reducing the function startup efficiency and achieving the effect of improving the function startup efficiency.
  • FIG. 7A is a flowchart of a method for starting a function according to another embodiment of the present invention.
  • the function starting method may be applied to a terminal, where the terminal includes a client and a startup program corresponding to the client, and is started.
  • the program is a program for processing a custom URL protocol corresponding to a predetermined protocol header.
  • the application is applied to an application installed in the terminal by using a function startup method, and the application includes a client and an activation program corresponding to the client as an example for description. This feature starts Methods, including:
  • Step 701 Register a predetermined protocol header in the operating system; register the startup program as a program for processing the custom URL protocol corresponding to the predetermined protocol header in the operating system.
  • the terminal needs to register a predetermined protocol header and a startup program for processing a custom URL protocol corresponding to the predetermined protocol header in the operating system.
  • the predetermined protocol header is a header of a custom URL protocol corresponding to the startup link
  • the custom URL protocol is a user-defined URL protocol. Assuming that the custom URL protocol is the y protocol, the predetermined protocol header corresponding to the protocol may be y://.
  • the installer can call the startup program, and the startup program can first register the predetermined protocol header in the registry of the operating system, and then register the startup program as the use program.
  • a program for processing a custom URL protocol corresponding to the predetermined protocol header may include: registering a path of the startup program in the registry.
  • the custom URL protocol is used as an example for the y protocol.
  • the startup program can be registered by the following steps:
  • DWORD cbData (DWORD)_tcsclen(pStrAction)*sizeof(TCHAR);
  • cbData (DWORD)oss.str().size()*sizeof(TCHAR);
  • Step 702 After the startup link is triggered, the predetermined protocol header in the startup link is extracted by the operating system.
  • the launch link before the launch link is triggered, it also includes:
  • the terminal may trigger the launch link when the user determines that the input is completed; if the launch link is a link pre-edited in the web page, the terminal may trigger the launch link when the user clicks on the link.
  • the launch link may trigger the launch link when the user clicks on the link.
  • Step 703 The startup program is searched by the operating system according to a predetermined protocol header.
  • the operating system After the startup link is triggered, the operating system reads the predetermined protocol header included in the startup link, and searches the registry for a custom URL protocol corresponding to the predetermined protocol header, and if the customization corresponding to the predetermined protocol header is found, The URL protocol, the operating system then determines the launcher for processing the custom URL protocol. Specifically, the operating system may look up a path of the startup program corresponding to the predetermined protocol header in the registry, and then determine the startup program according to the path.
  • Step 704 Receive, by the startup program, a startup parameter sent by the operating system, where the startup parameter is extracted by the operating system from the startup link.
  • the startup parameters are used to identify the features that the client is to launch.
  • the startup link may not include the startup parameter; when the client provides at least two functions, the startup link also needs to include the startup parameter, and at this time, the startup link includes the predetermined protocol.
  • Step 705 Pass the startup parameter to the client by starting the program.
  • the launcher can first determine the client and pass the received startup parameters to the client.
  • the method before the startup parameter is transmitted to the client by the startup program, the method further includes: if the client is in the closed state, the client is started by starting the program.
  • the client determined by the startup program may be in the startup state, and may also be in the shutdown state. If the client determined by the startup program is in the startup state, the startup program can directly pass the startup parameter to the client; if the client determined by the startup program is in the shutdown state, the startup program needs to be started before the startup parameter is passed. Client.
  • the startup program can also start the client with the startup parameter, that is, the startup parameter is carried in the command for starting the client, thereby saving the signaling caused by the command to send the startup client, and then sending the startup parameter to the client. waste.
  • the client since the client has a one-to-one correspondence with the logged-in user account, if the user logs in at least two user accounts in the terminal, there are at least two clients. If there are at least two clients, before the startup parameters are passed to the client through the launcher, it also includes:
  • the startup parameter includes the identification information
  • the client indicated by the identification information is determined.
  • the initiator needs to determine the client that needs to start the function from the at least two clients.
  • the startup program may determine a preset default client as a client that needs to start the function; or, the terminal may display each client in the terminal, so that the user selects one client from each client displayed.
  • the startup program determines the client that needs to start the function according to the selection signal triggered when the user selects the client, wherein the displayed client can be in the closed state or in the startup state.
  • the startup parameter may carry the identifier information of the client, and the startup program may determine, according to the identifier information, the client that needs to start the function.
  • the startup parameter is used to indicate that the channel whose channel number is 123 is initiated by the client that has logged in the user account 123456.
  • the startup program can directly send the startup parameter to the client; if the client cannot identify the startup parameter, the startup program also needs to convert the startup parameter to be recognized by the client.
  • Startup parameters are passed to the client through the launcher, including:
  • Step 706 Start a function corresponding to the startup parameter by using a client.
  • the client can recognize the received startup parameter, the function indicated by the startup parameter is determined in at least one function, and the function is started. If the client does not recognize the received startup parameter, that is, the startup program does not convert the startup parameter, the client also needs to convert the startup parameter into a startup parameter recognized by the client, and then determine the predetermined format in at least one function. Start the function indicated by the parameter, and Start this feature.
  • the conversion method is described in detail in step 705, and details are not described herein.
  • the uninstaller can call the startup program when the uninstaller is uninstalled to run the uninstall program, and the startup program can be started.
  • the predetermined protocol header is written off in the registry of the operating system, and the registration startup program is an operation for processing the program of the custom URL protocol corresponding to the predetermined protocol header, that is, the path of the predetermined protocol header and the startup program registered in the registry is deleted.
  • the method further includes:
  • the startup program included in the recently installed application may be registered as a processing protocol header.
  • the corresponding custom URL protocol program If the launcher fails, you can also replace the launcher registered in the registry with another valid launcher.
  • each startup program can identify each client belonging to the same application as the startup program, and each client belonging to a different application from the startup program, regardless of the operating system will start parameters Which startup program is sent to the startup program, which can pass the startup parameters to any client.
  • the function starting method extracts a predetermined protocol header and a startup parameter in the startup link through the operating system after the startup link is triggered; and the startup program is started by the operating system according to the predetermined protocol header.
  • the parameter is sent to the startup program; the startup parameter is transmitted to the client through the startup program; the function corresponding to the startup parameter and the startup parameter can directly start the function according to the startup parameter included in the startup link, and solve the function of the user according to the function introduction information. It is necessary to jump more interfaces to reduce the function startup efficiency, and achieve the effect of improving the function startup efficiency.
  • the effect of saving the storage space of the operating system can be achieved by unregistering the predetermined protocol header in the operating system; revoking the operation of registering the startup program as a program for processing the custom URL protocol corresponding to the predetermined protocol header in the operating system.
  • the startup parameter may include a channel identifier, or the startup parameter may include a game identifier, or the startup parameter may include a group identifier, and the following steps are respectively performed according to the foregoing three startup parameters. 704 for explanation, as follows:
  • the startup parameter includes a channel identifier, the function corresponding to the startup parameter is a channel;
  • the client needs to identify the channel that needs to be activated by the channel identification.
  • the function corresponding to the startup parameter is initiated by the client, including: generating, by the client, a channel initiation request carrying the channel identifier, and sending the channel initiation request to the server, where the channel initiation request is used to request the startup channel identifier The identified channel.
  • the client may generate a channel activation request carrying the channel identifier 123, and send the channel startup request to the server, and the server determines The client requests to start channel 123, triggering the process of starting channel 123.
  • the server may obtain channel data included in the channel 123, the channel name, the information of the current audience, the live broadcast screen of the anchor, and the interaction data between the live broadcast and the viewer, and send the channel data to the client, the client.
  • the channel data is displayed.
  • the embodiment also exemplifies the startup link in the user-triggered webpage.
  • the webpage browsed by the user includes the startup of “Customer Service Channel: 123”.
  • the link is as shown in Fig. 7B (1); if the user B clicks "123", the channel 123 is entered, as shown in Fig. 7B (2).
  • the startup parameter includes a game identifier
  • the function corresponding to the startup parameter is a game
  • the client needs to determine the game that needs to be launched through the game identification.
  • the function corresponding to the startup parameter is initiated by the client, including: generating, by the client, a channel startup request carrying the game identifier, and sending the game startup request to the server, where the game startup request is used to request to start the game identifier.
  • logo game When there are multiple games, the client needs to determine the game that needs to be launched through the game identification.
  • the function corresponding to the startup parameter is initiated by the client, including: generating, by the client, a channel startup request carrying the game identifier, and sending the game startup request to the server, where the game startup request is used to request to start the game identifier.
  • logo game is used to request to start the game identifier.
  • the client may generate a game activation request carrying the game identification 10, and send the game startup request to the server, and the server determines The client requests to launch game 10, triggering the process of launching game 10.
  • the server may acquire the game identifier included in the game 10, the game name, the information of the player currently participating in the game, the interaction data between the players, the game progress, the game equipment, and the like, and send the game data to the client.
  • the client displays the game data.
  • the embodiment also exemplifies the startup link in the user trigger webpage.
  • the webpage browsed by the user includes the startup link of “game 10”. As shown in Fig. 7C (1); if the user B clicks "game 10", the game 10 is entered, as shown in Fig. 7C (2).
  • the function corresponding to the startup parameter is a group member adding function
  • the client needs to identify the group that needs to add the user account through the group identity.
  • the function corresponding to the startup parameter is started by the client, including: obtaining, by the client, an account identifier of the user account logged in the client, and generating a group member adding request carrying the account identifier and the group identifier, A group member addition request is sent to the server, the group member addition request is used to request that the user account be added to the group.
  • the account identifier 100 and the group may be generated.
  • the group member of the group identifier 123456 adds a request and sends the group member addition request to the server, and the server triggers a process of adding the user account 100 to the group of the group identifier 123456.
  • the server may directly add the user account 100 to the group 123456, and feed back a successful message to the client; when the adding rule of the group 123456 is prohibited When any user account is added, the server cannot add the user account 100 to the group 123456, and adds a failure message to the client; when the group 123456 is added to wait for the group owner to make a decision, the server can feed the client to the waiting group. The message of the main decision; when the adding rule of the group 123456 is to correctly answer the question, the server can feed back the question of the question to the client.
  • the embodiment also uses the startup link in the user-triggered webpage as an example for description.
  • the webpage browsed by the user includes “group 123456”.
  • the link is activated, as shown in FIG. 7D(1); if user B clicks “group 123456”, the user account A logged in by the user in the client is added to the group 123456, as shown in FIG. 7D(2).
  • FIG. 8 is a schematic structural diagram of a function starting device according to an embodiment of the present invention.
  • the function starting device can be applied to the client 110 shown in FIG. 1 .
  • the function activation device includes:
  • the message receiving module 801 is configured to receive a communication message sent by another client.
  • the message detection module 802 is configured to detect whether the communication message received by the message receiving module 801 includes a startup link, and the startup link is used to start a function provided by the client;
  • the function startup module 803, configured to detect, by the message detection module 802, the communication message includes When the link is launched, the function indicated by the startup parameters is started.
  • the function starting device receives a communication message sent by another client, detects whether the communication message includes a startup link, and starts a link for starting a function provided by the client; if the detection result is a communication message Including the startup link, the function indicated by the startup link is started, the startup link can be directly obtained from the received communication message, and the function is directly activated according to the startup link, and the client needs to retrieve the corresponding function according to the name of the function input by the user.
  • the function starts the function after the user clicks the function's startup option, which affects the function startup efficiency and achieves the effect of improving the function startup efficiency.
  • FIG. 9 is a schematic structural diagram of a function starting device according to another embodiment of the present invention.
  • the function starting device can be applied to the client 110 shown in FIG. 1 .
  • the function starting device comprises: a message receiving module 901, a message detecting module 902 and a function starting module 903.
  • the message receiving module 901 is configured to receive a communication message sent by another client.
  • the message detection module 902 is configured to detect whether the communication message received by the message receiving module 901 includes a startup link, and the startup link is used to start a function provided by the client;
  • the function startup module 903 is configured to start the function indicated by the startup link when the result detected by the message detection module 902 is that the communication message includes a startup link.
  • the function startup module 903 is specifically configured to:
  • the subroutine indicated by the program identification field is determined to be activated by the subroutine
  • startup link only includes the function identification field, determine the function indicated by the function identification field, and activate the function
  • startup link includes a program identification field and a function identification field, determining a subroutine indicated by the program identification field, and determining a function indicated by the function identification field, and starting the function by using the subroutine;
  • the program identification field is used to identify a subroutine, and the function identification field is used to identify a function.
  • the function startup module 903 is further configured to:
  • the subroutine is a built-in subroutine or an external subroutine
  • the built-in subroutine is a subroutine within the client
  • the external subroutine is a subroutine outside the client
  • the function is started by the built-in subroutine
  • the interface provided by the external subroutine is acquired, the external subroutine start function is triggered by the interface, or the external subroutine is started to trigger the function identification word through the interface.
  • the function indicated by the segment is the result of the judgment.
  • the device further includes:
  • the link display module 904 is configured to display the startup link before the function startup module 903 starts the function indicated by the startup link;
  • the operation triggering module 905 is configured to trigger an operation of performing a function indicated by the start-up link if the trigger signal is received, and the trigger signal is used to trigger the startup link displayed by the link display module 904.
  • the link display module 904 includes:
  • the field obtaining unit 9041 is configured to acquire a program identification field, where the program identification field is used to identify a subroutine if the startup link includes a program identification field;
  • the template determining unit 9042 is configured to determine, according to the program identifier field acquired by the corresponding relationship and the field obtaining unit 9041, a display template for initiating a link, where the correspondence relationship is a correspondence between different program identification fields and different display templates.
  • the template display unit 9043 is configured to display the launch link by the display template determined by the template determining unit 9042.
  • the template display unit 9043 includes:
  • the first display sub-unit 90431 is configured to: if the activation link further includes a function identification field, add the function identification field to the presentation template for display, and the function identification field is used to identify the function; and/or,
  • the second display sub-unit 90432 is configured to add a function description field to the presentation template for displaying the function if the startup link further includes a function description field, where the function description field is used to describe the function.
  • the second display subunit 90432 is specifically configured to: if the function description field includes a picture address, obtain a picture according to the picture address; add the picture to the display template for display.
  • the message detection module 902 includes:
  • the protocol detecting unit 9021 is configured to detect whether the communication message includes a predetermined protocol header, where the predetermined protocol header is a header of a custom URL protocol corresponding to the startup link;
  • the link determining unit 9022 when the result of the detection by the protocol detecting unit 9021 is that the communication message includes a predetermined protocol header, determines that the communication message includes a startup link, and the startup link includes a predetermined protocol header.
  • the function startup module 903 is specifically configured to generate a channel start request carrying the channel identifier, and send a channel start to the server by using the channel subroutine.
  • the request, channel initiation request is used to request the channel identified by the activation channel identifier.
  • the function is a game
  • the function identification field includes a game mark
  • the function activation module 903 is specifically configured to generate a game start request carrying the game identifier, and send a game start request to the server through the game subroutine, and the game start request is used to request to start the game identified by the game identifier.
  • the function starting module 903 is specifically configured to obtain an account of the user account registered in the client. Identifying, generating a group member adding request carrying an account identifier and a group identifier, sending a group member adding request to the server by using a group member adding subroutine, and the group member adding request is used to request to add the user account to the group .
  • the function starting device receives a communication message sent by another client, detects whether the communication message includes a startup link, and starts a link for starting a function provided by the client; if the detection result is a communication message Including the startup link, the function indicated by the startup link is started, the startup link can be directly obtained from the received communication message, and the function is directly activated according to the startup link, and the client needs to retrieve the corresponding function according to the name of the function input by the user.
  • the function starts the function after the user clicks the function's startup option, which affects the function startup efficiency and achieves the effect of improving the function startup efficiency.
  • the image can be converted into text for transmission, which saves the traffic of the client and saves the transmission resource.
  • FIG. 10 is a schematic structural diagram of a function starting device according to an embodiment of the present invention.
  • the function starting device can be applied to the client 130 shown in FIG.
  • the function activation device includes:
  • a link obtaining module 1001 configured to obtain a startup link from an input box of the client
  • the link sending module 1002 is configured to send the startup link acquired by the link obtaining module 1001 to other clients, so that other clients initiate the function indicated by the startup link, and the startup link is used to start the functions provided by other clients.
  • the function starting device obtained by the embodiment of the present invention obtains the startup link from the input box of the client; sends the startup link to other clients, and the startup link is used to start the functions provided by other clients, so that other clients
  • the startup link can be directly received, and the function is directly activated according to the startup link, and the other client needs to retrieve the corresponding function according to the name of the function input by the user, and the function is activated after the user clicks the startup option of the function, which affects the function.
  • the problem of starting efficiency has the effect of improving the startup efficiency of the function.
  • FIG. 11 is a schematic structural diagram of a function starting device according to another embodiment of the present invention.
  • the function starting device can be applied to the client 130 shown in FIG. 1 .
  • the function activation device includes a link acquisition module 1101 and a link transmission module 1102.
  • a link obtaining module 1101, configured to obtain a startup link from an input box of the client
  • the link sending module 1102 is configured to send the startup link acquired by the link obtaining module 1101 to other clients, so that other clients initiate the function indicated by the startup link, and the startup link is used to start the functions provided by other clients.
  • the link obtaining module 1101 includes:
  • a text obtaining unit 11011 configured to acquire at least one keyword in the input box
  • the text detecting unit 11012 is configured to detect whether at least one keyword acquired by the text obtaining unit 11011 matches a predetermined protocol header, where the predetermined protocol header is a header of a custom URL protocol corresponding to the startup link;
  • the link generating unit 11013 is configured to, when the result detected by the text detecting unit 11012 is that at least one keyword matches the predetermined protocol header, complete the at least one keyword to obtain a startup link, and the startup link includes a predetermined protocol header.
  • the link generating unit 11013 is specifically configured to:
  • Completing at least one keyword according to a selected one of the field templates to obtain a startup link Completing at least one keyword according to a selected one of the field templates to obtain a startup link.
  • the link obtaining module 1101 further includes:
  • a first adding unit 11014 after the link generating unit 11013 completes the at least one keyword according to the selected one of the field templates, if the field template includes a template for inputting the program identification field, acquiring the program identifier of the subprogram, The program identification is added to the program identification field, and the program identification field is used to identify the subroutine; and/or,
  • a second adding unit 11015 after the link generating unit 11013 completes the at least one keyword according to the selected one of the field templates, if the field template includes a field template for inputting the function identification field, acquiring the function identifier of the function, The feature identifier is added to the feature identification field, and the function identification field is used to identify the function; and/or,
  • the third adding unit 11016 is configured to: after the link generating unit 11013 completes the at least one keyword according to the selected one of the field templates, generate a function description field, and after the function description field is added to the field template, the function description field is used for the function Describe.
  • the third adding unit 11016 is specifically configured to: if the description content of the function includes a picture, obtain a picture address of the picture; and add the picture address to the function description field.
  • the link obtaining module 1101 includes:
  • the link obtaining unit 11017 is configured to obtain a startup link by a paste operation performed in the input box, and the startup link is triggered by generating a shortcut key displayed in advance.
  • the function starting device obtained by the embodiment of the present invention obtains the startup link from the input box of the client; sends the startup link to other clients, and the startup link is used to start the functions provided by other clients, so that other clients
  • the startup link can be directly received, and the function is directly activated according to the startup link, and the other client needs to retrieve the corresponding function according to the name of the function input by the user, and the function is activated after the user clicks the startup option of the function, which affects the function.
  • the problem of starting efficiency has the effect of improving the startup efficiency of the function.
  • by obtaining the picture address of the picture; adding the picture address to the function description field the picture can be converted into text for transmission, which saves the traffic of the client and saves the transmission resource.
  • FIG. 12 is a schematic structural diagram of a function starting apparatus according to an embodiment of the present invention.
  • the function starting apparatus may be applied to a terminal, where the terminal includes a client and a startup program corresponding to the client, and the startup program is A program for processing a custom URL protocol corresponding to a predetermined protocol header.
  • the function activation device includes:
  • the parameter extraction module 1201 is configured to: after the startup link is triggered, extract, by using an operating system, a predetermined protocol header in the startup link;
  • the program search module 1202 is configured to search for a startup program according to a predetermined protocol header by using an operating system
  • the function startup module 1203 is configured to trigger a client startup function by the startup program found by the program search module 1202.
  • the function starting device extracts a predetermined protocol header in the startup link through the operating system after the startup link is triggered; the startup program is searched according to the predetermined protocol header by the operating system; and the client is triggered by the startup program.
  • the terminal startup function can directly start the function according to the startup link, and solves the problem that the user needs to jump more interfaces when the function is started according to the function introduction information, thereby reducing the function startup efficiency and achieving the effect of improving the function startup efficiency.
  • FIG. 13 is a schematic structural diagram of a function starting device according to another embodiment of the present invention.
  • the function starting device may be applied to a terminal, where the terminal includes a client and a client.
  • the startup program is a program for processing a custom URL protocol corresponding to a predetermined protocol header.
  • the function starting device includes: a parameter extracting module 1301, a program searching module 1302, and a function starting module 1303.
  • a parameter extraction module 1301, configured to: after the startup link is triggered, extract, by using an operating system, a predetermined protocol header in the startup link;
  • the program search module 1302 is configured to search for a startup program according to a predetermined protocol header by using an operating system
  • the function startup module 1303 is configured to trigger a client startup function by the startup program found by the program search module 1302.
  • the function startup module 1303 includes:
  • the parameter receiving unit 13031 is configured to receive, by using a startup program, a startup parameter sent by the operating system, where the startup parameter is obtained by the operating system from the startup link;
  • a parameter passing unit 13032 configured to pass the startup parameter received by the parameter receiving unit 13031 to the client by using a startup program
  • the function starting unit 13033 is configured to start a function corresponding to the startup parameter by using the client.
  • the device further includes:
  • the protocol registration module 1304 is configured to register the predetermined protocol header in the operating system before the parameter extraction module 1301 extracts the predetermined protocol header and the startup parameter in the startup link by using the operating system;
  • the program registration module 1305 is configured to register the startup program in the operating system as a program for processing the custom URL protocol corresponding to the predetermined protocol header registered by the protocol registration module 1304.
  • the device further includes:
  • the protocol logout module 1306 is configured to: after the program registration module 1305 registers the startup program as a program for processing the custom URL protocol corresponding to the predetermined protocol header in the operating system, cancel the predetermined protocol header in the operating system;
  • the registration revocation module 1307 is configured to cancel the operation of registering the startup program in the operating system as a program for processing the custom URL protocol corresponding to the predetermined protocol header.
  • the parameter passing unit 13032 is specifically configured to convert the startup parameter into a startup parameter of a predetermined format by using a startup program, where the predetermined format is a format recognized by the client; and the startup parameter of the predetermined format is transmitted to the client by the startup program.
  • the function startup module 1303 further includes:
  • the first determining unit 13034 is configured to: before the parameter transmitting unit 13032 transmits the startup parameter to the client by using the startup program, receive the selection signal, determine the client indicated by the selection signal, and select the signal. Used to select one client from each of the displayed clients; or,
  • the second determining unit 13035 is configured to: before the parameter passing unit 13032 passes the startup parameter to the client by using the startup program, if the startup parameter includes the identification information, determine the client indicated by the identification information.
  • the function startup module 1303 further includes:
  • the program starting unit 13036 is configured to start the client by the startup program before the parameter delivery unit 13032 passes the startup parameter to the client through the startup program, and if the client is in the shutdown state.
  • the function activation module 1303 is specifically configured to generate, by using the client, a channel initiation request carrying the channel identifier, and send a channel initiation request to the server, and the channel The start request is used to request to activate the channel identified by the channel identifier.
  • the function startup module 1303 is specifically configured to generate a channel startup request carrying the game identifier by using the client, and send a game startup request to the server, where the game The launch request is used to request the launch of the game identified by the game logo.
  • the function startup module 1303 is specifically configured to acquire, by using the client, an account identifier of the user account that is logged in the client, A group member addition request carrying an account identifier and a group identifier is generated, and a group member addition request is sent to the server, and the group member addition request is used to request to add the user account to the group.
  • the function starting device extracts a predetermined protocol header in the startup link through the operating system after the startup link is triggered; the startup program is searched according to the predetermined protocol header by the operating system; and the client is triggered by the startup program.
  • the terminal startup function can directly start the function according to the startup link, and solves the problem that the user needs to jump more interfaces when the function is started according to the function introduction information, thereby reducing the function startup efficiency and achieving the effect of improving the function startup efficiency.
  • the effect of saving the storage space of the operating system can be achieved by unregistering the predetermined protocol header in the operating system; revoking the operation of registering the startup program as a program for processing the custom URL protocol corresponding to the predetermined protocol header in the operating system.
  • FIG. 14 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal 1400 is installed with a client of the team voice tool, including RF (Radio Frequency)
  • the core processor 1480 and the power supply 1490 are processed as above.
  • the terminal structure shown in FIG. 14 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the RF circuit 1410 can be used for receiving and transmitting signals during and after receiving or transmitting information, and in particular, receiving downlink information of the base station and then processing it by one or more processors 1480; in addition, transmitting data related to the uplink to the base station.
  • the RF circuit 1410 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • SIM Subscriber Identity Module
  • RF circuitry 1410 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the memory 1420 can be used to store software programs and modules, and the processor 1480 executes various functional applications and data processing by running software programs and modules stored in the memory 1420.
  • the memory 1420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal 1400 (such as audio data, phone book, etc.) and the like.
  • memory 1420 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 1420 can also include a memory controller to provide access to memory 1420 by processor 1480 and input unit 1430.
  • Input unit 1430 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 1430 can include touch-sensitive surface 1431 as well as other input devices 1432.
  • Touch sensitive surface 1431 It can be a camera or an optical scanning device.
  • the input unit 1430 can also include other input devices 1432.
  • other input devices 1432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 1440 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of terminal 1400, which can be comprised of graphics, text, icons, video, and any combination thereof.
  • the display unit 1440 may include a display panel 1441.
  • the display panel 1441 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • Terminal 1400 can also include at least one type of sensor 1450, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1441 when the terminal 1400 moves to the ear. / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the terminal 1400 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not here Let me repeat.
  • An audio circuit 1460, a speaker 1461, and a microphone 1462 can provide an audio interface between the user and the terminal 1400.
  • the audio circuit 1460 can transmit the converted electrical data of the received audio data to the speaker 1461, and convert it into a sound signal output by the speaker 1461.
  • the microphone 1462 converts the collected sound signal into an electrical signal, and the audio circuit 1460 After receiving, it is converted into audio data, and then processed by the audio data output processor 1480, transmitted to the terminal, for example, via the RF circuit 1410, or the audio data is output to the memory 1420 for further processing.
  • Audio circuitry 1460 may also include an earbud jack to provide communication of the peripheral earphones with terminal 1400.
  • WiFi is a short-range wireless transmission technology
  • the terminal 1400 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 1470, which provides wireless broadband Internet access for users.
  • FIG. 14 shows the WiFi module 1470, it can be understood that it does not belong to the essential configuration of the terminal 1400, and may be omitted as needed within the scope of not changing the essence of the invention.
  • Processor 1480 is the control center of terminal 1400 that connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in memory 1420, and recalling data stored in memory 1420, The various functions and processing data of the terminal 1400 are performed to perform overall monitoring of the mobile phone.
  • the processor 1480 may include one or more processing cores; preferably, the processor 1480 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1480.
  • the terminal 1400 also includes a power source 1490 (such as a battery) for powering various components.
  • the power source 1490 can be logically coupled to the processor 1480 through a power management system to manage functions such as charging, discharging, and power management through a power management system.
  • the power supply 1490 can also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal 1400 may further include a Bluetooth module or the like, and details are not described herein again.
  • the terminal 1400 further includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or More than one program includes instructions for performing the function initiation method provided by embodiments of the present invention.
  • the network management apparatus when performing network management, only exemplifies the division of each of the foregoing subroutines. In actual applications, the function allocation may be completed by different subroutines as needed.
  • the internal structure of the network management device is divided into different subroutines to complete all or part of the functions described above.
  • the network management device and the network management method embodiment provided in the foregoing embodiments are in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit may be only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like.
  • the medium of the code includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to the technical field of computers. Disclosed are a function activation method and device, the method comprising: receiving a communication message transmitted by a client; detecting whether the communication message comprises an activation link for activating the function provided by the client; if yes, then activating the function indicated by the activation link. The present invention solves the problem of reduced function activation efficiency due to the fact that a client needs to retrieve a corresponding function according to the function name inputted by a user, and then activate the function after the user clicks the function activation option, thus improving the function activation efficiency.

Description

功能启动方法及装置Function starting method and device
本申请要求于2013年12月31日提交中国专利局、申请号为201310754562.0、发明名称为“功能启动方法、装置及客户端”的中国专利申请的优先权,以及2013年12月31日提交中国专利局、申请号为201310754304.2、发明名称为“功能启动方法、装置及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application submitted to the China Patent Office on December 31, 2013, the application number is 201310754562.0, and the invention name is “Functional Activation Method, Device and Client”, and submitted to China on December 31, 2013. The Patent Office, Application No. 201310754304.2, the entire disclosure of which is hereby incorporated by reference in its entirety in its entirety in its entirety in the the the the the the the the the
技术领域Technical field
本发明涉及计算机技术领域,特别涉及一种功能启动方法及装置。The present invention relates to the field of computer technologies, and in particular, to a function starting method and apparatus.
背景技术Background technique
团队语音工具是一种支持多人在线语音通信以及视频通信的网络工具。团队语音工具提供了各式各样的子程序,每个子程序在被团队语音工具的客户端调用时,能够启动该团队语音工具提供的一项功能。比如,子程序是游戏子程序时,该游戏子程序可以被团队语音工具的客户端调用来启动游戏;子程序是频道子程序时,该频道子程序可以被团队语音工具的客户端调用来启动频道。Team Voice Tools is a web tool that supports multiplayer online voice communication as well as video communication. The Team Voice tool provides a variety of subroutines, each of which, when invoked by the client of the Team Voice tool, launches a feature provided by the Team Voice tool. For example, when the subroutine is a game subroutine, the game subroutine can be called by the client of the team voice tool to start the game; when the subroutine is a channel subroutine, the channel subroutine can be called by the client of the team voice tool to start. Channel.
相关技术提供了一种功能启动方法,包括:用户查看其他用户发送的通信消息,该通信消息中携带有其他用户推荐的功能的名称,用户在客户端提供的检索框内输入该名称,触发客户端根据该名称对功能进行检索,若检索得到该项功能的启动选项,则展示该启动选项,用户点击客户端展示的该功能选项,启动该项功能。The related art provides a function starting method, including: a user viewing a communication message sent by another user, the communication message carrying a name of a function recommended by another user, the user inputting the name in a search box provided by the client, triggering the client The function searches the function according to the name. If the startup option of the function is retrieved, the startup option is displayed, and the user clicks the function option displayed by the client to start the function.
发明人在实现本发明的过程中,发现相关技术中至少存在以下缺陷:In the process of implementing the present invention, the inventors have found that at least the following defects exist in the related art:
客户端需要根据用户输入的功能的名称检索相应的功能,在用户点击功能的启动选项后启动该项功能,导致该功能的启动过程较为复杂,降低了用户使用功能的效率。The client needs to retrieve the corresponding function according to the name of the function input by the user, and the function is started after the user clicks the startup option of the function, which causes the startup process of the function to be more complicated, and reduces the efficiency of the user using the function.
发明内容Summary of the invention
为了解决客户端需要根据用户输入的功能的名称检索相应的功能,在用户点击功能的启动选项后启动该项功能,导致功能的启动过程较为复杂的问题, 本发明实施例提供了一种功能启动方法及装置。所述技术方案如下:In order to solve the problem that the client needs to retrieve the corresponding function according to the name of the function input by the user, the function is started after the user clicks the startup option of the function, which causes the function startup process to be more complicated. The embodiment of the invention provides a function starting method and device. The technical solution is as follows:
第一方面,本发明实施例提供了一种功能启动方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a function starting method, where the method includes:
接收其它客户端发送的通信消息;Receiving communication messages sent by other clients;
检测所述通信消息是否包括启动链接,所述启动链接用于启动客户端提供的功能;Detecting whether the communication message includes a startup link, and the startup link is used to initiate a function provided by the client;
若检测结果为所述通信消息包括所述启动链接,则启动所述启动链接所指示的功能。If the detection result is that the communication message includes the startup link, the function indicated by the startup link is started.
第二方面,本发明实施例提供了一种功能启动方法,所述方法包括:In a second aspect, an embodiment of the present invention provides a function starting method, where the method includes:
从客户端的输入框中获取启动链接;Get the startup link from the input box of the client;
将所述启动链接发送给其他客户端,以便所述其他客户端启动所述启动链接所指示的功能,所述启动链接用于启动所述其他客户端提供的功能。The launch link is sent to other clients for the other client to initiate the function indicated by the launch link, the launch link being used to initiate the functionality provided by the other client.
第三方面,提供了一种功能启动方法,用于终端中,所述终端包括客户端和与所述客户端对应的启动程序,所述启动程序是用于处理预定协议头所对应的自定义统一资源定位符URL协议的程序,所述方法包括:In a third aspect, a function starting method is provided for a terminal, where the terminal includes a client and a startup program corresponding to the client, and the startup program is configured to process a customization corresponding to a predetermined protocol header. A program for the Uniform Resource Locator URL protocol, the method comprising:
在启动链接被触发后,通过操作系统提取所述启动链接中的预定协议头;After the startup link is triggered, the predetermined protocol header in the startup link is extracted by the operating system;
通过所述操作系统根据所述预定协议头查找所述启动程序;Searching, by the operating system, the startup program according to the predetermined protocol header;
通过所述启动程序触发所述客户端启动功能。The client startup function is triggered by the launcher.
第四方面,本发明实施例提供了一种功能启动装置,所述方法包括:In a fourth aspect, an embodiment of the present invention provides a function starting device, where the method includes:
消息接收模块,用于接收其它客户端发送的通信消息;a message receiving module, configured to receive a communication message sent by another client;
消息检测模块,用于检测所述消息接收模块接收到的所述通信消息是否包括启动链接,所述启动链接用于启动客户端提供的功能;a message detecting module, configured to detect whether the communication message received by the message receiving module includes a startup link, where the startup link is used to start a function provided by the client;
功能启动模块,用于在所述消息检测模块检测的结果为所述通信消息包括所述启动链接时,启动所述启动链接所指示的功能。And a function startup module, configured to: when the message detection module detects that the communication message includes the startup link, initiate a function indicated by the startup link.
第五方面,本发明实施例提供了一种功能启动装置,所述方法包括:In a fifth aspect, an embodiment of the present invention provides a function starting device, where the method includes:
链接获取模块,用于从客户端的输入框中获取启动链接;a link obtaining module, configured to obtain a startup link from an input box of the client;
链接发送模块,用于将所述链接获取模块获取到的所述启动链接发送给其他客户端,以便所述其他客户端启动所述启动链接所指示的功能,所述启动链接用于启动所述其他客户端提供的功能。a link sending module, configured to send the startup link acquired by the link obtaining module to another client, so that the other client starts a function indicated by the startup link, and the startup link is used to start the Features provided by other clients.
第六方面,本发明实施例提供了一种功能启动装置,用于终端中,所述终端包括客户端和与所述客户端对应的启动程序,所述启动程序是用于处理预定协议头所对应的自定义统一资源定位符URL协议的程序,所述装置包括: In a sixth aspect, an embodiment of the present invention provides a function starting apparatus, where the terminal includes a client and a startup program corresponding to the client, where the startup program is used to process a predetermined protocol header. Corresponding program of the custom uniform resource locator URL protocol, the device includes:
参数提取模块,用于在启动链接被触发后,通过操作系统提取所述启动链接中的预定协议头;a parameter extraction module, configured to extract, by the operating system, a predetermined protocol header in the startup link after the startup link is triggered;
程序查找模块,用于通过所述操作系统根据所述预定协议头查找所述启动程序;a program search module, configured to search, by the operating system, the startup program according to the predetermined protocol header;
功能启动模块,用于通过所述程序查找模块查找到的所述启动程序触发所述客户端启动功能。And a function startup module, configured to trigger the client startup function by the startup program found by the program search module.
第七方面,本发明实施例提供了一种功能启动装置,所述装置包括:In a seventh aspect, an embodiment of the present invention provides a function starting device, where the device includes:
一个或多个处理器;和One or more processors; and
存储器;Memory
所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:The memory stores one or more programs, the one or more programs being configured to be executed by the one or more processors, the one or more programs including instructions for:
接收其它客户端发送的通信消息;Receiving communication messages sent by other clients;
检测所述通信消息是否包括启动链接,所述启动链接用于启动客户端提供的功能;Detecting whether the communication message includes a startup link, and the startup link is used to initiate a function provided by the client;
若检测结果为所述通信消息包括所述启动链接,则启动所述启动链接所指示的功能。If the detection result is that the communication message includes the startup link, the function indicated by the startup link is started.
第八方面,本发明实施例提供了一种功能启动装置,所述装置包括:In an eighth aspect, an embodiment of the present invention provides a function starting device, where the device includes:
一个或多个处理器;和One or more processors; and
存储器;Memory
所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:The memory stores one or more programs, the one or more programs being configured to be executed by the one or more processors, the one or more programs including instructions for:
从客户端的输入框中获取启动链接;Get the startup link from the input box of the client;
将所述启动链接发送给其他客户端,以便所述其他客户端启动所述启动链接所指示的功能,所述启动链接用于启动所述其他客户端提供的功能。The launch link is sent to other clients for the other client to initiate the function indicated by the launch link, the launch link being used to initiate the functionality provided by the other client.
第九方面,本发明实施例提供了一种功能启动装置,用于终端中,所述终端包括客户端和与所述客户端对应的启动程序,所述启动程序是用于处理预定协议头所对应的自定义统一资源定位符URL协议的程序,所述装置包括:According to a ninth aspect, an embodiment of the present invention provides a function starting apparatus, where the terminal includes a client and a startup program corresponding to the client, where the startup program is used to process a predetermined protocol header. Corresponding program of the custom uniform resource locator URL protocol, the device includes:
一个或多个处理器;和One or more processors; and
存储器;Memory
所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述 一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:The memory stores one or more programs, the one or more programs being configured to be Executed by one or more processors, the one or more programs including instructions for:
在启动链接被触发后,通过操作系统提取所述启动链接中的预定协议头;After the startup link is triggered, the predetermined protocol header in the startup link is extracted by the operating system;
通过所述操作系统根据所述预定协议头查找所述启动程序;Searching, by the operating system, the startup program according to the predetermined protocol header;
通过所述启动程序触发所述客户端启动功能。The client startup function is triggered by the launcher.
通过接收其它客户端发送的通信消息;检测通信消息是否包括启动链接,启动链接用于启动客户端提供的功能;若检测结果为通信消息包括启动链接,则启动该启动链接所指示的功能,可以直接从接收到的通信消息中获取启动链接,并根据该启动链接直接启动功能,解决了客户端需要根据用户输入的功能的名称检索相应的功能,在用户点击功能的启动选项后启动该项功能,影响了功能的启动效率的问题,达到了提高功能的启动效率的效果。Receiving a communication message sent by another client; detecting whether the communication message includes a startup link, and starting a link for starting a function provided by the client; if the detection result is that the communication message includes a startup link, starting the function indicated by the startup link, The startup link is directly obtained from the received communication message, and the function is directly activated according to the startup link, which solves the problem that the client needs to retrieve the corresponding function according to the name of the function input by the user, and starts the function after the user clicks the startup option of the function. The problem that affects the startup efficiency of the function is achieved, and the effect of improving the startup efficiency of the function is achieved.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本发明实施例所涉及的团队语音工具的结构示意图;1 is a schematic structural diagram of a team voice tool according to an embodiment of the present invention;
图2是本发明一个实施例提供的功能启动方法的方法流程图;2 is a flowchart of a method for a function starting method according to an embodiment of the present invention;
图3A是本发明另一实施例提供的功能启动方法的方法流程图;FIG. 3 is a flowchart of a method for starting a function according to another embodiment of the present invention; FIG.
图3B是本发明实施例提供的启动链接展示方式的应用示意图;FIG. 3B is a schematic diagram of application of an activation link display manner according to an embodiment of the present invention; FIG.
图3C是本发明实施例提供的第一种频道启动方法的应用示意图;3C is a schematic diagram of application of a first channel starting method according to an embodiment of the present invention;
图3D是本发明实施例提供的第二种频道启动方法的应用示意图;FIG. 3D is a schematic diagram of application of a second channel starting method according to an embodiment of the present invention; FIG.
图3E是本发明实施例提供的第一种游戏启动方法的应用示意图;FIG. 3E is a schematic diagram of application of a first game starting method according to an embodiment of the present invention; FIG.
图3F是本发明实施例提供的第二种游戏启动方法的应用示意图;FIG. 3F is a schematic diagram of application of a second game starting method according to an embodiment of the present invention; FIG.
图3G是本发明实施例提供的第一种群组成员添加方法的应用示意图;FIG. 3G is a schematic diagram of application of a method for adding a group member according to an embodiment of the present disclosure;
图3H是本发明实施例提供的第二种群组成员添加方法的应用示意图;FIG. 3H is a schematic diagram of application of a second group member adding method according to an embodiment of the present invention; FIG.
图4是本发明一个实施例提供的功能启动方法的方法流程图;4 is a flowchart of a method for a function starting method according to an embodiment of the present invention;
图5A是本发明另一实施例提供的功能启动方法的方法流程图;FIG. 5A is a flowchart of a method for a function starting method according to another embodiment of the present invention; FIG.
图5B是本发明实施例提供的启动链接的生成示意图;FIG. 5B is a schematic diagram of generating a startup link according to an embodiment of the present invention; FIG.
图6是本发明一个实施例提供的功能启动方法的方法流程图;FIG. 6 is a flowchart of a method for a function starting method according to an embodiment of the present invention; FIG.
图7A是本发明另一实施例提供的功能启动方法的方法流程图; 7A is a flowchart of a method for a function starting method according to another embodiment of the present invention;
图7B是本发明另一实施例提供的频道启动方法的应用示意图;FIG. 7B is a schematic diagram of application of a channel starting method according to another embodiment of the present invention; FIG.
图7C是本发明另一实施例提供的游戏启动方法的应用示意图;FIG. 7C is a schematic diagram of an application of a game launching method according to another embodiment of the present invention; FIG.
图7D是本发明另一实施例提供的群组成员添加方法的应用示意图;7D is a schematic diagram of application of a group member adding method according to another embodiment of the present invention;
图8是本发明一个实施例提供的功能启动装置的结构示意图;FIG. 8 is a schematic structural diagram of a function starting device according to an embodiment of the present invention; FIG.
图9是本发明再一实施例提供的功能启动装置的结构示意图;FIG. 9 is a schematic structural diagram of a function starting device according to still another embodiment of the present invention; FIG.
图10是本发明一个实施例提供的功能启动装置的结构示意图;FIG. 10 is a schematic structural diagram of a function starting device according to an embodiment of the present invention; FIG.
图11是本发明再一实施例提供的功能启动装置的结构示意图;FIG. 11 is a schematic structural diagram of a function starting device according to still another embodiment of the present invention; FIG.
图12是本发明一个实施例提供的功能启动装置的结构示意图;FIG. 12 is a schematic structural diagram of a function starting device according to an embodiment of the present invention; FIG.
图13是本发明再一实施例提供的功能启动装置的结构示意图;FIG. 13 is a schematic structural diagram of a function starting device according to still another embodiment of the present invention; FIG.
图14是本发明一个实施例提供的终端的结构示意图。FIG. 14 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
请参考图1,其示出了本发明实施例所涉及的团队语音工具的结构示意图。团队语音工具包括客户端110、服务器120和客户端130。Please refer to FIG. 1 , which is a schematic structural diagram of a team voice tool according to an embodiment of the present invention. The team voice tool includes a client 110, a server 120, and a client 130.
客户端110可以安装于诸如电脑,智能手机、平板电脑和电子书阅读器之类的终端中。该终端可以安装有团队语音工具的应用程序客户端,或者安装有浏览器,然后通过浏览器访问团队语音工具的网页客户端。客户端110具有收发通信消息的能力,本实施例以客户端110接收通信消息为例进行说明,该通信消息是客户端130发送给服务器120后,服务器120向客户端110转发的消息。The client 110 can be installed in a terminal such as a computer, a smart phone, a tablet, and an e-book reader. The terminal can be installed with an application client of the team voice tool, or a web browser with a browser installed and then accessing the team voice tool through a browser. The client 110 has the ability to send and receive communication messages. The embodiment is described by the client 110 receiving the communication message. The communication message is a message that the server 120 forwards to the client 110 after the client 130 sends the message to the server 120.
服务器120可以通过无线或者有线网络和客户端110相连。服务器120可以是一台或者多台服务器,还可以是一个云计算中心。换句话说,服务器120可以由一台服务器实现;也可以由多台服务器组合实现,每台服务器承担相同或者不同的功能,比如有用于注册和登录的服务器、用于保存用户头像的服务器、用于保存频道信息及配置信息的服务器、用于保存图片或视频的服务器等等;服务器120也可以采用云计算中心实现,云计算中心是一整片服务集群所形成的虚拟计算平台。 Server 120 can be coupled to client 110 via a wireless or wired network. The server 120 can be one or more servers or a cloud computing center. In other words, the server 120 can be implemented by one server; it can also be implemented by a combination of multiple servers, each of which assumes the same or different functions, such as a server for registration and login, a server for saving user avatars, and The server for saving channel information and configuration information, the server for saving pictures or videos, and the like; the server 120 can also be implemented by a cloud computing center, which is a virtual computing platform formed by a whole service cluster.
客户端130可以安装于诸如电脑,智能手机、平板电脑和电子书阅读器之 类的终端中。该终端可以安装有团队语音工具的应用程序客户端,或者安装有浏览器,然后通过浏览器访问团队语音工具的网页客户端。客户端130具有收发通信消息的能力,本实施例以客户端130发送通信消息为例进行说明,该通信消息是客户端130发送给服务器120后,服务器120向客户端110转发的消息。The client 130 can be installed in, for example, a computer, a smart phone, a tablet, and an e-book reader. In the terminal of the class. The terminal can be installed with an application client of the team voice tool, or a web browser with a browser installed and then accessing the team voice tool through a browser. The client 130 has the ability to send and receive communication messages. The embodiment is described by the client 130 sending a communication message. The communication message is a message that the server 120 forwards to the client 110 after the client 130 sends the message to the server 120.
或者,团队语音工具包括客户端110和与该客户端110对应的启动程序。其中,客户端110和启动程序可以安装于诸如电脑,智能手机、平板电脑和电子书阅读器之类的终端中。该终端可以安装有团队语音工具的应用程序客户端,或者安装有浏览器,然后通过浏览器访问团队语音工具的网页客户端。客户端110具有接收启动程序发送的启动参数以及启动与该启动参数对应的功能的能力。Alternatively, the team voice tool includes a client 110 and a launcher corresponding to the client 110. Among them, the client 110 and the launcher can be installed in terminals such as computers, smart phones, tablets, and e-book readers. The terminal can be installed with an application client of the team voice tool, or a web browser with a browser installed and then accessing the team voice tool through a browser. The client 110 has the ability to receive a boot parameter sent by the launcher and initiate a function corresponding to the boot parameter.
请参考图2,其示出了本发明一个实施例提供的功能启动方法的方法流程图,该功能启动方法可以应用于图1所示的客户端110中。其中,为了与其他客户端相区别,本实施例将客户端110称为本地客户端。该功能启动方法,包括:Please refer to FIG. 2, which is a flowchart of a method for starting a function according to an embodiment of the present invention. The function starting method can be applied to the client 110 shown in FIG. The client 110 is referred to as a local client in order to distinguish it from other clients. The function startup method includes:
步骤201,接收其它客户端发送的通信消息。Step 201: Receive a communication message sent by another client.
通信消息是其他客户端发送给本地客户端的消息,可以包括文字消息、图片消息、音频消息和视频消息等,本实施例不对通信消息作限定。The communication message is a message sent by the other client to the local client, and may include a text message, a picture message, an audio message, a video message, etc., and the communication message is not limited in this embodiment.
步骤202,检测通信消息是否包括启动链接,启动链接用于启动客户端提供的功能。Step 202: Detect whether the communication message includes a startup link, and the startup link is used to start the function provided by the client.
由于本地客户端并不确定通信消息是否包括启动链接,因此,本地客户端需要对通信消息进行检测,若通信消息包括启动链接,则本地客户端可以直接根据该启动链接启动功能,即执行步骤203;若通信消息不包括启动链接,则本地客户端可以对该通信消息进行展示。其中,启动链接用于启动本地客户端提供的功能。Since the local client does not determine whether the communication message includes the startup link, the local client needs to detect the communication message. If the communication message includes the startup link, the local client can directly start the function according to the startup link, that is, step 203 is performed. If the communication message does not include a launch link, the local client can present the communication message. The launch link is used to launch the functionality provided by the local client.
步骤203,若检测结果为通信消息包括启动链接,则启动该启动链接所指示的功能。Step 203: If the detection result is that the communication message includes a startup link, the function indicated by the startup link is started.
综上所述,本发明实施例提供的功能启动方法,通过接收其它客户端发送的通信消息;检测通信消息是否包括启动链接,启动链接用于启动客户端提供的功能;若检测结果为通信消息包括启动链接,则启动该启动链接所指示的功 能,可以直接从通信消息中获取启动链接,并根据该启动链接直接启动功能,解决了客户端需要根据用户输入的功能的名称检索相应的功能,在用户点击功能的启动选项后启动该项功能,影响了功能的启动效率的问题,达到了提高功能的启动效率的效果。In summary, the function starting method provided by the embodiment of the present invention receives a communication message sent by another client, detects whether the communication message includes a startup link, and starts a link for starting a function provided by the client; if the detection result is a communication message Including the launch link, launch the work indicated by the launch link Yes, the startup link can be obtained directly from the communication message, and the function is directly activated according to the startup link, which solves the problem that the client needs to retrieve the corresponding function according to the name of the function input by the user, and activates the function after the user clicks the startup option of the function. The problem that affects the startup efficiency of the function is achieved, and the effect of improving the startup efficiency of the function is achieved.
请参考图3A,其示出了本发明另一实施例提供的功能启动方法的方法流程图,该功能启动方法可以应用于图1所示的客户端110中。其中,为了与其他客户端相区别,本实施例将客户端110称为本地客户端。该功能启动方法,包括:Please refer to FIG. 3A, which is a flowchart of a method for starting a function according to another embodiment of the present invention. The function starting method can be applied to the client 110 shown in FIG. 1. The client 110 is referred to as a local client in order to distinguish it from other clients. The function startup method includes:
步骤301,接收其它客户端发送的通信消息。Step 301: Receive a communication message sent by another client.
通信消息是其他客户端发送给本地客户端的消息,可以包括文字消息、图片消息、音频消息和视频消息等,本实施例不对通信消息作限定。The communication message is a message sent by the other client to the local client, and may include a text message, a picture message, an audio message, a video message, etc., and the communication message is not limited in this embodiment.
本地客户端接收通信消息的方式有很多种,比如,本地客户端可以通过聊天面板接收其他客户端发送的通信消息,或,本地客户端也可以通过其所进入的频道接收其他客户端发送的通信消息,本实施例不作限定。There are many ways for a local client to receive communication messages. For example, a local client can receive communication messages sent by other clients through a chat panel, or a local client can receive communications sent by other clients through a channel it enters. The message is not limited in this embodiment.
步骤302,检测通信消息是否包括启动链接,启动链接用于启动客户端提供的功能。Step 302: Detect whether the communication message includes a startup link, and the startup link is used to start the function provided by the client.
启动链接用于启动本地客户端提供的功能。其中,所要启动的功能可以是其他客户端向本地客户端推荐的功能,比如,该功能可以是其他客户端所进入的某一个频道,或,其他客户端正在玩的某一个游戏等,本实施例不对功能作限定。The launch link is used to launch the functionality provided by the local client. The function to be activated may be a function recommended by other clients to the local client. For example, the function may be a certain channel that other clients enter, or a certain game that other clients are playing, etc. The example does not limit the function.
由于本地客户端并不确定通信消息是否包括启动链接,因此,本地客户端需要对通信消息进行检测,若通信消息包括启动链接,则本地客户端可以直接根据该启动链接启动功能,即执行步骤303;若通信消息不包括启动链接,则本地客户端可以对该通信消息进行展示。Because the local client does not determine whether the communication message includes the startup link, the local client needs to detect the communication message. If the communication message includes the startup link, the local client can directly start the function according to the startup link, that is, step 303 is performed. If the communication message does not include a launch link, the local client can present the communication message.
具体地,检测通信消息是否包括启动链接,包括:Specifically, detecting whether the communication message includes a startup link includes:
1)检测通信消息是否包括预定协议头,所述预定协议头是启动链接所对应的自定义URL(Uniform Resource Locator,统一资源定位符)协议的头部;1) detecting whether the communication message includes a predetermined protocol header, where the predetermined protocol header is a header of a custom URL (Uniform Resource Locator) protocol corresponding to the startup link;
2)若检测结果为通信消息包括预定协议头,则确定通信消息包括启动链接,启动链接包括预定协议头。2) If the detection result is that the communication message includes a predetermined protocol header, it is determined that the communication message includes a startup link, and the startup link includes a predetermined protocol header.
由于启动链接包括预定协议头,因此,本地客户端可以检测通信消息是否 包括预定协议头,根据检测结果确定通信消息是否包括启动链接。比如,通信消息是“请试用下y://pd”,则本地客户端通过正则表达式确定“y://”是预定协议头,从而确定通信消息中的“y://pd”是启动链接。Since the startup link includes a predetermined protocol header, the local client can detect whether the communication message is The predetermined protocol header is included, and it is determined according to the detection result whether the communication message includes a startup link. For example, if the communication message is "Please try y://pd", the local client determines that "y://" is the predetermined protocol header by the regular expression, thereby determining that "y://pd" in the communication message is Start the link.
步骤303,若检测结果为通信消息包括启动链接,则对启动链接进行展示;若接收到触发信号,则触发执行步骤304,该触发信号用于触发启动链接。Step 303: If the detection result is that the communication message includes the start link, the start link is displayed; if the trigger signal is received, the step 304 is triggered, and the trigger signal is used to trigger the start link.
本实施例中,本地客户端可以在检测到通信消息包括启动链接之后,自动启动该启动链接所指示的功能,也可以在检测到通信消息包括启动链接之后,对该启动链接进行展示,并在用户触发该启动链接时,启动该启动链接所指示的功能。In this embodiment, the local client may automatically start the function indicated by the startup link after detecting that the communication message includes the startup link, or may display the startup link after detecting that the communication message includes the startup link, and When the user triggers the launch link, the function indicated by the launch link is launched.
其中,本地客户端可以将所有的启动链接以超链接的形式进行展示。比如,请参考图3B所示的启动链接展示方式的应用示意图,图3B(1)中将启动链接展示为“y://pd”,当移动指针到该超链接上时,指针变为手指的形状,并给予可点击的提示。或,Among them, the local client can display all the startup links as hyperlinks. For example, please refer to the application diagram of the startup link display mode shown in FIG. 3B. In FIG. 3B (1), the startup link is displayed as “ y://pd ”, and when the pointer is moved to the hyperlink, the pointer becomes a finger. The shape and give a clickable hint. or,
本实施例中,对启动链接进行展示,包括:In this embodiment, the startup link is displayed, including:
1)若启动链接包括程序标识字段,则获取该程序标识字段,程序标识字段用于标识子程序;1) If the startup link includes a program identification field, the program identification field is obtained, and the program identification field is used to identify the subroutine;
2)根据对应关系以及该程序标识字段确定启动链接的展示模板,该对应关系是不同程序标识字段与不同展示模板的对应关系;2) determining, according to the correspondence relationship and the program identification field, a display template of the startup link, where the correspondence relationship is a correspondence between different program identification fields and different display templates;
3)通过展示模板对该启动链接进行展示。3) Display the launch link through the presentation template.
程序标识字段用于标识子程序,子程序被本地客户端调用来启动功能。当本地客户端仅包括一个子程序时,本地客户端所提供的所有功能都由该子程序启动,此时启动链接可以不包括程序标识字段;当本地客户端包括至少两个子程序时,为了明确是调用哪个子程序来启动功能,此时启动链接需要包括程序标识字段。其中,程序标识字段等同于申请号为201310754562.0的中国专利申请中的模块标识字段,子程序等同于申请号为201310754562.0的中国专利申请中的功能模块。The program identification field is used to identify the subroutine, and the subroutine is called by the local client to start the function. When the local client includes only one subroutine, all the functions provided by the local client are started by the subroutine. In this case, the startup link may not include the program identification field; when the local client includes at least two subprograms, in order to clarify Which subroutine is called to start the function, and the startup link needs to include the program identification field. The program identification field is equivalent to the module identification field in the Chinese patent application with the application number 201310754562.0, and the subroutine is equivalent to the functional module in the Chinese patent application with the application number 201310754562.0.
可选的,程序标识字段可以包括子程序的模块标识。比如,若子程序是频道子程序,则程序标识字段可以包括“频道”的拼音缩写pd;若子程序是游戏子程序,则程序标识字段可以包括“游戏大厅”的拼音缩写yxdt。Optionally, the program identification field may include a module identifier of the subroutine. For example, if the subroutine is a channel subroutine, the program identification field may include a pinyin abbreviation pd of "channel"; if the subroutine is a game subroutine, the program identification field may include a pinyin abbreviation yxdt of "game lobby".
为了体现显示的多样性,本地客户端还可以为不同的子程序设置不同的展示模板,则在获取到程序标识字段之后,可以根据对应关系以及该启动链接中 的程序标识字段确定展示模板,并通过该展示模板对启动链接进行展示。比如,当子程序是频道子程序时,本地客户端可以展示包括“房间”的票据;当子程序是游戏子程序时,本地客户端可以展示包括“游戏手柄”的票据等。请参考图3B(2),图3B(2)以展示包括“房间”的票据为例进行说明。In order to reflect the diversity of the display, the local client can also set different presentation templates for different subroutines, and after obtaining the program identification field, according to the corresponding relationship and the startup link The program identification field determines the presentation template and displays the launch link through the presentation template. For example, when the subroutine is a channel subroutine, the local client can display the ticket including the "room"; when the subroutine is a game subroutine, the local client can display the ticket including the "gamepad" and the like. Please refer to FIG. 3B (2), and FIG. 3B (2) is described by taking a ticket including "room" as an example.
若子程序仅具有启动一项功能的能力,此时,启动链接只需要包括程序标识字段,本地客户端即可根据子程序确定功能;若子程序具有启动至少两项功能的能力,则启动链接除了需要包括程序标识字段,还需要包括功能标识字段,本地客户端根据功能标识字段确定所要启动的功能。其中,功能标识字段包括功能的功能标识。比如,若子程序是频道子程序,则功能标识可以是频道123的标识“123”;若子程序是游戏子程序时,则功能标识可以是游戏10的标识“10”。或,If the subroutine only has the ability to start a function, at this time, the startup link only needs to include the program identification field, and the local client can determine the function according to the subroutine; if the subprogram has the ability to start at least two functions, the startup link needs to be activated. Including the program identification field, it is also necessary to include a function identification field, and the local client determines the function to be activated according to the function identification field. The function identification field includes a function identifier of the function. For example, if the subroutine is a channel subroutine, the function identifier may be the identifier "123" of the channel 123; if the subroutine is a game subroutine, the function identifier may be the identifier "10" of the game 10. or,
启动链接还可以包括功能描述字段,该功能描述字段用于对功能进行描述。具体地,功能描述字段可以包括功能的文字介绍、图片介绍、音频介绍和视频介绍中的至少一种。文字介绍可以包括名称和人气等。The launch link may also include a function description field that is used to describe the function. Specifically, the function description field may include at least one of a text introduction of a function, a picture introduction, an audio introduction, and a video introduction. Text descriptions can include names and popularity.
当启动链接包括功能标识字段和功能描述字段中的至少一种时,本地客户端还可以将功能标识字段和功能描述字段中的至少一种添加到展示模板中进行展示。具体地,对展示模板进行展示,包括:When the launch link includes at least one of a function identification field and a function description field, the local client may also add at least one of the function identification field and the function description field to the presentation template for presentation. Specifically, the presentation template is displayed, including:
1)若启动链接还包括功能标识字段,则将该功能标识字段添加到展示模板中进行展示,该功能标识字段用于标识功能;和/或,1) If the activation link further includes a function identification field, the function identification field is added to the presentation template for display, the function identification field is used to identify the function; and/or,
2)若启动链接还包括功能描述字段,则将该功能描述字段添加到展示模板中进行展示,该功能描述字段用于对功能进行描述。2) If the launch link further includes a function description field, the function description field is added to the presentation template for presentation, and the function description field is used to describe the function.
1)假设启动链接为y://pd-[sid=123],则子程序标识为“pd”,功能标识为“123”,图3B(2)在包含有“房间”的票据中展示了“123”,即标识功能是频道123。1) Assuming the startup link is y://pd-[sid=123], the subroutine ID is "pd" and the function ID is "123". Figure 3B(2) shows in the ticket containing "Room". "123", that is, the identification function is channel 123.
2)以功能描述字段包括功能名称和人气为例进行说明,则在功能标识字段之后展示“半烟半雨(134)”,即标识功能的名称为“半烟半雨”、人气为134。2) The function description field includes the function name and popularity as an example. Then, after the function identification field, “semi-smoke and semi-rain (134)” is displayed, that is, the name of the identification function is “semi-smoke and semi-rain”, and the popularity is 134.
进一步地,将功能描述字段添加到展示模板中进行展示,包括:Further, the function description field is added to the presentation template for display, including:
1)若功能描述字段包括图片地址,则根据该图片地址获取图片;1) If the function description field includes a picture address, the picture is obtained according to the picture address;
2)将该图片添加到展示模板中进行展示。2) Add the image to the presentation template for display.
若功能描述字段还包括图片地址,则本地客户端可以根据该图片地址在网络中或本地客户端的安装包中获取图片,并将该图片添加到展示模板中进行展 示。其中,该图片地址由其他客户端对图片进行转换之后得到。If the function description field further includes an image address, the local client may obtain an image in the installation package of the network or the local client according to the image address, and add the image to the display template for exhibition. Show. The image address is obtained after the other client converts the image.
由于图片流量远远大于文字流量,因此,其他客户端将图片转换为图片地址发送给本地客户端,可以节省其他客户端的流量,也节省了传输资源。Since the image traffic is much larger than the text traffic, other clients convert the image into a picture address and send it to the local client, which can save traffic of other clients and save transmission resources.
步骤304,启动该启动链接所指示的功能。 Step 304, start the function indicated by the startup link.
具体地,启动该启动链接所指示的功能,包括:Specifically, launching the function indicated by the launch link includes:
1)若启动链接只包括程序标识字段,则确定程序标识字段所指示的子程序,通过子程序启动功能;1) If the startup link only includes the program identification field, determine the subroutine indicated by the program identification field, and activate the function through the subroutine;
2)若启动链接只包括功能标识字段,则确定功能标识字段所指示的功能,启动功能;2) If the startup link only includes the function identification field, determine the function indicated by the function identification field, and activate the function;
3)若启动链接包括程序标识字段和功能标识字段,则确定程序标识字段所指示的子程序,并确定功能标识字段所指示的功能,通过子程序启动功能;3) if the startup link includes a program identification field and a function identification field, determining a subroutine indicated by the program identification field, and determining a function indicated by the function identification field, and starting the function by the subroutine;
其中,程序标识字段用于标识子程序,功能标识字段用于标识功能。The program identification field is used to identify a subroutine, and the function identification field is used to identify a function.
第一,当启动链接只包括程序标识字段时,可能本地客户端只提供了一项功能,此时,本地客户端可以先确定子程序,再通过该子程序启动唯一的功能。或,可能本地客户端提供了与该程序标识字段唯一对应的一项功能,此时,本地客户端可以先确定子程序,再确定与该子程序唯一对应的功能,通过该子程序启动该功能。First, when the startup link only includes the program identification field, the local client may only provide one function. At this time, the local client may first determine the subroutine, and then start the unique function through the subroutine. Or, the local client may provide a function uniquely corresponding to the program identification field. At this time, the local client may first determine the subroutine, and then determine the function corresponding to the subprogram, and the function is started by the subroutine. .
第二,当启动链接只包括功能标识字段时,此时,本地客户端可以直接启动该功能,或,本地客户端需要通过子程序启动该功能。其中,若本地客户端需要通过子程序启动该功能,则可能本地客户端只能调用一个子程序,此时,本地客户端可以先确定功能,再通过唯一的子程序启动该功能。或,本地客户端提供了与该功能标识字段唯一对应的子程序,此时,本地客户端可以先确定功能,再确定与该功能唯一对应的子程序,再通过该子程序启动该功能。Second, when the startup link only includes the function identification field, at this time, the local client can directly start the function, or the local client needs to start the function through the subroutine. If the local client needs to start the function through a subroutine, the local client may only call one subroutine. At this time, the local client may first determine the function, and then start the function through a unique subroutine. Alternatively, the local client provides a subroutine that uniquely corresponds to the function identification field. At this time, the local client can determine the function first, and then determine the subroutine corresponding to the function, and then start the function through the subroutine.
第三,当启动链接包括程序标识字段和功能标识字段时,本地客户端可以先确定子程序和功能,再通过该子程序启动该功能。Third, when the startup link includes the program identification field and the function identification field, the local client can first determine the subroutine and function, and then activate the function through the subroutine.
由于子程序可以包括内置子程序和外置子程序,而通过内置子程序和外置子程序启动功能的方法不同,因此,通过子程序启动功能,包括:Since the subroutine can include a built-in subroutine and an external subroutine, and the method of starting the function by the built-in subroutine and the external subroutine is different, the function is started by the subroutine, including:
1)判断子程序是内置子程序还是外部子程序,内部子程序是客户端内的子程序,外部子程序客户端外的子程序;1) judging whether the subroutine is a built-in subroutine or an external subroutine, the internal subroutine is a subroutine within the client, and a subroutine outside the external subroutine client;
2)若判断结果为该子程序是内置子程序,则通过该内置子程序启动功能;2) If the result of the judgment is that the subroutine is a built-in subroutine, the function is started by the built-in subroutine;
3)若判断结果为该子程序是外部子程序,则获取该外部子程序提供的接 口,通过该接口触发外部子程序启动功能,或,通过接口触发外部子程序启动功能标识字段所指示的功能。3) If the result of the judgment is that the subroutine is an external subroutine, obtain the connection provided by the external subroutine The external subroutine start function is triggered by the interface, or the function indicated by the external subroutine start function identification field is triggered by the interface.
在判断出子程序是内置子程序之后,由于本地客户端可以直接调用内置子程序,因此,本地客户端可以调用内置子程序启动功能标识字段所标识的功能。在判断出子程序是外置子程序之后,由于外置子程序仅向本地客户端提供了用于传输数据的接口,因此,当启动链接只包括程序标识字段时,本地客户端可以通过该接口触发该外部子程序启动功能;当启动链接包括程序标识字段和功能标识字段时,本地客户端可以通过该接口将功能标识字段发送给该外部子程序,该外部子程序接收到功能标识字段之后,启动该功能标识字段所标识的功能。After judging that the subroutine is a built-in subroutine, since the local client can directly call the built-in subroutine, the local client can call the function identified by the built-in subroutine startup function identification field. After judging that the subroutine is an external subroutine, since the external subroutine only provides an interface for transmitting data to the local client, when the startup link only includes the program identification field, the local client can pass the interface. Triggering the external subroutine startup function; when the startup link includes a program identification field and a function identification field, the local client may send the function identification field to the external subroutine through the interface, after the external subroutine receives the function identification field, Start the function identified by the feature identification field.
综上所述,本发明实施例提供的功能启动方法,通过接收其它客户端发送的通信消息;检测通信消息是否包括启动链接,启动链接用于启动客户端提供的功能;若检测结果为通信消息包括启动链接,则启动该启动链接所指示的功能,可以直接从接收到的通信消息中获取启动链接,并根据该启动链接直接启动功能,解决了客户端需要根据用户输入的功能的名称检索相应的功能,在用户点击功能的启动选项后启动该项功能,影响了功能的启动效率的问题,达到了提高功能的启动效率的效果。另外,通过根据图片地址获取图片,将图片添加到展示模板中进行展示,可以将图片转换为文字进行传输,节省了客户端的流量,也节省了传输资源。In summary, the function starting method provided by the embodiment of the present invention receives a communication message sent by another client, detects whether the communication message includes a startup link, and starts a link for starting a function provided by the client; if the detection result is a communication message Including the startup link, the function indicated by the startup link is started, the startup link can be directly obtained from the received communication message, and the function is directly activated according to the startup link, and the client needs to retrieve the corresponding function according to the name of the function input by the user. The function starts the function after the user clicks the function's startup option, which affects the function startup efficiency and achieves the effect of improving the function startup efficiency. In addition, by obtaining an image according to the image address and adding the image to the display template for display, the image can be converted into text for transmission, which saves the traffic of the client and saves the transmission resource.
比如,用户A和用户B在聊天,若用户A想向用户B推荐“游戏10”,用户A可以通过A客户端向B客户端发送一条通信消息。假设该通信消息是“Hi,一起玩y://yxdt-[10]吧”,则B客户端在检测出通信消息中的y://yxdt-[10]是一个启动链接之后,将y://yxdt-[10]以超链接或票据的形式进行展示。若用户B点击了该启动链接,则B客户端通过启动链接中“yxdt”所标识的“游戏子程序”直接启动“游戏10”。For example, user A and user B are chatting. If user A wants to recommend "game 10" to user B, user A can send a communication message to the B client through the A client. Assuming that the communication message is "Hi, play y://yxdt-[10] together, the B client will detect y://yxdt-[10] in the communication message after it is a startup link. ://yxdt-[10] is displayed in the form of a hyperlink or a ticket. If user B clicks on the launch link, the B client directly launches "game 10" by launching the "game subroutine" identified by "yxdt" in the link.
本实施例中,子程序可以是频道子程序,或,子程序可以是游戏子程序,或,子程序可以是群组成员添加子程序,下面分别根据上述三种子程序对步骤304进行解释,具体如下:In this embodiment, the subroutine may be a channel subroutine, or the subroutine may be a game subroutine, or the subroutine may be a group member adding subroutine, and the following steps are respectively explained according to the above three subroutines, specifically as follows:
1)若子程序是频道子程序,功能是频道;1) If the subroutine is a channel subroutine, the function is a channel;
当存在多个频道时,本地客户端需要通过频道标识来确定需要启动的频 道。此时,通过子程序启动功能,包括:生成携带有频道标识的频道启动请求,通过频道子程序向服务器发送该频道启动请求,该频道启动请求用于请求启动该频道标识所标识的频道。When there are multiple channels, the local client needs to determine the frequency that needs to be activated by the channel identifier. Road. At this time, the function is started by the subroutine, including: generating a channel start request carrying the channel identifier, and sending the channel start request to the server through the channel subroutine, and the channel start request is used to request to activate the channel identified by the channel identifier.
比如,存在频道123和321,若本地客户端从功能标识字段中读取出的频道标识是123,本地客户端可以生成携带有频道标识123的频道启动请求,并将该频道启动请求发送给服务器,服务器确定该频道子程序请求启动频道123,触发启动频道123的流程。具体地,服务器可以获取频道123包括的频道号、频道名称、当前收听观众的信息、主播的直播画面、直播与观众之间的互动数据等频道数据,将该频道数据发送给频道子程序,频道子程序对该频道数据进行显示。For example, there are channels 123 and 321 . If the channel identifier read by the local client from the function identification field is 123, the local client may generate a channel start request carrying the channel identifier 123 and send the channel start request to the server. The server determines that the channel subroutine requests to start the channel 123, triggering the process of starting the channel 123. Specifically, the server may obtain the channel data included in the channel 123, the channel name, the information of the currently listening audience, the live broadcast screen of the anchor, the interaction data between the live broadcast and the viewer, and send the channel data to the channel subroutine, the channel. The subroutine displays the channel data.
为了便于理解,本实施例以用户A向用户B推荐频道的过程为例进行举例说明,则请参考图3C所示的第一种频道启动方法的应用示意图,用户A在客户端A的聊天界面中输入通信消息,该通信消息包括“Hi,用户B,一起加入y://pd-[123]吧”,如图3C(1)所示;用户B使用的客户端B在接收到通信消息后,将该通信消息转换成票据进行显示,该票据包含“房间123”,如图3C(2)所示;若用户B点击票据,进入频道123,如图3C(3)所示。请参考图3D所示的第二种频道启动方法的应用示意图,用户A使用的客户端A中显示“邀请好友进入频道”的邀请界面,如图3D(1)所示;用户A在好友的输入框中输入/选择了用户B,在频道的输入框中输入/选择了频道123,客户端A根据上述操作生成通信消息,该通信消息包括“Hi,用户B,一起加入y://pd-[123]吧”,如图3D(2)所示;用户B使用的客户端B在接收到通信消息后,将通信消息转换成票据进行显示,该票据包含“房间123”,如图3D(3)所示;若用户B点击票据,进入频道123,如图3D(4)所示。For the sake of understanding, the following is an example of the process of the user A recommending the channel to the user B. For example, refer to the application diagram of the first channel activation method shown in FIG. 3C, and the user A is in the chat interface of the client A. Enter a communication message, including "Hi, User B, join y://pd-[123] together, as shown in Figure 3C (1); Client B used by User B receives the communication message Thereafter, the communication message is converted into a ticket for display, the ticket includes "Room 123" as shown in FIG. 3C (2); if User B clicks on the ticket, enters Channel 123, as shown in FIG. 3C (3). Please refer to the application diagram of the second channel activation method shown in FIG. 3D. The client A uses the invitation interface of “invite friends to enter the channel”, as shown in FIG. 3D (1); user A is in the friend's User B is input/selected in the input box, and channel 123 is input/selected in the input box of the channel, and client A generates a communication message according to the above operation, and the communication message includes "Hi, user B, and joins y://pd together. -[123]吧", as shown in Fig. 3D(2); after receiving the communication message, the client B used by the user B converts the communication message into a ticket for display, the ticket containing "room 123", as shown in Fig. 3D (3); if user B clicks on the ticket, enters channel 123, as shown in FIG. 3D(4).
2)若子程序是游戏子程序,功能是游戏;2) If the subroutine is a game subroutine, the function is a game;
当存在多个游戏时,本地客户端需要通过游戏标识来确定需要启动的游戏。此时,通过子程序启动功能,包括:生成携带有游戏标识的游戏启动请求,通过游戏子程序向服务器发送该游戏启动请求,该游戏启动请求用于请求启动该游戏标识所标识的游戏。其中,游戏子程序可以是第三方提供的外部游戏子程序,且通过接口与客户端通信。When there are multiple games, the local client needs to determine the game that needs to be launched through the game identification. At this time, the function is started by the subroutine, including: generating a game start request carrying the game identifier, and transmitting the game start request to the server through the game subroutine, the game start request for requesting to start the game identified by the game identifier. The game subroutine may be an external game subroutine provided by a third party and communicate with the client through an interface.
比如,存在游戏10和20,若本地客户端从功能标识字段中读取出的游戏标识是10,本地客户端可以生成携带有游戏标识10的游戏启动请求,并将该 游戏启动请求发送给服务器,服务器确定该游戏子程序请求启动游戏10,触发启动游戏10的流程。具体地,服务器可以获取游戏10包括的游戏标识、游戏名称、当前加入该游戏的玩家的信息、玩家之间的互动数据,游戏进度、游戏装备等游戏数据,将该游戏数据发送给游戏子程序,游戏子程序对该游戏数据进行显示。For example, there are games 10 and 20. If the local client reads the game identifier from the function identification field is 10, the local client may generate a game launch request carrying the game identifier 10, and the The game start request is sent to the server, and the server determines that the game subroutine requests to start the game 10, triggering the process of starting the game 10. Specifically, the server may acquire the game identifier included in the game 10, the game name, the information of the player currently participating in the game, the interaction data between the players, the game progress, the game equipment, and the like, and send the game data to the game subroutine. The game subroutine displays the game data.
为了便于理解,本实施例以用户A向用户B推荐游戏的过程为例进行举例说明,则请参考图3E所示的第一种游戏启动方法的应用示意图,用户A在客户端A的聊天界面中输入通信消息,该通信消息包括“Hi,用户B,一起玩y://yxdt-[10]吧”,如图3E(1)所示;用户B使用的客户端B在接收到通信消息后,将通信消息转换成票据进行显示,该票据包含“游戏手柄10”,如图3E(2)所示;若用户B点击票据,进入游戏10,如图3E(3)所示。请参考图3F所示的第二种游戏启动方法的应用示意图,用户A使用的客户端A中显示“邀请好友一起玩游戏”的邀请界面,如图3F(1)所示;用户A在好友的输入框中输入/选择了用户B,在游戏的输入框中输入/选择了游戏10,客户端A根据上述操作生成通信消息,该通信消息包括“Hi,用户B,一起玩y://yxdt-[10]吧”,如图3F(2)所示;用户B使用的客户端B在接收到通信消息后,将通信消息转换成票据进行显示,该票据包含“游戏手柄10”,如图3F(3)所示;若用户B点击票据,进入游戏10,如图3F(4)所示。For the sake of understanding, the following is an example of the process in which the user A recommends the game to the user B. For example, refer to the application diagram of the first game startup method shown in FIG. 3E, and the user A is in the chat interface of the client A. Enter a communication message, including "Hi, User B, play y://yxdt-[10] together, as shown in Figure 3E(1); Client B used by User B receives the communication message Thereafter, the communication message is converted into a ticket for display, the ticket containing "gamepad 10" as shown in FIG. 3E(2); if user B clicks on the ticket, enters game 10, as shown in FIG. 3E(3). Please refer to the application diagram of the second game startup method shown in FIG. 3F. The client A uses the invitation interface of “invite friends to play games together”, as shown in FIG. 3F (1); user A is in the friend. User B is input/selected in the input box, and game 10 is input/selected in the input box of the game, and client A generates a communication message according to the above operation, the communication message includes "Hi, user B, play y:// together" Yxdt-[10], as shown in Fig. 3F(2); after receiving the communication message, the client B used by the user B converts the communication message into a ticket for display, the ticket containing the "gamepad 10", such as Figure 3F (3); if user B clicks on the ticket, enters game 10, as shown in Figure 3F (4).
3)若子程序是群组成员添加子程序,功能是群组成员添加功能;3) If the subroutine is a group member to add a subroutine, the function is a group member adding function;
当存在多个群组时,本地客户端需要通过群组标识来确定需要添加用户账户的群组。此时,通过子程序启动功能,包括:获取在客户端中登录的用户账户的账户标识,生成携带有该账户标识和群组标识的群组成员添加请求,通过群组成员添加子程序向服务器发送该群组成员添加请求,该群组成员添加请求用于请求将该用户账户添加到该群组中。When there are multiple groups, the local client needs to identify the group that needs to add the user account through the group identity. At this time, the function is started by the subroutine, including: obtaining an account identifier of the user account registered in the client, generating a group member adding request carrying the account identifier and the group identifier, and adding the subroutine to the server through the group member The group member add request is sent, and the group member add request is used to request that the user account be added to the group.
比如,存在群组123456和654321,若本地客户端从功能标识字段中读取出的群组标识是123456,且获取到在本地客户端中登录的用户账户的账户标识100,可以生成携带有账户标识100和群组标识123456的群组成员添加请求,并将该群组成员添加请求发送给服务器,服务器触发执行将用户账户100添加到群组标识123456的群组中的步骤。具体地,当群组123456的添加规则是允许任何用户账户加入时,服务器可以直接将用户账户100添加到群组123456中,向群组成员添加子程序反馈添加成功的消息;当群组123456的添加规则 是禁止任何用户账户加入时,服务器无法将用户账户100添加到群组123456中,向群组成员添加子程序反馈添加失败的消息;当群组123456的添加规则是等待群主决策时,服务器可以向群组成员添加子程序反馈等待群主决策的消息;当群组123456的添加规则是正确回答问题时,服务器可以向群组成员添加子程序反馈问题的题目。为了便于理解,本实施例以用户A推荐用户B加入群组123456的过程为例进行举例说明,则请参考图3G所示的第一种群组成员添加方法的应用示意图,用户A在客户端A的聊天界面中输入通信消息,该通信消息包括“Hi,用户B,一起加入y://qz-[123456]吧”,如图3G(1)所示;用户B使用的客户端B在接收到通信消息后,将通信消息转换成票据进行显示,该票据包含“团队123456”,如图3G(2)所示;若用户B点击票据,将用户B的账户B添加到群组123456中,如图3G(3)所示。请参考图3H所示的第二种群组成员添加方法的应用示意图,用户A使用的客户端A中显示“邀请好友一起加入群组”的邀请界面,如图3H(1)所示;用户A在好友的输入框中输入/选择了用户B,在群组的输入框中输入/选择了群组123456,客户端A根据上述操作生成通信消息,该通信消息包括“Hi,用户B,一起加入y://qz-[123456]吧”,如图3H(2)所示;用户B使用的客户端B在接收到通信消息后,将通信消息转换成票据进行显示,该票据包含“团队123456”,如图3H(3)所示;若用户B点击票据,将用户B的账户B添加到群组123456中,如图3H(4)所示。For example, if there are groups 123456 and 654321, if the local client reads the group identifier from the function identification field is 123456 and obtains the account identifier 100 of the user account logged in the local client, the account may be generated. The group member of the identifier 100 and the group identifier 123456 adds a request and sends the group member addition request to the server, and the server triggers the step of adding the user account 100 to the group of the group identifier 123456. Specifically, when the adding rule of the group 123456 is to allow any user account to join, the server may directly add the user account 100 to the group 123456, adding a subroutine feedback adding success message to the group member; when the group 123456 Add rules When any user account is forbidden, the server cannot add the user account 100 to the group 123456, and adds a subroutine feedback adding failure message to the group member; when the group 123456 adding rule is waiting for the group owner to make a decision, the server may Adding a subroutine feedback to the group member waits for the message of the group owner decision; when the adding rule of the group 123456 is to correctly answer the question, the server may add a subroutine feedback question to the group member. For the sake of understanding, in this embodiment, the process of the user A is recommended to be added to the group 123456 by the user A. For example, refer to the application diagram of the first group member adding method shown in FIG. 3G, where the user A is at the client. A communication message is input in the chat interface of A, and the communication message includes “Hi, user B, join y://qz-[123456] together, as shown in FIG. 3G(1); client B used by user B is After receiving the communication message, the communication message is converted into a ticket for display, the ticket includes "team 123456", as shown in FIG. 3G (2); if user B clicks on the ticket, user B's account B is added to group 123456 , as shown in Figure 3G (3). Please refer to the application diagram of the second group member adding method shown in FIG. 3H. The client A uses the invitation interface of “invite friends to join the group”, as shown in FIG. 3H(1); A enters/selects user B in the input box of the friend, enters/selects group 123456 in the input box of the group, and client A generates a communication message according to the above operation, the communication message includes “Hi, user B, together Add y://qz-[123456], as shown in Figure 3H(2); after receiving the communication message, client B used by user B converts the communication message into a ticket for display. 123456", as shown in Fig. 3H (3); if user B clicks on the ticket, user B's account B is added to group 123456, as shown in Fig. 3H (4).
请参考图4,其示出了本发明一个实施例提供的功能启动方法的方法流程图,该功能启动方法可以应用于图1所示的客户端130中。其中,为了与其他客户端相区别,本实施例将客户端130称为本地客户端。该功能启动方法,包括:Please refer to FIG. 4, which is a flowchart of a method for starting a function according to an embodiment of the present invention. The function starting method can be applied to the client 130 shown in FIG. In this embodiment, the client 130 is referred to as a local client in order to distinguish it from other clients. The function startup method includes:
步骤401,从客户端的输入框中获取启动链接。In step 401, a startup link is obtained from the input box of the client.
步骤402,将启动链接发送给其他客户端,以便该其他客户端启动该启动链接所指示的功能,启动链接用于启动其他客户端提供的功能。Step 402: Send the startup link to other clients, so that the other client starts the function indicated by the startup link, and the startup link is used to start the functions provided by other clients.
本地客户端可以将启动链接作为通信消息直接发送给其他客户端,也可以将启动链接添加到通信消息中,并在通信消息中添加其他文字消息、图片消息、音频消息和视频消息等,将添加后的通信消息发送给其他客户端,该其他客户端接收到通信消息后,可以根据该通信消息中的启动链接启动功能。 The local client can send the startup link as a communication message directly to other clients, or add the startup link to the communication message, and add other text messages, picture messages, audio messages, and video messages to the communication message, which will be added. The subsequent communication message is sent to other clients, and after receiving the communication message, the other client can start the function according to the startup link in the communication message.
综上所述,本发明实施例提供的功能启动方法,从客户端的输入框中获取启动链接;将启动链接发送给其他客户端,启动链接用于启动其他客户端提供的功能,使得其他客户端可以直接接收启动链接,并根据该启动链接直接启动功能,解决了其他客户端需要根据用户输入的功能的名称检索相应的功能,在用户点击功能的启动选项后启动该项功能,影响了功能的启动效率的问题,达到了提高功能的启动效率的效果。In summary, the function starting method provided by the embodiment of the present invention obtains a startup link from the input box of the client; sends the startup link to other clients, and the startup link is used to start the functions provided by other clients, so that other clients The startup link can be directly received, and the function is directly activated according to the startup link, and the other client needs to retrieve the corresponding function according to the name of the function input by the user, and the function is activated after the user clicks the startup option of the function, which affects the function. The problem of starting efficiency has the effect of improving the startup efficiency of the function.
请参考图5A,其示出了本发明另一实施例提供的功能启动方法的方法流程图,该功能启动方法可以应用于图1所示的客户端130中。其中,为了与其他客户端相区别,本实施例将客户端130称为本地客户端。该功能启动方法,包括:Referring to FIG. 5A, a method flowchart of a function starting method according to another embodiment of the present invention is shown. The function starting method may be applied to the client 130 shown in FIG. 1. In this embodiment, the client 130 is referred to as a local client in order to distinguish it from other clients. The function startup method includes:
步骤501,从客户端的输入框中获取启动链接,该启动链接由输入操作或粘贴操作得到。Step 501: Obtain a startup link from an input box of the client, and the startup link is obtained by an input operation or a paste operation.
启动链接用于指示本地客户端启动功能。其中,所要启动的功能可以是本地客户端向其他客户端推荐的功能,比如,功能可以是本地客户端所进入的某一个频道,或,本地客户端正在玩的某一个游戏等,本实施例不对功能作限定。The launch link is used to indicate local client startup features. The function to be started may be a function recommended by the local client to other clients, for example, the function may be a certain channel that the local client enters, or a certain game that the local client is playing, etc., this embodiment No restrictions are placed on the function.
本实施例中,本地客户端可以在输入框中获取启动链接,该输入框可以是与好友的聊天面板中的输入框,也可以是本地客户端所进入的频道的输入框等,本实施例不作限定。其中,启动链接可以由用户的输入操作和粘贴操作中的至少一种得到。In this embodiment, the local client may obtain an activation link in the input box, and the input box may be an input box in a chat panel with a friend, or may be an input box of a channel entered by the local client, etc., this embodiment Not limited. The startup link may be obtained by at least one of a user's input operation and a paste operation.
第一,若启动链接由输入操作得到,则从客户端的输入框中获取启动链接,包括:First, if the startup link is obtained by the input operation, the startup link is obtained from the input box of the client, including:
1)获取输入框中的至少一个关键字;1) Get at least one keyword in the input box;
2)检测该至少一个关键字是否与预定协议头匹配,该预定协议头是启动链接所对应的自定义URL协议的头部;2) detecting whether the at least one keyword matches a predetermined protocol header, where the predetermined protocol header is a header of a custom URL protocol corresponding to the startup link;
3)若检测结果为该至少一个关键字与预定协议头匹配,则对该至少一个关键字进行补全,得到启动链接,该启动链接包括预定协议头。3) If the detection result is that the at least one keyword matches the predetermined protocol header, the at least one keyword is complemented to obtain a startup link, where the startup link includes a predetermined protocol header.
由于启动链接包括预定协议头,因此,本地客户端可以将输入的至少一个关键字与预定协议头进行比较。若该至少一个关键字与预定协议头匹配,则本地客户端可以直接将该至少一个关键字作为启动链接,或,本地客户端可以对该至少一个关键字进行补全,以避免用户在输入启动链接时输入错误,使得其 他客户端不能够根据启动链接启动功能的问题,也可以避免输入启动链接的时间较长,降低了功能启动的效率的问题。Since the launch link includes a predetermined protocol header, the local client can compare the entered at least one keyword with a predetermined protocol header. If the at least one keyword matches the predetermined protocol header, the local client may directly use the at least one keyword as the startup link, or the local client may complete the at least one keyword to prevent the user from starting the input. Enter an error when linking, making it His client can't start the function according to the startup link, and can avoid the problem of inputting the startup link for a long time, which reduces the efficiency of function startup.
具体地,对至少一个关键字进行补全,得到启动链接,包括:Specifically, the at least one keyword is complemented to obtain a startup link, including:
1)展示用于生成启动链接的各个字段模板;1) Display the various field templates used to generate the launch link;
2)根据选择的一个字段模板对至少一个关键字进行补全,得到启动链接。2) Completing at least one keyword according to the selected one of the field templates to obtain a startup link.
本地客户端可以预先配置字段模板,每一个字段模板用于输入一个程序标识字段或一个功能标识字段,在本地客户端检测出输入框中输入的至少一个关键字与预定协议头匹配时,确定用户需要输入启动链接,此时,本地客户端可以对预先配置的各个字段模板进行展示,以便用户在展示的各个字段模板中选择一个字段模板,本地客户端根据用户选择的字段模板对关键字进行补全,生成启动链接。其中,程序标识字段包括子程序的程序标识,比如,若子程序是频道子程序,则程序标识字段可以包括“频道”的拼音缩写pd;若子程序是游戏子程序,则程序标识字段可以包括“游戏大厅”的拼音缩写yxdt。功能标识字段包括功能的功能标识,比如,若子程序是频道子程序,则功能标识可以是频道123的标识“123”;若子程序是游戏子程序时,则功能标识可以是游戏10的标识“10”。The local client may pre-configure the field template, and each field template is used to input a program identification field or a function identification field, and determine the user when the local client detects that at least one keyword input in the input box matches the predetermined protocol header. You need to enter the startup link. At this time, the local client can display the pre-configured field templates so that the user selects a field template in each field template displayed. The local client complements the keyword according to the field template selected by the user. All, generate a startup link. The program identification field includes a program identifier of the subroutine. For example, if the subprogram is a channel subroutine, the program identification field may include a pinyin abbreviation pd of “channel”; if the subroutine is a game subroutine, the program identification field may include “game”. The pinyin abbreviation yxdt in the hall. The function identification field includes a function identifier of the function. For example, if the subroutine is a channel subroutine, the function identifier may be the identifier "123" of the channel 123; if the subroutine is a game subroutine, the function identifier may be the identifier of the game 10 "10" ".
当启动链接包括程序标识字段、功能标识字段和功能描述字段中的至少一种时,本地客户端还可以根据程序标识字段、功能标识字段和功能描述字段中的至少一种生成启动链接。其中,功能描述字段可以包括功能的文字介绍、图片介绍、音频介绍和视频介绍中的至少一种,文字介绍可以包括名称和人气等。When the launch link includes at least one of a program identification field, a function identification field, and a function description field, the local client may also generate a launch link according to at least one of a program identification field, a function identification field, and a function description field. The function description field may include at least one of a text introduction, a picture introduction, an audio introduction, and a video introduction of the function, and the text introduction may include a name and popularity.
具体地,根据选择的一个字段模板对至少一个关键字进行补全之后,还包括:Specifically, after the at least one keyword is complemented according to the selected one of the field templates, the method further includes:
1)若字段模板包括用于输入程序标识字段的模板,则获取子程序的程序标识,将该程序标识添加到程序标识字段中,程序标识字段用于标识子程序;和/或,1) if the field template includes a template for inputting a program identification field, acquiring a program identifier of the subprogram, adding the program identifier to the program identification field, the program identification field is used to identify the subroutine; and/or,
2)若字段模板包括用于输入功能标识字段的字段模板,则获取功能的功能标识,将该功能标识添加到功能标识字段中,该功能标识字段用于标识功能;和/或,2) If the field template includes a field template for inputting the function identification field, obtaining a function identifier of the function, adding the function identifier to the function identifier field, the function identifier field is used to identify the function; and/or,
3)生成功能描述字段,将该功能描述字段添加到字段模板之后,该功能描述字段用于对功能进行描述。3) Generate a function description field, and after adding the function description field to the field template, the function description field is used to describe the function.
1)若字段模板包括用于输入程序标识字段的模板,则本地客户端可以预 先配置内容非空的程序标识字段。比如,请参考图5B所示的启动链接的生成示意图,本地客户端预先配置的字段模板包括“pd”模板和“yxdt”模板,假设用户在输入框中输入的关键字是“y://”,本地客户端检测到输入的关键字与预定协议头“y://”匹配,则在下拉列表中展示字段模板“pd”模板和“yxdt”模板,若用户选择了“pd”模板,则本地客户端生成“y://pd”的启动链接。1) If the field template includes a template for entering the program identification field, the local client can pre- First configure the program identification field whose content is not empty. For example, refer to the generation diagram of the startup link shown in FIG. 5B. The local client pre-configured field template includes a “pd” template and a “yxdt” template, and assumes that the keyword entered by the user in the input box is “y://”. The local client detects that the input keyword matches the predetermined protocol header "y://", and displays the field template "pd" template and the "yxdt" template in the drop-down list. If the user selects the "pd" template, The local client generates a launch link for "y://pd".
2)若字段模板包括用于输入功能标识字段的字段模板,且功能标识字段的内容为空,则以程序标识字段包括“pd”为例进行说明,字段模板可以是pd-[sid=],其中,本地客户端可以将功能标识添加在“=”和“]”之间。假设功能标识是“123”,则本地客户端将“123”添加到功能标识字段之后,得到的启动链接是y://pd-[sid=123]。2) If the field template includes a field template for inputting the function identification field, and the content of the function identification field is empty, the program identification field includes “pd” as an example, and the field template may be pd-[sid=], Among them, the local client can add the function identifier between "=" and "]". Assuming the function identifier is "123", the local client adds "123" to the function identification field, and the resulting startup link is y://pd-[sid=123].
2)以功能描述字段为功能名称和人气为例进行说明,则本地客户端可以在功能标识字段之后添加“半烟半雨(134)”,即标识功能的名称为“半烟半雨”、人气为134。2) The function description field is used as an example for the function name and popularity. The local client can add “semi-smoke and semi-rain (134)” after the function identification field, that is, the name of the identification function is “semi-smoke and semi-rain”. Popularity is 134.
进一步地,生成功能描述字段,包括:Further, generating a function description field, including:
1)若对功能的描述内容包括图片,则获取图片的图片地址;1) If the description of the function includes a picture, the picture address of the picture is obtained;
2)将图片地址添加到功能描述字段中。2) Add the picture address to the function description field.
若功能描述字段还包括图片地址,则本地客户端可以获取该图片在网络中或该本地客户端的安装包中的图片地址,并将该图片地址添加到功能描述字段中。由于图片流量远远大于文字流量,因此,本地客户端将图片转换为图片地址发送给其他客户端,可以节省本地客户端的流量,也可以节省传输资源。If the function description field further includes a picture address, the local client may obtain a picture address of the picture in the network or the installation package of the local client, and add the picture address to the function description field. Since the image traffic is much larger than the text traffic, the local client converts the image into a picture address and sends it to other clients, which can save traffic of the local client and save transmission resources.
第二,从客户端的输入框中获取启动链接,包括:Second, get the startup link from the client's input box, including:
通过在输入框中进行的粘贴操作获取启动链接,该启动链接由对预先展示的快捷键进行触发生成。The launch link is obtained by a paste operation in the input box, which is triggered by triggering a pre-displayed shortcut key.
本实施例中,本地客户端还可以展示启动功能的快捷键,若用户触发了该快捷键,则本地客户端获取该功能对应的启动链接,并通过粘贴操作将该启动链接粘贴到输入框中。由于用户仅需要执行简单的复制操作和粘贴操作,可以节省用户输入启动链接的时间,进一步提高了功能启动的效率。In this embodiment, the local client may also display a shortcut key of the startup function. If the user triggers the shortcut key, the local client obtains the startup link corresponding to the function, and pastes the startup link into the input box through a paste operation. . Since the user only needs to perform a simple copying operation and a pasting operation, the time for the user to input the startup link can be saved, and the efficiency of function startup is further improved.
比如,本地客户端在频道123中展示了“启动链接快捷键”的按钮,若用户点击了该“启动链接快捷键”的按钮,则本地客户端获取频道123的启动链接“y://pd-[sid=123]”,并展示“已一键复制启动链接”的提示信息,本地客户端在看到提示信息后可以将启动链接粘贴在该本地客户端的输入框中。 For example, the local client displays a button of "start link shortcut key" in channel 123. If the user clicks the button of "start link shortcut key", the local client obtains the startup link of channel 123 "y://pd" -[sid=123]", and display the message "One-click copy start link", the local client can paste the start link in the input box of the local client after seeing the prompt message.
步骤502,将启动链接发送给其他客户端,以便该其他客户端启动该启动链接所指示的功能,启动链接用于启动其他客户端提供的功能。Step 502: Send the startup link to other clients, so that the other client starts the function indicated by the startup link, and the startup link is used to start the functions provided by other clients.
本地客户端可以将启动链接作为通信消息直接发送给其他客户端,也可以将启动链接添加到通信消息中,并在通信消息中添加其他文字消息、图片消息、音频消息和视频消息等,将添加后的通信消息发送给其他客户端,该其他客户端接收到通信消息后,可以根据该通信消息中的启动链接启动功能。The local client can send the startup link as a communication message directly to other clients, or add the startup link to the communication message, and add other text messages, picture messages, audio messages, and video messages to the communication message, which will be added. The subsequent communication message is sent to other clients, and after receiving the communication message, the other client can start the function according to the startup link in the communication message.
综上所述,本发明实施例提供的功能启动方法,从客户端的输入框中获取启动链接;将启动链接发送给其他客户端,启动链接用于启动其他客户端提供的功能,使得其他客户端可以直接接收启动链接,并根据该启动链接直接启动功能,解决了其他客户端需要根据用户输入的功能的名称检索相应的功能,在用户点击功能的启动选项后启动该项功能,影响了功能的启动效率的问题,达到了提高功能的启动效率的效果。另外,通过获取图片的图片地址;将图片地址添加到功能描述字段中,可以将图片转换为文字进行传输,节省了客户端的流量,也节省了传输资源。In summary, the function starting method provided by the embodiment of the present invention obtains a startup link from the input box of the client; sends the startup link to other clients, and the startup link is used to start the functions provided by other clients, so that other clients The startup link can be directly received, and the function is directly activated according to the startup link, and the other client needs to retrieve the corresponding function according to the name of the function input by the user, and the function is activated after the user clicks the startup option of the function, which affects the function. The problem of starting efficiency has the effect of improving the startup efficiency of the function. In addition, by obtaining the picture address of the picture; adding the picture address to the function description field, the picture can be converted into text for transmission, which saves the traffic of the client and saves the transmission resource.
比如,用户A和用户B在聊天,若用户A想向用户B推荐“游戏10”,则可以通过输入操作或粘贴操作向用户B推荐“游戏10”。For example, user A and user B are chatting, and if user A wants to recommend "game 10" to user B, "game 10" can be recommended to user B by an input operation or a paste operation.
若用户A通过输入操作向用户B推荐“游戏10”,则用户A可以在A客户端的输入框中输入至少一个关键字,A客户端在检测出该至少一个关键字与预定协议头“y://”匹配时,在下拉列表中展示“yxdt-[]”和“pd-[sid=]”的字段模板,用户A选择“yxdt-[]”的字段模板,则A客户端使用“yxdt-[]”对输入的关键字进行补全,在输入框中展示“y://yxdt-[]”,用户A在“y://yxdt-[]”中添加“游戏10”的功能标识“10”,得到“y://yxdt-[10]”的启动链接,A客户端将得到的启动链接发送给B客户端。If the user A recommends "game 10" to the user B through the input operation, the user A may input at least one keyword in the input box of the A client, and the A client detects the at least one keyword and the predetermined protocol header "y: //" When matching, the field templates of "yxdt-[]" and "pd-[sid=]" are displayed in the drop-down list. User A selects the field template of "yxdt-[]", then A client uses "yxdt" -[]" completes the input keyword, displays "y://yxdt-[]" in the input box, and user A adds "game 10" function to "y://yxdt-[]" The identifier "10" is obtained, and the startup link of "y://yxdt-[10]" is obtained, and the A client sends the obtained startup link to the B client.
若用户A通过粘贴操作向用户B推荐“游戏10”,则用户A可以打开“游戏10”,点击在“游戏10”中展示的“启动链接快捷键”的按钮,A客户端在接收到用户A的点击操作之后,复制“游戏10”的启动链接“y://yxdt-[10]”,并显示“已一键复制启动链接”的提示信息,用户A在看到提示信息之后,将复制得到的“y://yxdt-[10]”粘贴到输入框中,得到启动链接。A客户端将该启动链接发送给B客户端。其中,“启动链接快捷键”可以展示为飞机票的形式,以表征功能启动的高效。 If the user A recommends "game 10" to the user B through the paste operation, the user A can open "game 10" and click the button of "start link shortcut key" displayed in "game 10", and the client A receives the user. After the click operation of A, copy the start link "y://yxdt-[10]" of "Game 10", and display the prompt message "One-click copy start link", after user A sees the prompt message, Paste the copied "y://yxdt-[10]" into the input box and get the startup link. The A client sends the launch link to the B client. Among them, the "launch link shortcut" can be displayed in the form of an airline ticket to characterize the efficient start of the function.
上面各个实施例以客户端通过通信消息中的启动链接启动功能为例,对功能启动方法进行了说明,当然,客户端除了通过通信消息中的启动链接来启动功能外,还可以通过用户输入的或网页中的启动链接启动功能,下面各个实施例以客户端根据启动链接启动功能为例进行说明。其中,本实施例中的启动连接等同于申请号为201310754304.2的中国专利申请中的预定链接。The above embodiments use the startup link startup function in the communication message as an example to describe the function startup method. Of course, the client can start the function through the startup link in the communication message, and can also input through the user. Or the startup link startup function in the webpage. The following embodiments are described by taking the example of the startup link activation function by the client. The start-up connection in this embodiment is equivalent to the predetermined link in the Chinese patent application with the application number 201310754304.2.
请参考图6,其示出了本发明一个实施例提供的功能启动方法的方法流程图,该功能启动方法可以应用于终端中,该终端包括客户端和与客户端对应的启动程序,启动程序是用于处理预定协议头所对应的自定义URL协议的程序。该功能启动方法,包括:Please refer to FIG. 6 , which is a flowchart of a method for starting a function according to an embodiment of the present invention. The function startup method may be applied to a terminal, where the terminal includes a client and a startup program corresponding to the client, and the startup program is started. It is a program for processing a custom URL protocol corresponding to a predetermined protocol header. The function startup method includes:
步骤601,在启动链接被触发后,通过操作系统提取该启动链接中的预定协议头。Step 601: After the startup link is triggered, the predetermined protocol header in the startup link is extracted by the operating system.
本实施例中,启动链接包括预定协议头,其中,预定协议头用于指示处理该预定协议头对应的自定义URL协议的启动程序,自定义URL协议是用户自定义的URL协议。In this embodiment, the startup link includes a predetermined protocol header, wherein the predetermined protocol header is used to indicate a startup procedure for processing a custom URL protocol corresponding to the predetermined protocol header, and the custom URL protocol is a user-defined URL protocol.
若启动链接是用户输入的链接,终端可以在用户输入完成时触发启动链接;若启动链接是预先编辑在网页中的链接,终端可以在用户点击该链接时触发启动链接。当然,还有其他触发启动链接的方式,本实施例不对触发启动链接的方式作限定。If the launch link is a link entered by the user, the terminal may trigger the launch link when the user input is completed; if the launch link is a link pre-edited in the web page, the terminal may trigger the launch link when the user clicks on the link. Of course, there are other ways to trigger the launch link, and this embodiment does not limit the manner in which the link is triggered.
步骤602,通过操作系统根据预定协议头查找启动程序。Step 602: The startup program is searched by the operating system according to a predetermined protocol header.
步骤603,通过启动程序触发客户端启动功能。In step 603, the client startup function is triggered by the startup program.
综上所述,本发明实施例提供的功能启动方法,在启动链接被触发后,通过操作系统提取启动链接中的预定协议头;通过操作系统根据预定协议头查找启动程序;通过启动程序触发客户端启动功能,可以根据启动链接直接启动功能,解决了用户根据功能介绍信息启动功能时,需要跳转较多界面,降低了功能启动效率的问题,达到了提高功能启动效率的效果。In summary, the function starting method provided by the embodiment of the present invention extracts a predetermined protocol header in the startup link through the operating system after the startup link is triggered; searches for the startup program according to the predetermined protocol header by the operating system; triggers the client by starting the program. The terminal startup function can directly start the function according to the startup link, and solves the problem that the user needs to jump more interfaces when the function is started according to the function introduction information, thereby reducing the function startup efficiency and achieving the effect of improving the function startup efficiency.
请参考图7A,其示出了本发明另一实施例提供的功能启动方法的方法流程图,该功能启动方法可以应用于终端中,该终端包括客户端和与客户端对应的启动程序,启动程序是用于处理预定协议头所对应的自定义URL协议的程序。具体地,本实施例以功能启动方法应用于终端中安装的应用程序中,且该应用程序包括客户端和与该客户端对应的启动程序为例进行说明。该功能启动 方法,包括:Please refer to FIG. 7A, which is a flowchart of a method for starting a function according to another embodiment of the present invention. The function starting method may be applied to a terminal, where the terminal includes a client and a startup program corresponding to the client, and is started. The program is a program for processing a custom URL protocol corresponding to a predetermined protocol header. Specifically, the application is applied to an application installed in the terminal by using a function startup method, and the application includes a client and an activation program corresponding to the client as an example for description. This feature starts Methods, including:
步骤701,在操作系统中注册预定协议头;在操作系统中将启动程序注册为用于处理该预定协议头所对应的自定义URL协议的程序。Step 701: Register a predetermined protocol header in the operating system; register the startup program as a program for processing the custom URL protocol corresponding to the predetermined protocol header in the operating system.
本实施例中,终端需要在操作系统中注册预定协议头和用于处理该预定协议头所对应的自定义URL协议的启动程序。其中,预定协议头是启动链接所对应的自定义URL协议的头部,自定义URL协议是用户自定义的URL协议。假设自定义URL协议是y协议,则与该协议对应的预定协议头可以是y://。In this embodiment, the terminal needs to register a predetermined protocol header and a startup program for processing a custom URL protocol corresponding to the predetermined protocol header in the operating system. The predetermined protocol header is a header of a custom URL protocol corresponding to the startup link, and the custom URL protocol is a user-defined URL protocol. Assuming that the custom URL protocol is the y protocol, the predetermined protocol header corresponding to the protocol may be y://.
具体地,在运行安装包中的安装程序来安装应用程序的过程中,安装程序可以调用启动程序,启动程序可以先在操作系统的注册表中注册预定协议头,再将该启动程序注册为用于处理该预定协议头对应的自定义URL协议的程序。其中,将启动程序注册为用于处理该预定协议头对应的自定义URL协议的程序可以包括:在注册表中注册启动程序的路径。Specifically, in the process of running the installer in the installation package to install the application, the installer can call the startup program, and the startup program can first register the predetermined protocol header in the registry of the operating system, and then register the startup program as the use program. A program for processing a custom URL protocol corresponding to the predetermined protocol header. The registering the startup program as a program for processing the custom URL protocol corresponding to the predetermined protocol header may include: registering a path of the startup program in the registry.
以自定义URL协议为y协议为例进行说明,则启动程序可以通过以下步骤进行注册:The custom URL protocol is used as an example for the y protocol. The startup program can be registered by the following steps:
1)注册y预定协议头;1) Registration y reservation protocol header;
SHSetValue(HKEY_CLASSES_ROOT,L"y",L"URL Protocol",REG_SZ,NULL,0);SHSetValue(HKEY_CLASSES_ROOT,L"y",L"URL Protocol",REG_SZ,NULL,0);
2)注册shell和open;2) Register the shell and open;
TCHAR*pStrAction=L"open";TCHAR*pStrAction=L"open";
DWORD cbData=(DWORD)_tcsclen(pStrAction)*sizeof(TCHAR);DWORD cbData=(DWORD)_tcsclen(pStrAction)*sizeof(TCHAR);
SHSetValue(HKEY_CLASSES_ROOT,L"y\\shell",L"",REG_SZ,pStrAction,cbData);SHSetValue(HKEY_CLASSES_ROOT,L"y\\shell",L"",REG_SZ,pStrAction,cbData);
SHSetValue(HKEY_CLASSES_ROOT,L"y\\shell\\open",L"",REG_SZ,NULL,0);SHSetValue(HKEY_CLASSES_ROOT,L"y\\shell\\open",L"",REG_SZ,NULL,0);
3)注册启动程序的路径;3) Register the path to the startup program;
std::wostringstream oss;Std::wostringstream oss;
oss<<L"\""<<strYRunPath<<L"\""<<L"%1";(YrunPath即为启动程序的路径)Oss<<L"\""<<strYRunPath<<L"\""<<L"%1";(YrunPath is the path to the launcher)
cbData=(DWORD)oss.str().size()*sizeof(TCHAR);cbData=(DWORD)oss.str().size()*sizeof(TCHAR);
SHSetValue(HKEY_CLASSES_ROOT,L"y\\shell\\open\\command",L"",REG_SZ,oss.str().c_str(),cbData)。SHSetValue(HKEY_CLASSES_ROOT,L"y\\shell\\open\\command",L"",REG_SZ,oss.str().c_str(),cbData).
步骤702,在启动链接被触发后,通过操作系统提取该启动链接中的预定协议头。Step 702: After the startup link is triggered, the predetermined protocol header in the startup link is extracted by the operating system.
可选的,在启动链接被触发之前,还包括:Optionally, before the launch link is triggered, it also includes:
1)对启动链接进行展示; 1) Display the launch link;
2)若接收到触发信号,则触发执行通过操作系统提取该启动链接中的预定协议头的步骤,该触发信号用于触发该启动链接。2) If a trigger signal is received, triggering a step of extracting a predetermined protocol header in the startup link by the operating system, the trigger signal being used to trigger the startup link.
若启动链接是用户输入的链接,终端可以在用户确定输入完成时触发启动链接;若启动链接是预先编辑在网页中的链接,终端可以在用户点击该链接时触发启动链接。当然,还有其他触发启动链接的方式,本实施例不对触发启动链接的方式作限定。If the launch link is a link entered by the user, the terminal may trigger the launch link when the user determines that the input is completed; if the launch link is a link pre-edited in the web page, the terminal may trigger the launch link when the user clicks on the link. Of course, there are other ways to trigger the launch link, and this embodiment does not limit the manner in which the link is triggered.
步骤703,通过操作系统根据预定协议头查找启动程序。Step 703: The startup program is searched by the operating system according to a predetermined protocol header.
在启动链接被触发后,操作系统读取该启动链接包括的预定协议头,并在注册表中查找与该预定协议头对应的自定义URL协议,若查找到与该预定协议头对应的自定义URL协议,操作系统再确定用于处理该自定义URL协议的启动程序。具体地,操作系统可以在注册表中查找与该预定协议头对应的启动程序的路径,再根据该路径确定启动程序。After the startup link is triggered, the operating system reads the predetermined protocol header included in the startup link, and searches the registry for a custom URL protocol corresponding to the predetermined protocol header, and if the customization corresponding to the predetermined protocol header is found, The URL protocol, the operating system then determines the launcher for processing the custom URL protocol. Specifically, the operating system may look up a path of the startup program corresponding to the predetermined protocol header in the registry, and then determine the startup program according to the path.
步骤704,通过启动程序接收操作系统发送的启动参数,该启动参数是操作系统从启动链接中提取得到的。Step 704: Receive, by the startup program, a startup parameter sent by the operating system, where the startup parameter is extracted by the operating system from the startup link.
启动参数用于标识客户端所要启动的功能。The startup parameters are used to identify the features that the client is to launch.
可选的,当客户端只提供了一项功能时,启动链接可以不包括启动参数;当客户端提供了至少两项功能时,启动链接还需要包括启动参数,此时,启动链接包括预定协议头和启动参数,假设预定协议头是y://,需要启动的功能是频道,则启动参数可以是pd-[sid=123],用于指示启动频道号是123的频道,此时的启动链接是y://pd-[sid=123]。Optionally, when the client only provides a function, the startup link may not include the startup parameter; when the client provides at least two functions, the startup link also needs to include the startup parameter, and at this time, the startup link includes the predetermined protocol. Head and startup parameters, assuming that the predetermined protocol header is y://, and the function to be started is the channel, the startup parameter may be pd-[sid=123], which is used to indicate that the channel whose channel number is 123 is activated, and the startup is started at this time. The link is y://pd-[sid=123].
步骤705,通过启动程序将启动参数传递给客户端。Step 705: Pass the startup parameter to the client by starting the program.
由于功能需要由客户端启动,因此,启动程序可以先确定客户端,并将接收到的启动参数传递给该客户端。Since the function needs to be started by the client, the launcher can first determine the client and pass the received startup parameters to the client.
本实施例中,通过启动程序将启动参数传递给客户端之前,还包括:若客户端处于关闭状态,则通过启动程序启动客户端。In this embodiment, before the startup parameter is transmitted to the client by the startup program, the method further includes: if the client is in the closed state, the client is started by starting the program.
其中,由于启动程序确定出的客户端可能处于启动状态,也可能处于关闭状态。若启动程序确定出的客户端处于启动状态,则启动程序可以直接将启动参数传递给该客户端;若启动程序确定出的客户端处于关闭状态,则启动程序在传递启动参数之前,还需要启动客户端。优选地,启动程序还可以带启动参数启动客户端,即在启动客户端的命令中携带启动参数,从而节省了发送启动客户端的命令启动客户端之后,再发送启动参数给该客户端造成的信令浪费。 Among them, the client determined by the startup program may be in the startup state, and may also be in the shutdown state. If the client determined by the startup program is in the startup state, the startup program can directly pass the startup parameter to the client; if the client determined by the startup program is in the shutdown state, the startup program needs to be started before the startup parameter is passed. Client. Preferably, the startup program can also start the client with the startup parameter, that is, the startup parameter is carried in the command for starting the client, thereby saving the signaling caused by the command to send the startup client, and then sending the startup parameter to the client. waste.
进一步地,由于客户端与登录的用户账户一一对应,因此,若用户在终端中登录了至少两个用户账户,则存在至少两个客户端。若存在至少两个客户端,则通过启动程序将启动参数传递给客户端之前,还包括:Further, since the client has a one-to-one correspondence with the logged-in user account, if the user logs in at least two user accounts in the terminal, there are at least two clients. If there are at least two clients, before the startup parameters are passed to the client through the launcher, it also includes:
1)接收选择信号,确定该选择信号所指示的客户端,该选择信号用于从展示的各个客户端中选择一个客户端;或,1) receiving a selection signal, determining a client indicated by the selection signal, the selection signal being used to select a client from each of the displayed clients; or
2)若启动参数包括标识信息,则确定该标识信息所指示的客户端。2) If the startup parameter includes the identification information, the client indicated by the identification information is determined.
由于存在至少两个客户端,因此,启动程序需要从该至少两个客户端中确定需要启动功能的客户端。具体地,启动程序可以将预先设置的默认的客户端确定为需要启动功能的客户端;或,终端可以对终端中的各个客户端进行展示,以便用户从展示的各个客户端中选择一个客户端,启动程序根据用户选择客户端时触发的选择信号确定需要启动功能的客户端,其中,展示的客户端可以处于关闭状态,也可以处于启动状态。或,启动参数中可以携带客户端的标识信息,启动程序可以根据该标识信息确定需要启动功能的客户端。假设需要启动的功能是频道,且启动参数是pd-[sid=123]-uid=123456,则启动参数用于指示通过登录了用户账号123456的客户端启动频道号是123的频道。Since there are at least two clients, the initiator needs to determine the client that needs to start the function from the at least two clients. Specifically, the startup program may determine a preset default client as a client that needs to start the function; or, the terminal may display each client in the terminal, so that the user selects one client from each client displayed. The startup program determines the client that needs to start the function according to the selection signal triggered when the user selects the client, wherein the displayed client can be in the closed state or in the startup state. Or, the startup parameter may carry the identifier information of the client, and the startup program may determine, according to the identifier information, the client that needs to start the function. Assuming that the function to be activated is a channel, and the startup parameter is pd-[sid=123]-uid=123456, the startup parameter is used to indicate that the channel whose channel number is 123 is initiated by the client that has logged in the user account 123456.
本实施例中,若客户端可以识别启动参数,则启动程序可以直接将启动参数发送给客户端;若客户端不能识别启动参数,则启动程序还需要将启动参数转换为能够被客户端识别的启动参数。具体地,通过启动程序将启动参数传递给客户端,包括:In this embodiment, if the client can identify the startup parameter, the startup program can directly send the startup parameter to the client; if the client cannot identify the startup parameter, the startup program also needs to convert the startup parameter to be recognized by the client. Startup parameters. Specifically, the startup parameters are passed to the client through the launcher, including:
1)通过启动程序将启动参数转换为预定格式的启动参数,该预定格式是被客户端识别的格式;1) converting the startup parameter into a startup parameter of a predetermined format by a startup program, the predetermined format being a format recognized by the client;
2)通过启动程序将该预定格式的启动参数传递给客户端。2) Passing the startup parameters of the predetermined format to the client through the startup program.
其中,启动程序可以获取能够被客户端识别的预定格式,并将启动参数转换为该预定格式的启动参数,将该预定格式的启动参数传递给客户端。比如,启动参数是join:room_id=10,客户端能够识别的预定格式是pd-[sid=xxx],则启动程序可以将启动参数转换为pd-[sid=10],并将pd-[sid=10]传递给客户端。The startup program may acquire a predetermined format that can be recognized by the client, and convert the startup parameter into a startup parameter of the predetermined format, and deliver the startup parameter of the predetermined format to the client. For example, if the startup parameter is join:room_id=10, the predetermined format that the client can recognize is pd-[sid=xxx], then the startup program can convert the startup parameters to pd-[sid=10] and pd-[sid =10] passed to the client.
步骤706,通过客户端启动与该启动参数所对应的功能。Step 706: Start a function corresponding to the startup parameter by using a client.
若客户端可以识别接收到的启动参数,则在至少一项功能中确定该启动参数所指示的功能,并启动该功能。若客户端不能识别接收到的启动参数,即启动程序未转换启动参数,则客户端还需要将启动参数转换为被该客户端识别的启动参数,再在至少一项功能中确定该预定格式的启动参数所指示的功能,并 启动该功能。其中,转换方法详见步骤705中的描述,此处不赘述。If the client can recognize the received startup parameter, the function indicated by the startup parameter is determined in at least one function, and the function is started. If the client does not recognize the received startup parameter, that is, the startup program does not convert the startup parameter, the client also needs to convert the startup parameter into a startup parameter recognized by the client, and then determine the predetermined format in at least one function. Start the function indicated by the parameter, and Start this feature. The conversion method is described in detail in step 705, and details are not described herein.
需要补充说明的是,若需要在终端中卸载包括客户端和与该客户端对应的启动程序的应用程序,则在运行卸载程序来卸载该应用程序时,卸载程序可以调用启动程序,启动程序可以在操作系统的注册表中注销预定协议头,并撤销注册启动程序为用于处理预定协议头对应的自定义URL协议的程序的操作,即删除注册表中注册的预定协议头和启动程序的路径,以节省操作系统的存储空间。具体地,在操作系统中将启动程序注册为用于处理预定协议头所对应的自定义URL协议的程序之后,还包括:It should be added that if an application including a client and a startup program corresponding to the client needs to be uninstalled in the terminal, the uninstaller can call the startup program when the uninstaller is uninstalled to run the uninstall program, and the startup program can be started. The predetermined protocol header is written off in the registry of the operating system, and the registration startup program is an operation for processing the program of the custom URL protocol corresponding to the predetermined protocol header, that is, the path of the predetermined protocol header and the startup program registered in the registry is deleted. To save operating system storage space. Specifically, after registering the startup program in the operating system as a program for processing the custom URL protocol corresponding to the predetermined protocol header, the method further includes:
1)在操作系统中注销预定协议头;1) Log out the predetermined protocol header in the operating system;
2)撤销在操作系统中将启动程序注册为用于处理预定协议头对应的自定义URL协议的程序的操作。2) The operation of registering the startup program as a program for processing the custom URL protocol corresponding to the predetermined protocol header in the operating system is revoked.
可选的,若在终端中安装了至少两个应用程序,且每一个应用程序都包括客户端和启动程序,则可以将最近安装的应用程序所包括的启动程序注册为用于处理预定协议头对应的自定义URL协议的程序。若该启动程序失效了,则还可以将注册表中注册的该启动程序替换为其他有效的启动程序。Optionally, if at least two applications are installed in the terminal, and each application includes a client and a startup program, the startup program included in the recently installed application may be registered as a processing protocol header. The corresponding custom URL protocol program. If the launcher fails, you can also replace the launcher registered in the registry with another valid launcher.
在实际使用过程中,由于每一个启动程序都可以识别与该启动程序属于同一个应用程序的各个客户端,以及与该启动程序属于不同应用程序的各个客户端,因此,无论操作系统将启动参数发送给哪一个启动程序,启动程序都可以将该启动参数传递给任意一个客户端。In the actual use process, since each startup program can identify each client belonging to the same application as the startup program, and each client belonging to a different application from the startup program, regardless of the operating system will start parameters Which startup program is sent to the startup program, which can pass the startup parameters to any client.
综上所述,本发明实施例提供的功能启动方法,在启动链接被触发后,通过操作系统提取启动链接中的预定协议头和启动参数;通过操作系统根据预定协议头查找启动程序,将启动参数发送给启动程序;通过启动程序将启动参数传递给客户端;通过客户端启动与启动参数所对应的功能,可以根据启动链接包括的启动参数直接启动功能,解决了用户根据功能介绍信息启动功能需要跳转较多界面造成的降低功能启动效率的问题,达到了提高功能启动效率的效果。另外,通过在操作系统中注销预定协议头;撤销在操作系统中将启动程序注册为用于处理预定协议头对应的自定义URL协议的程序的操作,可以达到节省操作系统的存储空间的效果。In summary, the function starting method provided by the embodiment of the present invention extracts a predetermined protocol header and a startup parameter in the startup link through the operating system after the startup link is triggered; and the startup program is started by the operating system according to the predetermined protocol header. The parameter is sent to the startup program; the startup parameter is transmitted to the client through the startup program; the function corresponding to the startup parameter and the startup parameter can directly start the function according to the startup parameter included in the startup link, and solve the function of the user according to the function introduction information. It is necessary to jump more interfaces to reduce the function startup efficiency, and achieve the effect of improving the function startup efficiency. In addition, the effect of saving the storage space of the operating system can be achieved by unregistering the predetermined protocol header in the operating system; revoking the operation of registering the startup program as a program for processing the custom URL protocol corresponding to the predetermined protocol header in the operating system.
本实施例中,启动参数可以包括频道标识,或,启动参数可以包括游戏标识,或,启动参数可以包括群组标识,下面分别根据上述三种启动参数对步骤 704进行解释,具体如下:In this embodiment, the startup parameter may include a channel identifier, or the startup parameter may include a game identifier, or the startup parameter may include a group identifier, and the following steps are respectively performed according to the foregoing three startup parameters. 704 for explanation, as follows:
1)若启动参数包括频道标识,与该启动参数所对应的功能是频道;1) If the startup parameter includes a channel identifier, the function corresponding to the startup parameter is a channel;
当存在多个频道时,客户端需要通过频道标识来确定需要启动的频道。此时,通过客户端启动与启动参数所对应的功能,包括:通过客户端生成携带有频道标识的频道启动请求,向服务器发送该频道启动请求,该频道启动请求用于请求该启动频道标识所标识的频道。When there are multiple channels, the client needs to identify the channel that needs to be activated by the channel identification. At this time, the function corresponding to the startup parameter is initiated by the client, including: generating, by the client, a channel initiation request carrying the channel identifier, and sending the channel initiation request to the server, where the channel initiation request is used to request the startup channel identifier The identified channel.
比如,存在频道123和321,若客户端从启动参数中读取出的频道标识是123,客户端可以生成携带有频道标识123的频道启动请求,并将该频道启动请求发送给服务器,服务器确定该客户端请求启动频道123,触发启动频道123的流程。具体地,服务器可以获取频道123包括的频道号、频道名称、当前收听观众的信息、主播的直播画面、直播与观众之间的互动数据等频道数据,将该频道数据发送给客户端,客户端对该频道数据进行显示。For example, if there are channels 123 and 321 , if the channel identifier read by the client from the startup parameter is 123, the client may generate a channel activation request carrying the channel identifier 123, and send the channel startup request to the server, and the server determines The client requests to start channel 123, triggering the process of starting channel 123. Specifically, the server may obtain channel data included in the channel 123, the channel name, the information of the current audience, the live broadcast screen of the anchor, and the interaction data between the live broadcast and the viewer, and send the channel data to the client, the client. The channel data is displayed.
为了便于理解,本实施例还以用户触发网页中的启动链接为例进行举例说明,则请参考图7B所示的频道启动方法的应用示意图,用户浏览的网页包括“客服频道:123”的启动链接,如图7B(1)所示;若用户B点击“123”,进入频道123,如图7B(2)所示。For the sake of understanding, the embodiment also exemplifies the startup link in the user-triggered webpage. For example, refer to the application diagram of the channel activation method shown in FIG. 7B. The webpage browsed by the user includes the startup of “Customer Service Channel: 123”. The link is as shown in Fig. 7B (1); if the user B clicks "123", the channel 123 is entered, as shown in Fig. 7B (2).
2)若启动参数包括游戏标识,与该启动参数所对应的功能是游戏;2) If the startup parameter includes a game identifier, the function corresponding to the startup parameter is a game;
当存在多个游戏时,客户端需要通过游戏标识来确定需要启动的游戏。此时,通过客户端启动与启动参数所对应的功能,包括:通过客户端生成携带有游戏标识的频道启动请求,向服务器发送该游戏启动请求,该游戏启动请求用于请求启动该游戏标识所标识的游戏。When there are multiple games, the client needs to determine the game that needs to be launched through the game identification. At this time, the function corresponding to the startup parameter is initiated by the client, including: generating, by the client, a channel startup request carrying the game identifier, and sending the game startup request to the server, where the game startup request is used to request to start the game identifier. Logo game.
比如,存在游戏10和20,若客户端从启动参数中读取出的游戏标识是10,客户端可以生成携带有游戏标识10的游戏启动请求,并将该游戏启动请求发送给服务器,服务器确定该客户端请求启动游戏10,触发启动游戏10的流程。具体地,服务器可以获取游戏10包括的游戏标识、游戏名称、当前加入该游戏的玩家的信息、玩家之间的互动数据,游戏进度、游戏装备等游戏数据,将该游戏数据发送给客户端,客户端对该游戏数据进行显示。For example, there are games 10 and 20. If the game identifier read by the client from the startup parameter is 10, the client may generate a game activation request carrying the game identification 10, and send the game startup request to the server, and the server determines The client requests to launch game 10, triggering the process of launching game 10. Specifically, the server may acquire the game identifier included in the game 10, the game name, the information of the player currently participating in the game, the interaction data between the players, the game progress, the game equipment, and the like, and send the game data to the client. The client displays the game data.
为了便于理解,本实施例还以用户触发网页中的启动链接为例进行举例说明,则请参考图7C所示的游戏启动方法的应用示意图,用户浏览的网页包括“游戏10”的启动链接,如图7C(1)所示;若用户B点击“游戏10”,进入游戏10,如图7C(2)所示。 For the sake of understanding, the embodiment also exemplifies the startup link in the user trigger webpage. For example, please refer to the application schematic diagram of the game startup method shown in FIG. 7C. The webpage browsed by the user includes the startup link of “game 10”. As shown in Fig. 7C (1); if the user B clicks "game 10", the game 10 is entered, as shown in Fig. 7C (2).
3)若启动参数包括群组标识,与该启动参数所对应的功能是群组成员添加功能;3) If the startup parameter includes a group identifier, the function corresponding to the startup parameter is a group member adding function;
当存在多个群组时,客户端需要通过群组标识来确定需要添加用户账户的群组。此时,通过客户端启动与启动参数所对应的功能,包括:通过客户端获取在客户端中登录的用户账户的账户标识,生成携带有该账户标识和群组标识的群组成员添加请求,向服务器发送群组成员添加请求,该群组成员添加请求用于请求将该用户账户添加到该群组中。When there are multiple groups, the client needs to identify the group that needs to add the user account through the group identity. At this time, the function corresponding to the startup parameter is started by the client, including: obtaining, by the client, an account identifier of the user account logged in the client, and generating a group member adding request carrying the account identifier and the group identifier, A group member addition request is sent to the server, the group member addition request is used to request that the user account be added to the group.
比如,存在群组123456和654321,若客户端从启动参数中读取出的群组标识是123456,且获取在客户端中登录的用户账户的账户标识100,可以生成携带有账户标识100和群组标识123456的群组成员添加请求,并将该群组成员添加请求发送给服务器,服务器触发将用户账户100添加到群组标识123456的群组中的流程。具体地,当群组123456的添加规则是允许任何用户账户加入时,服务器可以直接将用户账户100添加到群组123456中,向客户端反馈添加成功的消息;当群组123456的添加规则是禁止任何用户账户加入时,服务器无法将用户账户100添加到群组123456中,向客户端反馈添加失败的消息;当群组123456的添加规则是等待群主决策时,服务器可以向客户端反馈等待群主决策的消息;当群组123456的添加规则是正确回答问题时,服务器可以向客户端反馈问题的题目。For example, if there are groups 123456 and 654321, if the group identifier read by the client from the startup parameter is 123456, and the account identifier 100 of the user account logged in the client is obtained, the account identifier 100 and the group may be generated. The group member of the group identifier 123456 adds a request and sends the group member addition request to the server, and the server triggers a process of adding the user account 100 to the group of the group identifier 123456. Specifically, when the adding rule of the group 123456 is to allow any user account to join, the server may directly add the user account 100 to the group 123456, and feed back a successful message to the client; when the adding rule of the group 123456 is prohibited When any user account is added, the server cannot add the user account 100 to the group 123456, and adds a failure message to the client; when the group 123456 is added to wait for the group owner to make a decision, the server can feed the client to the waiting group. The message of the main decision; when the adding rule of the group 123456 is to correctly answer the question, the server can feed back the question of the question to the client.
为了便于理解,本实施例还以用户触发网页中的启动链接为例进行举例说明,则请参考图7D所示的群组成员添加方法的应用示意图,用户浏览的网页包括“群组123456”的启动链接,如图7D(1)所示;若用户B点击“群组123456”,将用户在客户端中登录的用户账户A添加到群组123456中,如图7D(2)所示。For the sake of understanding, the embodiment also uses the startup link in the user-triggered webpage as an example for description. Referring to the application diagram of the group member adding method shown in FIG. 7D, the webpage browsed by the user includes “group 123456”. The link is activated, as shown in FIG. 7D(1); if user B clicks “group 123456”, the user account A logged in by the user in the client is added to the group 123456, as shown in FIG. 7D(2).
请参考图8,其示出了本发明一个实施例提供的功能启动装置的结构示意图,该功能启动装置可以应用于图1所示的客户端110中。该功能启动装置,包括:Please refer to FIG. 8 , which is a schematic structural diagram of a function starting device according to an embodiment of the present invention. The function starting device can be applied to the client 110 shown in FIG. 1 . The function activation device includes:
消息接收模块801,用于接收其它客户端发送的通信消息;The message receiving module 801 is configured to receive a communication message sent by another client.
消息检测模块802,用于检测消息接收模块801接收到的通信消息是否包括启动链接,启动链接用于启动客户端提供的功能;The message detection module 802 is configured to detect whether the communication message received by the message receiving module 801 includes a startup link, and the startup link is used to start a function provided by the client;
功能启动模块803,用于在消息检测模块802检测的结果为通信消息包括 启动链接时,启动启动参数所指示的功能。The function startup module 803, configured to detect, by the message detection module 802, the communication message includes When the link is launched, the function indicated by the startup parameters is started.
综上所述,本发明实施例提供的功能启动装置,通过接收其它客户端发送的通信消息;检测通信消息是否包括启动链接,启动链接用于启动客户端提供的功能;若检测结果为通信消息包括启动链接,则启动该启动链接所指示的功能,可以直接从接收到的通信消息中获取启动链接,并根据该启动链接直接启动功能,解决了客户端需要根据用户输入的功能的名称检索相应的功能,在用户点击功能的启动选项后启动该项功能,影响了功能的启动效率的问题,达到了提高功能的启动效率的效果。In summary, the function starting device provided by the embodiment of the present invention receives a communication message sent by another client, detects whether the communication message includes a startup link, and starts a link for starting a function provided by the client; if the detection result is a communication message Including the startup link, the function indicated by the startup link is started, the startup link can be directly obtained from the received communication message, and the function is directly activated according to the startup link, and the client needs to retrieve the corresponding function according to the name of the function input by the user. The function starts the function after the user clicks the function's startup option, which affects the function startup efficiency and achieves the effect of improving the function startup efficiency.
请参考图9,其示出了本发明再一实施例提供的功能启动装置的结构示意图,该功能启动装置可以应用于图1所示的客户端110中。该功能启动装置,包括:消息接收模块901、消息检测模块902和功能启动模块903。Please refer to FIG. 9 , which is a schematic structural diagram of a function starting device according to another embodiment of the present invention. The function starting device can be applied to the client 110 shown in FIG. 1 . The function starting device comprises: a message receiving module 901, a message detecting module 902 and a function starting module 903.
消息接收模块901,用于接收其它客户端发送的通信消息;The message receiving module 901 is configured to receive a communication message sent by another client.
消息检测模块902,用于检测消息接收模块901接收到的通信消息是否包括启动链接,启动链接用于启动客户端提供的功能;The message detection module 902 is configured to detect whether the communication message received by the message receiving module 901 includes a startup link, and the startup link is used to start a function provided by the client;
功能启动模块903,用于在消息检测模块902检测的结果为通信消息包括启动链接时,启动启动链接所指示的功能。The function startup module 903 is configured to start the function indicated by the startup link when the result detected by the message detection module 902 is that the communication message includes a startup link.
可选的,功能启动模块903,具体用于:Optionally, the function startup module 903 is specifically configured to:
若启动链接只包括程序标识字段,则确定程序标识字段所指示的子程序,通过子程序启动功能;If the startup link only includes the program identification field, the subroutine indicated by the program identification field is determined to be activated by the subroutine;
若启动链接只包括功能标识字段,则确定功能标识字段所指示的功能,启动功能;If the startup link only includes the function identification field, determine the function indicated by the function identification field, and activate the function;
若启动链接包括程序标识字段和功能标识字段,则确定程序标识字段所指示的子程序,并确定功能标识字段所指示的功能,通过子程序启动功能;If the startup link includes a program identification field and a function identification field, determining a subroutine indicated by the program identification field, and determining a function indicated by the function identification field, and starting the function by using the subroutine;
其中,程序标识字段用于标识子程序,功能标识字段用于标识功能。The program identification field is used to identify a subroutine, and the function identification field is used to identify a function.
可选的,功能启动模块903,还用于:Optionally, the function startup module 903 is further configured to:
判断子程序是内置子程序还是外部子程序,内置子程序是客户端内的子程序,外部子程序是客户端外的子程序;Whether the subroutine is a built-in subroutine or an external subroutine, the built-in subroutine is a subroutine within the client, and the external subroutine is a subroutine outside the client;
若判断结果为子程序是内置子程序,则通过内置子程序启动功能;If the result of the judgment is that the subroutine is a built-in subroutine, the function is started by the built-in subroutine;
若判断结果为子程序是外部子程序,则获取外部子程序提供的接口,通过接口触发外部子程序启动功能,或,通过接口触发外部子程序启动功能标识字 段所指示的功能。If the result of the judgment is that the subroutine is an external subroutine, the interface provided by the external subroutine is acquired, the external subroutine start function is triggered by the interface, or the external subroutine is started to trigger the function identification word through the interface. The function indicated by the segment.
可选的,装置还包括:Optionally, the device further includes:
链接展示模块904,用于功能启动模块903启动启动链接所指示的功能之前,对启动链接进行展示;The link display module 904 is configured to display the startup link before the function startup module 903 starts the function indicated by the startup link;
操作触发模块905,用于若接收到触发信号,则触发执行启动启动链接所指示的功能的操作,触发信号用于触发链接展示模块904展示的启动链接。The operation triggering module 905 is configured to trigger an operation of performing a function indicated by the start-up link if the trigger signal is received, and the trigger signal is used to trigger the startup link displayed by the link display module 904.
可选的,链接展示模块904,包括:Optionally, the link display module 904 includes:
字段获取单元9041,用于若启动链接包括程序标识字段,则获取程序标识字段,程序标识字段用于标识子程序;The field obtaining unit 9041 is configured to acquire a program identification field, where the program identification field is used to identify a subroutine if the startup link includes a program identification field;
模板确定单元9042,用于对应关系以及字段获取单元9041获取到的程序标识字段确定启动链接的展示模板,对应关系是根据不同程序标识字段与不同展示模板的对应关系;The template determining unit 9042 is configured to determine, according to the program identifier field acquired by the corresponding relationship and the field obtaining unit 9041, a display template for initiating a link, where the correspondence relationship is a correspondence between different program identification fields and different display templates.
模板展示单元9043,用于通过模板确定单元9042确定的展示模板对启动链接进行展示。The template display unit 9043 is configured to display the launch link by the display template determined by the template determining unit 9042.
可选的,模板展示单元9043,包括:Optionally, the template display unit 9043 includes:
第一展示子单元90431,用于若启动链接还包括功能标识字段,则将功能标识字段添加到展示模板中进行展示,功能标识字段用于标识功能;和/或,The first display sub-unit 90431 is configured to: if the activation link further includes a function identification field, add the function identification field to the presentation template for display, and the function identification field is used to identify the function; and/or,
第二展示子单元90432,用于若启动链接还包括功能描述字段,则将功能描述字段添加到展示模板中进行展示,功能描述字段用于对功能进行描述。The second display sub-unit 90432 is configured to add a function description field to the presentation template for displaying the function if the startup link further includes a function description field, where the function description field is used to describe the function.
可选的,第二展示子单元90432,具体用于若功能描述字段包括图片地址,则根据图片地址获取图片;将图片添加到展示模板中进行展示。Optionally, the second display subunit 90432 is specifically configured to: if the function description field includes a picture address, obtain a picture according to the picture address; add the picture to the display template for display.
可选的,消息检测模块902,包括:Optionally, the message detection module 902 includes:
协议检测单元9021,用于检测通信消息是否包括预定协议头,预定协议头是启动链接所对应的自定义URL协议的头部;The protocol detecting unit 9021 is configured to detect whether the communication message includes a predetermined protocol header, where the predetermined protocol header is a header of a custom URL protocol corresponding to the startup link;
链接确定单元9022,用于在协议检测单元9021检测的结果为通信消息包括预定协议头时,确定通信消息包括启动链接,启动链接包括预定协议头。The link determining unit 9022, when the result of the detection by the protocol detecting unit 9021 is that the communication message includes a predetermined protocol header, determines that the communication message includes a startup link, and the startup link includes a predetermined protocol header.
可选的,若子程序是频道子程序、功能是频道、功能标识字段包括频道标识,则功能启动模块903,具体用于生成携带有频道标识的频道启动请求,通过频道子程序向服务器发送频道启动请求,频道启动请求用于请求启动频道标识所标识的频道。Optionally, if the subroutine is a channel subroutine, the function is a channel, and the function identifier field includes a channel identifier, the function startup module 903 is specifically configured to generate a channel start request carrying the channel identifier, and send a channel start to the server by using the channel subroutine. The request, channel initiation request is used to request the channel identified by the activation channel identifier.
可选的,若子程序是游戏子程序、功能是游戏、功能标识字段包括游戏标 识,则功能启动模块903,具体用于生成携带有游戏标识的游戏启动请求,通过游戏子程序向服务器发送游戏启动请求,游戏启动请求用于请求启动游戏标识所标识的游戏。Optionally, if the subroutine is a game subroutine, the function is a game, and the function identification field includes a game mark The function activation module 903 is specifically configured to generate a game start request carrying the game identifier, and send a game start request to the server through the game subroutine, and the game start request is used to request to start the game identified by the game identifier.
可选的,若子程序是群组成员添加子程序、功能是群组成员添加功能、功能标识字段包括群组标识,则功能启动模块903,具体用于获取在客户端中登录的用户账户的账户标识,生成携带有账户标识和群组标识的群组成员添加请求,通过群组成员添加子程序向服务器发送群组成员添加请求,群组成员添加请求用于请求将用户账户添加到群组中。Optionally, if the subroutine is a group member adding subroutine, the function is a group member adding function, and the function identifier field includes a group identifier, the function starting module 903 is specifically configured to obtain an account of the user account registered in the client. Identifying, generating a group member adding request carrying an account identifier and a group identifier, sending a group member adding request to the server by using a group member adding subroutine, and the group member adding request is used to request to add the user account to the group .
综上所述,本发明实施例提供的功能启动装置,通过接收其它客户端发送的通信消息;检测通信消息是否包括启动链接,启动链接用于启动客户端提供的功能;若检测结果为通信消息包括启动链接,则启动该启动链接所指示的功能,可以直接从接收到的通信消息中获取启动链接,并根据该启动链接直接启动功能,解决了客户端需要根据用户输入的功能的名称检索相应的功能,在用户点击功能的启动选项后启动该项功能,影响了功能的启动效率的问题,达到了提高功能的启动效率的效果。另外,通过根据图片地址获取图片,将图片添加到展示模板中进行展示,可以将图片转换为文字进行传输,节省了客户端的流量,也节省了传输资源。In summary, the function starting device provided by the embodiment of the present invention receives a communication message sent by another client, detects whether the communication message includes a startup link, and starts a link for starting a function provided by the client; if the detection result is a communication message Including the startup link, the function indicated by the startup link is started, the startup link can be directly obtained from the received communication message, and the function is directly activated according to the startup link, and the client needs to retrieve the corresponding function according to the name of the function input by the user. The function starts the function after the user clicks the function's startup option, which affects the function startup efficiency and achieves the effect of improving the function startup efficiency. In addition, by obtaining an image according to the image address and adding the image to the display template for display, the image can be converted into text for transmission, which saves the traffic of the client and saves the transmission resource.
请参考图10,其示出了本发明一个实施例提供的功能启动装置的结构示意图,该功能启动装置可以应用于图1所示的客户端130中。该功能启动装置,包括:Please refer to FIG. 10, which is a schematic structural diagram of a function starting device according to an embodiment of the present invention. The function starting device can be applied to the client 130 shown in FIG. The function activation device includes:
链接获取模块1001,用于从客户端的输入框中获取启动链接;a link obtaining module 1001, configured to obtain a startup link from an input box of the client;
链接发送模块1002,用于将链接获取模块1001获取到的启动链接发送给其他客户端,以便其他客户端启动启动链接所指示的功能,启动链接用于启动其他客户端提供的功能。The link sending module 1002 is configured to send the startup link acquired by the link obtaining module 1001 to other clients, so that other clients initiate the function indicated by the startup link, and the startup link is used to start the functions provided by other clients.
综上所述,本发明实施例提供的功能启动装置,从客户端的输入框中获取启动链接;将启动链接发送给其他客户端,启动链接用于启动其他客户端提供的功能,使得其他客户端可以直接接收启动链接,并根据该启动链接直接启动功能,解决了其他客户端需要根据用户输入的功能的名称检索相应的功能,在用户点击功能的启动选项后启动该项功能,影响了功能的启动效率的问题,达到了提高功能的启动效率的效果。 In summary, the function starting device provided by the embodiment of the present invention obtains the startup link from the input box of the client; sends the startup link to other clients, and the startup link is used to start the functions provided by other clients, so that other clients The startup link can be directly received, and the function is directly activated according to the startup link, and the other client needs to retrieve the corresponding function according to the name of the function input by the user, and the function is activated after the user clicks the startup option of the function, which affects the function. The problem of starting efficiency has the effect of improving the startup efficiency of the function.
请参考图11,其示出了本发明再一实施例提供的功能启动装置的结构示意图,该功能启动装置可以应用于图1所示的客户端130中。该功能启动装置,包括:链接获取模块1101和链接发送模块1102。Please refer to FIG. 11 , which is a schematic structural diagram of a function starting device according to another embodiment of the present invention. The function starting device can be applied to the client 130 shown in FIG. 1 . The function activation device includes a link acquisition module 1101 and a link transmission module 1102.
链接获取模块1101,用于从客户端的输入框中获取启动链接;a link obtaining module 1101, configured to obtain a startup link from an input box of the client;
链接发送模块1102,用于将链接获取模块1101获取到的启动链接发送给其他客户端,以便其他客户端启动启动链接所指示的功能,启动链接用于启动其他客户端提供的功能。The link sending module 1102 is configured to send the startup link acquired by the link obtaining module 1101 to other clients, so that other clients initiate the function indicated by the startup link, and the startup link is used to start the functions provided by other clients.
可选的,若启动链接由输入操作得到,则链接获取模块1101,包括:Optionally, if the startup link is obtained by an input operation, the link obtaining module 1101 includes:
文字获取单元11011,用于获取输入框中的至少一个关键字;a text obtaining unit 11011, configured to acquire at least one keyword in the input box;
文字检测单元11012,用于检测文字获取单元11011获取到的至少一个关键字是否与预定协议头匹配,预定协议头是启动链接所对应的自定义URL协议的头部;The text detecting unit 11012 is configured to detect whether at least one keyword acquired by the text obtaining unit 11011 matches a predetermined protocol header, where the predetermined protocol header is a header of a custom URL protocol corresponding to the startup link;
链接生成单元11013,用于在文字检测单元11012检测的结果为至少一个关键字与预定协议头匹配时,对至少一个关键字进行补全,得到启动链接,启动链接包括预定协议头。The link generating unit 11013 is configured to, when the result detected by the text detecting unit 11012 is that at least one keyword matches the predetermined protocol header, complete the at least one keyword to obtain a startup link, and the startup link includes a predetermined protocol header.
可选的,链接生成单元11013,具体用于:Optionally, the link generating unit 11013 is specifically configured to:
展示用于生成启动链接的各个字段模板;Demonstrate individual field templates for generating launch links;
根据选择的一个字段模板对至少一个关键字进行补全,得到启动链接。Completing at least one keyword according to a selected one of the field templates to obtain a startup link.
可选的,链接获取模块1101,还包括:Optionally, the link obtaining module 1101 further includes:
第一添加单元11014,用于链接生成单元11013根据选择的一个字段模板对至少一个关键字进行补全之后,若字段模板包括用于输入程序标识字段的模板,则获取子程序的程序标识,将程序标识添加到程序标识字段中,程序标识字段用于标识子程序;和/或,a first adding unit 11014, after the link generating unit 11013 completes the at least one keyword according to the selected one of the field templates, if the field template includes a template for inputting the program identification field, acquiring the program identifier of the subprogram, The program identification is added to the program identification field, and the program identification field is used to identify the subroutine; and/or,
第二添加单元11015,用于链接生成单元11013根据选择的一个字段模板对至少一个关键字进行补全之后,若字段模板包括用于输入功能标识字段的字段模板,则获取功能的功能标识,将功能标识添加到功能标识字段中,功能标识字段用于标识功能;和/或,a second adding unit 11015, after the link generating unit 11013 completes the at least one keyword according to the selected one of the field templates, if the field template includes a field template for inputting the function identification field, acquiring the function identifier of the function, The feature identifier is added to the feature identification field, and the function identification field is used to identify the function; and/or,
第三添加单元11016,用于链接生成单元11013根据选择的一个字段模板对至少一个关键字进行补全之后,生成功能描述字段,将功能描述字段添加到字段模板后,功能描述字段用于对功能进行描述。 The third adding unit 11016 is configured to: after the link generating unit 11013 completes the at least one keyword according to the selected one of the field templates, generate a function description field, and after the function description field is added to the field template, the function description field is used for the function Describe.
可选的,第三添加单元11016,具体用于若对功能的描述内容包括图片,则获取图片的图片地址;将图片地址添加到功能描述字段中。Optionally, the third adding unit 11016 is specifically configured to: if the description content of the function includes a picture, obtain a picture address of the picture; and add the picture address to the function description field.
可选的,链接获取模块1101,包括:Optionally, the link obtaining module 1101 includes:
链接获取单元11017,用于通过在输入框中进行的粘贴操作获取启动链接,启动链接由对预先展示的快捷键进行触发生成。The link obtaining unit 11017 is configured to obtain a startup link by a paste operation performed in the input box, and the startup link is triggered by generating a shortcut key displayed in advance.
综上所述,本发明实施例提供的功能启动装置,从客户端的输入框中获取启动链接;将启动链接发送给其他客户端,启动链接用于启动其他客户端提供的功能,使得其他客户端可以直接接收启动链接,并根据该启动链接直接启动功能,解决了其他客户端需要根据用户输入的功能的名称检索相应的功能,在用户点击功能的启动选项后启动该项功能,影响了功能的启动效率的问题,达到了提高功能的启动效率的效果。另外,通过获取图片的图片地址;将图片地址添加到功能描述字段中,可以将图片转换为文字进行传输,节省了客户端的流量,也节省了传输资源。In summary, the function starting device provided by the embodiment of the present invention obtains the startup link from the input box of the client; sends the startup link to other clients, and the startup link is used to start the functions provided by other clients, so that other clients The startup link can be directly received, and the function is directly activated according to the startup link, and the other client needs to retrieve the corresponding function according to the name of the function input by the user, and the function is activated after the user clicks the startup option of the function, which affects the function. The problem of starting efficiency has the effect of improving the startup efficiency of the function. In addition, by obtaining the picture address of the picture; adding the picture address to the function description field, the picture can be converted into text for transmission, which saves the traffic of the client and saves the transmission resource.
请参考图12,其示出了本发明一个实施例提供的功能启动装置的结构示意图,该功能启动装置可以应用于终端中,该终端包括客户端和与客户端对应的启动程序,启动程序是用于处理预定协议头所对应的自定义URL协议的程序。该功能启动装置,包括:Please refer to FIG. 12, which is a schematic structural diagram of a function starting apparatus according to an embodiment of the present invention. The function starting apparatus may be applied to a terminal, where the terminal includes a client and a startup program corresponding to the client, and the startup program is A program for processing a custom URL protocol corresponding to a predetermined protocol header. The function activation device includes:
参数提取模块1201,用于在启动链接被触发后,通过操作系统提取启动链接中的预定协议头;The parameter extraction module 1201 is configured to: after the startup link is triggered, extract, by using an operating system, a predetermined protocol header in the startup link;
程序查找模块1202,用于通过操作系统根据预定协议头查找启动程序;The program search module 1202 is configured to search for a startup program according to a predetermined protocol header by using an operating system;
功能启动模块1203,用于通过程序查找模块1202查找到的启动程序触发客户端启动功能。The function startup module 1203 is configured to trigger a client startup function by the startup program found by the program search module 1202.
综上所述,本发明实施例提供的功能启动装置,在启动链接被触发后,通过操作系统提取启动链接中的预定协议头;通过操作系统根据预定协议头查找启动程序;通过启动程序触发客户端启动功能,可以根据启动链接直接启动功能,解决了用户根据功能介绍信息启动功能时,需要跳转较多界面,降低了功能启动效率的问题,达到了提高功能启动效率的效果。In summary, the function starting device provided by the embodiment of the present invention extracts a predetermined protocol header in the startup link through the operating system after the startup link is triggered; the startup program is searched according to the predetermined protocol header by the operating system; and the client is triggered by the startup program. The terminal startup function can directly start the function according to the startup link, and solves the problem that the user needs to jump more interfaces when the function is started according to the function introduction information, thereby reducing the function startup efficiency and achieving the effect of improving the function startup efficiency.
请参考图13,其示出了本发明再一实施例提供的功能启动装置的结构示意图,该功能启动装置可以应用于终端中,该终端包括客户端和与客户端对应的 启动程序,启动程序是用于处理预定协议头所对应的自定义URL协议的程序。该功能启动装置,包括:参数提取模块1301、程序查找模块1302和功能启动模块1303。Please refer to FIG. 13 , which is a schematic structural diagram of a function starting device according to another embodiment of the present invention. The function starting device may be applied to a terminal, where the terminal includes a client and a client. The startup program is a program for processing a custom URL protocol corresponding to a predetermined protocol header. The function starting device includes: a parameter extracting module 1301, a program searching module 1302, and a function starting module 1303.
参数提取模块1301,用于在启动链接被触发后,通过操作系统提取启动链接中的预定协议头;a parameter extraction module 1301, configured to: after the startup link is triggered, extract, by using an operating system, a predetermined protocol header in the startup link;
程序查找模块1302,用于通过操作系统根据预定协议头查找启动程序;The program search module 1302 is configured to search for a startup program according to a predetermined protocol header by using an operating system;
功能启动模块1303,用于通过程序查找模块1302查找到的启动程序触发客户端启动功能。The function startup module 1303 is configured to trigger a client startup function by the startup program found by the program search module 1302.
可选的,功能启动模块1303,包括:Optionally, the function startup module 1303 includes:
参数接收单元13031,用于通过启动程序接收操作系统发送的启动参数,启动参数是操作系统从启动链接中提取得到的;The parameter receiving unit 13031 is configured to receive, by using a startup program, a startup parameter sent by the operating system, where the startup parameter is obtained by the operating system from the startup link;
参数传递单元13032,用于通过启动程序将参数接收单元13031接收到的启动参数传递给客户端;a parameter passing unit 13032, configured to pass the startup parameter received by the parameter receiving unit 13031 to the client by using a startup program;
功能启动单元13033,用于通过客户端启动启动参数所对应的功能。The function starting unit 13033 is configured to start a function corresponding to the startup parameter by using the client.
可选的,该装置还包括:Optionally, the device further includes:
协议注册模块1304,用于参数提取模块1301通过操作系统提取启动链接中的预定协议头和启动参数之前,在操作系统中注册预定协议头;The protocol registration module 1304 is configured to register the predetermined protocol header in the operating system before the parameter extraction module 1301 extracts the predetermined protocol header and the startup parameter in the startup link by using the operating system;
程序注册模块1305,用于在操作系统中将启动程序注册为用于处理协议注册模块1304注册的预定协议头所对应的自定义URL协议的程序。The program registration module 1305 is configured to register the startup program in the operating system as a program for processing the custom URL protocol corresponding to the predetermined protocol header registered by the protocol registration module 1304.
可选的,该装置还包括:Optionally, the device further includes:
协议注销模块1306,用于程序注册模块1305在操作系统中将启动程序注册为用于处理预定协议头所对应的自定义URL协议的程序之后,在操作系统中注销预定协议头;The protocol logout module 1306 is configured to: after the program registration module 1305 registers the startup program as a program for processing the custom URL protocol corresponding to the predetermined protocol header in the operating system, cancel the predetermined protocol header in the operating system;
注册撤销模块1307,用于撤销在操作系统中将启动程序注册为用于处理预定协议头对应的自定义URL协议的程序的操作。The registration revocation module 1307 is configured to cancel the operation of registering the startup program in the operating system as a program for processing the custom URL protocol corresponding to the predetermined protocol header.
可选的,参数传递单元13032,具体用于通过启动程序将启动参数转换为预定格式的启动参数,预定格式是被客户端识别的格式;通过启动程序将预定格式的启动参数传递给客户端。Optionally, the parameter passing unit 13032 is specifically configured to convert the startup parameter into a startup parameter of a predetermined format by using a startup program, where the predetermined format is a format recognized by the client; and the startup parameter of the predetermined format is transmitted to the client by the startup program.
可选的,若存在至少两个客户端,则该功能启动模块1303,还包括:Optionally, if there are at least two clients, the function startup module 1303 further includes:
第一确定单元13034,用于参数传递单元13032通过启动程序将启动参数传递给客户端之前,接收选择信号,确定该选择信号指示的客户端,选择信号 用于从展示的各个客户端中选择一个客户端;或,The first determining unit 13034 is configured to: before the parameter transmitting unit 13032 transmits the startup parameter to the client by using the startup program, receive the selection signal, determine the client indicated by the selection signal, and select the signal. Used to select one client from each of the displayed clients; or,
第二确定单元13035,用于参数传递单元13032通过启动程序将启动参数传递给客户端之前,若启动参数包括标识信息,则确定该标识信息指示的客户端。The second determining unit 13035 is configured to: before the parameter passing unit 13032 passes the startup parameter to the client by using the startup program, if the startup parameter includes the identification information, determine the client indicated by the identification information.
可选的,该功能启动模块1303,还包括:Optionally, the function startup module 1303 further includes:
程序启动单元13036,用于参数传递单元13032通过启动程序将启动参数传递给客户端之前,若客户端处于关闭状态,则通过启动程序启动客户端。The program starting unit 13036 is configured to start the client by the startup program before the parameter delivery unit 13032 passes the startup parameter to the client through the startup program, and if the client is in the shutdown state.
可选的,若启动参数包括频道标识,与启动参数对应的功能是频道,则功能启动模块1303,具体用于通过客户端生成携带有频道标识的频道启动请求,向服务器发送频道启动请求,频道启动请求用于请求启动频道标识所标识的频道。Optionally, if the startup parameter includes a channel identifier, and the function corresponding to the startup parameter is a channel, the function activation module 1303 is specifically configured to generate, by using the client, a channel initiation request carrying the channel identifier, and send a channel initiation request to the server, and the channel The start request is used to request to activate the channel identified by the channel identifier.
可选的,若启动参数包括游戏标识,与启动参数对应的功能是游戏,则功能启动模块1303,具体用于通过客户端生成携带有游戏标识的频道启动请求,向服务器发送游戏启动请求,游戏启动请求用于请求启动游戏标识所标识的游戏。Optionally, if the startup parameter includes a game identifier, and the function corresponding to the startup parameter is a game, the function startup module 1303 is specifically configured to generate a channel startup request carrying the game identifier by using the client, and send a game startup request to the server, where the game The launch request is used to request the launch of the game identified by the game logo.
可选的,若启动参数包括群组标识,与启动参数对应的功能是群组成员添加功能,则功能启动模块1303,具体用于通过客户端获取在客户端中登录的用户账户的账户标识,生成携带有账户标识和群组标识的群组成员添加请求,向服务器发送群组成员添加请求,群组成员添加请求用于请求将用户账户添加到群组中。Optionally, if the startup parameter includes a group identifier, and the function corresponding to the startup parameter is a group member adding function, the function startup module 1303 is specifically configured to acquire, by using the client, an account identifier of the user account that is logged in the client, A group member addition request carrying an account identifier and a group identifier is generated, and a group member addition request is sent to the server, and the group member addition request is used to request to add the user account to the group.
综上所述,本发明实施例提供的功能启动装置,在启动链接被触发后,通过操作系统提取启动链接中的预定协议头;通过操作系统根据预定协议头查找启动程序;通过启动程序触发客户端启动功能,可以根据启动链接直接启动功能,解决了用户根据功能介绍信息启动功能时,需要跳转较多界面,降低了功能启动效率的问题,达到了提高功能启动效率的效果。另外,通过在操作系统中注销预定协议头;撤销在操作系统中将启动程序注册为用于处理预定协议头对应的自定义URL协议的程序的操作,可以达到节省操作系统的存储空间的效果。In summary, the function starting device provided by the embodiment of the present invention extracts a predetermined protocol header in the startup link through the operating system after the startup link is triggered; the startup program is searched according to the predetermined protocol header by the operating system; and the client is triggered by the startup program. The terminal startup function can directly start the function according to the startup link, and solves the problem that the user needs to jump more interfaces when the function is started according to the function introduction information, thereby reducing the function startup efficiency and achieving the effect of improving the function startup efficiency. In addition, the effect of saving the storage space of the operating system can be achieved by unregistering the predetermined protocol header in the operating system; revoking the operation of registering the startup program as a program for processing the custom URL protocol corresponding to the predetermined protocol header in the operating system.
请参考图14,其示出了本发明一个实施例提供的终端的结构示意图。所述终端1400中安装有团队语音工具的客户端,包括RF(Radio Frequency,射频) 电路1410、包括有一个或一个以上计算机可读存储介质的存储器1420、输入单元1430、显示单元1440、传感器1450、音频电路1460、WiFi(wireless fidelity,无线保真)模块1470、包括有一个或者一个以上处理核心的处理器1480、以及电源1490等部件。本领域技术人员可以理解,图14中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Please refer to FIG. 14, which is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal 1400 is installed with a client of the team voice tool, including RF (Radio Frequency) The circuit 1410, the memory 1420 including one or more computer readable storage media, the input unit 1430, the display unit 1440, the sensor 1450, the audio circuit 1460, the WiFi (wireless fidelity) module 1470, including one or one The core processor 1480 and the power supply 1490 are processed as above. It will be understood by those skilled in the art that the terminal structure shown in FIG. 14 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
RF电路1410可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器1480处理;另外,将涉及上行的数据发送给基站。通常,RF电路1410包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路1410还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The RF circuit 1410 can be used for receiving and transmitting signals during and after receiving or transmitting information, and in particular, receiving downlink information of the base station and then processing it by one or more processors 1480; in addition, transmitting data related to the uplink to the base station. . Generally, the RF circuit 1410 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc. In addition, RF circuitry 1410 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
存储器1420可用于存储软件程序以及模块,处理器1480通过运行存储在存储器1420的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器1420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端1400的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器1420还可以包括存储器控制器,以提供处理器1480和输入单元1430对存储器1420的访问。The memory 1420 can be used to store software programs and modules, and the processor 1480 executes various functional applications and data processing by running software programs and modules stored in the memory 1420. The memory 1420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal 1400 (such as audio data, phone book, etc.) and the like. Moreover, memory 1420 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 1420 can also include a memory controller to provide access to memory 1420 by processor 1480 and input unit 1430.
输入单元1430可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元1430可包括触敏表面1431以及其他输入设备1432。触敏表面1431 可以是摄像头,也可以是光电扫描设备。除了触敏表面1431,输入单元1430还可以包括其他输入设备1432。具体地,其他输入设备1432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。 Input unit 1430 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input unit 1430 can include touch-sensitive surface 1431 as well as other input devices 1432. Touch sensitive surface 1431 It can be a camera or an optical scanning device. In addition to the touch-sensitive surface 1431, the input unit 1430 can also include other input devices 1432. Specifically, other input devices 1432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元1440可用于显示由用户输入的信息或提供给用户的信息以及终端1400的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元1440可包括显示面板1441,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板1441。 Display unit 1440 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of terminal 1400, which can be comprised of graphics, text, icons, video, and any combination thereof. The display unit 1440 may include a display panel 1441. Alternatively, the display panel 1441 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
终端1400还可包括至少一种传感器1450,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1441的亮度,接近传感器可在终端1400移动到耳边时,关闭显示面板1441和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端1400还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Terminal 1400 can also include at least one type of sensor 1450, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1441 when the terminal 1400 moves to the ear. / or backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal 1400 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not here Let me repeat.
音频电路1460、扬声器1461,传声器1462可提供用户与终端1400之间的音频接口。音频电路1460可将接收到的音频数据转换后的电信号,传输到扬声器1461,由扬声器1461转换为声音信号输出;另一方面,传声器1462将收集的声音信号转换为电信号,由音频电路1460接收后转换为音频数据,再将音频数据输出处理器1480处理后,经RF电路1410以发送给比如另一终端,或者将音频数据输出至存储器1420以便进一步处理。音频电路1460还可能包括耳塞插孔,以提供外设耳机与终端1400的通信。An audio circuit 1460, a speaker 1461, and a microphone 1462 can provide an audio interface between the user and the terminal 1400. The audio circuit 1460 can transmit the converted electrical data of the received audio data to the speaker 1461, and convert it into a sound signal output by the speaker 1461. On the other hand, the microphone 1462 converts the collected sound signal into an electrical signal, and the audio circuit 1460 After receiving, it is converted into audio data, and then processed by the audio data output processor 1480, transmitted to the terminal, for example, via the RF circuit 1410, or the audio data is output to the memory 1420 for further processing. Audio circuitry 1460 may also include an earbud jack to provide communication of the peripheral earphones with terminal 1400.
WiFi属于短距离无线传输技术,终端1400通过WiFi模块1470可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图14示出了WiFi模块1470,但是可以理解的是,其并不属于终端1400的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。 WiFi is a short-range wireless transmission technology, and the terminal 1400 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 1470, which provides wireless broadband Internet access for users. Although FIG. 14 shows the WiFi module 1470, it can be understood that it does not belong to the essential configuration of the terminal 1400, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器1480是终端1400的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1420内的软件程序和/或模块,以及调用存储在存储器1420内的数据,执行终端1400的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1480可包括一个或多个处理核心;优选的,处理器1480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1480中。 Processor 1480 is the control center of terminal 1400 that connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in memory 1420, and recalling data stored in memory 1420, The various functions and processing data of the terminal 1400 are performed to perform overall monitoring of the mobile phone. Optionally, the processor 1480 may include one or more processing cores; preferably, the processor 1480 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1480.
终端1400还包括给各个部件供电的电源1490(比如电池),优选的,电源1490可以通过电源管理系统与处理器1480逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源1490还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal 1400 also includes a power source 1490 (such as a battery) for powering various components. Preferably, the power source 1490 can be logically coupled to the processor 1480 through a power management system to manage functions such as charging, discharging, and power management through a power management system. . The power supply 1490 can also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
尽管未示出,终端1400还可以包括蓝牙模块等,在此不再赘述。具体在本实施例中,终端1400还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行,所述一个或者一个以上程序包含用于进行本发明实施例提供的功能启动方法的指令。Although not shown, the terminal 1400 may further include a Bluetooth module or the like, and details are not described herein again. Specifically, in this embodiment, the terminal 1400 further includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or More than one program includes instructions for performing the function initiation method provided by embodiments of the present invention.
需要说明的是:上述实施例提供的功能启动装置在进行功能启动时,仅以上述各子程序的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的子程序完成,即将功能启动装置的内部结构划分成不同的子程序,以完成以上描述的全部或者部分功能。另外,上述实施例提供的功能启动装置与功能启动方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when the function starting device provided by the foregoing embodiment is used for the function startup, only the division of each of the above subroutines is illustrated. In actual applications, the function allocation may be completed by different subroutines as needed. The internal structure of the function starting device is divided into different subroutines to complete all or part of the functions described above. In addition, the function initiating device and the function initiating method are provided in the same embodiment, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
需要说明的是:上述实施例提供的网络管理装置在进行网络管理时,仅以上述各子程序的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的子程序完成,即将网络管理装置的内部结构划分成不同的子程序,以完成以上描述的全部或者部分功能。另外,上述实施例提供的网络管理装置与网络管理方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。 It should be noted that, when performing network management, the network management apparatus provided by the foregoing embodiment only exemplifies the division of each of the foregoing subroutines. In actual applications, the function allocation may be completed by different subroutines as needed. The internal structure of the network management device is divided into different subroutines to complete all or part of the functions described above. In addition, the network management device and the network management method embodiment provided in the foregoing embodiments are in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,可以仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit may be only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序 代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. The medium of the code.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims (28)

  1. 一种功能启动方法,其特征在于,所述方法包括:A function starting method, the method comprising:
    接收其它客户端发送的通信消息;Receiving communication messages sent by other clients;
    检测所述通信消息是否包括启动链接,所述启动链接用于启动客户端提供的功能;Detecting whether the communication message includes a startup link, and the startup link is used to initiate a function provided by the client;
    若检测结果为所述通信消息包括所述启动链接,则启动所述启动链接所指示的功能。If the detection result is that the communication message includes the startup link, the function indicated by the startup link is started.
  2. 根据权利要求1所述的方法,其特征在于,所述启动所述启动链接所指示的功能,包括:The method of claim 1, wherein the initiating the function indicated by the activation link comprises:
    若所述启动链接只包括程序标识字段,则确定所述程序标识字段所指示的子程序,通过所述子程序启动所述功能;If the startup link only includes a program identification field, determining a subroutine indicated by the program identification field, and starting the function by using the subroutine;
    若所述启动链接只包括功能标识字段,则确定所述功能标识字段所指示的功能,启动所述功能;If the startup link only includes a function identification field, determining a function indicated by the function identification field, and starting the function;
    若所述启动链接包括程序标识字段和功能标识字段,则确定所述程序标识字段所指示的子程序,并确定所述功能标识字段所指示的功能,通过所述子程序启动所述功能;If the startup link includes a program identification field and a function identification field, determining a subroutine indicated by the program identification field, and determining a function indicated by the function identification field, and starting the function by using the subroutine;
    其中,所述程序标识字段用于标识子程序,所述功能标识字段用于标识功能。The program identification field is used to identify a subroutine, and the function identification field is used to identify a function.
  3. 根据权利要求1或2所述的方法,其特征在于,所述启动所述启动链接所指示的功能之前,还包括:The method according to claim 1 or 2, wherein before the initiating the function indicated by the activation link, the method further comprises:
    对所述启动链接进行展示;Displaying the launch link;
    若接收到触发信号,则触发执行所述启动所述启动链接所指示的功能的步骤,所述触发信号用于触发所述启动链接。If a trigger signal is received, triggering the step of executing the function indicated by the activation of the activation link, the trigger signal being used to trigger the activation link.
  4. 根据权利要求3所述的方法,其特征在于,所述对所述启动链接进行展示,包括:The method of claim 3, wherein the displaying the launch link comprises:
    若所述启动链接包括程序标识字段,则获取所述程序标识字段,所述程序标识字段用于标识子程序; If the startup link includes a program identification field, acquiring the program identification field, where the program identification field is used to identify a subroutine;
    根据对应关系以及所述程序标识字段确定所述启动链接的展示模板,所述对应关系是不同程序标识字段与不同展示模板的对应关系;Determining, according to the correspondence relationship and the program identification field, the display template of the startup link, where the correspondence relationship is a correspondence between different program identification fields and different presentation templates;
    通过所述展示模板对所述启动链接进行展示。The launch link is displayed by the presentation template.
  5. 根据权利要求4所述的方法,其特征在于,所述通过所述展示模板对所述启动链接进行展示,包括:The method according to claim 4, wherein the displaying the launch link by using the presentation template comprises:
    若所述启动链接还包括功能标识字段,则将所述功能标识字段添加到所述展示模板中进行展示,所述功能标识字段用于标识功能;和/或,And if the activation link further includes a function identification field, adding the function identification field to the presentation template, where the function identification field is used to identify a function; and/or,
    若所述启动链接还包括功能描述字段,则将所述功能描述字段添加到所述展示模板中进行展示,所述功能描述字段用于对功能进行描述。If the activation link further includes a function description field, the function description field is added to the presentation template for presentation, and the function description field is used to describe the function.
  6. 根据权利要求5所述的方法,其特征在于,所述将所述功能描述字段添加到所述展示模板中进行展示,包括:The method according to claim 5, wherein the adding the function description field to the presentation template for display comprises:
    若所述功能描述字段包括图片地址,则根据所述图片地址获取图片;If the function description field includes a picture address, acquiring a picture according to the picture address;
    将所述图片添加到所述展示模板中进行展示。The picture is added to the presentation template for presentation.
  7. 根据权利要求1至6任一项所述的方法,其特征在于,所述检测所述通信消息是否包括启动链接,包括:The method according to any one of claims 1 to 6, wherein the detecting whether the communication message includes a startup link comprises:
    检测所述通信消息是否包括预定协议头,所述预定协议头是启动链接所对应的自定义统一资源定位符URL协议的头部;Detecting whether the communication message includes a predetermined protocol header, where the predetermined protocol header is a header of a custom Uniform Resource Locator URL protocol corresponding to the startup link;
    若检测结果为所述通信消息包括所述预定协议头,则确定所述通信消息包括所述启动链接,所述启动链接包括所述预定协议头。If the detection result is that the communication message includes the predetermined protocol header, it is determined that the communication message includes the startup link, and the startup link includes the predetermined protocol header.
  8. 根据权利要求2所述的方法,其特征在于,若所述子程序是频道子程序、所述功能是频道、所述功能标识字段包括频道标识,则所述通过所述子程序启动所述功能,包括:The method according to claim 2, wherein said function is initiated by said subroutine if said subroutine is a channel subroutine, said function is a channel, and said function identification field comprises a channel identifier ,include:
    生成携带有所述频道标识的频道启动请求,通过所述频道子程序向服务器发送所述频道启动请求,所述频道启动请求用于请求启动所述频道标识所标识的频道。Generating a channel initiation request carrying the channel identifier, and sending, by the channel subroutine, the channel activation request to the server, where the channel activation request is used to request to activate a channel identified by the channel identifier.
  9. 根据权利要求2所述的方法,其特征在于,若所述子程序是游戏子程序、 所述功能是游戏、所述功能标识字段包括游戏标识,则所述通过所述子程序启动所述功能,包括:The method according to claim 2, wherein if said subroutine is a game subroutine, The function is a game, and the function identification field includes a game identifier, and the function is started by the subroutine, including:
    生成携带有所述游戏标识的游戏启动请求,通过所述游戏子程序向服务器发送所述游戏启动请求,所述游戏启动请求用于请求启动所述游戏标识所标识的游戏。Generating a game launch request carrying the game logo, and transmitting, by the game subroutine, the game launch request to the server, the game launch request for requesting activation of the game identified by the game logo.
  10. 根据权利要求2所述的方法,其特征在于,若所述子程序是群组成员添加子程序、所述功能是群组成员添加功能、所述功能标识字段包括群组标识,则所述通过所述子程序启动所述功能,包括:The method according to claim 2, wherein if the subroutine is a group member adding subroutine, the function is a group member adding function, and the function identifying field includes a group identifier, the passing The subroutine initiates the function, including:
    获取在客户端中登录的用户账户的账户标识,生成携带有所述账户标识和所述群组标识的群组成员添加请求,通过所述群组成员添加子程序向服务器发送所述群组成员添加请求,所述群组成员添加请求用于请求将所述用户账户添加到所述群组中。Obtaining an account identifier of a user account that is logged in the client, generating a group member adding request that carries the account identifier and the group identifier, and sending the group member to the server by using the group member adding subroutine A request is added, the group member addition request is for requesting to add the user account to the group.
  11. 一种功能启动方法,其特征在于,所述方法包括:A function starting method, the method comprising:
    从客户端的输入框中获取启动链接;Get the startup link from the input box of the client;
    将所述启动链接发送给其他客户端,以便所述其他客户端启动所述启动链接所指示的功能,所述启动链接用于启动所述其他客户端提供的功能。The launch link is sent to other clients for the other client to initiate the function indicated by the launch link, the launch link being used to initiate the functionality provided by the other client.
  12. 根据权利要求11所述的方法,其特征在于,若所述启动链接由输入操作得到,则所述从客户端的输入框中获取启动链接,包括:The method according to claim 11, wherein if the startup link is obtained by an input operation, the obtaining the startup link from the input box of the client comprises:
    获取所述输入框中的至少一个关键字;Obtaining at least one keyword in the input box;
    检测所述至少一个关键字是否与预定协议头匹配,所述预定协议头是启动链接所对应的自定义统一资源定位符URL协议的头部;Detecting whether the at least one keyword matches a predetermined protocol header, where the predetermined protocol header is a header of a custom Uniform Resource Locator URL protocol corresponding to the startup link;
    若检测结果为所述至少一个关键字与所述预定协议头匹配,则对所述至少一个关键字进行补全,得到所述启动链接,所述启动链接包括所述预定协议头。If the detection result is that the at least one keyword matches the predetermined protocol header, the at least one keyword is complemented to obtain the startup link, and the startup link includes the predetermined protocol header.
  13. 根据权利要求12所述的方法,其特征在于,所述对所述至少一个关键字进行补全,得到所述启动链接,包括:The method according to claim 12, wherein the complementing the at least one keyword to obtain the startup link comprises:
    展示用于生成所述启动链接的各个字段模板;Demonstrating various field templates for generating the launch link;
    根据选择的一个字段模板对所述至少一个关键字进行补全,得到所述启动 链接。Completing the at least one keyword according to the selected one of the field templates, to obtain the startup link.
  14. 根据权利要求13所述的方法,其特征在于,所述根据选择的一个字段模板对所述至少一个关键字进行补全之后,还包括:The method according to claim 13, wherein after the complementing the at least one keyword according to the selected one of the field templates, the method further comprises:
    若所述字段模板包括用于输入程序标识字段的模板,则获取所述子程序的程序标识,将所述程序标识添加到所述程序标识字段中,所述程序标识字段用于标识子程序;和/或,If the field template includes a template for inputting a program identification field, acquiring a program identifier of the subprogram, adding the program identifier to the program identification field, where the program identification field is used to identify a subroutine; and / or,
    若所述字段模板包括用于输入功能标识字段的字段模板,则获取所述功能的功能标识,将所述功能标识添加到所述功能标识字段中,所述功能标识字段用于标识功能;和/或,If the field template includes a field template for inputting a function identifier field, acquiring a function identifier of the function, adding the function identifier to the function identifier field, where the function identifier field is used to identify a function; /or,
    生成功能描述字段,将所述功能描述字段添加到所述字段模板之后,所述功能描述字段用于对功能进行描述。A function description field is generated, and after the function description field is added to the field template, the function description field is used to describe a function.
  15. 根据权利要求14所述的方法,其特征在于,所述生成功能描述字段,包括:The method according to claim 14, wherein the generating a function description field comprises:
    若对所述功能的描述内容包括图片,则获取所述图片的图片地址;If the description content of the function includes a picture, obtain a picture address of the picture;
    将所述图片地址添加到所述功能描述字段中。Adding the picture address to the function description field.
  16. 一种功能启动方法,其特征在于,用于终端中,所述终端包括客户端和与所述客户端对应的启动程序,所述启动程序是用于处理预定协议头所对应的自定义统一资源定位符URL协议的程序,所述方法包括:A function starting method, characterized in that, in a terminal, the terminal includes a client and a startup program corresponding to the client, and the startup program is configured to process a customized unified resource corresponding to a predetermined protocol header. A program for locator URL protocol, the method comprising:
    在启动链接被触发后,通过操作系统提取所述启动链接中的预定协议头;After the startup link is triggered, the predetermined protocol header in the startup link is extracted by the operating system;
    通过所述操作系统根据所述预定协议头查找所述启动程序;Searching, by the operating system, the startup program according to the predetermined protocol header;
    通过所述启动程序触发所述客户端启动功能。The client startup function is triggered by the launcher.
  17. 根据权利要求16所述的方法,其特征在于,所述通过所述启动程序触发所述客户端启动功能,包括:The method according to claim 16, wherein the triggering the client startup function by the startup program comprises:
    通过所述启动程序接收所述操作系统发送的启动参数,所述启动参数是所述操作系统从所述启动链接中提取得到的;Receiving, by the startup program, a startup parameter sent by the operating system, where the startup parameter is extracted by the operating system from the startup link;
    通过所述启动程序将所述启动参数传递给所述客户端;Passing the startup parameter to the client by the startup program;
    通过所述客户端启动与所述启动参数所对应的功能。 The function corresponding to the startup parameter is initiated by the client.
  18. 根据权利要求17所述的方法,其特征在于,所述通过操作系统提取所述启动链接中的预定协议头之前,还包括:The method according to claim 17, wherein before the extracting the predetermined protocol header in the startup link by the operating system, the method further comprises:
    在所述操作系统中注册所述预定协议头;Registering the predetermined protocol header in the operating system;
    在所述操作系统中将所述启动程序注册为用于处理所述预定协议头所对应的自定义URL协议的程序。The startup program is registered in the operating system as a program for processing a custom URL protocol corresponding to the predetermined protocol header.
  19. 根据权利要求17所述的方法,其特征在于,所述通过所述启动程序将所述启动参数传递给所述客户端,包括:The method according to claim 17, wherein said transmitting said startup parameter to said client by said launching program comprises:
    通过所述启动程序将所述启动参数转换为预定格式的启动参数,所述预定格式是被所述客户端识别的格式;Converting the startup parameter into a startup parameter of a predetermined format by the startup program, the predetermined format being a format recognized by the client;
    通过所述启动程序将所述预定格式的启动参数传递给所述客户端。The startup parameters of the predetermined format are passed to the client by the launching program.
  20. 根据权利要求17至19任一项所述的方法,其特征在于,若所述启动参数包括频道标识,与所述启动参数对应的功能是频道,则所述通过所述客户端启动与所述启动参数所对应的功能,包括:The method according to any one of claims 17 to 19, wherein if the activation parameter comprises a channel identifier, and the function corresponding to the startup parameter is a channel, the The functions corresponding to the startup parameters, including:
    通过所述客户端生成携带有所述频道标识的频道启动请求,向服务器发送所述频道启动请求,所述频道启动请求用于请求启动所述频道标识所标识的频道。And generating, by the client, a channel initiation request carrying the channel identifier, and sending the channel initiation request to the server, where the channel initiation request is used to request to activate a channel identified by the channel identifier.
  21. 根据权利要求17至19任一项所述的方法,其特征在于,若所述启动参数包括游戏标识,与所述启动参数对应的功能是游戏,则所述通过所述客户端启动与所述启动参数所对应的功能,包括:The method according to any one of claims 17 to 19, wherein if the startup parameter comprises a game identifier, and the function corresponding to the startup parameter is a game, the The functions corresponding to the startup parameters, including:
    通过所述客户端生成携带有所述游戏标识的频道启动请求,向服务器发送所述游戏启动请求,所述游戏启动请求用于请求启动所述游戏标识所标识的游戏。And generating, by the client, a channel activation request carrying the game identifier, and sending the game startup request to the server, where the game startup request is used to request to start a game identified by the game identifier.
  22. 根据权利要求17至19任一项所述的方法,其特征在于,若所述启动参数包括群组标识,与所述启动参数对应的功能是群组成员添加功能,则所述通过所述客户端启动与所述启动参数所对应的功能,包括:The method according to any one of claims 17 to 19, wherein if the startup parameter comprises a group identifier, and the function corresponding to the startup parameter is a group member adding function, the passing the client Ending the functions corresponding to the startup parameters, including:
    通过所述客户端获取在所述客户端中登录的用户账户的账户标识,生成携 带有所述账户标识和所述群组标识的群组成员添加请求,向服务器发送所述群组成员添加请求,所述群组成员添加请求用于请求将所述用户账户添加到所述群组中。Acquiring, by the client, an account identifier of a user account logged in in the client, generating and carrying a group member addition request with the account identifier and the group identifier, the group member addition request is sent to a server, and the group member addition request is used to request to add the user account to the group In the group.
  23. 一种功能启动装置,其特征在于,所述装置包括:A function starting device, characterized in that the device comprises:
    消息接收模块,用于接收其它客户端发送的通信消息;a message receiving module, configured to receive a communication message sent by another client;
    消息检测模块,用于检测所述消息接收模块接收到的所述通信消息是否包括启动链接,所述启动链接用于启动客户端提供的功能;a message detecting module, configured to detect whether the communication message received by the message receiving module includes a startup link, where the startup link is used to start a function provided by the client;
    功能启动模块,用于在所述消息检测模块检测的结果为所述通信消息包括所述启动链接时,启动所述启动链接所指示的功能。And a function startup module, configured to: when the message detection module detects that the communication message includes the startup link, initiate a function indicated by the startup link.
  24. 一种功能启动装置,其特征在于,所述装置包括:A function starting device, characterized in that the device comprises:
    链接获取模块,用于从客户端的输入框中获取启动链接;a link obtaining module, configured to obtain a startup link from an input box of the client;
    链接发送模块,用于将所述链接获取模块获取到的所述启动链接发送给其他客户端,以便所述其他客户端启动所述启动链接所指示的功能,所述启动链接用于启动所述其他客户端提供的功能。a link sending module, configured to send the startup link acquired by the link obtaining module to another client, so that the other client starts a function indicated by the startup link, and the startup link is used to start the Features provided by other clients.
  25. 一种功能启动装置,其特征在于,用于终端中,所述终端包括客户端和与所述客户端对应的启动程序,所述启动程序是用于处理预定协议头所对应的自定义统一资源定位符URL协议的程序,所述装置包括:A function initiating device is characterized in that, in a terminal, the terminal includes a client and a startup program corresponding to the client, and the startup program is configured to process a customized unified resource corresponding to a predetermined protocol header. The program of the locator URL protocol, the device comprising:
    参数提取模块,用于在启动链接被触发后,通过操作系统提取所述启动链接中的预定协议头;a parameter extraction module, configured to extract, by the operating system, a predetermined protocol header in the startup link after the startup link is triggered;
    程序查找模块,用于通过所述操作系统根据所述预定协议头查找所述启动程序;a program search module, configured to search, by the operating system, the startup program according to the predetermined protocol header;
    功能启动模块,用于通过所述程序查找模块查找到的所述启动程序触发所述客户端启动功能。And a function startup module, configured to trigger the client startup function by the startup program found by the program search module.
  26. 一种功能启动装置,其特征在于,所述装置包括:A function starting device, characterized in that the device comprises:
    一个或多个处理器;和One or more processors; and
    存储器;Memory
    所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述 一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:The memory stores one or more programs, the one or more programs being configured to be Executed by one or more processors, the one or more programs including instructions for:
    接收其它客户端发送的通信消息;Receiving communication messages sent by other clients;
    检测所述通信消息是否包括启动链接,所述启动链接用于启动客户端提供的功能;Detecting whether the communication message includes a startup link, and the startup link is used to initiate a function provided by the client;
    若检测结果为所述通信消息包括所述启动链接,则启动所述启动链接所指示的功能。If the detection result is that the communication message includes the startup link, the function indicated by the startup link is started.
  27. 一种功能启动装置,其特征在于,所述装置包括:A function starting device, characterized in that the device comprises:
    一个或多个处理器;和One or more processors; and
    存储器;Memory
    所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:The memory stores one or more programs, the one or more programs being configured to be executed by the one or more processors, the one or more programs including instructions for:
    从客户端的输入框中获取启动链接;Get the startup link from the input box of the client;
    将所述启动链接发送给其他客户端,以便所述其他客户端启动所述启动链接所指示的功能,所述启动链接用于启动所述其他客户端提供的功能。The launch link is sent to other clients for the other client to initiate the function indicated by the launch link, the launch link being used to initiate the functionality provided by the other client.
  28. 一种功能启动装置,其特征在于,用于终端中,所述终端包括客户端和与所述客户端对应的启动程序,所述启动程序是用于处理预定协议头所对应的自定义统一资源定位符URL协议的程序,所述装置包括:A function initiating device is characterized in that, in a terminal, the terminal includes a client and a startup program corresponding to the client, and the startup program is configured to process a customized unified resource corresponding to a predetermined protocol header. The program of the locator URL protocol, the device comprising:
    一个或多个处理器;和One or more processors; and
    存储器;Memory
    所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:The memory stores one or more programs, the one or more programs being configured to be executed by the one or more processors, the one or more programs including instructions for:
    在启动链接被触发后,通过操作系统提取所述启动链接中的预定协议头;After the startup link is triggered, the predetermined protocol header in the startup link is extracted by the operating system;
    通过所述操作系统根据所述预定协议头查找所述启动程序;Searching, by the operating system, the startup program according to the predetermined protocol header;
    通过所述启动程序触发所述客户端启动功能。 The client startup function is triggered by the launcher.
PCT/CN2014/096010 2013-12-31 2014-12-31 Function activation method and device WO2015101340A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201310754562.0 2013-12-31
CN201310754304.2A CN103761123B (en) 2013-12-31 2013-12-31 Function activating method, device and terminal
CN201310754304.2 2013-12-31
CN201310754562.0A CN103763312B (en) 2013-12-31 2013-12-31 Function activating method, device and client

Publications (1)

Publication Number Publication Date
WO2015101340A1 true WO2015101340A1 (en) 2015-07-09

Family

ID=53493277

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/096010 WO2015101340A1 (en) 2013-12-31 2014-12-31 Function activation method and device

Country Status (1)

Country Link
WO (1) WO2015101340A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737462A (en) * 2019-10-15 2020-01-31 腾讯科技(深圳)有限公司 Control method, device and storage medium for functional components in application program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047521A (en) * 2006-03-31 2007-10-03 腾讯科技(深圳)有限公司 Method for playing network media file by customer terminal and customer terminal
CN102413153A (en) * 2010-09-20 2012-04-11 腾讯科技(深圳)有限公司 Microblog message publishing method and device
CN103761123A (en) * 2013-12-31 2014-04-30 广州华多网络科技有限公司 Method and device for function starting and terminal
CN103763312A (en) * 2013-12-31 2014-04-30 广州华多网络科技有限公司 Function starting method and device and client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047521A (en) * 2006-03-31 2007-10-03 腾讯科技(深圳)有限公司 Method for playing network media file by customer terminal and customer terminal
CN102413153A (en) * 2010-09-20 2012-04-11 腾讯科技(深圳)有限公司 Microblog message publishing method and device
CN103761123A (en) * 2013-12-31 2014-04-30 广州华多网络科技有限公司 Method and device for function starting and terminal
CN103763312A (en) * 2013-12-31 2014-04-30 广州华多网络科技有限公司 Function starting method and device and client

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737462A (en) * 2019-10-15 2020-01-31 腾讯科技(深圳)有限公司 Control method, device and storage medium for functional components in application program
CN110737462B (en) * 2019-10-15 2022-04-01 腾讯科技(深圳)有限公司 Control method, device and storage medium for functional components in application program

Similar Documents

Publication Publication Date Title
US10708649B2 (en) Method, apparatus and system for displaying bullet screen information
US11055740B2 (en) Advertisement push system, apparatus, and method
US9351165B2 (en) Identity verifying method, account acquiring method, and mobile terminal
WO2015124033A1 (en) Video interaction method, terminal, server and system
WO2016150331A1 (en) Method and device for operating game client
WO2016150270A1 (en) Method and apparatus for processing group session message
US10084729B2 (en) Apparatuses and methods for web page sharing
CN106973330B (en) Screen live broadcasting method, device and system
WO2015096747A1 (en) Operation response method, client, browser and system
JP2017517904A (en) Video-based interaction method, terminal, server, and system
CN109003194B (en) Comment sharing method, terminal and storage medium
WO2018107941A1 (en) Multi-screen linking method and system utilized in ar scenario
CN107333162B (en) Method and device for playing live video
WO2018196588A1 (en) Information sharing method, apparatus and system
WO2015085951A1 (en) Terminal, server, system and method for inviting friend to watch video
CN106254910B (en) Method and device for recording image
CN106406924B (en) Control method and device for starting and quitting picture of application program and mobile terminal
CN107908765B (en) Game resource processing method, mobile terminal and server
WO2017193496A1 (en) Application data processing method and apparatus, and terminal device
JP2017521899A (en) Method, terminal, server, and system for acquiring interactive information
WO2014206037A1 (en) Apparatuses and methods for web page sharing
WO2015010466A1 (en) Information display method and apparatus, and mobile terminal
WO2021078215A1 (en) Method for cross-terminal switching of cloud game and related device
CN103279272A (en) Method and device for starting application program in electronic device
WO2015062234A1 (en) Mobile terminal resource processing method, device and apparatus

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: 14877479

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 1205 DATED 09/11/2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14877479

Country of ref document: EP

Kind code of ref document: A1