Summary of the invention
A kind of stream medium data exchange method, terminal, server and the system that the embodiment of the present invention provides, solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty, but current network video connects wheat and there is terminal type isolation alternately all the time, as, PC end can not carry out video with mobile phone terminal and connect wheat interaction problem, just because of the limitation factor of terminal type, the technical problem that the interactive experience that causes is inadequate.
A kind of stream medium data exchange method that the embodiment of the present invention provides, including:
The company wheat getting the predefined instruction form that first terminal sends invites instruction, and invites instruction to send to the second terminal described even wheat;
Get the company's wheat reply instruction inviting instruction corresponding and consistent with described predefined instruction form with described even wheat that described second terminal returns;
Inviting instruction and described even wheat to reply instruction according to described even wheat is described first terminal and described second terminal foundation even wheat session connection.
Alternatively, the company wheat getting the predefined instruction form that first terminal sends invites instruction, and invites instruction transmission to specifically include to the second terminal described even wheat:
The company wheat getting the predefined instruction form that first terminal sends invites instruction, and invites instruction to notify at least one described second terminal with the forms of broadcasting described even wheat.
Alternatively, the company's wheat reply instruction inviting instruction corresponding and consistent with described predefined instruction form with described even wheat getting described second terminal return specifically includes:
What get at least one described second terminal return invites instruction corresponding with described even wheat, and connects wheat reply instruction described in consistent with described predefined instruction form at least one;
Described even wheat is replied instruction and is forwarded to described first terminal, and get at least one described second terminal finally connecting wheat that described first terminal filters out in the second terminal at least one described, it is described that finally to connect wheat instruction consistent with described predefined instruction form.
Alternatively, what get that at least one described second terminal returns invites instruction corresponding with described even wheat, and connects wheat described in consistent with described predefined instruction form at least one and reply instruction and specifically include:
Invite instruction corresponding and consistent with described predefined instruction form with described even wheat at least one described even wheat accepting even wheat invitation getting at least one described second terminal return replys instruction;
Determine that described second terminal that described even wheat replys instruction corresponding is candidate terminal.
A kind of stream medium data exchange method that the embodiment of the present invention provides, including:
The company wheat of the predefined instruction form sent invites instruction to server so that described even wheat is invited instruction to send to the second terminal by described server;
Get the company's wheat reply instruction inviting instruction corresponding and consistent with described predefined instruction form with described even wheat returned by described second terminal that described server forwards;
Invite instruction and described even wheat to reply instruction according to described even wheat and set up even wheat session connection with described second terminal.
Alternatively, the specifically including with the described company's wheat reply instruction connecting wheat invitation instruction corresponding and consistent with described predefined instruction form by described second terminal return that described server forwards is got:
Get that described server forwards returned by the second terminal at least one described invite instruction corresponding with described even wheat, and at least one acceptance consistent with described predefined instruction form connects the described even wheat reply instruction that wheat is invited so that determine that described described second terminal connecting wheat reply instruction corresponding is candidate terminal;
What at least one described candidate terminal meeting described prerequisite of filtering out was corresponding finally connects wheat instruction, and sends to described server so that described server determines that the described candidate terminal meeting described prerequisite is even wheat terminal.
A kind of stream medium data exchange method that the embodiment of the present invention provides, including:
The company wheat getting the predefined instruction form that the first terminal forwarded by server sends invites instruction;
The company wheat inviting instruction corresponding and consistent with described predefined instruction form with described even wheat is replied instruction and is forwarded to described first terminal via server;
Instruction and described even wheat is invited to reply instruction and set up even wheat session connection with described first terminal according to described even wheat.
Alternatively, via server, the company's wheat reply instruction inviting instruction corresponding and consistent with described predefined instruction form with described even wheat is forwarded to described first terminal to specifically include:
It is forwarded to described first terminal by inviting corresponding and consistent with the described predefined instruction form described even wheat of instruction to reply instruction with described even wheat via described server as candidate terminal, make to work as at least one described candidate terminal meeting described prerequisite of filtering out of described first terminal corresponding finally connect wheat instruction, and send to described server and determine that the described candidate terminal meeting described prerequisite is even wheat terminal.
A kind of stream medium data exchange method that the embodiment of the present invention provides, including:
After first terminal and the second terminal invite instruction and described even wheat to reply instruction foundation even wheat session connection by the described even wheat that consistent predefined instruction form is corresponding, receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends, and return, to described server, the request of subscription;
Receive the video data that described server is issued according to the described described first terminal subscribing to request transmission and described second terminal, and at the video data that first terminal described in same interface display and described second terminal are issued.
Alternatively, after first terminal and the second terminal invite instruction and described even wheat to reply instruction foundation even wheat session connection by the described even wheat that consistent predefined instruction form is corresponding, receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends, and specifically include to the return subscription request of described server:
When server determines that at least one described candidate terminal meeting described prerequisite that first terminal filters out in as at least one described second terminal of candidate terminal is as even wheat terminal, and according to described even wheat terminal corresponding finally connect wheat instruction and described even wheat invites instruction, after described first terminal and described even wheat terminal are set up even wheat session connection, receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends, and return, to described server, the request of subscription.
A kind of server that the embodiment of the present invention provides, including:
First acquiring unit, the company wheat for getting the predefined instruction form that first terminal sends invites instruction, and invites instruction to send to the second terminal described even wheat;
Second acquisition unit, the company wheat inviting instruction corresponding and consistent with described predefined instruction form with described even wheat returned for getting described second terminal replys instruction;
First connects unit, and being used for inviting instruction and described even wheat to reply instruction according to described even wheat is described first terminal and described second terminal foundation even wheat session connection.
Alternatively, the first acquiring unit, the company wheat specifically for getting the predefined instruction form that first terminal sends invites instruction, and invites instruction to notify at least one described second terminal with the forms of broadcasting described even wheat.
Alternatively, second acquisition unit specifically includes:
First acquisition subelement, for getting the corresponding with described even wheat invitation instruction of at least one described second terminal return, and connects wheat reply instruction described in consistent with described predefined instruction form at least one;
First forwards acquisition subelement, it is forwarded to described first terminal for described even wheat is replied instruction, and get at least one described second terminal finally connecting wheat that described first terminal filters out in the second terminal at least one described, it is described that finally to connect wheat instruction consistent with described predefined instruction form.
Alternatively, the first acquisition subelement specifically includes:
First acquisition module, the described even wheat that at least one acceptance even wheat inviting instruction corresponding and consistent with described predefined instruction form with described even wheat returned for getting at least one described second terminal is invited replys instruction;
First determines module, is candidate terminal for determining described second terminal that described even wheat replys instruction corresponding.
Alternatively, first acquisition subelement is forwarded to specifically include:
Forwarding module, is forwarded to described first terminal for the described even wheat of described candidate terminal is replied instruction;
Module is determined in acquisition, finally connects wheat instruction for getting corresponding described of at least one the described candidate terminal meeting described prerequisite filtered out by described first terminal, and determines that described candidate terminal is for even wheat terminal.
Alternatively, first connects unit, specifically for inviting instruction according to described even wheat and described finally connecting wheat instruction, sets up even wheat session connection for described first terminal and described Lian Mai terminal.
A kind of terminal that the embodiment of the present invention provides, including:
First transmitting element, the company wheat of the predefined instruction form for sending invites instruction to server so that described even wheat is invited instruction to send to the second terminal by described server;
3rd acquiring unit, the company wheat inviting instruction corresponding and consistent with described predefined instruction form with described even wheat returned by described second terminal forwarded for getting described server replys instruction;
Second connects unit, sets up even wheat session connection for inviting instruction and described even wheat to reply instruction according to described even wheat with described second terminal.
Alternatively, the 3rd acquiring unit specifically includes:
Second obtains subelement, invite instruction corresponding for being returned by the second terminal at least one described of getting that described server forwards with described even wheat, and at least one acceptance consistent with described predefined instruction form connects the described even wheat reply instruction that wheat is invited so that determine that described described second terminal connecting wheat reply instruction corresponding is candidate terminal;
Screening subelement, at least one described candidate terminal meeting described prerequisite of filtering out corresponding finally connect wheat instruction, and send to described server so that described server determines that the described candidate terminal meeting described prerequisite is even wheat terminal.
A kind of terminal that the embodiment of the present invention provides, including:
4th acquiring unit, the company wheat for getting the predefined instruction form that the first terminal forwarded by server sends invites instruction;
Second transmitting element, is forwarded to described first terminal for the company wheat inviting instruction corresponding and consistent with described predefined instruction form with described even wheat is replied instruction via server;
3rd connects unit, for inviting instruction and described even wheat to reply instruction and set up even wheat session connection with described first terminal according to described even wheat.
Alternatively, second transmitting element, specifically for being forwarded to described first terminal by inviting corresponding and consistent with the described predefined instruction form described even wheat of instruction to reply instruction with described even wheat via described server as candidate terminal, make to work as at least one described candidate terminal meeting described prerequisite of filtering out of described first terminal corresponding finally connect wheat instruction, and send to described server and determine that the described candidate terminal meeting described prerequisite is even wheat terminal.
A kind of terminal that the embodiment of the present invention provides, including:
3rd receives unit, after inviting instruction and described even wheat to reply instruction foundation even wheat session connection when first terminal and the second terminal by the described even wheat that consistent predefined instruction form is corresponding, receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends, and return, to described server, the request of subscription;
Subscriber units, for receiving the video data that described server is issued according to the described described first terminal subscribing to request transmission and described second terminal, and at the video data that first terminal described in same interface display and described second terminal are issued.
Alternatively, 3rd receives unit, specifically for determining that at least one described candidate terminal meeting described prerequisite that first terminal filters out in as at least one described second terminal of candidate terminal is as even wheat terminal when server, and according to described even wheat terminal corresponding finally connect wheat instruction and described even wheat invites instruction, after described first terminal and described even wheat terminal are set up even wheat session connection, receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends, and return, to described server, the request of subscription.
A kind of stream medium data interactive system that the embodiment of the present invention provides, including:
Any one the described server mentioned in the embodiment of the present invention, any one first terminal mentioned in the embodiment of the present invention, any one second terminal mentioned in the embodiment of the present invention;
Described first terminal and described second terminal are connected via communication network by described server.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
A kind of stream medium data exchange method, terminal, server and the system that the embodiment of the present invention provides, wherein, stream medium data exchange method includes: the company wheat getting the predefined instruction form that first terminal sends invites instruction, and even instruction will be invited to send to the second terminal by wheat;Get the company's wheat reply instruction inviting instruction corresponding and consistent with predefined instruction form with even wheat that the second terminal returns;Inviting instruction and Lian Mai to reply instruction according to even wheat is first terminal and the foundation even wheat session connection of the second terminal.nullIn the present embodiment,Instruction is invited by getting the company wheat of the predefined instruction form that first terminal sends,And even instruction will be invited to send to the second terminal by wheat,What then get the second terminal return invites instruction corresponding with even wheat,And the company wheat reply instruction consistent with predefined instruction form,Invite instruction and Lian Mai to reply instruction finally according to even wheat and be first terminal and after the second terminal sets up even wheat session connection,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
Further, it is candidate terminal by the second terminal, then is carried out the screening meeting the candidate terminal of described prerequisite by first terminal as even wheat terminal, improve the beneficial effect of stream medium data interactivity.
Detailed description of the invention
A kind of stream medium data exchange method, terminal, server and the system that the embodiment of the present invention provides, solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty, but current network video connects wheat and there is terminal type isolation alternately all the time, as, PC end can not carry out video with mobile phone terminal and connect wheat interaction problem, just because of the limitation factor of terminal type, the technical problem that the interactive experience that causes is inadequate.
For making the goal of the invention of the present invention, feature, the advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only a part of embodiment of the present invention, and not all embodiment.Based on the embodiment in the present invention, all other embodiments that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Referring to Fig. 1, an embodiment of a kind of stream medium data exchange method that the embodiment of the present invention provides includes:
101, the company wheat getting the predefined instruction form that first terminal sends invites instruction, and even instruction will be invited to send to the second terminal by wheat;
In the present embodiment, when between different types of terminals, stream medium data is mutual, such as PC end and multiple mobile terminal carry out Lian Maishi, it is necessary first to the company wheat getting the predefined instruction form that first terminal sends invites instruction, and even instruction will be invited to send to the second terminal by wheat.
102, the company's wheat reply instruction inviting instruction corresponding and consistent with predefined instruction form with even wheat that the second terminal returns is got;
When the company wheat getting the predefined instruction form that first terminal sends invites instruction, and by after even wheat invitation instruction transmission to the second terminal, need to get the company's wheat reply instruction inviting instruction corresponding and consistent with predefined instruction form with even wheat that the second terminal returns.
103, inviting instruction and Lian Mai to reply instruction according to even wheat is first terminal and the foundation even wheat session connection of the second terminal.
After the company wheat corresponding and consistent with predefined instruction form with even wheat invitation instruction getting the second terminal return replys instruction, it is necessary to replying instruction according to even wheat invitation instruction and Lian Mai is first terminal and the foundation even wheat session connection of the second terminal.
nullIn the present embodiment,Instruction is invited by getting the company wheat of the predefined instruction form that first terminal sends,And even instruction will be invited to send to the second terminal by wheat,What then get the second terminal return invites instruction corresponding with even wheat,And the company wheat reply instruction consistent with predefined instruction form,Invite instruction and Lian Mai to reply instruction finally according to even wheat and be first terminal and after the second terminal sets up even wheat session connection,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
The process that the above is streaming media data interactive method is described in detail, and will detailed process be described in detail below, refers to Fig. 2, and another embodiment of a kind of stream medium data exchange method that the embodiment of the present invention provides includes:
201, the company wheat getting the predefined instruction form that first terminal sends invites instruction, and invites instruction to notify at least one second terminal with the forms of broadcasting even wheat;
In the present embodiment, when between different types of terminals, stream medium data is mutual, such as PC end and multiple mobile terminal carry out Lian Maishi, invite instruction firstly the need of the company wheat getting the predefined instruction form that first terminal sends, and invite instruction to notify at least one second terminal with the forms of broadcasting even wheat.
202, invite instruction corresponding and consistent with predefined instruction form with even wheat at least one even wheat reply instruction that at least one second terminal returns is got;
When the company wheat getting the predefined instruction form that first terminal sends invites instruction, and after inviting instruction to notify at least one second terminal with the forms of broadcasting the even wheat, need to get invite instruction corresponding and consistent with predefined instruction form with even wheat at least one even wheat reply instruction that at least one second terminal returns.
203, even wheat is replied instruction and be forwarded to first terminal, and get at least one second terminal finally connecting wheat that first terminal filters out at least one second terminal;
When getting the corresponding with even wheat invitation instruction of at least one second terminal return, and after at least one company wheat reply instruction consistent with predefined instruction form, need that even wheat is replied instruction and be forwarded to first terminal, and to get first terminal can be at least one second terminal finally connecting wheat filtered out at least one second terminal according to prerequisite, finally connect wheat instruction consistent with predefined instruction form.
204, inviting instruction and Lian Mai to reply instruction according to even wheat is first terminal and the foundation even wheat session connection of the second terminal.
It is forwarded to first terminal when even wheat is replied instruction, and after getting at least one second terminal finally connecting wheat that first terminal filters out according to prerequisite at least one second terminal, it is necessary to invite instruction and Lian Mai to reply instruction according to even wheat and be first terminal and the second terminal sets up even wheat session connection.
In the present embodiment, predefined instruction form is binary command form or text message form, for instance text message format definition is as follows:
nullIn the present embodiment,Instruction is invited by getting the company wheat of the predefined instruction form that first terminal sends,And even instruction will be invited to send to the second terminal by wheat,What then get the second terminal return invites instruction corresponding with even wheat,And the company wheat reply instruction consistent with predefined instruction form,Invite instruction and Lian Mai to reply instruction finally according to even wheat and be first terminal and after the second terminal sets up even wheat session connection,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
The process that the above is streaming media data interactive method is described in detail, first terminal will be forwarded to below to by even wheat reply instruction, and the detailed process getting at least one the second terminal finally connecting wheat that first terminal filters out at least one second terminal is described in detail, referring to Fig. 3, another embodiment of a kind of stream medium data exchange method that the embodiment of the present invention provides includes:
301, the company wheat getting the predefined instruction form that first terminal sends invites instruction, and invites instruction to notify at least one second terminal with the forms of broadcasting even wheat;
In the present embodiment, when between different types of terminals, stream medium data is mutual, such as PC end and multiple mobile terminal carry out Lian Maishi, invite instruction firstly the need of the company wheat getting the predefined instruction form that first terminal sends, and invite instruction to notify at least one second terminal with the forms of broadcasting even wheat.
302, at least one acceptance corresponding and consistent with predefined instruction form with connecting wheat invitation instruction company's wheat reply instruction that even wheat is invited that at least one second terminal returns is got;
When the company wheat getting the predefined instruction form that first terminal sends invites instruction, and after inviting instruction to notify at least one second terminal with the forms of broadcasting the even wheat, need to get at least one acceptance corresponding and consistent with predefined instruction form with connecting wheat invitation instruction company's wheat reply instruction that even wheat is invited that at least one second terminal returns.
303, determine that the second terminal that even wheat replys instruction corresponding is candidate terminal;
When getting the corresponding with even wheat invitation instruction of at least one second terminal return, and after at least one acceptance consistent with predefined instruction form company's wheat reply instruction that even wheat is invited, it is thus necessary to determine that the second terminal that even wheat reply instruction is corresponding is candidate terminal.
304, the company wheat of candidate terminal is replied instruction and be forwarded to first terminal;
After determining that connecting the second corresponding terminal of wheat reply instruction is candidate terminal, it is necessary to the company wheat of candidate terminal is replied instruction and is forwarded to first terminal.
305, get at least one candidate terminal meeting prerequisite filtered out by first terminal corresponding finally connect wheat instruction, and determine that candidate terminal is even wheat terminal;
After the company wheat of candidate terminal being replied instruction and is forwarded to first terminal, it is necessary to get at least one candidate terminal meeting prerequisite filtered out by first terminal corresponding finally connect wheat instruction, and determine that candidate terminal is even wheat terminal.
306, get at least one candidate terminal meeting prerequisite filtered out by first terminal corresponding finally connect wheat instruction, and determine that candidate terminal is even wheat terminal.
When get at least one candidate terminal meeting prerequisite filtered out by first terminal corresponding finally connect wheat instruction, and determine that candidate terminal is after company's wheat terminal, need invite instruction according to even wheat and finally connect wheat instruction, set up even wheat session connection for first terminal and Lian Mai terminal.
In the present embodiment, predefined instruction form is binary command form or text message form, for instance text message format definition is as follows:
nullIn the present embodiment,Instruction is invited by getting the company wheat of the predefined instruction form that first terminal sends,And even instruction will be invited to send to the second terminal by wheat,What then get the second terminal return invites instruction corresponding with even wheat,And the company wheat reply instruction consistent with predefined instruction form,Invite instruction and Lian Mai to reply instruction finally according to even wheat and be first terminal and after the second terminal sets up even wheat session connection,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
The above is to be forwarded to first terminal to by even wheat reply instruction, and the detailed process getting at least one the second terminal finally connecting wheat that first terminal filters out at least one second terminal according to prerequisite is described in detail, follow-up additional process will be described in detail below, referring to Fig. 4, another embodiment of a kind of stream medium data exchange method that the embodiment of the present invention provides includes:
401, the company wheat getting the predefined instruction form that first terminal sends invites instruction, and invites instruction to notify at least one second terminal with the forms of broadcasting even wheat;
In the present embodiment, when between different types of terminals, stream medium data is mutual, such as PC end and multiple mobile terminal carry out Lian Maishi, invite instruction firstly the need of the company wheat getting the predefined instruction form that first terminal sends, and invite instruction to notify at least one second terminal with the forms of broadcasting even wheat.
402, at least one acceptance corresponding and consistent with predefined instruction form with connecting wheat invitation instruction company's wheat reply instruction that even wheat is invited that at least one second terminal returns is got;
When the company wheat getting the predefined instruction form that first terminal sends invites instruction, and after inviting instruction to notify at least one second terminal with the forms of broadcasting the even wheat, need to get at least one acceptance corresponding and consistent with predefined instruction form with connecting wheat invitation instruction company's wheat reply instruction that even wheat is invited that at least one second terminal returns.
403, determine that the second terminal that even wheat replys instruction corresponding is candidate terminal;
When getting the corresponding with even wheat invitation instruction of at least one second terminal return, and after at least one acceptance consistent with predefined instruction form company's wheat reply instruction that even wheat is invited, it is thus necessary to determine that the second terminal that even wheat reply instruction is corresponding is candidate terminal.
404, the company wheat of candidate terminal is replied instruction and be forwarded to first terminal;
After determining that connecting the second corresponding terminal of wheat reply instruction is candidate terminal, it is necessary to the company wheat of candidate terminal is replied instruction and is forwarded to first terminal.
405, get at least one candidate terminal meeting prerequisite filtered out by first terminal corresponding finally connect wheat instruction, and determine that candidate terminal is even wheat terminal;
After the company wheat of candidate terminal being replied instruction and is forwarded to first terminal, it is necessary to get at least one candidate terminal meeting prerequisite filtered out by first terminal corresponding finally connect wheat instruction, and determine that candidate terminal is even wheat terminal.
406, get at least one candidate terminal meeting prerequisite filtered out by first terminal corresponding finally connect wheat instruction, and determine that candidate terminal is even wheat terminal;
When get at least one candidate terminal meeting prerequisite filtered out by first terminal corresponding finally connect wheat instruction, and determine that candidate terminal is after company's wheat terminal, need invite instruction according to even wheat and finally connect wheat instruction, set up even wheat session connection for first terminal and Lian Mai terminal.
In the present embodiment, predefined instruction form is binary command form or text message form, for instance text message format definition is as follows:
407, receive first terminal and the video data of the second terminal issue, and correspondence is shown in the same window interface of the second terminal and first terminal;
When get at least one candidate terminal meeting prerequisite filtered out by first terminal corresponding finally connect wheat instruction, and determine that candidate terminal is after company's wheat terminal, need the video data receiving first terminal and the issue of the second terminal, and correspondence is shown in the same window interface of the second terminal and first terminal.
408, send the notice of the video data subscribing to first terminal and the issue of the second terminal at least one third terminal, and receive the subscription request that third terminal returns;
When receiving first terminal and the video data of the second terminal issue, and correspondence be shown in the second terminal and first terminal the same window interface after, need to send at least one third terminal the notice of the video data subscribing to first terminal and the issue of the second terminal, and receive the subscription request that third terminal returns.
409, according to the request of subscribing to, the video data transmitting that first terminal and the second terminal are issued is delivered to third terminal, third terminal the video data issued at the same window interface display first terminal and the second terminal.
When the notice sending the video data subscribing to first terminal and the issue of the second terminal at least one third terminal, and after receiving the subscription request that third terminal returns, need, according to the request of subscribing to, the video data transmitting that first terminal and the second terminal are issued is delivered to third terminal, third terminal the video data issued at the same window interface display first terminal and the second terminal.
As shown in figure 17, after first terminal sends even wheat invitation, the application examples how company of foundation wheat connects between different types of terminal includes:
First the method for the present embodiment is applied to double/many people of net cast and exchanges in series products, such as YY voice.Break terminal restriction, need to design different company's wheat logics and more playing method according to scene.Pc user initiates Lian Maihou at plug-in unit, and the APP user at this direct broadcasting room can remind by the company of receiving wheat, clicks at first and robs wheat and the user successfully connected, can carry out video with cellphone subscriber and connect wheat.
PC end bandwagon effect surface chart is such as shown in Figure 20 (a), and APP end bandwagon effect is such as shown in Figure 20 (a).PC end all can disconnect even wheat with APP end.APP end can pass through to click video and switch big small video.
First terminal in the present embodiment, the second terminal or third terminal type include PC computer, smart mobile phone, panel computer and support the wearable device of video playback and collection.
1. the unidirectional issue of video is interactive with spectators' word
Main broadcaster controls server to signaling, obtains the video labeling ID (at this, be defined as a channel) that starts broadcasting;
Main broadcaster issues video flowing to video server;
Spectators enter the channel that main broadcaster starts broadcasting;
Spectators subscribe to main broadcaster's video flowing, viewing main broadcaster's video pictures and broadcasting main broadcaster's sound;
Spectators send Word message in channel;
Main broadcaster and other spectators obtain Word message;
Main broadcaster is by the Word message of video image and sound feedback spectators.
2. video connects wheat flow process and two-way video interaction
Main broadcaster starts broadcasting and enters unidirectional issue video mode;
Spectators enter in the channel that main broadcaster starts broadcasting, and viewing main broadcaster is live;
Main broadcaster initiates even wheat asks signaling to control server;
Signaling controls server authentication instruction, each spectators in broadcast announcement channel;
Even wheat is invited to respond operation and be sent to signaling and controls server by spectators, and spectators accept the invitation becomes even wheat candidate, and refusal is invited and kept audience status;
Signaling controls server and filters the spectators accepting even wheat invitation and notify main broadcaster;
Main broadcaster obtains the spectators of even wheat;
Signaling controls all users (including spectators and candidate) in server broadcast notification channel, selected candidate information;
Selected candidate becomes and is invited to main broadcaster, and not selected candidate becomes spectators;
Being invited to main broadcaster and issue video to video stream server, spectators subscribe to and are invited to main broadcaster's video flowing;
Main broadcaster and be invited to main broadcaster and interact interaction by video, spectators watch video or by word and main broadcaster be invited to main broadcaster and carry out interaction.
3. cross-terminal type connects wheat instruction control transmission method
Main broadcaster can sign in signaling by the equipment of PC computer, smart mobile phone, panel computer and support video playback and collection as user and control server.Different terminal equipment is connected to internet by network controller, namely establishes a link channel that can transmit data-message between distinct device, such as TCP connecting link.Even wheat control instruction carries out data exchange by this data link, and for reaching to adapt to and simplify the process controlling logic between different types of terminal unit, even wheat instruction controls to be communicated by unified text message type and form.
The above-mentioned main broadcaster mentioned is first terminal, and spectators are the second terminal, and as shown in figure 18, spectators exist the conversion of three kinds of state roles: spectators role, candidate role and be invited to main broadcaster role, and other candidates role is even role in the middle of wheat set up in process.
As shown in figure 19, the effect of server is as follows:
Even wheat instruction controls the effect of server:
Distributing user uniquely identifies uid, controls and distribution main broadcaster starts broadcasting and identifies ID (channel), and filtering screening connects wheat candidate, and notice even wheat invitee information is to spectators
The effect of video distribution server:
Accepting main broadcaster and be invited to the video flowing that main broadcaster issues, pushing video stream gives the spectators subscribed to, and connects, with same terminal type, the difference that wheat is interactive, defines unified text message type and form to simplify the different terminals type process logic to even wheat instruction.
Integrate or multiple for one that aforesaid even wheat instruction control server and video distribution server can be the servers mentioned in the present embodiment, only server possesses the function of above-mentioned company's wheat instruction control server and video distribution server, and the concrete structure of server will be described in detail in subsequent embodiment.
The terminal unit that main broadcaster and spectators use does not limit, it is possible to be arbitrarily support that the equipment of video playback and collection includes PC computer, smart mobile phone, panel computer and other intelligence wearable devices.
Main broadcaster initiates before even wheat is invited without specifying invitee, and invitee can be one and be alternatively multiple.
Preferably, carrying out even wheat session between the user of first terminal side to make the user of the second end side to choose whether freely, the method that the present embodiment provides also will provide for replying response option.The user of the second end side can receive after the video that server sends connects wheat session invitation in the second terminal, chooses whether to carry out even wheat session between the user of first terminal side by replying response option.Wherein, reply option and include but not limited to " acceptance ", " refusal " etc..Specifically, if the user of the second end side wants that setting up video between the user of first terminal side connects wheat session, then the user of the second end side can choose " reception " option by operations such as clicks;If the user of the second end side is not desired to set up video between the user of first terminal side connects wheat session, then the user of the second end side can choose " refusal " option by operations such as clicks.By the operation that detection option is selected, second terminal determines whether that server returns and accepts response.
Under many people video mode, in order to make the user of first terminal side choose whether that the user continued with the second end side carries out even wheat session freely, the method that this enforcement provides also will also will provide for " cancelling even wheat " option under many people video mode.After first terminal side user chooses " cancelling even wheat " option by the operation such as click, first terminal, after " cancelling even wheat " being detected option is selected, can send to server according to the operation detected and cancel even wheat notice.
Prerequisite in the present embodiment can be that the rank corresponding for uid of the user according to the second terminal, authority etc. are screened, it is possible to is the self-defining of first terminal, does not specifically limit herein.
nullIn the present embodiment,Instruction is invited by getting the company wheat of the predefined instruction form that first terminal sends,And even instruction will be invited to send to the second terminal by wheat,What then get the second terminal return invites instruction corresponding with even wheat,And the company wheat reply instruction consistent with predefined instruction form,Invite instruction and Lian Mai to reply instruction finally according to even wheat and be first terminal and after the second terminal sets up even wheat session connection,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
Further, it is candidate terminal by the second terminal, then is carried out the screening meeting the candidate terminal of prerequisite by first terminal as even wheat terminal, improve the beneficial effect of stream medium data interactivity.
Referring to Fig. 5, an embodiment of the another kind of stream medium data exchange method that the embodiment of the present invention provides includes:
501, the company wheat of the predefined instruction form sent invites instruction to server so that server even will invite instruction to send to the second terminal by wheat;
In the present embodiment, when between different types of terminals, stream medium data is mutual, such as PC end and multiple mobile terminal carry out Lian Maishi, it is necessary first to the company wheat of the predefined instruction form of transmission invites instruction to server so that server even will invite instruction to send to the second terminal by wheat.
502, the company's wheat reply instruction inviting instruction corresponding and consistent with predefined instruction form with even wheat returned by the second terminal that server forwards is got;
When the company wheat of the predefined instruction form sent invites instruction to server, make server by after even wheat invitation instruction transmission to the second terminal, need to get the company's wheat reply instruction inviting instruction corresponding and consistent with predefined instruction form with even wheat returned by the second terminal that server forwards.
503, invite instruction and Lian Mai to reply instruction according to even wheat and set up even wheat session connection with the second terminal.
After getting the company's wheat reply instruction inviting instruction corresponding and consistent with predefined instruction form with even wheat returned by the second terminal that server forwards, it is necessary to invite instruction and Lian Mai to reply instruction and the second terminal foundation even wheat session connection according to even wheat.
nullIn the present embodiment,The company wheat of the predefined instruction form by sending invites instruction to server,Make server even instruction will be invited to send to the second terminal by wheat,Then get that server forwards returned by the second terminal invite instruction corresponding with even wheat,And the company wheat reply instruction consistent with predefined instruction form,After inviting instruction and Lian Mai to reply instruction and the second terminal foundation even wheat session connection finally according to even wheat,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
The above is the description that the process to another stream medium data exchange method carries out, instruction will be invited corresponding with even wheat being returned by the second terminal of getting that server forwards below, and the process of the company wheat reply instruction consistent with predefined instruction form is described in detail, referring to Fig. 6, another embodiment of the another kind of stream medium data exchange method that the embodiment of the present invention provides includes:
601, the company wheat of the predefined instruction form sent invites instruction to server so that server even will invite instruction to send to the second terminal by wheat;
In the present embodiment, when between different types of terminals, stream medium data is mutual, such as PC end and multiple mobile terminal carry out Lian Maishi, it is necessary first to the company wheat of the predefined instruction form of transmission invites instruction to server so that server even will invite instruction to send to the second terminal by wheat.
602, get that server forwards returned by least one second terminal invite instruction corresponding with even wheat, and at least one acceptance consistent with predefined instruction form company's wheat reply instruction that even wheat is invited so that determine that the second terminal that even wheat reply instruction is corresponding is candidate terminal;
When the company wheat of the predefined instruction form sent invites instruction to server, make server by after even wheat invitation instruction transmission to the second terminal, need to get server forwards returned by least one second terminal invite instruction corresponding with even wheat, and at least one acceptance consistent with predefined instruction form company's wheat reply instruction that even wheat is invited so that determine that the second terminal that even wheat reply instruction is corresponding is candidate terminal.
What at least one candidate terminal meeting prerequisite of 603, filtering out was corresponding finally connects wheat instruction, and sends to server so that server determines that the candidate terminal meeting prerequisite is even wheat terminal;
Invite instruction corresponding when being returned by least one second terminal of getting that server forwards with even wheat, and at least one acceptance consistent with predefined instruction form company's wheat reply instruction that even wheat is invited, make to determine that the second terminal that even wheat replys instruction corresponding is after candidate terminal, need at least one candidate terminal meeting prerequisite of filtering out corresponding finally connect wheat instruction, and send to server so that server determines that the candidate terminal meeting prerequisite is even wheat terminal.
604, invite instruction and Lian Mai to reply instruction according to even wheat and set up even wheat session connection with the second terminal.
When at least one candidate terminal meeting prerequisite filtered out corresponding finally connect wheat instruction, and send to server, server is determined, and the candidate terminal meeting prerequisite is for after even wheat terminal, it is necessary to invites instruction and Lian Mai to reply instruction according to even wheat and sets up even wheat session connection with the second terminal.
Aforesaid set up even wheat session connection with the second terminal and be and even wheat terminal is set up and connected wheat session connection.
nullIn the present embodiment,The company wheat of the predefined instruction form by sending invites instruction to server,Make server even instruction will be invited to send to the second terminal by wheat,Then get that server forwards returned by the second terminal invite instruction corresponding with even wheat,And the company wheat reply instruction consistent with predefined instruction form,After inviting instruction and Lian Mai to reply instruction and the second terminal foundation even wheat session connection finally according to even wheat,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
Further, it is candidate terminal by the second terminal, then is carried out the screening meeting the candidate terminal of prerequisite by first terminal as even wheat terminal, improve the beneficial effect of stream medium data interactivity.
Referring to Fig. 7, an embodiment of the another kind of stream medium data exchange method that the embodiment of the present invention provides includes:
701, the company wheat getting the predefined instruction form that the first terminal forwarded by server sends invites instruction;
In the present embodiment, when between different types of terminals, stream medium data is mutual, for instance PC end and multiple mobile terminal carry out Lian Maishi, it is necessary first to the company wheat getting the predefined instruction form that the first terminal forwarded by server sends invites instruction.
702, the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat is replied instruction and be forwarded to first terminal via server;
After the company wheat getting the predefined instruction form that the first terminal forwarded by server sends invites instruction, it is necessary to the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat is replied instruction and is forwarded to first terminal via server.
Should be noted that, aforesaid the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat is replied instruction it be forwarded to first terminal via server, can be as candidate terminal, the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat is replied instruction to be forwarded to first terminal via server, make to work as at least one candidate terminal meeting prerequisite of filtering out of first terminal corresponding finally connect wheat instruction, and send to server and determine that the candidate terminal meeting prerequisite is even wheat terminal.
703, invite instruction and Lian Mai to reply instruction according to even wheat and set up even wheat session connection with first terminal.
After the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat being replied instruction and is forwarded to first terminal via server, it is necessary to invite instruction and Lian Mai to reply instruction according to even wheat and set up even wheat session connection with first terminal.
nullIn the present embodiment,Instruction is invited by getting the company wheat of the predefined instruction form that the first terminal forwarded by server sends,Then the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat is replied instruction and be forwarded to first terminal via server,After inviting instruction and Lian Mai to reply instruction and first terminal foundation even wheat session connection finally according to even wheat,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
Further, it is candidate terminal by the second terminal, then is carried out the screening meeting the candidate terminal of prerequisite by first terminal as even wheat terminal, improve the beneficial effect of stream medium data interactivity.
Referring to Fig. 8, an embodiment of a kind of stream medium data exchange method provided in the embodiment of the present invention includes:
801, after first terminal and the second terminal invite instruction and Lian Mai to reply instruction foundation even wheat session connection by the company wheat that consistent predefined instruction form is corresponding, receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends, and return, to server, the request of subscription;
In the present embodiment, when spectators need to subscribe to stream medium data between different types of terminals alternately under video data time, such as, when PC end and multiple mobile terminal carry out connecting wheat video, first after first terminal and the second terminal invite instruction and Lian Mai to reply instruction foundation even wheat session connection by the company wheat that consistent predefined instruction form is corresponding, receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends, and return, to server, the request of subscription.
Wherein, can be when server determines that at least one candidate terminal meeting prerequisite that first terminal filters out in as at least one second terminal of candidate terminal is as even wheat terminal further, and according to even wheat terminal corresponding finally connect wheat instruction and Lian Mai invites instruction, after first terminal and Lian Mai terminal are set up even wheat session connection, receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends, and return, to server, the request of subscription.
802, the video data that server is issued is received according to the first terminal and the second terminal of subscribing to request transmission, and at the video data that same interface display first terminal and the second terminal are issued.
After first terminal and the second terminal invite instruction and Lian Mai to reply instruction foundation even wheat session connection by the company wheat that consistent predefined instruction form is corresponding, receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends, and to server return subscribe to request after, need to receive the video data that server is issued according to the first terminal and the second terminal of subscribing to request transmission, and at the video data that same interface display first terminal and the second terminal are issued.
The present embodiment does not do concrete restriction, includes but not limited to, by network, by the form such as mail, advertisement, the notice of first terminal and the video data of the second terminal issue is sent at least one third terminal.Wherein, the content of announcement of the video data that server is issued at least one third terminal transmission subscription first terminal and the second terminal includes but not limited to the brief introduction of the video of first terminal and the issue of the second terminal, issuing time, the duration etc. of video, the content of announcement of the video data that server sends subscription first terminal and the issue of the second terminal at least one third terminal is not defined by the present embodiment, third terminal is after the notice receiving the video data subscribing to first terminal and the issue of the second terminal that server sends, the notice received is presented to the user of third terminal side, and provide the user subscription option.Wherein, the subscription option that third terminal provides the user includes but not limited to " subscribing to first terminal and the video data of the second terminal issue ", " subscribing to the video data that first terminal is issued " etc..If the user of third terminal side chooses " subscribing to first terminal and the video data of the second terminal issue " option by operations such as clicks, " subscribe to first terminal and video data that the second terminal is issued " after option is selected, will return the request of the video data subscribing to first terminal and the issue of the second terminal to third terminal to server detecting.
Certainly, except subscribing to first terminal and the video data of the second terminal issue, the video data that third terminal also can subscribe to the video data of first terminal issue, the second terminal is issued, it is possible to do not subscribe to any video data.Specifically, if the user of third terminal side chooses " subscribing to the video data that first terminal is issued " option by operations such as clicks, third terminal will return the request of the video data subscribing to first terminal issue after " subscribing to the video data that first terminal is issued " detecting option being selected to server;If the user of third terminal side chooses " subscribing to the video data that the second terminal is issued " option by operations such as clicks, third terminal will return the request of the video data subscribing to the second terminal issue after " subscribing to the video data that the second terminal is issued " detecting option being selected to server;If it is selected that third terminal is not detected by subscribing to option, then without returning, to server, the request of subscription, can directly ignore this subscribing notification.
In the present embodiment, after first terminal and the second terminal invite instruction and Lian Mai to reply instruction foundation even wheat session connection by the company wheat that consistent predefined instruction form is corresponding, receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends, and return, to server, the request of subscription, finally receive the video data that server is issued according to the first terminal and the second terminal of subscribing to request transmission, and at the video data that same interface display first terminal and the second terminal are issued, achieve spectators subscribe to live in different types of first terminal and the second terminal between real-time, interactive live of stream medium data of company's wheat video, greatly increase the user experience in even wheat video process.
Referring to Fig. 9, an embodiment of a kind of server mentioned in the embodiment of the present invention includes:
First acquiring unit 901, the company wheat for getting the predefined instruction form that first terminal sends invites instruction, and even instruction will be invited to send to the second terminal by wheat;
Second acquisition unit 902, the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat returned for getting the second terminal replys instruction;
First connection unit 903, is first terminal and the foundation even wheat session connection of the second terminal for inviting instruction and Lian Mai to reply instruction according to even wheat.
nullIn the present embodiment,The company wheat being got the predefined instruction form that first terminal sends by the first acquiring unit 901 invites instruction,And even instruction will be invited to send to the second terminal by wheat,Then second acquisition unit 902 gets the corresponding with even wheat invitation instruction of the second terminal return,And the company wheat reply instruction consistent with predefined instruction form,Last first connects unit 903 invites instruction and Lian Mai to reply instruction according to even wheat to be first terminal and after the second terminal sets up even wheat session connection,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
The above is that each unit to server is described in detail, and sub-unit and module is described in detail below, refers to Figure 10, and another embodiment of a kind of server mentioned in the embodiment of the present invention includes:
First acquiring unit 1001, company wheat for getting the predefined instruction form that first terminal sends invites instruction, and even instruction will be invited to send to the second terminal by wheat, first acquiring unit 1001, company wheat specifically for getting the predefined instruction form that first terminal sends invites instruction, and invites instruction to notify at least one second terminal with the forms of broadcasting even wheat.
Second acquisition unit 1002, the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat returned for getting the second terminal replys instruction;
Second acquisition unit 1002 specifically includes:
First obtains subelement 10021, and at least one corresponding and consistent with predefined instruction form with the even wheat invitation instruction even wheat returned for getting at least one second terminal replys instruction;
First obtains subelement 10021 specifically includes:
First acquisition module 10021a, invite instruction corresponding and consistent with predefined instruction form with even wheat at least one returned for getting at least one second terminal accepts the company wheat that even wheat is invited and replys instruction;
First determines module 10021b, is candidate terminal for determining the second terminal that even wheat replys instruction corresponding.
First forwards acquisition subelement 10022, it is forwarded to first terminal for even wheat is replied instruction, and get at least one second terminal finally connecting wheat that first terminal filters out at least one second terminal according to prerequisite, finally connect wheat instruction consistent with predefined instruction form.
First forwards acquisition subelement 10022 to specifically include:
Forwarding module 10022a, is forwarded to first terminal for the company wheat of candidate terminal is replied instruction;
Module 10022b is determined in acquisition, for get at least one candidate terminal meeting prerequisite filtered out by first terminal corresponding finally connect wheat instruction, and determine that candidate terminal is even wheat terminal.
First connects unit 1003, it is first terminal and the foundation even wheat session connection of the second terminal for inviting instruction and Lian Mai to reply instruction according to even wheat, first connects unit 1003, specifically for inviting instruction according to even wheat and finally connect wheat instruction, set up even wheat session connection for first terminal and Lian Mai terminal.
Aforesaid predefined instruction form is binary command form or text message form.
nullIn the present embodiment,The company wheat being got the predefined instruction form that first terminal sends by the first acquiring unit 1001 invites instruction,And even instruction will be invited to send to the second terminal by wheat,Then second acquisition unit 1002 gets the corresponding with even wheat invitation instruction of the second terminal return,And the company wheat reply instruction consistent with predefined instruction form,Last first connects unit 1003 invites instruction and Lian Mai to reply instruction according to even wheat to be first terminal and after the second terminal sets up even wheat session connection,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
Further, it is candidate terminal by the second terminal, then is carried out the screening meeting the candidate terminal of prerequisite by first terminal as even wheat terminal, improve the beneficial effect of stream medium data interactivity.
The above is each subelement to server and module is described in detail, and extra cell will be described in detail below, and refer to Figure 11, and another embodiment of a kind of server mentioned in the embodiment of the present invention includes:
First acquiring unit 1101, company wheat for getting the predefined instruction form that first terminal sends invites instruction, and even instruction will be invited to send to the second terminal by wheat, first acquiring unit 1101, company wheat specifically for getting the predefined instruction form that first terminal sends invites instruction, and invites instruction to notify at least one second terminal with the forms of broadcasting even wheat.
Second acquisition unit 1102, the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat returned for getting the second terminal replys instruction;
Second acquisition unit 1102 specifically includes:
First obtains subelement 11021, and at least one corresponding and consistent with predefined instruction form with the even wheat invitation instruction even wheat returned for getting at least one second terminal replys instruction;
First obtains subelement 11021 specifically includes:
First acquisition module 11021a, invite instruction corresponding and consistent with predefined instruction form with even wheat at least one returned for getting at least one second terminal accepts the company wheat that even wheat is invited and replys instruction;
First determines module 11021b, is candidate terminal for determining the second terminal that even wheat replys instruction corresponding.
First forwards acquisition subelement 11022, it is forwarded to first terminal for even wheat is replied instruction, and get at least one second terminal finally connecting wheat that first terminal filters out at least one second terminal according to prerequisite, finally connect wheat instruction consistent with predefined instruction form.
First forwards acquisition subelement 11022 to specifically include:
Forwarding module 11022a, is forwarded to first terminal for the company wheat of candidate terminal is replied instruction;
Module 11022b is determined in acquisition, for get at least one candidate terminal meeting prerequisite filtered out by first terminal corresponding finally connect wheat instruction, and determine that candidate terminal is even wheat terminal.
First connects unit 1103, it is first terminal and the foundation even wheat session connection of the second terminal for inviting instruction and Lian Mai to reply instruction according to even wheat, first connects unit 1003, specifically for inviting instruction according to even wheat and finally connect wheat instruction, set up even wheat session connection for first terminal and Lian Mai terminal.
Aforesaid predefined instruction form is binary command form or text message form.
First receives unit 1104, and for receiving first terminal and the video data of the second terminal issue, and correspondence is shown in the same window interface of the second terminal and first terminal;
Second receives unit 1105, for sending the notice of the video data subscribing to first terminal and the issue of the second terminal at least one third terminal, and receives the subscription request that third terminal returns;
Subscribe to transmitting element 1106, for the video data transmitting that first terminal and the second terminal are issued being delivered to third terminal according to the request of subscribing to, third terminal the video data issued at the same window interface display first terminal and the second terminal.
nullIn the present embodiment,The company wheat being got the predefined instruction form that first terminal sends by the first acquiring unit 1101 invites instruction,And even instruction will be invited to send to the second terminal by wheat,Then second acquisition unit 1102 gets the corresponding with even wheat invitation instruction of the second terminal return,And the company wheat reply instruction consistent with predefined instruction form,Last first connects unit 1103 invites instruction and Lian Mai to reply instruction according to even wheat to be first terminal and after the second terminal sets up even wheat session connection,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
Further, it is candidate terminal by the second terminal, then is carried out the screening meeting the candidate terminal of prerequisite by first terminal as even wheat terminal, improve the beneficial effect of stream medium data interactivity.
Referring to Figure 12, an embodiment of the first terminal that the embodiment of the present invention provides includes:
First transmitting element 1201, the company wheat of the predefined instruction form for sending invites instruction to server so that server even will invite instruction to send to the second terminal by wheat;
3rd acquiring unit 1202, the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat returned by the second terminal forwarded for getting server replys instruction;
Second connects unit 1203, sets up even wheat session connection for inviting instruction and Lian Mai to reply instruction according to even wheat with the second terminal.
nullIn the present embodiment,Invite instruction to server by the company wheat of the predefined instruction form of the first transmitting element 1201 transmission,Make server even instruction will be invited to send to the second terminal by wheat,What what then the 3rd acquiring unit 1202 got that server forwards returned by the second terminal invites instruction corresponding with even wheat,And the company wheat reply instruction consistent with predefined instruction form,The second last connects unit 1203 and invites instruction and Lian Mai reply instruction and the second terminal to set up after connecting wheat session connection according to connecting wheat,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
The above is that each unit to first terminal is described in detail, and is described in detail by sub-unit below, refers to Figure 13, and another embodiment of the first terminal that the embodiment of the present invention provides includes:
First transmitting element 1301, the company wheat of the predefined instruction form for sending invites instruction to server so that server even will invite instruction to send to the second terminal by wheat;
3rd acquiring unit 1302, the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat returned by the second terminal forwarded for getting server replys instruction;
3rd acquiring unit 1302 specifically includes:
Second obtains subelement 13021, invite instruction corresponding for being returned by least one second terminal of getting that server forwards with even wheat, and at least one acceptance consistent with predefined instruction form company's wheat reply instruction that even wheat is invited so that determine that the second terminal that even wheat reply instruction is corresponding is candidate terminal;
Screening subelement 13022, at least one candidate terminal meeting prerequisite of filtering out corresponding finally connect wheat instruction, and send to server so that server determines that the candidate terminal meeting prerequisite is even wheat terminal.
Second connects unit 1303, sets up even wheat session connection for inviting instruction and Lian Mai to reply instruction according to even wheat with the second terminal.
nullIn the present embodiment,Invite instruction to server by the company wheat of the predefined instruction form of the first transmitting element 1301 transmission,Make server even instruction will be invited to send to the second terminal by wheat,What what then the 3rd acquiring unit 1302 got that server forwards returned by the second terminal invites instruction corresponding with even wheat,And the company wheat reply instruction consistent with predefined instruction form,The second last connects unit 1303 and invites instruction and Lian Mai reply instruction and the second terminal to set up after connecting wheat session connection according to connecting wheat,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
Further, it is candidate terminal by the second terminal, then is carried out the screening meeting the candidate terminal of prerequisite by first terminal as even wheat terminal, improve the beneficial effect of stream medium data interactivity.
Referring to Figure 14, an embodiment of the second terminal that the embodiment of the present invention provides includes:
4th acquiring unit 1401, the company wheat for getting the predefined instruction form that the first terminal forwarded by server sends invites instruction;
Second transmitting element 1402, it is forwarded to first terminal via server for the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat is replied instruction, second transmitting element 1402, it is forwarded to first terminal via server specifically for the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat being replied instruction as candidate terminal, make to work as at least one candidate terminal meeting prerequisite of filtering out of first terminal corresponding finally connect wheat instruction, and send and determine that to server the candidate terminal meeting prerequisite is even wheat terminal.
3rd connects unit 1403, sets up even wheat session connection for inviting instruction and Lian Mai to reply instruction according to even wheat with first terminal.
nullIn the present embodiment,The company wheat being got the predefined instruction form that the first terminal forwarded by server sends by the 4th acquiring unit 1401 invites instruction,Then the company wheat inviting instruction corresponding and consistent with predefined instruction form with even wheat is replied instruction and is forwarded to first terminal via server by the second transmitting element 1402,Last 3rd connects unit 1403 invites instruction and Lian Mai reply instruction and first terminal to set up after connecting wheat session connection according to connecting wheat,The company wheat achieving the predefined instruction form based on consistent form invites instruction and Lian Mai to reply the link communication passage that instruction is set up,Carry out the stream medium data between polytype terminal mutual,Solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty,But current network video connects wheat and there is terminal type isolation alternately all the time,As,PC end can not carry out video with mobile phone terminal and connect wheat interaction problem,Limitation factor just because of terminal type,The technical problem that the interactive experience that causes is inadequate.
Further, it is candidate terminal by the second terminal, then is carried out the screening meeting the candidate terminal of prerequisite by first terminal as even wheat terminal, improve the beneficial effect of stream medium data interactivity.
Referring to Figure 15, an embodiment of the third terminal that the embodiment of the present invention provides includes:
null3rd receives unit 1501,After inviting instruction and Lian Mai to reply instruction foundation even wheat session connection when first terminal and the second terminal by the company wheat that consistent predefined instruction form is corresponding,Receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends,And return, to server, the request of subscription,3rd receives unit 1501,Specifically for determining that at least one candidate terminal meeting prerequisite that first terminal filters out in as at least one second terminal of candidate terminal is as even wheat terminal when server,And according to even wheat terminal corresponding finally connect wheat instruction and Lian Mai invites instruction,After first terminal and Lian Mai terminal are set up even wheat session connection,Receive the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends,And return, to server, the request of subscription.
Subscriber units 1502, for receiving the video data that server is issued according to the first terminal and the second terminal of subscribing to request transmission, and at the video data that same interface display first terminal and the second terminal are issued.
In the present embodiment, after first terminal and the second terminal invite instruction and Lian Mai to reply instruction foundation even wheat session connection by the company wheat that consistent predefined instruction form is corresponding, 3rd receives unit 1501 receives the notice of the video data subscribing to first terminal and the issue of the second terminal that server sends, and return, to server, the request of subscription, last subscriber units 1502 receives the video data that server is issued according to the first terminal and the second terminal of subscribing to request transmission, and at the video data that same interface display first terminal and the second terminal are issued, achieve spectators subscribe to live in different types of first terminal and the second terminal between real-time, interactive live of stream medium data of company's wheat video, greatly increase the user experience in even wheat video process.
Referring to Figure 16, an embodiment of a kind of stream medium data interactive system that the embodiment of the present invention provides includes:
The server 161 mentioned in Fig. 9 to Figure 11, the first terminal 162 mentioned in Figure 12 and Figure 13, and the second terminal 163 mentioned at least one Figure 14;
First terminal 162 and the second terminal 163 are connected via communication network by server.
Further, stream medium data interactive system also includes:
The third terminal 164 mentioned at least one Figure 15;
Third terminal 164 is connected with server 161 communication network.
The video of endless style differences as shown in figure 19 connects wheat interactive structure figure, video connects wheat and mainly comprises three roles: main broadcaster (Anchor), be invited to main broadcaster (RAnchor), spectators (Audience), and additionally connecting one state of existence that wheat sets up in process is candidate (Candidate).Two kinds control server: signaling controls server and video stream server;Signaling controls server and sets up control for connecting wheat command communication and Lian Mai, and video stream server is for main broadcaster and the issue and the spectators' subscription that are invited to main broadcaster's video flowing.
It is connected to internet by different terminal equipment by network controller, namely establishes a link channel that can transmit data-message between distinct device, such as TCP connecting link.Even wheat control instruction carries out data exchange by this data link, for reaching adapt to and simplify the process controlling logic between different types of terminal unit, even wheat instruction controls to be communicated by unified text message type and form, solve current video to connect wheat and have been provided with the interactivity of relatively horn of plenty, but current network video connects wheat and there is terminal type isolation alternately all the time, as, PC end can not carry out video with mobile phone terminal and connect wheat interaction problem, just because of the limitation factor of terminal type, the technical problem that the interactive experience that causes is inadequate.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it is possible to realize by another way.Such as, device embodiment described above is merely schematic, such as, the division of described unit, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit, it is possible to be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit is using the form realization of SFU software functional unit and as independent production marketing or use, it is possible to be stored in a computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD.
The above, above example only in order to technical scheme to be described, is not intended to limit;Although the present invention being described in detail with reference to previous embodiment, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein portion of techniques feature is carried out equivalent replacement;And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.