A kind of method and apparatus for adding channel
Technical field
The present invention relates to field of Internet communication, more particularly to a kind of method and apparatus for adding channel.
Background technology
With the development of Internet communication technology, many online live applications for showing user's ability are occurred in that;User steps on
After recording online direct broadcast server and selecting channel, the channel of selection can be added, and sing in the channel of the selection or
Listen song.
At present, the method for adding channel, Ke Yiwei:User is loaded in the live client of line up and down in terminal, and is input into user
The account registered in online direct broadcast server in advance and password are to online live client;Online live client is by communication
Network sends account and password to online direct broadcast server;Online direct broadcast server carries out body according to account and password to the user
Part checking, when being verified, user selected channel, and the channel identication of selection is submitted to into online live client, by
The channel identication of selection is sent to online direct broadcast server by communication network by the live client of line, and online direct broadcast server connects
The channel identication of the selection that the live client of line sends is received in, and user is added in the channel of selection.
During the present invention is realized, inventor has found that prior art at least has problems with:
User needs to be loaded in the live client of line up and down in terminal, causes to add the process of channel very complicated;Also, when eventually
When end does not possess communications network functionality, user can not log in online direct broadcast server, so as to add channel.
The content of the invention
In order to solve problem of the prior art, the invention provides a kind of method and apparatus for adding channel.The technology
Scheme is as follows:
On the one hand, the invention provides a kind of method for adding channel, methods described includes:
The addition request that receiving terminal sends;
The first speech data is sent to the terminal, first speech data include the title of at least one channel and its
Corresponding key assignments;
The first key assignments that the terminal sends is received, first key assignments is user according in first speech data
Key assignments is selected and is inputed to the terminal;
The terminal is added in the corresponding channel of first key assignments.
Further, before the first speech data of the transmission is to the terminal, methods described also includes:
Second speech data is sent to the terminal, the second speech data includes at least one login mode and its right
The key assignments answered;
The logging request that the terminal sends is received, the logging request carries the second key assignments, and second key assignments is institute
State user to be selected according to the key assignments in the second speech data and inputed to the terminal;
Login process is carried out according to second key assignments.
Further, it is described that login process is carried out according to second key assignments, including:
According to second key assignments, the corresponding login mode of second key assignments is obtained;
If the login mode is logged in for real name, the 3rd speech data is sent to the terminal, the 3rd voice number
According to for pointing out the user input account and password;
Account and password that the terminal sends is received, matching checking is carried out according to the account and the password;When testing
After card passes through, it is allowed to the terminal logs in server;
If the login mode is anonymous login, the terminal logs in server is directly allowed.
Further, it is described the terminal is added in the corresponding channel of first key assignments after, methods described is also wrapped
Include:
The multi-medium data in the channel is obtained, and the multi-medium data is sent to into the terminal.
Further, the multi-medium data obtained in the channel, and the multi-medium data is sent to described
Terminal, including:
The terminal iidentification carried in request is added to determine whether the terminal possesses the ability for playing video according to described;
If the terminal possesses the ability for playing video, the voice data and video data in the channel is obtained, and
The voice data and the video data are sent to into the terminal;
If the terminal does not possess the ability for playing video, the voice data in the channel is obtained, and by the sound
Frequency evidence is sent to the terminal.
On the other hand, the invention provides a kind of device for adding channel, described device includes:
First receiver module, for the addition request that receiving terminal sends;
First sending module, for sending the first speech data to the terminal, first speech data is included at least
The title of one channel and its corresponding key assignments;
Second receiver module, for receiving the first key assignments that the terminal sends, first key assignments is user according to institute
State the key assignments in the first speech data to be selected and inputed to the terminal;
Module is added, for the terminal is added in the corresponding channel of first key assignments.
Further, described device also includes:
Second sending module, for sending second speech data to the terminal, the second speech data is included at least
A kind of login mode and its corresponding key assignments;
3rd receiver module, for receiving the logging request that the terminal sends, the logging request carries the second key assignments,
Second key assignments is that the user is selected according to the key assignments in the second speech data and inputed to the terminal;
Login module, for carrying out login process according to second key assignments.
Further, the login module, including:
First acquisition unit, for according to second key assignments, obtaining the corresponding login mode of second key assignments;
Transmitting element, for when the login mode is that real name is logged in, sending the 3rd speech data to the terminal, institute
The 3rd speech data is stated for pointing out the user input account and password;
Receiving unit, for receiving account and the password that the terminal sends;
Authentication unit, for carrying out matching checking according to the account and the password;
First logs in unit, for after being verified, it is allowed to the terminal logs in server.
Second logs in unit, for when the login mode is anonymous login, directly allowing the terminal logs in service
Device.
Further, described device also includes:
Acquisition module, for obtaining the multi-medium data in the channel, and the multi-medium data is sent to described
Terminal.
Further, the acquisition module, including:
Determining unit, for adding the terminal iidentification carried in request to determine whether the terminal possesses broadcasting according to described
The ability of video;
Second acquisition unit, for when the terminal possesses and plays the ability of video, obtaining the audio frequency in the channel
Data and video data, and the voice data and the video data are sent to into the terminal;
3rd acquiring unit, for when the terminal does not possess and plays the ability of video, obtaining the sound in the channel
Frequency evidence, and the voice data is sent to into the terminal.
In embodiments of the present invention, when terminal is telephone terminal, server sends the first speech data to terminal, terminal
The first speech data is played, first speech data includes the title of at least one channel and its corresponding key assignments, server connects
The first key assignments that terminal is selected is received, and terminal is added in the corresponding channel of the first key assignments, so as to provide a kind of phone end
The method that end adds channel, user need not carry client up and down in terminal, also, terminal need not possess communication network work(
Can, directly can just be added in channel by way of call, add the process of channel simple, disclosure satisfy that more users
Demand.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, can be obtaining other according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of method flow diagram of addition channel that the embodiment of the present invention 1 is provided;
Fig. 2 is a kind of method flow diagram of addition channel that the embodiment of the present invention 2 is provided;
Fig. 3 is a kind of apparatus structure schematic diagram of addition channel that the embodiment of the present invention 3 is provided.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment 1
Embodiments provide a kind of method for adding channel.Referring to Fig. 1, wherein, the method includes:
Step 101:The addition request that receiving terminal sends;
Step 102:The first speech data is sent to terminal, first speech data include the title of at least one channel and
Its corresponding key assignments;
Step 103:The first key assignments that receiving terminal sends, first key assignments are user according to the key in the first speech data
Value is selected and is inputed to terminal;
Step 104:Terminal is added in the corresponding channel of the first key assignments.
In embodiments of the present invention, when terminal is telephone terminal, server sends the first speech data to terminal, terminal
The first speech data is played, first speech data includes the title of at least one channel and its corresponding key assignments, server connects
The first key assignments that terminal is selected is received, and terminal is added in the corresponding channel of the first key assignments, so as to provide a kind of phone end
The method that end adds channel, user need not carry client up and down in terminal, also, terminal need not possess communication network work(
Can, directly can just be added in channel by way of call, add the process of channel simple, disclosure satisfy that more users
Demand.
Embodiment 2
Embodiments provide a kind of method for adding channel.Referring to Fig. 2, wherein, the method includes:
Step 201:Terminal sends and joins request to server;
Wherein, preset number is carried in the addition request;Preset number is the number of server distribution in advance.This default number
The type of code GC group connector, server can determine that the type of terminal according to preset number.
Wherein, terminal is arbitrary telephone terminal, in embodiments of the present invention, terminal is not especially limited.For example, terminal
For mobile phone, landline telephone or the PC that can be dialed network telephone(Personal computer, personal computer)Terminal
Deng.Server is arbitrary online direct broadcast server, in embodiments of the present invention, server is also not especially limited.
Wherein, step 201 may comprise steps of(1)Extremely(2):
(1), terminal send and join request to switching equipment, addition request carries preset number and terminal iidentification;
Wherein, switching equipment is the network element in the network of terminal place, if terminal is landline telephone, terminal place network
For fixed telephone network;If terminal is mobile phone, terminal place network is mobile telephone network.Terminal iidentification is arbitrary
Terminal iidentification can be identified, in embodiments of the present invention, terminal iidentification is not especially limited.For example, terminal iidentification is terminal
Corresponding number etc..
(2), switching equipment receiving terminal send addition request, and forwarding join request to server.
Specifically, the addition request that switching equipment receiving terminal sends, and according to the addition acquisition request preset number;Root
The mark with the server of preset number binding is obtained in corresponding relation according to preset number from preset number with the mark of server
Know;Server is joined request to according to the forwarding of the mark of server.
Step 202:The addition request that server receiving terminal sends;
Wherein, preset number, number of the preset number for server distribution in advance, server root is carried in the addition request
Can determine that according to preset number it is telephone terminal to send the terminal for adding request, execution step 203, server can be according to electricity
Telephone terminal adds the mode prompt terminal of channel to add in channel.
Further, if the server determine that when terminal is not telephone terminal, server can add according to non-telephone terminal
The mode prompt terminal for entering channel is added in channel;Terminal adds the mode of channel to add in channel with existing according to non-telephone terminal
The method for having addition channel is identical, and here is no longer described in detail.
Step 203:Server sends second speech data to terminal, and the second speech data includes at least one login side
Formula and its corresponding key assignments;
Wherein, login mode includes that real name is logged in and anonymous login;The second speech data includes that real name is logged in and real name
Log in corresponding key assignments, and anonymous login key assignments corresponding with anonymous login.
Step 204:The second speech data that terminal the reception server sends, and play second speech data;
Wherein, terminal plays second speech data includes at least one login mode and the corresponding key of every kind of login mode
It is worth to user.User selects a kind of login mode, and the corresponding key assignments of login mode for being input into selection to terminal, for the ease of with
Concept below makes a distinction, and the corresponding key assignments of login mode for selecting is referred to as the second key assignments.
Step 205:The second key assignments that terminal receive user is input into according to second speech data, and logging request is sent to clothes
Business device, the logging request carry the second key assignments;
Step 206:The logging request that server receiving terminal sends, and login process is carried out according to the second key assignments;
Wherein, step 206 may comprise steps of(1)Extremely(6):
(1), server according to the second key assignments, obtain the corresponding login mode of the second key assignments, judge the login mode for obtaining
Whether it is that real name is logged in, if it is, performing following steps(2), if not, performing following steps(6);
Wherein, the corresponding relation of login mode and key assignments is previously stored in server, can be from stepping on according to the second key assignments
Record mode login mode corresponding with the second key assignments is obtained in the corresponding relation of key assignments.
(2), server send the 3rd speech data to terminal, the 3rd speech data be used for point out user input account and
Password;
Wherein, when the corresponding relation of account of terminal iidentification and user is previously stored in server, step(2)Can be with
For:
Server is obtained from corresponding relation of the terminal iidentification with the account of user according to terminal iidentification and is tied up with terminal iidentification
The account of fixed user;The account is the account that user is registered in advance in the server.Then, the 3rd speech data is sent to end
End, the 3rd speech data are used for pointing out user input password.
(3), the 3rd speech data that sends of terminal the reception server, and play the 3rd speech data to user, make user
Account and password are input into terminal according to the 3rd speech data;
Wherein, the 3rd speech data is used for pointing out user input account and password, and the 3rd speech data of terminal plays is to use
Behind family, user can input account and password to terminal.
Further, when the corresponding relation of account of terminal iidentification and user is previously stored in server, terminal is broadcast
After the 3rd speech data is put to user, user only needs to be input into password.
(4), terminal receiving user's input account and password, and send account and password to server;
(5), the account that sends of server receiving terminal and password, and matching checking is carried out according to account and password, when testing
After card passes through, server allows terminal logs in server;Obstructed out-of-date when verifying, server does not allow terminal logs in server,
Terminate to return.
Wherein, the corresponding relation of account and password, account of the server according to user, storage is previously stored in server
Account and the corresponding relation of password obtain the password of storage, and judge the password of user input and the password for storing whether phase
Together, if the password of user input is identical with the password of storage, server passes through to terminal authentication;If the password of user input
Differ with the password of storage, server does not pass through to terminal authentication.
(6), be anonymous login if logged on mode, server directly allows terminal logs in server, terminates to return.
Wherein, if the login mode that user selects is anonymous login, server need not be verified to terminal, directly
Connect permission terminal logs in server.
Further, by the way of anonymous login during login service device, user adds terminal as the identity of a visitor
Enter channel, server cannot obtain the account information of user, and server can only obtain the channel of acquiescence.
Step 207:Server sends the first speech data to terminal, and first speech data includes at least one channel
Title and its corresponding key assignments;
Wherein, if terminal using real name login by the way of login service device when, server can be according to the account of user
The accounts information of user is obtained, the accounts information of user at least includes the title of the personalized channels that user subscribes to, arranges each
The corresponding key assignments of personalized channels, sends the first speech data to terminal, and the first speech data includes at least one personalization
The title of channel and the corresponding key assignments of each channel;
Wherein, if terminal is by the way of anonymous login during login service device, server obtains the name of the channel of acquiescence
Claiming, the corresponding key assignments of each default channel being set, the first speech data is sent to terminal, the first speech data includes at least one
The title of the channel of acquiescence and the corresponding key assignments of each channel.
Wherein, in embodiments of the present invention, personalized channel is not especially limited.The channel of acquiescence is each user
The channel that all has of account, in embodiments of the present invention, the channel to giving tacit consent to also is not especially limited.
, wherein it is desired to illustrate, personalized channel includes the channel given tacit consent to.During the channel of acquiescence includes channels below
One or more:Education channel, entertainment channel, GameChannel, channel of conferencing, emotion channel, with city chat channel, spoken practice
Practise channel, wonderful world channel or channel of conferencing etc..Personalized channel is in addition to the channel including acquiescence, personalized
Channel also include channels below in one or two:My good friend's channel and my subscription channel.
Wherein, in same city chat channel, the user that user can be with user in same city is chatted;In spoken language
In exercise channel, user can carry out spoken language exercise in the channel;In wonderful world channel, user can be seen in the channel
The video content of performance;In channel of conferencing, user can be added in specified channel of conferencing;In my good friend's channel, Yong Huke
Chatted etc. with the good friend with user;In my subscription channel, user can obtain user subscription video content or
Voice content.
Further, server can be stored in channel in channel list according to the type of channel.
Specifically, server is added to channel in channel list according to the content of channel;Or, server is according to channel
Keyword make a look up matching or channel video sectional drawing identification etc., the title of channel is added in channel list;Or,
Server receives recommendation information, and the recommendation information includes the title of channel;The title of channel is added to channel list by server
In;Or, server is added to the title of channel in channel list according to movable poster.
Step 208:The first speech data that terminal the reception server sends, and play the first speech data;
Wherein, the title of at least one channel that the first speech data of terminal plays includes and the corresponding key assignments of each channel
To user, user selects the title of a channel, and is input into the corresponding key assignments of the title of the channel of selection to terminal, for the ease of
Make a distinction with concept above, the corresponding key assignments of channel for selecting is referred to as into the first key assignments.
Step 209:Terminal receive user is selected according to the key assignments in the first speech data and is inputed to the of terminal
One key assignments, and the first key assignments is sent to server;
Wherein, terminal sends the first key assignments to server, execution step 210, and terminal is added the frequency of selection by server
In road.
Step 210:The first key assignments that server receiving terminal sends, and terminal is added into the corresponding channel of the first key assignments
It is interior;
Specifically, the first key assignments that server receiving terminal sends, and should according to the acquisition of the first key assignments and the first key-value pair
Channel mark, terminal is added in the corresponding channel of the first key assignments according to the mark of the channel for obtaining.
, wherein it is desired to explanation, if user is not input into the first key assignments to terminal, terminal does not send the first key assignments to clothes
During business device, server is added to terminal in default channel.
Wherein, default channel is arbitrary channel for having stored in server;Also, it is channel predetermined to enter as needed
Row is arranged and is changed, and in embodiments of the present invention, default channel is not especially limited.
Further, if server terminal is added to into same city chat channel, into channel of conferencing or spoken language exercise
During channel, user can directly be conversed with the user in the channel for adding.
Further, if terminal using real name login by the way of login service device when, user can carry out plusing good friend behaviour
Make, the step can be:
Server sends the 4th speech data to terminal, and the 4th speech data is used for pointing out user input to treat plusing good friend
Account;The 4th speech data that terminal the reception server sends, and the 4th speech data is played to user, user is made according to broadcasting
The input of the 4th speech data treat the account of plusing good friend to terminal, the account for treating plusing good friend of terminal receiving user's input, concurrently
Send the account for treating plusing good friend for treating that the account of plusing good friend is sent to server, server receiving terminal, and according to treating plusing good friend
Account sends plusing good friend and asks to the corresponding terminal of IM accounts for treating plusing good friend, and the plusing good friend request carries the account of user.
Step 211:Server obtains the multi-medium data in channel, and multi-medium data is sent to terminal.
Wherein, step 211 may comprise steps of(1)Extremely(3):
(1), server according to adding the terminal iidentification that carries in request to determine whether terminal possesses the ability for playing video,
If it is, performing following steps(2), if not, performing following steps(3);
Wherein, server determines the type of terminal according to terminal iidentification, determines whether terminal possesses according to the type of terminal
Play the ability of video.For example, terminal iidentification can be the number of terminal, if the number of terminal is fixed telephone number, Gu
The type for determining the corresponding terminal of telephone number is that, because determining telephone terminal, and fixed telephone terminal does not possess the ability for playing video,
So that it is determined that going out terminal does not possess the ability for playing video;If the number of terminal is Mobile Directory Number, Mobile Directory Number
The type of corresponding terminal is mobile telephone terminal, and mobile telephone terminal possesses the ability for playing video, so that it is determined that going out end
End possesses the ability for playing video.
, wherein it is desired to explanation, the corresponding terminal of fixed telephone number is landline telephone, and landline telephone is with screen
And player, therefore, the corresponding terminal of fixed telephone number does not possess the ability for playing video.Mobile Directory Number corresponding end
Hold as mobile phone, mobile phone has screen and player, therefore, the corresponding terminal of Mobile Directory Number possesses the ability for playing video.
(2)If, terminal possess play video ability, server obtain channel in voice data and video data,
And voice data and video data are sent to into terminal;
If terminal possesses the ability for playing video, voice data and video data that terminal the reception server sends, and
Voice data and video data are played to into user.
(3)If, terminal do not possess the ability for playing video, server obtains the voice data in channel, and by audio frequency
Data is activation is to terminal.
If terminal does not possess the ability for playing video, the voice data that terminal the reception server sends, and by audio frequency number
According to playing to user.
In embodiments of the present invention, when terminal is telephone terminal, server sends the first speech data to terminal, terminal
The first speech data is played, first speech data includes the title of at least one channel and its corresponding key assignments, server connects
The first key assignments that terminal is selected is received, and terminal is added in the corresponding channel of the first key assignments, so as to provide a kind of phone end
The method that end adds channel, user need not carry client up and down in terminal, also, terminal need not possess communication network work(
Can, directly can just be added in channel by way of call, add the process of channel simple, disclosure satisfy that more users
Demand.
Embodiment 3
Embodiments provide a kind of device for adding channel.Referring to Fig. 3, wherein, the device includes:
First receiver module 301, for the addition request that receiving terminal sends;
First sending module 302, for sending the first speech data to terminal, first speech data includes at least one
The title of channel and its corresponding key assignments;
Second receiver module 303, for the first key assignments that receiving terminal sends, first key assignments is user according to the first language
Key assignments in sound data is selected and is inputed to terminal;
Module 304 is added, for terminal is added in the corresponding channel of the first key assignments.
Further, the device also includes:
Second sending module, for sending second speech data to terminal, the second speech data includes that at least one is stepped on
Record mode and its corresponding key assignments;
3rd receiver module, for the logging request that receiving terminal sends, the logging request carries the second key assignments, and this second
Key assignments is selected according to the key assignments in second speech data and is inputed to terminal for user;
Login module, for carrying out login process according to the second key assignments.
Further, login module, including:
First acquisition unit, for according to the second key assignments, obtaining the corresponding login mode of the second key assignments;
Transmitting element, for when the login mode is that real name is logged in, sending the 3rd speech data to terminal, the 3rd
Speech data is used for pointing out user input account and password;
Receiving unit, the account sent for receiving terminal and password;
Authentication unit, for carrying out matching checking according to account and password;
First logs in unit, for after being verified, it is allowed to terminal logs in server;
Second logs in unit, for when login mode is anonymous login, directly allowing terminal logs in server.
Further, the device also includes:
Multi-medium data for obtaining the multi-medium data in channel, and is sent to terminal by acquisition module.
Further, acquisition module, including:
According to the terminal iidentification carried in addition request, determining unit, for determining whether terminal possesses the energy for playing video
Power;
Second acquisition unit, for when terminal possesses and plays the ability of video, obtain voice data in the channel and
Video data, and voice data and video data are sent to into terminal;
3rd acquiring unit, for not possessing the ability for playing video when terminal, obtains the voice data in the channel, and
Voice data is sent to into terminal.
In embodiments of the present invention, when terminal is telephone terminal, server sends the first speech data to terminal, terminal
The first speech data is played, first speech data includes the title of at least one channel and its corresponding key assignments, server connects
The first key assignments that terminal is selected is received, and terminal is added in the corresponding channel of the first key assignments, so as to provide a kind of phone end
The method that end adds channel, user need not carry client up and down in terminal, also, terminal need not possess communication network work(
Can, directly can just be added in channel by way of call, add the process of channel simple, disclosure satisfy that more users
Demand.
It should be noted that:Above-described embodiment provide addition channel device add channel when, only with above-mentioned each work(
The division of energy module is illustrated, and in practical application, can distribute above-mentioned functions by different functions as desired
Module is completed, will the internal structure of device be divided into different functional modules, it is described above all or part of to complete
Function.In addition, above-described embodiment device for adding channel for providing and the embodiment of the method for adding channel belong to same design, its
The process of implementing refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware
To complete, it is also possible to instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.