Summary of the invention
A kind of stream medium data exchange method, terminal, server and system provided in an embodiment of the present invention solve at present
Video connect wheat and have been provided with interactivity more abundant, however current network video connect wheat interaction exist always terminal type every
From e.g., the end PC cannot connect wheat with mobile phone terminal progress video and interact problem, just because of the limitation sexual factor of terminal type, cause
The inadequate technical problem of interactive experience.
A kind of stream medium data exchange method provided in an embodiment of the present invention, comprising:
The company wheat for getting the predefined instruction form of first terminal transmission invites instruction, and the even wheat is invited instruction
It is sent to second terminal;
Get that the second terminal returns invites instruction corresponding with the even wheat, and with the predefined instruction shape
The consistent even wheat replying instruction of formula;
Inviting instruction and the even wheat replying instruction according to the even wheat is that the first terminal and the second terminal are built
Li Lianmai session connection.
Optionally, the company wheat for getting the predefined instruction form of first terminal transmission invites instruction, and connects wheat for described
It invites instruction to be sent to second terminal to specifically include:
The company wheat for getting the predefined instruction form of first terminal transmission invites instruction, and the even wheat is invited instruction
At least one described second terminal is notified with the forms of broadcasting.
Optionally, get the second terminal return invites instruction corresponding with the even wheat, and makes a reservation for described
The consistent even wheat replying instruction of adopted instruction type specifically includes:
Get at least one second terminal return invites instruction corresponding with the even wheat, and makes a reservation for described
The adopted instruction type consistent at least one even wheat replying instruction;
The even wheat replying instruction is forwarded to the first terminal, and gets the first terminal at least one institute
State filtered out in second terminal finally connect at least one described second terminal of wheat, it is described finally connect wheat instruction with it is described predetermined
Adopted instruction type is consistent.
Optionally, get at least one second terminal return invites instruction corresponding with the even wheat, and with
The predefined instruction form consistent at least one even wheat replying instruction specifically includes:
Get at least one second terminal return invites instruction corresponding with the even wheat, and makes a reservation for described
Adopted instruction type consistent at least one receives the even wheat replying instruction that even wheat is invited;
Determine that the corresponding second terminal of the even wheat replying instruction is candidate terminal.
A kind of stream medium data exchange method provided in an embodiment of the present invention, comprising:
The company wheat of the predefined instruction form of transmission invites instruction to server, so that the server invites the even wheat
It please instruct and be sent to second terminal;
It is corresponding with the even wheat invitation instruction to get being returned by the second terminal for the server forwarding, and
With the consistent even wheat replying instruction of the predefined instruction form;
Instruction and the even wheat replying instruction and the second terminal is invited to establish even wheat session connection according to the even wheat.
Optionally, returned by the second terminal and even wheat invitation instruction phase of the server forwarding is got
It is corresponding, and specifically included with the consistent even wheat replying instruction of the predefined instruction form:
Get returned by second terminal described at least one the and even wheat invitation instruction of the server forwarding
It is corresponding, and receive the even wheat replying instruction that even wheat is invited with the predefined instruction form consistent at least one, make
It must determine that the corresponding second terminal of the even wheat replying instruction is candidate terminal;
At least one the described candidate terminal for meeting the prerequisite filtered out is corresponding finally to connect Mai Zhiling, concurrently
It send to the server, so that the server determines that the candidate terminal for meeting the prerequisite is even wheat terminal.
A kind of stream medium data exchange method provided in an embodiment of the present invention, comprising:
The company wheat for getting the predefined instruction form sent by the first terminal of server forwarding invites instruction;
Instruction will be invited corresponding with the even wheat and be passed through with the consistent even wheat replying instruction of the predefined instruction form
The first terminal is forwarded to by server;
Instruction and the even wheat replying instruction and the first terminal is invited to establish even wheat session connection according to the even wheat.
Optionally, will with it is described even wheat invite instruction it is corresponding and with the predefined instruction form it is consistent company Mai Huifu
Instruction is forwarded to the first terminal via server and specifically includes:
As candidate terminal will with it is described even wheat invite instruction it is corresponding and with the consistent institute of the predefined instruction form
The company's of stating wheat replying instruction is forwarded to the first terminal via the server, so that working as the satisfaction that the first terminal filters out
At least one of prerequisite candidate terminal is corresponding finally to connect Mai Zhiling, and is sent to the server and determines completely
The candidate terminal of the foot prerequisite is to connect wheat terminal.
A kind of stream medium data exchange method provided in an embodiment of the present invention, comprising:
When first terminal and second terminal by the corresponding even wheat of consistent predefined instruction form invite instruction and
The even wheat replying instruction is established after even wheat session connection, and subscription first terminal and second terminal hair that server is sent are received
The notice of the video data of cloth, and returned to the server and subscribe to request;
Receive what the server was issued according to the first terminal for subscribing to request transmission and the second terminal
Video data, and the video data of the first terminal described in same interface display and second terminal publication.
Optionally, when first terminal and second terminal are invited by the corresponding even wheat of consistent predefined instruction form
Instruction and the even wheat replying instruction are established after even wheat session connection, and the subscription first terminal and second that server is sent is received
The notice of the video data of terminal publication, and return to subscribe to the server and request to specifically include:
When server determines that first terminal filtered out at least one described second terminal as candidate terminal expires
At least one described candidate terminal of the foot prerequisite is used as even wheat terminal, and corresponding final according to the even wheat terminal
Even wheat instruction and the even wheat invite instruction, after the first terminal and the even wheat terminal are established even wheat session connection,
The notice for the video data for subscribing to first terminal and second terminal publication that server is sent is received, and is returned to the server
Subscribe to request.
A kind of server provided in an embodiment of the present invention, comprising:
First acquisition unit invites instruction for getting the company wheat of predefined instruction form of first terminal transmission, and
Instruction is invited to be sent to second terminal the even wheat;
Second acquisition unit, for getting the corresponding with the even wheat invitation instruction of the second terminal return, and
With the consistent even wheat replying instruction of the predefined instruction form;
First connection unit is the first terminal for inviting instruction and the even wheat replying instruction according to the even wheat
Even wheat session connection is established with the second terminal.
Optionally, first acquisition unit, the company wheat of the predefined instruction form specifically for getting first terminal transmission
Instruction is invited, and invites instruction to notify at least one described second terminal with the forms of broadcasting the even wheat.
Optionally, second acquisition unit specifically includes:
First obtains subelement, instructs for getting inviting with the even wheat at least one second terminal return
It is corresponding, and with the predefined instruction form consistent at least one it is described even wheat replying instruction;
First forwarding obtains subelement, for the even wheat replying instruction to be forwarded to the first terminal, and gets
At least one described second terminal for finally connecting wheat that the first terminal filters out at least one described second terminal, institute
State finally connect wheat instruction it is consistent with the predefined instruction form.
Optionally, the first acquisition subelement specifically includes:
First obtains module, instructs phase for getting inviting with the even wheat at least one second terminal return
It is corresponding, and receive the even wheat replying instruction that even wheat is invited with the predefined instruction form consistent at least one;
First determining module, for determining that the corresponding second terminal of the even wheat replying instruction is candidate terminal.
Optionally, the first forwarding obtains subelement and specifically includes:
Forwarding module, for the even wheat replying instruction of the candidate terminal to be forwarded to the first terminal;
Determining module is obtained, meets the prerequisite at least by what the first terminal filtered out for getting
One candidate terminal it is corresponding it is described finally connect Mai Zhiling, and determine that the candidate terminal is even wheat terminal.
Optionally, the first connection unit finally connects Mai Zhiling with described specifically for inviting to instruct according to the even wheat, is
The first terminal and the Lian Mai terminal establish even wheat session connection.
A kind of terminal provided in an embodiment of the present invention, comprising:
The company wheat of first transmission unit, the predefined instruction form for transmission invites instruction to server, so that described
The even wheat is invited instruction to be sent to second terminal by server;
Third acquiring unit, for getting returned by the second terminal and even wheat of the server forwarding
Invite instruction it is corresponding, and with the predefined instruction form it is consistent even wheat replying instruction;
Second connection unit, for inviting instruction and even wheat replying instruction and the second terminal according to the even wheat
The wheat session connection of the company of foundation.
Optionally, third acquiring unit specifically includes:
Second obtains subelement, for getting being returned by second terminal described at least one for server forwarding
It invites instruction corresponding with the even wheat, and receives the institute that even wheat is invited with the predefined instruction form consistent at least one
The company's of stating wheat replying instruction, so that determining that the corresponding second terminal of the even wheat replying instruction is candidate terminal;
Subelement is screened, at least one described candidate terminal for meeting the prerequisite for filtering out is corresponding most
Connect Mai Zhiling eventually, and be sent to the server, so that the server, which determines, meets the described candidate whole of the prerequisite
End is even wheat terminal.
A kind of terminal provided in an embodiment of the present invention, comprising:
4th acquiring unit, for getting the company of the predefined instruction form sent by the first terminal of server forwarding
Wheat invites instruction;
Second transmission unit, for that instruction will be invited corresponding and consistent with the predefined instruction form with the even wheat
Company's wheat replying instruction be forwarded to the first terminal via server;
Third connection unit, for inviting instruction and even wheat replying instruction and the first terminal according to the even wheat
The wheat session connection of the company of foundation.
Optionally, the second transmission unit, be specifically used for as candidate terminal will with it is described even wheat invite instruction it is corresponding and
It is forwarded to the first terminal via the server with the consistent even wheat replying instruction of the predefined instruction form, is made
At least one described candidate terminal of what the proper first terminal filtered out the meet prerequisite is corresponding finally to connect wheat
Instruction, and be sent to the server and determine that the candidate terminal for meeting the prerequisite is even wheat terminal.
A kind of terminal provided in an embodiment of the present invention, comprising:
Third receiving unit, for passing through the corresponding institute of consistent predefined instruction form when first terminal and second terminal
The company of stating wheat invites instruction and the even wheat replying instruction to establish after even wheat session connection, receives the subscription first that server is sent
The notice of terminal and the video data of second terminal publication, and returned to the server and subscribe to request;
Subscriber units subscribe to the first terminal and described that request is sent according to described for receiving the server
The video data of two terminals publication, and the video counts of the first terminal described in same interface display and second terminal publication
According to.
Optionally, third receiving unit, specifically for when server determine first terminal as candidate terminal at least
At least one the described candidate terminal for meeting the prerequisite filtered out in one second terminal is used as even wheat terminal,
And according to it is described even wheat terminal it is corresponding finally connect wheat instruction and it is described even wheat invite instruction, by the first terminal and the company
Wheat terminal is established after even wheat session connection, and the video counts for subscribing to first terminal and second terminal publication that server is sent are received
According to notice, and to the server return subscribe to request.
A kind of stream medium data interactive system provided in an embodiment of the present invention, comprising:
Server as mentioned in the embodiments of the present invention described in any one, it is as mentioned in the embodiments of the present invention any one
First terminal, any one second terminal as mentioned in the embodiments of the present invention;
The first terminal is connected by the server via communication network with the second terminal.
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 system provided in an embodiment of the present invention, wherein stream matchmaker
Volume data exchange method includes: that the company wheat for the predefined instruction form for getting first terminal transmission invites instruction, and will connect wheat
Instruction is invited to be sent to second terminal;Get second terminal return with even wheat invite instruction it is corresponding, and with predefined finger
Enable the consistent even wheat replying instruction of form;Instruction is invited according to even wheat and even wheat replying instruction is that first terminal and second terminal are built
Li Lianmai session connection.In the present embodiment, referred to by getting the company wheat of predefined instruction form of first terminal transmission and inviting
It enables, and invites instruction to be sent to second terminal even wheat, then get second terminal return invites instruction opposite with even wheat
Answer, and with predefined instruction form it is consistent even wheat replying instruction, finally according to even wheat invite instruction and even wheat replying instruction be
First terminal and second terminal are established after even wheat session connection, and the company of the predefined instruction form based on consistent form is realized
The link communication channel that wheat invites instruction and even wheat replying instruction is established, the stream medium data carried out between multiple types terminal are handed over
Mutually, it solves current video and connects wheat and have been provided with interactivity more abundant, however current network video connects wheat interaction always
There are terminal type isolation, and e.g., the end PC cannot connect wheat with mobile phone terminal progress video and interact problem, just because of the office of terminal type
Sex-limited factor, the inadequate technical problem of caused interactive experience.
Further, it is candidate terminal by second terminal, then carries out by first terminal the time for meeting the prerequisite
It selects the screening of terminal as even wheat terminal, improves the beneficial effect of stream medium data interactivity.
Specific embodiment
A kind of stream medium data exchange method, terminal, server and system provided in an embodiment of the present invention solve at present
Video connect wheat and have been provided with interactivity more abundant, however current network video connect wheat interaction exist always terminal type every
From e.g., the end PC cannot connect wheat with mobile phone terminal progress video and interact problem, just because of the limitation sexual factor of terminal type, cause
The inadequate technical problem of interactive experience.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention
Range.
Referring to Fig. 1, a kind of one embodiment of stream medium data exchange method provided in an embodiment of the present invention includes:
101, the company wheat for getting the predefined instruction form of first terminal transmission invites instruction, and even will invite instruction by wheat
It is sent to second terminal;
In the present embodiment, when stream medium data interaction between different types of terminals, such as the end PC and multiple mobile terminals
Progress Lian Maishi, it is necessary first to which the company wheat for getting the predefined instruction form of first terminal transmission invites instruction, and will connect wheat
Instruction is invited to be sent to second terminal.
102, get second terminal return invites instruction corresponding and consistent with predefined instruction form with even wheat
Even wheat replying instruction;
It invites and instructs when the company wheat for the predefined instruction form for getting first terminal transmission, and even instruction will be invited to send out by wheat
It send to second terminal, need to get second terminal return invites instruction corresponding with even wheat, and and predefined instruction
The consistent even wheat replying instruction of form.
103, instruction is invited according to even wheat and even wheat replying instruction is that first terminal and second terminal are established even wheat session and connected
It connects.
When get second terminal return with even wheat invite instruction it is corresponding, and with the consistent company of predefined instruction form
After wheat replying instruction, needs to invite instruction according to even wheat and even wheat replying instruction is that first terminal and second terminal establish even wheat
Session connection.
In the present embodiment, instruction is invited by getting the company wheat of predefined instruction form of first terminal transmission, and will
Even wheat invites instruction to be sent to second terminal, and then get second terminal return invites instruction corresponding with even wheat, and with
The consistent even wheat replying instruction of predefined instruction form finally invites instruction according to even wheat and even wheat replying instruction is first terminal
After establishing even wheat session connection with second terminal, the company wheat for realizing the predefined instruction form based on consistent form, which is invited, to be referred to
The link communication channel that wheat replying instruction is established is enabled and connected, the stream medium data interaction between multiple types terminal is carried out, solves
Current video connects wheat and has been provided with interactivity more abundant, however current network video connects wheat interaction and there is terminal always
Type of isolation, e.g., the end PC cannot carry out video with mobile phone terminal and connect wheat and interact problem, just because of terminal type limitation because
Element, the inadequate technical problem of caused interactive experience.
The above is that the process of streaming media data interactive method is described in detail, and will be carried out below to detailed process in detail
Thin description, referring to Fig. 2, a kind of another embodiment packet of stream medium data exchange method provided in an embodiment of the present invention
It includes:
201, the company wheat for getting the predefined instruction form of first terminal transmission invites instruction, and even will invite instruction by wheat
At least one second terminal is notified with the forms of broadcasting;
In the present embodiment, when stream medium data interaction between different types of terminals, such as the end PC and multiple mobile terminals
Progress Lian Maishi, it is necessary first to which the company wheat for getting the predefined instruction form of first terminal transmission invites instruction, and will connect wheat
Instruction is invited to notify at least one second terminal with the forms of broadcasting.
202, get at least one second terminal return with even wheat invite instruction it is corresponding, and with predefined instruction shape
Formula consistent at least one connects wheat replying instruction;
When get first terminal transmission predefined instruction form company wheat invite instruction, and will even wheat invite instruction with
After the forms of broadcasting notify at least one second terminal, needs to get inviting with even wheat at least one second terminal return and refer to
Enable it is corresponding, and with predefined instruction form it is consistent at least one connect wheat replying instruction.
203, even wheat replying instruction is forwarded to first terminal, and gets first terminal at least one second terminal
What is filtered out finally connects at least one second terminal of wheat;
When get at least one second terminal return with even wheat invite instruction it is corresponding, and with predefined instruction form
After consistent at least one connects wheat replying instruction, needs to connect wheat replying instruction and be forwarded to first terminal, and get first
Terminal can be at least one second terminal for finally connecting wheat filtered out at least one second terminal according to prerequisite,
It is consistent with predefined instruction form finally to connect wheat instruction.
204, instruction is invited according to even wheat and even wheat replying instruction is that first terminal and second terminal are established even wheat session and connected
It connects.
It is forwarded to first terminal when wheat replying instruction will be connected, and gets first terminal according to prerequisite at least one
After at least one second terminal for finally connecting wheat filtered out in second terminal, needs to invite instruction according to even wheat and even wheat returns
Multiple instruction is that first terminal and second terminal establish even wheat session connection.
In the present embodiment, predefined instruction form is binary instruction form or text message form, such as text message
Format is defined as follows:
In the present embodiment, instruction is invited by getting the company wheat of predefined instruction form of first terminal transmission, and will
Even wheat invites instruction to be sent to second terminal, and then get second terminal return invites instruction corresponding with even wheat, and with
The consistent even wheat replying instruction of predefined instruction form finally invites instruction according to even wheat and even wheat replying instruction is first terminal
After establishing even wheat session connection with second terminal, the company wheat for realizing the predefined instruction form based on consistent form, which is invited, to be referred to
The link communication channel that wheat replying instruction is established is enabled and connected, the stream medium data interaction between multiple types terminal is carried out, solves
Current video connects wheat and has been provided with interactivity more abundant, however current network video connects wheat interaction and there is terminal always
Type of isolation, e.g., the end PC cannot carry out video with mobile phone terminal and connect wheat and interact problem, just because of terminal type limitation because
Element, the inadequate technical problem of caused interactive experience.
The above is that the process of streaming media data interactive method is described in detail, below will be to will connect wheat replying instruction
It is forwarded to first terminal, and gets at least one for finally connecting wheat that first terminal filters out at least one second terminal
The detailed process of second terminal is described in detail, referring to Fig. 3, a kind of stream medium data provided in an embodiment of the present invention is handed over
Mutually another embodiment of method includes:
301, the company wheat for getting the predefined instruction form of first terminal transmission invites instruction, and even will invite instruction by wheat
At least one second terminal is notified with the forms of broadcasting;
In the present embodiment, when stream medium data interaction between different types of terminals, such as the end PC and multiple mobile terminals
Progress Lian Maishi, it is necessary first to which the company wheat for getting the predefined instruction form of first terminal transmission invites instruction, and will connect wheat
Instruction is invited to notify at least one second terminal with the forms of broadcasting.
302, get at least one second terminal return with even wheat invite instruction it is corresponding, and with predefined instruction shape
Formula consistent at least one receives company's wheat replying instruction that even wheat is invited;
When get first terminal transmission predefined instruction form company wheat invite instruction, and will even wheat invite instruction with
After the forms of broadcasting notify at least one second terminal, needs to get inviting with even wheat at least one second terminal return and refer to
Enable it is corresponding, and with predefined instruction form it is consistent at least one receive even wheat invite company's wheat replying instruction.
303, the corresponding second terminal of the company's of determination wheat replying instruction is candidate terminal;
When get at least one second terminal return with even wheat invite instruction it is corresponding, and with predefined instruction form
After consistent at least one receiving company's wheat replying instruction that even wheat is invited, it is thus necessary to determine that even wheat replying instruction corresponding second
Terminal is candidate terminal.
304, company's wheat replying instruction of candidate terminal is forwarded to first terminal;
After the corresponding second terminal of the company's of determination wheat replying instruction is candidate terminal, need the company wheat of candidate terminal
Replying instruction is forwarded to first terminal.
305, it is corresponding most to get at least one candidate terminal for meeting prerequisite filtered out by first terminal
Connect Mai Zhiling eventually, and determines that candidate terminal is to connect wheat terminal;
After company's wheat replying instruction of candidate terminal is forwarded to first terminal, needs to get and be sieved by first terminal
At least one candidate terminal for meeting prerequisite selected is corresponding finally to connect Mai Zhiling, and determines that candidate terminal is that even wheat is whole
End.
306, it is corresponding most to get at least one candidate terminal for meeting prerequisite filtered out by first terminal
Connect Mai Zhiling eventually, and determines that candidate terminal is to connect wheat terminal.
It is corresponding final when getting at least one candidate terminal for meeting prerequisite for filtering out by first terminal
Even Mai Zhiling, and determine that candidate terminal is to need to invite instruction according to even wheat and finally connect Mai Zhiling even after wheat terminal is the
One terminal and Lian Mai terminal establish even wheat session connection.
In the present embodiment, predefined instruction form is binary instruction form or text message form, such as text message
Format is defined as follows:
In the present embodiment, instruction is invited by getting the company wheat of predefined instruction form of first terminal transmission, and will
Even wheat invites instruction to be sent to second terminal, and then get second terminal return invites instruction corresponding with even wheat, and with
The consistent even wheat replying instruction of predefined instruction form finally invites instruction according to even wheat and even wheat replying instruction is first terminal
After establishing even wheat session connection with second terminal, the company wheat for realizing the predefined instruction form based on consistent form, which is invited, to be referred to
The link communication channel that wheat replying instruction is established is enabled and connected, the stream medium data interaction between multiple types terminal is carried out, solves
Current video connects wheat and has been provided with interactivity more abundant, however current network video connects wheat interaction and there is terminal always
Type of isolation, e.g., the end PC cannot carry out video with mobile phone terminal and connect wheat and interact problem, just because of terminal type limitation because
Element, the inadequate technical problem of caused interactive experience.
The above is to be forwarded to first terminal to will connect wheat replying instruction, and get first terminal according to prerequisite extremely
The detailed process of at least one second terminal for finally connecting wheat filtered out in a few second terminal is described in detail, under
Subsequent additional process will be described in detail in face, referring to Fig. 4, a kind of stream medium data provided in an embodiment of the present invention
Another embodiment of exchange method includes:
401, the company wheat for getting the predefined instruction form of first terminal transmission invites instruction, and even will invite instruction by wheat
At least one second terminal is notified with the forms of broadcasting;
In the present embodiment, when stream medium data interaction between different types of terminals, such as the end PC and multiple mobile terminals
Progress Lian Maishi, it is necessary first to which the company wheat for getting the predefined instruction form of first terminal transmission invites instruction, and will connect wheat
Instruction is invited to notify at least one second terminal with the forms of broadcasting.
402, get at least one second terminal return with even wheat invite instruction it is corresponding, and with predefined instruction shape
Formula consistent at least one receives company's wheat replying instruction that even wheat is invited;
When get first terminal transmission predefined instruction form company wheat invite instruction, and will even wheat invite instruction with
After the forms of broadcasting notify at least one second terminal, needs to get inviting with even wheat at least one second terminal return and refer to
Enable it is corresponding, and with predefined instruction form it is consistent at least one receive even wheat invite company's wheat replying instruction.
403, the corresponding second terminal of the company's of determination wheat replying instruction is candidate terminal;
When get at least one second terminal return with even wheat invite instruction it is corresponding, and with predefined instruction form
After consistent at least one receiving company's wheat replying instruction that even wheat is invited, it is thus necessary to determine that even wheat replying instruction corresponding second
Terminal is candidate terminal.
404, company's wheat replying instruction of candidate terminal is forwarded to first terminal;
After the corresponding second terminal of the company's of determination wheat replying instruction is candidate terminal, need the company wheat of candidate terminal
Replying instruction is forwarded to first terminal.
405, it is corresponding most to get at least one candidate terminal for meeting prerequisite filtered out by first terminal
Connect Mai Zhiling eventually, and determines that candidate terminal is to connect wheat terminal;
After company's wheat replying instruction of candidate terminal is forwarded to first terminal, needs to get and be sieved by first terminal
At least one candidate terminal for meeting prerequisite selected is corresponding finally to connect Mai Zhiling, and determines that candidate terminal is that even wheat is whole
End.
406, it is corresponding most to get at least one candidate terminal for meeting prerequisite filtered out by first terminal
Connect Mai Zhiling eventually, and determines that candidate terminal is to connect wheat terminal;
It is corresponding final when getting at least one candidate terminal for meeting prerequisite for filtering out by first terminal
Even Mai Zhiling, and determine that candidate terminal is to need to invite instruction according to even wheat and finally connect Mai Zhiling even after wheat terminal is the
One terminal and Lian Mai terminal establish even wheat session connection.
In the present embodiment, predefined instruction form is binary instruction form or text message form, such as text message
Format is defined as follows:
407, the video data of first terminal and second terminal publication is received, and corresponds to and is shown in second terminal and first eventually
The same window interface at end;
It is corresponding final when getting at least one candidate terminal for meeting prerequisite for filtering out by first terminal
Even Mai Zhiling, and determine that candidate terminal is to need to receive the video counts of first terminal and second terminal publication after connecting wheat terminal
According to, and the corresponding the same window interface for being shown in second terminal and first terminal.
408, the notice for subscribing to the video data of first terminal and second terminal publication is sent at least one third terminal,
And receive the subscription request of third terminal return;
When the video data for receiving first terminal and second terminal publication, and correspondence is shown in second terminal and first terminal
The same window interface after, need to send the video subscribing to first terminal and second terminal and issuing at least one third terminal
The notice of data, and receive the subscription request of third terminal return.
409, the video data that first terminal and second terminal are issued is sent to third terminal according to subscribing to request, by the
The video data that three terminals are issued in the same window interface display first terminal and second terminal.
When the notice for the video data for sending subscription first terminal and second terminal publication at least one third terminal, and
After receiving the subscription request that third terminal returns, need the video for first terminal and second terminal being issued according to request is subscribed to
Data are sent to third terminal, the video counts issued by third terminal in the same window interface display first terminal and second terminal
According to.
As shown in figure 17, first terminal send even wheat invite after, how between different types of terminal establish even wheat
The application examples of connection includes:
The method of the present embodiment is applied in double/more people's exchange class product of net cast first, such as YY voice.Break end
End limitation, needs to design different company's wheat logic and more playing methods according to scene.Pc user initiates Lian Maihou in plug-in unit, straight at this
APP user between broadcasting can the company of receiving wheat remind, click the user for robbing wheat and successfully connecting at first, can be carried out with mobile phone user
Video connects wheat.
Shown in the bandwagon effect surface chart such as Figure 20 (a) of the end PC, shown in the bandwagon effect such as Figure 20 (a) of the end APP.The end PC and APP
End can the company of disconnection wheat.The end APP can switch big small video by clicking video.
First terminal, second terminal or third terminal type in the present embodiment include PC computer, smart phone, plate electricity
Brain and the wearable device for supporting video playing and acquisition.
1. video is unidirectionally issued and is interacted with spectators' text
Main broadcaster starts broadcasting video identifier ID (here, being defined as a channel) to signaling control server, acquisition;
Main broadcaster issues video and flows 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 in text information to channel;
Main broadcaster and other spectators obtain text information;
Main broadcaster passes through the text information of video image and sound feedback spectators.
2. video connects wheat process and two-way video interaction
Main broadcaster starts broadcasting into unidirectional publication video mode;
Spectators enter in the channel that main broadcaster starts broadcasting, viewing main broadcaster's live streaming;
Main broadcaster initiates even wheat request to signaling control server;
The authentication instruction of signaling control server, broadcasts each spectators in notification channel;
Spectators, which invite even wheat to respond, operates and is sent to signaling control server, and spectators, which receive to invite, becomes even wheat
Candidate, refusal, which is invited, keeps audience status;
The filtering of signaling control server receives the spectators that even wheat is invited and notifies main broadcaster;
Main broadcaster obtains the spectators of even wheat;
Signaling control server broadcasts all users's (including spectators and candidate) in notification channel, is selected candidate letter
Breath;
Selected candidate, which becomes, is invited to main broadcaster, and not selected candidate becomes spectators;
It is invited to main broadcaster and issues video to video stream server, spectators subscribe to and are invited to main broadcaster's video flowing;
It main broadcaster and is invited to main broadcaster interaction is interacted by video, spectators' viewing video or by text and main broadcaster and be invited to
Main broadcaster interacts.
3. cross-terminal type connects wheat instruction control transmission method
Main broadcaster can pass through PC computer, smart phone, tablet computer and support video playing and acquisition as user
Equipment log on to signaling control server.Different terminal equipment is connected to internet by network controller, i.e. difference is set
The link channel that can transmit data-message is established between standby, such as TCP connection link.Even wheat control instruction passes through the data
Link carries out data exchange, and to reach adaptation and simplifying the processing of control logic between different types of terminal device, even wheat refers to
Control is enabled to be communicated by unified text message type and format.
The above-mentioned main broadcaster referred to is first terminal, and spectators are second terminal, and as shown in figure 18, there are three kinds of state angles by spectators
The conversion of color: spectators role, candidate role and being invited to main broadcaster role, other candidates role be even in wheat establishment process one
A intermediate role.
As shown in figure 19, the effect of server is as follows:
The even effect of wheat instruction control server:
Distributing user unique identification uid, control and distribution main broadcaster start broadcasting and identify ID (channel), and filtering screening connects Mai Houxuan
Person, notice connect wheat invitee information to spectators
The effect of video distribution server:
Receive main broadcaster and be invited to the video flowing of main broadcaster's publication, pushing video stream gives the spectators subscribed to, with same terminal type
The even difference of wheat interaction defines unified text message type and format to simplify processing of the different terminals type to even wheat instruction
Logic.
Even wheat instruction control server above-mentioned and video distribution server can be the server referred in the present embodiment
An integration or multiple, only server has the function of the above-mentioned instruction of company wheat control server and video distribution server
Can, the specific structure of server will be described in detail in subsequent embodiment.
There is no limit can be any equipment packet for supporting video playing and acquisition with the terminal device that main broadcaster and spectators use
Include PC computer, smart phone, tablet computer and other intelligent wearable devices.
Main broadcaster initiates to be not necessarily to specified invitee before even wheat is invited, and invitee also can be multiple for one.
Preferably, in order to the user for making second terminal side can freely choose whether between the user of first terminal side into
Row even wheat session, method provided in this embodiment will also provide reply response option.The user of second terminal side can be second eventually
After the video that termination receives server transmission connects wheat session invitation, chosen whether and first terminal side by replying response option
The company's of progress wheat session between user.Wherein, option including but not limited to " receiving ", " refusal " etc. are replied.Specifically, if second is whole
The user of end side wants that video is established between the user of first terminal side connects wheat session, then the user of second terminal side can pass through mouse
Punctuate the operations such as hits and chooses " reception " option;If the user of second terminal side is not desired to establish view between the user of first terminal side
Frequency connects wheat session, then the user of second terminal side can choose " refusal " option by operations such as mouse clicks.Second terminal passes through
The selected operation of detection option receives response to determine whether that server returns.
Under more people's video modes, in order to make the user of first terminal side freely choose whether to continue and second terminal side
User carry out even wheat session, method provided by the embodiment will also will also provide " cancel even wheat " choosing under more people's video modes
?.After first terminal side user, which the operations such as clicks by mouse, chooses " cancel even wheat " option, first terminal " is taken detecting
Disappear even wheat " after option is selected, it can be sent according to the operation detected to server and cancel even Mai Tongzhi.
Prerequisite in the present embodiment can be the corresponding rank of uid according to the user of second terminal, permission etc.
It is screened, can be the customized of first terminal, herein specifically without limitation.
In the present embodiment, instruction is invited by getting the company wheat of predefined instruction form of first terminal transmission, and will
Even wheat invites instruction to be sent to second terminal, and then get second terminal return invites instruction corresponding with even wheat, and with
The consistent even wheat replying instruction of predefined instruction form finally invites instruction according to even wheat and even wheat replying instruction is first terminal
After establishing even wheat session connection with second terminal, the company wheat for realizing the predefined instruction form based on consistent form, which is invited, to be referred to
The link communication channel that wheat replying instruction is established is enabled and connected, the stream medium data interaction between multiple types terminal is carried out, solves
Current video connects wheat and has been provided with interactivity more abundant, however current network video connects wheat interaction and there is terminal always
Type of isolation, e.g., the end PC cannot carry out video with mobile phone terminal and connect wheat and interact problem, just because of terminal type limitation because
Element, the inadequate technical problem of caused interactive experience.
It further, is candidate terminal by second terminal, then whole by the candidate that first terminal meet prerequisite
The screening at end improves the beneficial effect of stream medium data interactivity as even wheat terminal.
Referring to Fig. 5, one embodiment of another kind stream medium data exchange method provided in an embodiment of the present invention includes:
501, the company wheat of the predefined instruction form sent invites instruction to server, refers to so that server invites even wheat
Order is sent to second terminal;
In the present embodiment, when stream medium data interaction between different types of terminals, such as the end PC and multiple mobile terminals
Carry out Lian Maishi, it is necessary first to which the company wheat of the predefined instruction form of transmission invites instruction to server, so that server will even
Wheat invites instruction to be sent to second terminal.
502, get server forwarding by second terminal return with even wheat invite instruction it is corresponding, and with predefine
The consistent even wheat replying instruction of instruction type;
When the company wheat of the predefined instruction form of transmission invites instruction to server, so that server even will invite instruction by wheat
It is sent to after second terminal, it is opposite with even wheat invitation instruction to need to get being returned by second terminal for server forwarding
Answer, and with predefined instruction form it is consistent even wheat replying instruction.
503, instruction and even wheat replying instruction and second terminal is invited to establish even wheat session connection according to even wheat.
When get server forwarding by second terminal return with even wheat invite instruction it is corresponding, and with predefined finger
After enabling the consistent even wheat replying instruction of form, need to invite instruction and even wheat replying instruction and second terminal to establish according to even wheat
Even wheat session connection.
In the present embodiment, invite instruction to server by the company wheat of the predefined instruction form of transmission, so that server
It invites instruction to be sent to second terminal even wheat, then gets the inviting with even wheat by second terminal return of server forwarding
Instruct it is corresponding, and with predefined instruction form it is consistent even wheat replying instruction, finally according to even wheat invite instruction and even wheat return
After multiple instruction establishes even wheat session connection with second terminal, the company wheat of the predefined instruction form based on consistent form is realized
Instruction and even the link communication channel of wheat replying instruction foundation are invited, the stream medium data carried out between multiple types terminal is handed over
Mutually, it solves current video and connects wheat and have been provided with interactivity more abundant, however current network video connects wheat interaction always
There are terminal type isolation, and e.g., the end PC cannot connect wheat with mobile phone terminal progress video and interact problem, just because of the office of terminal type
Sex-limited factor, the inadequate technical problem of caused interactive experience.
The above is the description carried out to the process of another stream medium data exchange method, will be turned below to server is got
Hair by second terminal return with even wheat invite instruction it is corresponding, and with predefined instruction form it is consistent connect wheat replying instruction
Process be described in detail, referring to Fig. 6, another kind stream medium data exchange method provided in an embodiment of the present invention is another
One embodiment includes:
601, the company wheat of the predefined instruction form sent invites instruction to server, refers to so that server invites even wheat
Order is sent to second terminal;
In the present embodiment, when stream medium data interaction between different types of terminals, such as the end PC and multiple mobile terminals
Carry out Lian Maishi, it is necessary first to which the company wheat of the predefined instruction form of transmission invites instruction to server, so that server will even
Wheat invites instruction to be sent to second terminal.
602, it is corresponding with even wheat invitation instruction to get being returned by least one second terminal for server forwarding, and
Receive company's wheat replying instruction that even wheat is invited with predefined instruction form consistent at least one, so that the company's of determination wheat replying instruction
Corresponding second terminal is candidate terminal;
When the company wheat of the predefined instruction form of transmission invites instruction to server, so that server even will invite instruction by wheat
Be sent to after second terminal, need to get server forwarding returned by least one second terminal with even wheat invite refer to
Enable it is corresponding, and with predefined instruction form it is consistent at least one receive even wheat invite company's wheat replying instruction so that determine
Even the corresponding second terminal of wheat replying instruction is candidate terminal.
603, at least one candidate terminal for meeting prerequisite filtered out is corresponding finally to connect Mai Zhiling, and is sent to
Server, so that server determines that the candidate terminal for meeting prerequisite is even wheat terminal;
When getting, being returned by least one second terminal for server forwarding is corresponding with even wheat invitation instruction, and with
Predefined instruction form consistent at least one receives company's wheat replying instruction that even wheat is invited, so that the company's of determination wheat replying instruction phase
Corresponding second terminal is after candidate terminal, at least one candidate terminal for meeting prerequisite for needing to filter out is corresponding
Finally connect Mai Zhiling, and be sent to server, so that server determines that the candidate terminal for meeting prerequisite is even wheat terminal.
604, instruction and even wheat replying instruction and second terminal is invited to establish even wheat session connection according to even wheat.
Finally connect Mai Zhiling when at least one candidate terminal for meeting prerequisite filtered out is corresponding, and is sent to clothes
Business device, so that needing after server determines the candidate terminal for meeting prerequisite for even wheat terminal according to even wheat invitation instruction
Even wheat session connection is established with even wheat replying instruction and second terminal.
It is above-mentioned to establish even wheat session connection with second terminal to establish even wheat session connection with even wheat terminal.
In the present embodiment, invite instruction to server by the company wheat of the predefined instruction form of transmission, so that server
It invites instruction to be sent to second terminal even wheat, then gets the inviting with even wheat by second terminal return of server forwarding
Instruct it is corresponding, and with predefined instruction form it is consistent even wheat replying instruction, finally according to even wheat invite instruction and even wheat return
After multiple instruction establishes even wheat session connection with second terminal, the company wheat of the predefined instruction form based on consistent form is realized
Instruction and even the link communication channel of wheat replying instruction foundation are invited, the stream medium data carried out between multiple types terminal is handed over
Mutually, it solves current video and connects wheat and have been provided with interactivity more abundant, however current network video connects wheat interaction always
There are terminal type isolation, and e.g., the end PC cannot connect wheat with mobile phone terminal progress video and interact problem, just because of the office of terminal type
Sex-limited factor, the inadequate technical problem of caused interactive experience.
It further, is candidate terminal by second terminal, then whole by the candidate that first terminal meet prerequisite
The screening at end improves the beneficial effect of stream medium data interactivity as even wheat terminal.
Referring to Fig. 7, one embodiment of another kind stream medium data exchange method provided in an embodiment of the present invention includes:
701, the company wheat for getting the predefined instruction form sent by the first terminal of server forwarding invites instruction;
In the present embodiment, when stream medium data interaction between different types of terminals, such as the end PC and multiple mobile terminals
Carry out Lian Maishi, it is necessary first to which the company wheat for getting the predefined instruction form sent by the first terminal of server forwarding is invited
Instruction.
702, instruction will be invited corresponding and with the consistent even wheat replying instruction of predefined instruction form via clothes with even wheat
Business device is forwarded to first terminal;
After the company wheat for getting the predefined instruction form sent by the first terminal of server forwarding invites instruction,
It needs instruction will be invited corresponding with even wheat and be forwarded with the consistent even wheat replying instruction of predefined instruction form via server
To first terminal.
It should be noted that it is above-mentioned will with even wheat invite instruction it is corresponding and with predefined instruction form it is consistent company wheat
Replying instruction is forwarded to first terminal via server, can be as candidate terminal will with even wheat invite instruction it is corresponding and with
The consistent even wheat replying instruction of predefined instruction form is forwarded to first terminal via server, so that when first terminal filters out
At least one candidate terminal for meeting prerequisite it is corresponding finally connect Mai Zhiling, and be sent to server determine meet it is preset
The candidate terminal of condition is to connect wheat terminal.
703, instruction and even wheat replying instruction and first terminal is invited to establish even wheat session connection according to even wheat.
When will with even wheat invite instruction it is corresponding and with predefined instruction form it is consistent company wheat replying instruction via service
Device is forwarded to after first terminal, needs to invite instruction and even wheat replying instruction and first terminal to establish even wheat session according to even wheat
Connection.
In the present embodiment, by the company wheat for getting the predefined instruction form sent by the first terminal of server forwarding
Instruction is invited, then instruction will be invited corresponding and with the consistent even wheat replying instruction of predefined instruction form via clothes with even wheat
Business device is forwarded to first terminal, finally invites instruction and even wheat replying instruction and first terminal to establish even wheat session according to even wheat and connects
After connecing, the company wheat for realizing the predefined instruction form based on consistent form invites instruction and the even chain of wheat replying instruction foundation
Road communication channel carries out the stream medium data interaction between multiple types terminal, solves current video and connects wheat and has been provided with
Interactivity more abundant, however current network video connects wheat interaction and there is terminal type isolation always, e.g., the end PC cannot be with hand
Generator terminal carries out video and connects wheat interaction problem, just because of the limitation sexual factor of terminal type, the inadequate skill of caused interactive experience
Art problem.
It further, is candidate terminal by second terminal, then whole by the candidate that first terminal meet prerequisite
The screening at end improves the beneficial effect of stream medium data interactivity as even wheat terminal.
Referring to Fig. 8, a kind of one embodiment of the stream medium data exchange method provided in the embodiment of the present invention includes:
801, when first terminal and second terminal by the corresponding even wheat of consistent predefined instruction form invite instruction and
Even wheat replying instruction is established even after wheat session connection, and receive that server sends subscribes to first terminal and second terminal publication
The notice of video data, and returned to server and subscribe to request;
In the present embodiment, when spectators need to subscribe to the video data between different types of terminals under stream medium data interaction
When, such as when the end PC and multiple mobile terminals carry out even wheat video, first terminal and second terminal pass through consistent predetermined first
The corresponding even wheat of adopted instruction type invites instruction and even wheat replying instruction is established after even wheat session connection, receives server and sends
Subscribe to first terminal and second terminal publication video data notice, and to server return subscribe to request.
It wherein, may further be when server determines first terminal at least one second terminal as candidate terminal
In at least one candidate terminal for meeting prerequisite for filtering out as even wheat terminal, and it is corresponding final according to even wheat terminal
Even wheat instruction and even wheat invitation instruction after first terminal and Lian Mai terminal are established even wheat session connection, receive server and send out
That send subscribes to the notice of the video data of first terminal and second terminal publication, and returns to server and subscribe to request.
802, server is received according to the video data for subscribing to the first terminal that request is sent and second terminal publication, and
The video data of same interface display first terminal and second terminal publication.
First terminal and second terminal invite instruction and connect wheat by the corresponding even wheat of consistent predefined instruction form returns
Multiple instruction is established after even wheat session connection, and the video counts for subscribing to first terminal and second terminal publication that server is sent are received
According to notice, and to server return subscribe to request after, need to receive server according to subscribe to request send first terminal
The video data issued with second terminal, and the video data issued in same interface display first terminal and second terminal.
The present embodiment does not limit specifically, is including but not limited to issued first terminal and second terminal by network
The notice of video data is sent at least one third terminal by forms such as mail, advertisements.Wherein, server at least one
It includes but is not limited to first whole that third terminal, which sends and subscribes to the content of announcement of the video data of first terminal and second terminal publication,
Brief introduction, issuing time, the duration of video of video etc. at end and second terminal publication, the present embodiment is not to server at least one
The content of announcement that a third terminal sends the video data of subscription first terminal and second terminal publication is defined, third terminal
It is logical by what is received after receiving the notice for the video data for subscribing to first terminal and second terminal publication of server transmission
Know the user for being presented to third terminal side, and provides subscription option for user.Wherein, third terminal is the subscription choosing that user provides
Item includes but is not limited to " video data for subscribing to first terminal and second terminal publication ", " subscribes to the video that first terminal is issued
Data " etc..It chooses if the user of third terminal side by mouse the operations such as clicks and " subscribes to what first terminal and second terminal were issued
Video data " option, third terminal are detecting that " video data for subscribing to first terminal and second terminal publication " option is selected
In after, the request for subscribing to the video data that first terminal and second terminal are issued will be returned to server.
Certainly, in addition to the video data of subscription first terminal and second terminal publication, third terminal can also subscribe to first eventually
The video data of publication, the video data of second terminal publication are held, any video data can not also be subscribed to.Specifically, if third
The user of terminal side chooses " video data for subscribing to first terminal publication " option by operations such as mouse clicks, and third terminal exists
After detecting that " video data for subscribing to first terminal publication " option is selected, it will be returned to server and subscribe to first terminal publication
Video data request;If the user of third terminal side is chosen by operations such as mouse clicks and " subscribes to what second terminal was issued
Video data " option, third terminal, will be to clothes after detecting that " video data for subscribing to second terminal publication " option is selected
Business device returns to the request for subscribing to the video data of second terminal publication;If subscription is not detected in third terminal, option is selected,
Request is subscribed to without returning to server, can directly ignore the subscribing notification.
In the present embodiment, when first terminal and second terminal pass through the corresponding even wheat invitation of consistent predefined instruction form
Instruction and even wheat replying instruction are established after even wheat session connection, and subscription first terminal and second terminal that server is sent are received
The notice of the video data of publication, and returned to server and subscribe to request, finally receive what server was sent according to subscription request
The video data of first terminal and second terminal publication, and the video issued in same interface display first terminal and second terminal
Data realize the Streaming Media that spectators subscribe to the different types of first terminal in live streaming and company's wheat video between second terminal
The live streaming of the real-time, interactive of data greatly increases user experience during even wheat video.
Referring to Fig. 9, a kind of one embodiment of server as mentioned in the embodiments of the present invention includes:
First acquisition unit 901 invites instruction for getting the company wheat of predefined instruction form of first terminal transmission,
And instruction is invited to be sent to second terminal even wheat;
Second acquisition unit 902, for get second terminal return with even wheat invite instruction it is corresponding, and with make a reservation for
The consistent even wheat replying instruction of adopted instruction type;
First connection unit 903, for wheat to invite instruction and even wheat replying instruction is that first terminal and second are whole according to connecting
Even wheat session connection is established at end.
In the present embodiment, the company of the predefined instruction form of first terminal transmission is got by first acquisition unit 901
Wheat invites instruction, and invites instruction to be sent to second terminal even wheat, and then second acquisition unit 902 gets second terminal and returns
Return with even wheat invite instruction it is corresponding, and with predefined instruction form it is consistent even wheat replying instruction, it is last first connection list
Member 903 is that first terminal and second terminal are established after connecting wheat session connection according to even wheat invitation instruction and even wheat replying instruction,
The link communication that the company wheat for realizing the predefined instruction form based on consistent form invites instruction and even wheat replying instruction is established
Channel, carry out multiple types terminal between stream medium data interaction, solve current video connect wheat have been provided with it is more rich
Rich interactivity, however current network video connects wheat interaction and there is terminal type isolation always, e.g., the end PC cannot with mobile phone terminal into
Row video connects wheat interaction problem, just because of the limitation sexual factor of terminal type, the inadequate technical problem of caused interactive experience.
The above is that each unit of server is described in detail, and sub-unit and module are carried out detailed retouch below
It states, referring to Fig. 10, a kind of another embodiment of server as mentioned in the embodiments of the present invention includes:
First acquisition unit 1001 refers to for getting the company wheat of predefined instruction form of first terminal transmission and inviting
It enables, and invites instruction to be sent to second terminal even wheat, first acquisition unit 1001 is sent specifically for getting first terminal
Predefined instruction form company wheat invite instruction, and will even wheat invite instruction with the forms of broadcasting notify at least one second eventually
End.
Second acquisition unit 1002, for get second terminal return with even wheat invite instruction it is corresponding, and with it is pre-
Define the consistent even wheat replying instruction of instruction type;
Second acquisition unit 1002 specifically includes:
First obtains subelement 10021, instructs phase for getting inviting with even wheat at least one second terminal return
It is corresponding, and connect wheat replying instruction with predefined instruction form consistent at least one;
First acquisition subelement 10021 specifically includes:
First obtains module 10021a, for getting the opposite with even wheat invitation instruction of at least one second terminal return
It answers, and receives company's wheat replying instruction that even wheat is invited with predefined instruction form consistent at least one;
First determining module 10021b is candidate terminal for the corresponding second terminal of the company's of determination wheat replying instruction.
First forwarding obtains subelement 10022, is forwarded to first terminal for that will connect wheat replying instruction, and get first
At least one second terminal for finally connecting wheat that terminal filters out at least one second terminal according to prerequisite, finally connects
Wheat instruction is consistent with predefined instruction form.
First forwarding obtains subelement 10022 and specifically includes:
Forwarding module 10022a, for company's wheat replying instruction of candidate terminal to be forwarded to first terminal;
Determining module 10022b is obtained, for getting meet prerequisite at least one filtered out by first terminal
A candidate terminal is corresponding finally to connect Mai Zhiling, and determines that candidate terminal is to connect wheat terminal.
First connection unit 1003, for wheat to invite instruction and even wheat replying instruction is that first terminal and second are whole according to connecting
Even wheat session connection is established at end, and the first connection unit 1003 is specifically for inviting instruction according to even wheat and finally connecting Mai Zhiling
First terminal and Lian Mai terminal establish even wheat session connection.
Predefined instruction form above-mentioned is binary instruction form or text message form.
In the present embodiment, the company of the predefined instruction form of first terminal transmission is got by first acquisition unit 1001
Wheat invites instruction, and invites instruction to be sent to second terminal even wheat, and then second acquisition unit 1002 gets second terminal
Return with even wheat invite instruction it is corresponding, and with predefined instruction form it is consistent even wheat replying instruction, it is last first connect
Unit 1003 according to even wheat invite instruction and even wheat replying instruction be first terminal and second terminal establish even wheat session connection it
Afterwards, the link that the company wheat for realizing the predefined instruction form based on consistent form invites instruction and even wheat replying instruction is established is logical
Believe channel, carry out the stream medium data interaction between multiple types terminal, solves current video and connect wheat and have been provided with more
Interactivity abundant, however current network video connects wheat interaction and there is terminal type isolation always, e.g., the end PC cannot be with mobile phone terminal
It carries out video and connects wheat interaction problem, just because of the limitation sexual factor of terminal type, the inadequate technology of caused interactive experience is asked
Topic.
It further, is candidate terminal by second terminal, then whole by the candidate that first terminal meet prerequisite
The screening at end improves the beneficial effect of stream medium data interactivity as even wheat terminal.
The above is that each subelement and module of server are described in detail, and will be carried out below to extra cell in detail
Description, please refer to Figure 11, a kind of another embodiment of server as mentioned in the embodiments of the present invention includes:
First acquisition unit 1101 refers to for getting the company wheat of predefined instruction form of first terminal transmission and inviting
It enables, and invites instruction to be sent to second terminal even wheat, first acquisition unit 1101 is sent specifically for getting first terminal
Predefined instruction form company wheat invite instruction, and will even wheat invite instruction with the forms of broadcasting notify at least one second eventually
End.
Second acquisition unit 1102, for get second terminal return with even wheat invite instruction it is corresponding, and with it is pre-
Define the consistent even wheat replying instruction of instruction type;
Second acquisition unit 1102 specifically includes:
First obtains subelement 11021, instructs phase for getting inviting with even wheat at least one second terminal return
It is corresponding, and connect wheat replying instruction with predefined instruction form consistent at least one;
First acquisition subelement 11021 specifically includes:
First obtains module 11021a, for getting the opposite with even wheat invitation instruction of at least one second terminal return
It answers, and receives company's wheat replying instruction that even wheat is invited with predefined instruction form consistent at least one;
First determining module 11021b is candidate terminal for the corresponding second terminal of the company's of determination wheat replying instruction.
First forwarding obtains subelement 11022, is forwarded to first terminal for that will connect wheat replying instruction, and get first
At least one second terminal for finally connecting wheat that terminal filters out at least one second terminal according to prerequisite, finally connects
Wheat instruction is consistent with predefined instruction form.
First forwarding obtains subelement 11022 and specifically includes:
Forwarding module 11022a, for company's wheat replying instruction of candidate terminal to be forwarded to first terminal;
Determining module 11022b is obtained, for getting meet prerequisite at least one filtered out by first terminal
A candidate terminal is corresponding finally to connect Mai Zhiling, and determines that candidate terminal is to connect wheat terminal.
First connection unit 1103, for wheat to invite instruction and even wheat replying instruction is that first terminal and second are whole according to connecting
Even wheat session connection is established at end, and the first connection unit 1003 is specifically for inviting instruction according to even wheat and finally connecting Mai Zhiling
First terminal and Lian Mai terminal establish even wheat session connection.
Predefined instruction form above-mentioned is binary instruction form or text message form.
First receiving unit 1104, for receiving the video data of first terminal and second terminal publication, and corresponding display
At the same window interface of second terminal and first terminal;
Second receiving unit 1105 subscribes to first terminal and second terminal publication for sending at least one third terminal
Video data notice, and receive third terminal return subscription request;
Transmission unit 1106 is subscribed to, the video data transmitting for issuing first terminal and second terminal according to request is subscribed to
It send to third terminal, the video data issued by third terminal in the same window interface display first terminal and second terminal.
In the present embodiment, the company of the predefined instruction form of first terminal transmission is got by first acquisition unit 1101
Wheat invites instruction, and invites instruction to be sent to second terminal even wheat, and then second acquisition unit 1102 gets second terminal
Return with even wheat invite instruction it is corresponding, and with predefined instruction form it is consistent even wheat replying instruction, it is last first connect
Unit 1103 according to even wheat invite instruction and even wheat replying instruction be first terminal and second terminal establish even wheat session connection it
Afterwards, the link that the company wheat for realizing the predefined instruction form based on consistent form invites instruction and even wheat replying instruction is established is logical
Believe channel, carry out the stream medium data interaction between multiple types terminal, solves current video and connect wheat and have been provided with more
Interactivity abundant, however current network video connects wheat interaction and there is terminal type isolation always, e.g., the end PC cannot be with mobile phone terminal
It carries out video and connects wheat interaction problem, just because of the limitation sexual factor of terminal type, the inadequate technology of caused interactive experience is asked
Topic.
It further, is candidate terminal by second terminal, then whole by the candidate that first terminal meet prerequisite
The screening at end improves the beneficial effect of stream medium data interactivity as even wheat terminal.
Figure 12 is please referred to, one embodiment of first terminal provided in an embodiment of the present invention includes:
The company wheat of first transmission unit 1201, the predefined instruction form for transmission invites instruction to server, so that
Even wheat is invited instruction to be sent to second terminal by server;
Third acquiring unit 1202, for getting being instructed by inviting with even wheat for second terminal return for server forwarding
It is corresponding, and with predefined instruction form it is consistent even wheat replying instruction;
Second connection unit 1203, for inviting instruction and even wheat replying instruction and second terminal to establish even wheat according to even wheat
Session connection.
In the present embodiment, the company wheat of the predefined instruction form sent by the first transmission unit 1201 invites instruction to clothes
Business device, so that server even will invite instruction to be sent to second terminal by wheat, then third acquiring unit 1202 gets server
Being returned by second terminal for forwarding is corresponding with even wheat invitation instruction, and replys and refer to the consistent even wheat of predefined instruction form
It enables, according to connecting, wheat invitation instructs the second last connection unit 1203 and even wheat replying instruction and second terminal foundation connect wheat session company
After connecing, the company wheat for realizing the predefined instruction form based on consistent form invites instruction and the even chain of wheat replying instruction foundation
Road communication channel carries out the stream medium data interaction between multiple types terminal, solves current video and connects wheat and has been provided with
Interactivity more abundant, however current network video connects wheat interaction and there is terminal type isolation always, e.g., the end PC cannot be with hand
Generator terminal carries out video and connects wheat interaction problem, just because of the limitation sexual factor of terminal type, the inadequate skill of caused interactive experience
Art problem.
The above is that each unit of first terminal is described in detail, and sub-unit is described in detail below,
Figure 13 is please referred to, another embodiment of first terminal provided in an embodiment of the present invention includes:
The company wheat of first transmission unit 1301, the predefined instruction form for transmission invites instruction to server, so that
Even wheat is invited instruction to be sent to second terminal by server;
Third acquiring unit 1302, for getting being instructed by inviting with even wheat for second terminal return for server forwarding
It is corresponding, and with predefined instruction form it is consistent even wheat replying instruction;
Third acquiring unit 1302 specifically includes:
Second obtain subelement 13021, for get server forwarding returned by least one second terminal with
Even wheat invites instruction corresponding, and replys and refer to the consistent at least one receiving company wheat that even wheat is invited of predefined instruction form
It enables, so that the corresponding second terminal of the company's of determination wheat replying instruction is candidate terminal;
Subelement 13022 is screened, at least one candidate terminal for meeting prerequisite for filtering out is corresponding final
Even Mai Zhiling, and it is sent to server, so that server determines that the candidate terminal for meeting prerequisite is even wheat terminal.
Second connection unit 1303, for inviting instruction and even wheat replying instruction and second terminal to establish even wheat according to even wheat
Session connection.
In the present embodiment, the company wheat of the predefined instruction form sent by the first transmission unit 1301 invites instruction to clothes
Business device, so that server even will invite instruction to be sent to second terminal by wheat, then third acquiring unit 1302 gets server
Being returned by second terminal for forwarding is corresponding with even wheat invitation instruction, and replys and refer to the consistent even wheat of predefined instruction form
It enables, according to connecting, wheat invitation instructs the second last connection unit 1303 and even wheat replying instruction and second terminal foundation connect wheat session company
After connecing, the company wheat for realizing the predefined instruction form based on consistent form invites instruction and the even chain of wheat replying instruction foundation
Road communication channel carries out the stream medium data interaction between multiple types terminal, solves current video and connects wheat and has been provided with
Interactivity more abundant, however current network video connects wheat interaction and there is terminal type isolation always, e.g., the end PC cannot be with hand
Generator terminal carries out video and connects wheat interaction problem, just because of the limitation sexual factor of terminal type, the inadequate skill of caused interactive experience
Art problem.
It further, is candidate terminal by second terminal, then whole by the candidate that first terminal meet prerequisite
The screening at end improves the beneficial effect of stream medium data interactivity as even wheat terminal.
Figure 14 is please referred to, one embodiment of second terminal provided in an embodiment of the present invention includes:
4th acquiring unit 1401, for getting the predefined instruction form sent by the first terminal of server forwarding
Company wheat invite instruction;
Second transmission unit 1402, for will with even wheat invite instruction it is corresponding and with the consistent company of predefined instruction form
Wheat replying instruction is forwarded to first terminal via server, the second transmission unit 1402, and being specifically used for will be with as candidate terminal
Even wheat invites instruction corresponding and is forwarded to first eventually via server with the consistent even wheat replying instruction of predefined instruction form
End, so that finally connect Mai Zhiling when at least one candidate terminal for meeting prerequisite that first terminal filters out is corresponding, and
It is sent to server and determines that the candidate terminal for meeting prerequisite is even wheat terminal.
Third connection unit 1403, for inviting instruction and even wheat replying instruction and first terminal to establish even wheat according to even wheat
Session connection.
In the present embodiment, is got by the 4th acquiring unit 1401 and made a reservation for by what the first terminal of server forwarding was sent
The company wheat of adopted instruction type invites instruction, then the second transmission unit 1402 instruction will be invited corresponding with even wheat and with predefine
The consistent even wheat replying instruction of instruction type is forwarded to first terminal via server, and last third connection unit 1403 is according to even
Wheat invites instruction and even wheat replying instruction and first terminal to establish after even wheat session connection, realizes based on the pre- of consistent form
Define instruction type company wheat invite instruction and even wheat replying instruction establish link communication channel, carry out multiple types terminal it
Between stream medium data interaction, solve current video and connect wheat and have been provided with interactivity more abundant, however current network
Video connects wheat interaction and there is terminal type isolation always, and e.g., the end PC cannot connect wheat with mobile phone terminal progress video and interact problem, exactly
Due to the limitation sexual factor of terminal type, the inadequate technical problem of caused interactive experience.
It further, is candidate terminal by second terminal, then whole by the candidate that first terminal meet prerequisite
The screening at end improves the beneficial effect of stream medium data interactivity as even wheat terminal.
Figure 15 is please referred to, one embodiment of third terminal provided in an embodiment of the present invention includes:
Third receiving unit 1501, it is corresponding by consistent predefined instruction form for working as first terminal and second terminal
Company wheat invite instruction and even wheat replying instruction is established even after wheat session connection, receive the subscription first terminal that server is sent
The notice for the video data issued with second terminal, and returned to server and subscribe to request, third receiving unit 1501, specific use
In determining that first terminal filtered out at least one second terminal as candidate terminal meets prerequisite when server
At least one candidate terminal as even wheat terminal, and according to even wheat terminal it is corresponding finally connect wheat instruction and even wheat invite refer to
It enables, after first terminal and Lian Mai terminal are established even wheat session connection, receives subscription first terminal that server is sent and the
The notice of the video data of two terminals publication, and returned to server and subscribe to request.
Subscriber units 1502, for receiving server according to the first terminal and second terminal publication for subscribing to request transmission
Video data, and the video data issued in same interface display first terminal and second terminal.
In the present embodiment, when first terminal and second terminal pass through the corresponding even wheat invitation of consistent predefined instruction form
Instruction and even wheat replying instruction are established even after wheat session connection, and third receiving unit 1501 receives subscription that server is sent the
The notice of one terminal and the video data of second terminal publication, and returned to server and subscribe to request, last subscriber units 1502
Server is received according to the video data for subscribing to the first terminal that request is sent and second terminal publication, and in same interface display
The video data of first terminal and second terminal publication realizes spectators and subscribes to different types of first terminal and the in live streaming
The live streaming of the real-time, interactive of the stream medium data of company's wheat video between two terminals greatly increases during even wheat video
User experience.
Please refer to Figure 16, a kind of one embodiment of stream medium data interactive system provided in an embodiment of the present invention includes:
The first terminal 162 referred in the server 161 that Fig. 9 is referred into Figure 11, Figure 12 and Figure 13 and at least one
The second terminal 163 referred in Figure 14;
First terminal 162 is connected by server via communication network with second terminal 163.
Further, stream medium data interactive system further include:
The third terminal 164 referred at least one Figure 15;
Third terminal 164 is connect with 161 communication network of server.
The video of endless style differences as shown in figure 19 connects wheat interactive structure figure, and it includes three angles that video, which connects wheat mainly,
Color: main broadcaster (Anchor) is invited to main broadcaster (RAnchor), spectators (Audience), in addition connect in wheat establishment process there are one
State is candidate (Candidate).Two kinds of control servers: signaling control server and video stream server;Signaling control
Server establishes control for connecting wheat command communication and Lian Mai, and video stream server is for main broadcaster and the hair for being invited to main broadcaster's video flowing
Cloth and spectators subscribe to.
Internet is connected to by network controller by different terminal equipment, i.e., establishes one between distinct device
The link channel that data-message can be transmitted, such as TCP connection link.Even wheat control instruction carries out data friendship by the data link
It changes, to reach adaptation and simplifying the processing of control logic between different types of terminal device, even wheat instruction control passes through unification
Text message type and format communicated, solve current video and connect wheat and have been provided with interactivity more abundant, so
And current network video connects wheat interaction and there is terminal type isolation always, e.g., it is mutual that the end PC cannot connect wheat with mobile phone terminal progress video
Dynamic problem, just because of the limitation sexual factor of terminal type, the inadequate technical problem of caused interactive experience.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.