Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
For the ease of describing, the template first embodiment of the present invention being related to makes an explanation:
Each channel can have a plurality of channel functions, the corresponding template of each channel functions.Template refers to the application scenarios that can realize certain channel functions, and while having added a certain template in channel, the user in this channel can enter the application scenarios of this template, and the channel functions based on this template is corresponding is carried out activity.The corresponding room of the channel of take is example, when this terminal enters the room of this channel, between the ovary of the embedded a plurality of templates in room of this channel, entrance between the ovary that this terminal provides in can the room by this channel, enters between the ovary of the mounted arbitrary template of this terminal.Between each ovary, can also provide the entrance between other ovarys, this terminal between the ovary of the template of current operation in by entrance between the ovary providing, can enter between the ovary of other templates, move other templates.
Fig. 1 is the flow chart of a kind of channel functions supplying method of providing of the embodiment of the present invention, and the executive agent of this inventive embodiments is functional device, and referring to Fig. 1, the method comprises:
101, receive and obtain request for the template of specified channel, template identification is carried in the request of obtaining of this template.
The embodiment of the present invention is applied to this functional device and in specified channel, adds at least one template, to provide under the scene of channel functions corresponding to this at least one template.
Wherein, this channel functions can be for broadcasting video, broadcast audio, carrying out online game activity etc.As, this specified channel comprises broadcasts the template of video and the template of carrying out online game activity, the user of this channel is in the template of broadcast video, can carry out net cast or watch video, and in carrying out the template of online game activity, can carry out online game activity with other users in this template.
102, obtain template mount message corresponding to this template identification.
Wherein, this template mount message can be template file, or the chained address of template file, and the embodiment of the present invention does not limit this.
103, based on this template mount message, in this specified channel, add template.
104, when this template of operation, channel functions corresponding to this template provide in this specified channel.
In embodiments of the present invention, this functional device has added this template in this specified channel, and, in the process of this template of operation, this functional device can channel functions corresponding to this template provide in this specified channel.
For example, when this specified channel has added online game template, the user in this specified channel can enter this online game template, carries out online game activity.
The method that the embodiment of the present invention provides, by obtain template mount message according to template identification, template mount message based on getting adds template in specified channel, makes a channel can add at least one template, when each template of operation, the corresponding channel functions of each template can be realized, thereby for user provides more rich and varied channel functions, the demand that user carries out various activities can be met, flexibility is strong, strengthens user's viscosity of channel.
Alternatively, the method comprises:
The template mount message that receiving management person user uploads;
Obtain the template identification that this template mount message is corresponding;
For this specified channel provides this template identification, make user in this specified channel to trigger this template according to this template identification and obtain request.
Alternatively, obtaining the template identification that this template mount message is corresponding comprises:
For this template mount message distributes a template identification; Or,
Obtain template identification corresponding to this template mount message that this administrator uploads.
Alternatively, the method also comprises:
Receive the operational order that user sends, this operational order carries channel identication and template identification;
According to this channel identication and this template identification, determine the indicated operation channel of this operational order and operation template;
In this operation template in this operation channel, respond this operational order.
Alternatively, the method also comprises:
In receiving first template of user at this specified channel carry out live instruction time, obtain the Media Stream that this user sends, in this first template, play this Media Stream, this first template is the live template of multimedia; Or,
In receiving second template of user at this specified channel, send review information time, in this second template, show this review information; Or,
In receiving three template of user at this specified channel, send virtual income data time, this virtual income data is distributed to this user-selected user.
Alternatively, this template mount message is carried on template file, and this template file is dynamic link library (DLL) file or executable program file, makes to call this template file, in this specified channel, adds template.
Above-mentioned all optional technical schemes, can adopt any combination to form optional embodiment of the present invention, and this is no longer going to repeat them.
Fig. 2 is the flow chart of a kind of channel functions supplying method of providing of the embodiment of the present invention.The interaction agent of this inventive embodiments is terminal and server, and referring to Fig. 2, the method comprises:
201, the template mount message that the administrator of this server reception specified channel uploads.
In embodiments of the present invention, this server can be the arbitrary server in server cluster, server cluster, or the functional module in server etc., the embodiment of the present invention does not limit this.
For multiple channel functions is provided in this specified channel, can in this specified channel, add a plurality of for realizing the template of channel functions.When the administrator of this specified channel wishes to add template in this specified channel, obtain the corresponding template mount message of template to be added, this template mount message is uploaded to this server, the user in follow-up this channel by this server, preserves this template mount message, so that can add template based on this template mount message.
Alternatively, this template mount message is carried on template file, and this template file is DLL(Dynamic Link Library, dynamic link library) file or executable program (.exe) file.
In embodiments of the present invention, this template mount message can offer this administrator by technical staff, technical staff can provide for the administrator of a plurality of channels at least one template mount message, the corresponding basic channel functions of each template mount message, administrator can select a template mount message to upload, or select after a template mount message, after adding some extra functions or some rights of using being set, upload, the embodiment of the present invention does not limit the source of this template mount message and corresponding channel functions again.
It should be noted that, the administrator that the embodiment of the present invention be take by this specified channel uploads template mount message and describes as example, when this server receives this template mount message, for this specified channel provides this template identification, and not for other channels provide this template identification, the template mount message of uploading based on this can add template in this specified channel, but can not in other channels, add this template.In fact, this template mount message can also be uploaded by the administrator of this server, the administrator of this server is for managing all channels of this server, when the administrator of this server has uploaded template mount message, for all channels provide this template identification, in arbitrary channel, can add template based on this template mount message, the embodiment of the present invention does not limit uploading the user of this template mount message.
202, this server obtains the template identification that this template mount message is corresponding.
Wherein, this template identification can be template ID(Identity, sequence number), the sign such as template name, the embodiment of the present invention does not limit this.
Alternatively, this server is that this template mount message distributes a template identification.This server can generate a plurality of template identification in advance, and according to the order of the plurality of template identification, be followed successively by the template mount message allocation template sign receiving, or, this server is the template mount message Random assignment template identification receiving, and the embodiment of the present invention does not limit this.
Further alternatively, this server obtains template identification corresponding to this template mount message that this administrator uploads, and by self-defined this template identification of this administrator, and is uploaded to this server.
This administrator uploads this template identification when can upload this template mount message in step 201, or uploads this template identification after uploading this template mount message again, and the embodiment of the present invention does not limit this.
In embodiments of the present invention, after this step 202, the method also comprises: this server is kept at this template mount message and this template identification correspondence in database, so that the user in follow-up this specified channel selects template identification, the template identification that this server can be selected according to user, obtains template mount message.
It should be noted that, the embodiment of the present invention be take this specified channel and is described as example, when this server comprises a plurality of channel, this server can be distinguished the template mount message that the administrator of different channel uploads with channel identication, and this channel identication can unique sign of determining this channel for channel designation, channel number etc.Further, this template mount message, template identification and channel identication correspondence can be kept in this database, the relation of preserving according to this correspondence, can determine the template that different channel can add.
203, this server is for this specified channel provides this template identification, makes user in this specified channel to trigger this template according to this template identification and obtains request.
Particularly, this server can identify by indicating template on the main interface of this specified channel, or indicating template sign, makes the user in this specified channel can select template identification in adding template menu, trigger the template of the template identification of carrying selection and obtain request.
204, this terminal sends and obtains request for the template of specified channel to this server, and template identification is carried in the request of obtaining of this template.
In embodiments of the present invention, with user, in this terminal, login this server, when user wishes to add template in this specified channel, trigger the request of obtaining of this template for specified channel and describe for example.Wherein, the user of operation should can click arbitrary template identification by to(for) template request of obtaining of specified channel triggers, and the triggering mode that the embodiment of the present invention is obtained request to this template does not limit.
Alternatively, when this terminal has been installed this template, not needing to obtain this template mount message installs and can directly enter this template, when this terminal detects user and enters the operation of this template, can judge whether this terminal has installed this template, if so, directly enter this template, send and obtain request for the template of specified channel if not, then to this server.
Further, when this terminal gets this template mount message, can carry out buffer memory, when even this terminal has unloaded again this template after this template has been installed, still may preserve this template mount message, if obtain when request and trigger this template user, this terminal is still during in store this template mount message, just need to not obtain this template mount message from this server, alternatively, when this terminal detects user add the operation of template in this specified channel, judge whether this terminal preserves the template mount message of this template, if, based on this template mount message, in this specified channel, add template, if not, to this server, send and obtain request for the template of this specified channel.
The embodiment of the present invention be take this terminal and to this server, is sent the request of obtaining of this template and describe as example, and in another embodiment providing in the embodiment of the present invention, this step 204 can be replaced by following steps: when user has activated the function choosing-item of automatic interpolation template, when this server receives the up-to-date template mount message of uploading of this administrator and gets corresponding template identification, automatically trigger this template for specified channel and obtain request, this up-to-date template identification getting is carried in the request of obtaining of this template, this server can automatically push up-to-date template mount message to this terminal.
205, when this server receives this template, obtain when request, obtain template mount message corresponding to this template identification.
Particularly, this server is when getting template mount message that this administrator uploads and template identification, template mount message and template identification correspondence are kept in database, this server obtains when request receiving this template, obtain the template identification that the request of obtaining of this template is carried, inquire about this database, obtain template mount message corresponding to this template identification.
The embodiment of the present invention be take executive agent as this server, by this server, obtaining template mount message corresponding to this template identification is that example describes, in fact, this server can be a server cluster, preserves the process of this template identification and can on servers different in this server cluster, carry out with the process of obtaining template mount message corresponding to this template identification.In another embodiment providing in the embodiment of the present invention, template server is used for preserving template mount message, identification server is used for safeguarding template identification, by template server, when receiving the template mount message that administrator uploads, preserved this template mount message, by identification server, generate template identification, send to this template server, make corresponding this template identification and this template mount message preserved of this template server, when this terminal enters this specified channel, can automatically from this identification server, pull the template identification of this specified channel, when this terminal use wishes to add template, this terminal sends and obtains request for the template of this specified channel to this template server, template identification is carried in the request of obtaining of this template, this template server is obtained when request receiving this template, return to template mount message corresponding to this template identification.
206, this server sends this template mount message to this terminal.
207,, when this terminal receives this template mount message, based on this template mount message, in this specified channel, add template.
Particularly, when this terminal receives this template mount message, according to information such as the chained address of the included template of this template mount message, contents displayed on interfaces, in this specified channel, add template.
Alternatively, when this template mount message is a template file, as dll file or executable program file, this terminal is called this template file, carries out the installation of template, during installation, realizes and add template in this specified channel.And when this template mount message is a chained address, download this chained address of this terminal access, obtain this template file, then call the installation that this template file carries out template, during installation, realize and add template in this specified channel.
208, when this template of this terminal operating, this server corresponding to this template provides at channel functions in this specified channel.
In embodiments of the present invention, when this terminal, install when this template completes and can move this template, operation this template process in, this server in this specified channel for this terminal corresponding to this template provides at function.
For example, this terminal has been installed the template of this broadcast video, when this terminal is moved the template of this broadcast video in this specified channel, this server for this terminal provides current live video flowing, carries out live option, option of issue comment message etc.And if this terminal has been installed while carrying out the template of tennis tournament activity, when this terminal is moved the template that this carries out tennis tournament activity in this specified channel, this server is selected opponent's option for this terminal provides, detect in real time the shake operation of user in the image pickup scope of this terminal, and show virtual tennis tournament interface.
In embodiments of the present invention, when this terminal enters this channel, indicated channel interface, this channel interface provides this terminal mounted a plurality of template identification, when this terminal detects user and selects the operation of arbitrary template identification, moves the template of this selection, show corresponding sub-interface, now still can continue to show this channel interface, and this terminal can select a plurality of template identification, show a plurality of sub-interfaces simultaneously.This sub-interface provides corresponding channel functions, and this terminal, when the template of this selection of operation, can realize the channel functions that this provides.In sub-interface, also can provide other template identification, this terminal, by selecting other template identification, can switch to other templates of operation, shows the sub-interface that other templates are corresponding.
Wherein, when this terminal switches to this sub-interface from this channel interface, do not depart from this channel, this terminal is still among this channel.The corresponding room of the channel of take is example, when this terminal enters the room of this channel, between the ovary of the embedded a plurality of templates in room of this channel, entrance between the ovary that this terminal provides in can the room by this channel, enters between the ovary of the mounted arbitrary template of this terminal.Between each ovary, can also provide the entrance between other ovarys, this terminal between the ovary of the template of current operation in by entrance between the ovary providing, can enter between the ovary of other templates, move other templates.
209, when this terminal detects user's operation, to this server, send the operational order of this operational correspondence, this operational order carries channel identication and template identification.
In embodiments of the present invention, in the process of this this template of terminal operating, this server channel functions corresponding to this template provides for this terminal, when this terminal detects user's operation, can send corresponding operational order to this server, make this server based on this channel functions, respond this operational order.
210,, when this server receives this operational order, according to this channel identication and this template identification, determine the indicated operation channel of this operational order and operation template.
Wherein, this operational order carries channel identication and template identification, when this server receives this operational order, obtain this channel identication and this template identification, according to this channel identication and this template identification, the channel at this current place of terminal and the template in this channel be can determine, operation channel and operation template that this operational order is indicated determined.By this operational order, carry channel identication and template identification, the operational order that make that this server can be distinguished in different channels, the terminal in different template sends.
211, in this server this operation template in this operation channel, respond this operational order.
As, when this server receives the operational order X that the terminal 1 in the template a of channel A sends, in the template a of channel A, respond this operational order X, when this server receives the operational order Y that the terminal 2 of the template a of channel B sends, in the template a of channel B, respond this operational order Y.
Particularly, this step 209-211 can comprise following any one:
(1) when this server receive in first template of this terminal at this specified channel carry out live instruction time, obtain the Media Stream that this terminal sends, in this first template, play this Media Stream, this first template is the live template of multimedia.
Wherein, this first template is the live template of multimedia, can carry out multimedia live, as net cast, live audio etc.User in the first template that this server is this specified channel provides the live template of this multimedia corresponding channel functions, as carry out live, watch live and issue review information etc.
Particularly, when this server receives while carrying out live instruction in first template of this terminal at this specified channel, the Media Stream that this terminal of Real-time Obtaining sends, and play this Media Stream in this first template, make the terminal in this first template all can play this Media Stream.
(2) when this server receives the review information sending in second template of this terminal at this specified channel, in this second template, show this review information.
Wherein, this second template can be the live template of multimedia or game template etc., this second template is to there being the channel functions of issue comment,, when this server receives the review information sending in second template of this terminal at this specified channel, in this second template, show this review information.
(3), when this server receives the virtual income data sending in the 3rd template of this terminal at this specified channel, this virtual income data is distributed to the user that this user selects.
Wherein, the 3rd template can be the live template of multimedia or game template etc., can carry out the mutual of virtual income data in the 3rd template between user, and this virtual income data can be the virtual coin of this server circulation or virtual present etc.
Particularly, when user wishes virtual income data " to give " while giving other users, select user to be given, activate the option of giving that this server provides, this virtual income data is sent to this server, and this server is distributed to this virtual income data the user of this selection.
Three kinds of operational orders that this terminal triggers in different templates in above-mentioned steps (1)-(3), have been enumerated, so that the process of this server operation response instruction is described, three kinds of operational orders in step (1)-(3) do not form the restriction to operational order, this terminal can also trigger the operational order of other types, makes this server in the template at this terminal place, respond this operational order.
In embodiments of the present invention, when this specified channel comprises a plurality of template, this terminal can be switched between the different templates of this specified channel, be that the method can also comprise: when this terminal receives the operation that switches to To Template in this specified channel, to this server, send the switching template request for this specified channel, this To Template sign is carried in this switching template request, when this server receives the switching template request for this specified channel, based on this To Template sign, execution step 205, that is to say, when this server receives this terminal switch to the request of this To Template in this specified channel, obtain this To Template and identify corresponding template mount message, send to this terminal, make this terminal based on this template mount message, switch to this To Template.
The method that the embodiment of the present invention provides, by obtain template mount message according to template identification, template mount message based on getting adds template in specified channel, makes a channel can add at least one template, when each template of operation, the corresponding channel functions of each template can be realized, thereby for user provides more rich and varied channel functions, the demand that user carries out various activities can be met, flexibility is strong, strengthens user's viscosity of channel.
Fig. 3 is a kind of channel functions generator structural representation that the embodiment of the present invention provides, a channel comprises at least one template, the corresponding channel functions of each template, referring to Fig. 3, this device comprises: obtain that request receiving module 301, mount message acquisition module 302, template are added module 303, function provides module 304
Wherein, obtain request receiving module 301 and obtain request for receiving for the template of specified channel, template identification is carried in the request of obtaining of this template; Mount message acquisition module 302 with obtain request receiving module 301 and be connected, for obtaining template mount message corresponding to this template identification; Template is added module 303 and is connected with mount message acquisition module 302, for based on this template mount message, in this specified channel, adds template; Function provides module 304 and template interpolation module 303 to be connected, and for when moving this template, channel functions corresponding to this template provides in this specified channel.
Alternatively, this device also comprises:
Mount message receiver module, the template mount message of uploading for receiving management person user;
Template identification acquisition module, for obtaining the template identification that this template mount message is corresponding;
Template identification provides module, is used to this specified channel that this template identification is provided, and makes user in this specified channel to trigger this template according to this template identification and obtains request.
Alternatively, this template identification acquisition module comprises:
The first acquiring unit, is used to this template mount message to distribute a template identification; Or,
Second acquisition unit, template identification corresponding to this template mount message of uploading for obtaining this administrator.
Alternatively, this device also comprises:
Command reception module, the operational order sending for receiving user, this operational order carries channel identication and template identification;
Template determination module, for according to this channel identication and this template identification, determines the indicated operation channel of this operational order and operation template;
Instruction respond module, in this operation template of this operation channel, responds this operational order.
Alternatively, this device also comprises:
The first respond module, for when receive user the first template of this specified channel carry out live instruction time, obtain the Media Stream that this user sends, in this first template, play this Media Stream, this first template is the live template of multimedia; Or,
The second respond module for when receiving the review information that second template of user at this specified channel send, shows this review information in this second template; Or,
The 3rd respond module, for when receiving the virtual income data that three template of user at this specified channel send, distributes to this user-selected user by this virtual income data.
Alternatively, this template mount message is carried on template file, and this template file is dynamic link library (DLL) file or executable program file, makes to call this template file, in this specified channel, adds template.
The device that the embodiment of the present invention provides, by obtain template mount message according to template identification, template mount message based on getting adds template in specified channel, makes a channel can add at least one template, when each template of operation, the corresponding channel functions of each template can be realized, thereby for user provides more rich and varied channel functions, the demand that user carries out various activities can be met, flexibility is strong, strengthens user's viscosity of channel.
It should be noted that: the channel functions generator that above-described embodiment provides is when providing channel functions, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure of the equipment of being about to is divided into different functional modules, to complete all or part of function described above.In addition, the channel functions generator that above-described embodiment provides and channel functions supplying method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.